linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [vfs:hch.procfs 7/42] include/linux/proc_fs.h:69:58: error: "0" may not appear in macro parameter list
@ 2018-05-17  4:24 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2018-05-17  4:24 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: kbuild-all, linux-fsdevel

[-- Attachment #1: Type: text/plain, Size: 4188 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git hch.procfs
head:   2f4293973d4eb8b6eb2f21f3db24461ac2b9e928
commit: 44414d82cfe0f68cb59d0a42f599ccd893ae0032 [7/42] proc: introduce proc_create_seq_private
config: h8300-h8300h-sim_defconfig (attached as .config)
compiler: h8300-linux-gcc (GCC) 7.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 44414d82cfe0f68cb59d0a42f599ccd893ae0032
        # save the attached .config to linux build tree
        make.cross ARCH=h8300 

Note: the vfs/hch.procfs HEAD 2f4293973d4eb8b6eb2f21f3db24461ac2b9e928 builds fine.
      It only hurts bisectibility.

All error/warnings (new ones prefixed by >>):

   In file included from kernel/fork.c:64:0:
>> include/linux/proc_fs.h:69:58: error: "0" may not appear in macro parameter list
    #define proc_create_seq_private(name, mode, parent, ops, 0, data) ({NULL;})
                                                             ^
--
   In file included from kernel/time/timer_list.c:13:0:
>> include/linux/proc_fs.h:69:58: error: "0" may not appear in macro parameter list
    #define proc_create_seq_private(name, mode, parent, ops, 0, data) ({NULL;})
                                                             ^
   kernel/time/timer_list.c: In function 'init_timer_list_procfs':
>> kernel/time/timer_list.c:379:7: error: implicit declaration of function 'proc_create_seq_private'; did you mean 'proc_create_seq_data'? [-Werror=implicit-function-declaration]
     pe = proc_create_seq_private("timer_list", 0400, NULL, &timer_list_sops,
          ^~~~~~~~~~~~~~~~~~~~~~~
          proc_create_seq_data
>> kernel/time/timer_list.c:379:5: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
     pe = proc_create_seq_private("timer_list", 0400, NULL, &timer_list_sops,
        ^
   cc1: some warnings being treated as errors
--
   In file included from kernel//time/timer_list.c:13:0:
>> include/linux/proc_fs.h:69:58: error: "0" may not appear in macro parameter list
    #define proc_create_seq_private(name, mode, parent, ops, 0, data) ({NULL;})
                                                             ^
   kernel//time/timer_list.c: In function 'init_timer_list_procfs':
   kernel//time/timer_list.c:379:7: error: implicit declaration of function 'proc_create_seq_private'; did you mean 'proc_create_seq_data'? [-Werror=implicit-function-declaration]
     pe = proc_create_seq_private("timer_list", 0400, NULL, &timer_list_sops,
          ^~~~~~~~~~~~~~~~~~~~~~~
          proc_create_seq_data
   kernel//time/timer_list.c:379:5: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
     pe = proc_create_seq_private("timer_list", 0400, NULL, &timer_list_sops,
        ^
   cc1: some warnings being treated as errors

vim +/0 +69 include/linux/proc_fs.h

    59	
    60	static inline struct proc_dir_entry *proc_symlink(const char *name,
    61			struct proc_dir_entry *parent,const char *dest) { return NULL;}
    62	static inline struct proc_dir_entry *proc_mkdir(const char *name,
    63		struct proc_dir_entry *parent) {return NULL;}
    64	static inline struct proc_dir_entry *proc_create_mount_point(const char *name) { return NULL; }
    65	static inline struct proc_dir_entry *proc_mkdir_data(const char *name,
    66		umode_t mode, struct proc_dir_entry *parent, void *data) { return NULL; }
    67	static inline struct proc_dir_entry *proc_mkdir_mode(const char *name,
    68		umode_t mode, struct proc_dir_entry *parent) { return NULL; }
  > 69	#define proc_create_seq_private(name, mode, parent, ops, 0, data) ({NULL;})
    70	#define proc_create_seq_data(name, mode, parent, ops, data) ({NULL;})
    71	#define proc_create_seq(name, mode, parent, ops) ({NULL;})
    72	#define proc_create(name, mode, parent, proc_fops) ({NULL;})
    73	#define proc_create_data(name, mode, parent, proc_fops, data) ({NULL;})
    74	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 4254 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-05-17  4:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-17  4:24 [vfs:hch.procfs 7/42] include/linux/proc_fs.h:69:58: error: "0" may not appear in macro parameter list kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).