linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Al Viro <viro@zeniv.linux.org.uk>
Cc: kbuild-all@01.org, linux-fsdevel@vger.kernel.org
Subject: [vfs:work.namei 4/12] fs/nfs/./nfstrace.h:210:19: error: 'LOOKUP_NO_EVAL' undeclared here (not in a function); did you mean 'LOOKUP_NO_REVAL'?
Date: Sat, 31 Aug 2019 08:55:44 +0800	[thread overview]
Message-ID: <201908310840.UAbyGXb8%lkp@intel.com> (raw)

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

tree:   https://kernel.googlesource.com/pub/scm/linux/kernel/git/viro/vfs.git work.namei
head:   6807bef31522a0c49e28c3656c27b9bb1dadc725
commit: b141b4f7f9e5f209fb70e24ff11ea4a8f1ae2287 [4/12] kill LOOKUP_NO_EVAL, don't bother including namei.h from audit.h
config: i386-defconfig (attached as .config)
compiler: gcc-7 (Debian 7.4.0-11) 7.4.0
reproduce:
        git checkout b141b4f7f9e5f209fb70e24ff11ea4a8f1ae2287
        # save the attached .config to linux build tree
        make ARCH=i386 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

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

   In file included from include/trace/define_trace.h:102:0,
                    from fs/nfs/nfstrace.h:1178,
                    from fs/nfs/nfstrace.c:10:
>> fs/nfs/./nfstrace.h:210:19: error: 'LOOKUP_NO_EVAL' undeclared here (not in a function); did you mean 'LOOKUP_NO_REVAL'?
    TRACE_DEFINE_ENUM(LOOKUP_NO_EVAL);
                      ^
   include/trace/trace_events.h:44:17: note: in definition of macro 'TRACE_DEFINE_ENUM'
      .eval_value = a    \
                    ^
   In file included from include/trace/define_trace.h:102:0,
                    from fs/nfs/nfstrace.h:1178,
                    from fs/nfs/nfstrace.c:10:
   fs/nfs/./nfstrace.h: In function 'trace_raw_output_nfs_lookup_event_done':
>> fs/nfs/./nfstrace.h:229:6: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
       { LOOKUP_NO_EVAL, "NO_EVAL" }, \
         ^
   include/trace/trace_events.h:360:22: note: in definition of macro 'DECLARE_EVENT_CLASS'
     trace_seq_printf(s, print);     \
                         ^~~~~
>> fs/nfs/./nfstrace.h:307:3: note: in expansion of macro 'TP_printk'
      TP_printk(
      ^~~~~~~~~
>> fs/nfs/./nfstrace.h:221:2: note: in expansion of macro '__print_flags'
     __print_flags(flags, "|", \
     ^~~~~~~~~~~~~
>> fs/nfs/./nfstrace.h:311:4: note: in expansion of macro 'show_lookup_flags'
       show_lookup_flags(__entry->flags),
       ^~~~~~~~~~~~~~~~~
   fs/nfs/./nfstrace.h:229:6: note: (near initialization for '__flags[7].mask')
       { LOOKUP_NO_EVAL, "NO_EVAL" }, \
         ^
   include/trace/trace_events.h:360:22: note: in definition of macro 'DECLARE_EVENT_CLASS'
     trace_seq_printf(s, print);     \
                         ^~~~~
>> fs/nfs/./nfstrace.h:307:3: note: in expansion of macro 'TP_printk'
      TP_printk(
      ^~~~~~~~~
>> fs/nfs/./nfstrace.h:221:2: note: in expansion of macro '__print_flags'
     __print_flags(flags, "|", \
     ^~~~~~~~~~~~~
>> fs/nfs/./nfstrace.h:311:4: note: in expansion of macro 'show_lookup_flags'
       show_lookup_flags(__entry->flags),
       ^~~~~~~~~~~~~~~~~
>> fs/nfs/./nfstrace.h:229:6: error: initializer element is not constant
       { LOOKUP_NO_EVAL, "NO_EVAL" }, \
         ^
   include/trace/trace_events.h:360:22: note: in definition of macro 'DECLARE_EVENT_CLASS'
     trace_seq_printf(s, print);     \
                         ^~~~~
>> fs/nfs/./nfstrace.h:307:3: note: in expansion of macro 'TP_printk'
      TP_printk(
      ^~~~~~~~~
>> fs/nfs/./nfstrace.h:221:2: note: in expansion of macro '__print_flags'
     __print_flags(flags, "|", \
     ^~~~~~~~~~~~~
>> fs/nfs/./nfstrace.h:311:4: note: in expansion of macro 'show_lookup_flags'
       show_lookup_flags(__entry->flags),
       ^~~~~~~~~~~~~~~~~
   fs/nfs/./nfstrace.h:229:6: note: (near initialization for '__flags[7].mask')
       { LOOKUP_NO_EVAL, "NO_EVAL" }, \
         ^
   include/trace/trace_events.h:360:22: note: in definition of macro 'DECLARE_EVENT_CLASS'
     trace_seq_printf(s, print);     \
                         ^~~~~
>> fs/nfs/./nfstrace.h:307:3: note: in expansion of macro 'TP_printk'
      TP_printk(
      ^~~~~~~~~
>> fs/nfs/./nfstrace.h:221:2: note: in expansion of macro '__print_flags'
     __print_flags(flags, "|", \
     ^~~~~~~~~~~~~
>> fs/nfs/./nfstrace.h:311:4: note: in expansion of macro 'show_lookup_flags'
       show_lookup_flags(__entry->flags),
       ^~~~~~~~~~~~~~~~~

vim +210 fs/nfs/./nfstrace.h

f4ce1299b329e9 Trond Myklebust 2013-08-19  202  
7d4006c161ad8c Chuck Lever     2019-06-19  203  TRACE_DEFINE_ENUM(LOOKUP_FOLLOW);
7d4006c161ad8c Chuck Lever     2019-06-19  204  TRACE_DEFINE_ENUM(LOOKUP_DIRECTORY);
7d4006c161ad8c Chuck Lever     2019-06-19  205  TRACE_DEFINE_ENUM(LOOKUP_AUTOMOUNT);
7d4006c161ad8c Chuck Lever     2019-06-19  206  TRACE_DEFINE_ENUM(LOOKUP_PARENT);
7d4006c161ad8c Chuck Lever     2019-06-19  207  TRACE_DEFINE_ENUM(LOOKUP_REVAL);
7d4006c161ad8c Chuck Lever     2019-06-19  208  TRACE_DEFINE_ENUM(LOOKUP_RCU);
7d4006c161ad8c Chuck Lever     2019-06-19  209  TRACE_DEFINE_ENUM(LOOKUP_NO_REVAL);
7d4006c161ad8c Chuck Lever     2019-06-19 @210  TRACE_DEFINE_ENUM(LOOKUP_NO_EVAL);
7d4006c161ad8c Chuck Lever     2019-06-19  211  TRACE_DEFINE_ENUM(LOOKUP_OPEN);
7d4006c161ad8c Chuck Lever     2019-06-19  212  TRACE_DEFINE_ENUM(LOOKUP_CREATE);
7d4006c161ad8c Chuck Lever     2019-06-19  213  TRACE_DEFINE_ENUM(LOOKUP_EXCL);
7d4006c161ad8c Chuck Lever     2019-06-19  214  TRACE_DEFINE_ENUM(LOOKUP_RENAME_TARGET);
7d4006c161ad8c Chuck Lever     2019-06-19  215  TRACE_DEFINE_ENUM(LOOKUP_JUMPED);
7d4006c161ad8c Chuck Lever     2019-06-19  216  TRACE_DEFINE_ENUM(LOOKUP_ROOT);
7d4006c161ad8c Chuck Lever     2019-06-19  217  TRACE_DEFINE_ENUM(LOOKUP_EMPTY);
7d4006c161ad8c Chuck Lever     2019-06-19  218  TRACE_DEFINE_ENUM(LOOKUP_DOWN);
7d4006c161ad8c Chuck Lever     2019-06-19  219  
6e0d0be715fe04 Trond Myklebust 2013-08-20  220  #define show_lookup_flags(flags) \
7d4006c161ad8c Chuck Lever     2019-06-19 @221  	__print_flags(flags, "|", \
7d4006c161ad8c Chuck Lever     2019-06-19  222  			{ LOOKUP_FOLLOW, "FOLLOW" }, \
6e0d0be715fe04 Trond Myklebust 2013-08-20  223  			{ LOOKUP_DIRECTORY, "DIRECTORY" }, \
7d4006c161ad8c Chuck Lever     2019-06-19  224  			{ LOOKUP_AUTOMOUNT, "AUTOMOUNT" }, \
7d4006c161ad8c Chuck Lever     2019-06-19  225  			{ LOOKUP_PARENT, "PARENT" }, \
7d4006c161ad8c Chuck Lever     2019-06-19  226  			{ LOOKUP_REVAL, "REVAL" }, \
7d4006c161ad8c Chuck Lever     2019-06-19  227  			{ LOOKUP_RCU, "RCU" }, \
7d4006c161ad8c Chuck Lever     2019-06-19  228  			{ LOOKUP_NO_REVAL, "NO_REVAL" }, \
7d4006c161ad8c Chuck Lever     2019-06-19 @229  			{ LOOKUP_NO_EVAL, "NO_EVAL" }, \
6e0d0be715fe04 Trond Myklebust 2013-08-20  230  			{ LOOKUP_OPEN, "OPEN" }, \
6e0d0be715fe04 Trond Myklebust 2013-08-20  231  			{ LOOKUP_CREATE, "CREATE" }, \
7d4006c161ad8c Chuck Lever     2019-06-19  232  			{ LOOKUP_EXCL, "EXCL" }, \
7d4006c161ad8c Chuck Lever     2019-06-19  233  			{ LOOKUP_RENAME_TARGET, "RENAME_TARGET" }, \
7d4006c161ad8c Chuck Lever     2019-06-19  234  			{ LOOKUP_JUMPED, "JUMPED" }, \
7d4006c161ad8c Chuck Lever     2019-06-19  235  			{ LOOKUP_ROOT, "ROOT" }, \
7d4006c161ad8c Chuck Lever     2019-06-19  236  			{ LOOKUP_EMPTY, "EMPTY" }, \
7d4006c161ad8c Chuck Lever     2019-06-19  237  			{ LOOKUP_DOWN, "DOWN" })
6e0d0be715fe04 Trond Myklebust 2013-08-20  238  
6e0d0be715fe04 Trond Myklebust 2013-08-20  239  DECLARE_EVENT_CLASS(nfs_lookup_event,
6e0d0be715fe04 Trond Myklebust 2013-08-20  240  		TP_PROTO(
6e0d0be715fe04 Trond Myklebust 2013-08-20  241  			const struct inode *dir,
6e0d0be715fe04 Trond Myklebust 2013-08-20  242  			const struct dentry *dentry,
6e0d0be715fe04 Trond Myklebust 2013-08-20  243  			unsigned int flags
6e0d0be715fe04 Trond Myklebust 2013-08-20  244  		),
6e0d0be715fe04 Trond Myklebust 2013-08-20  245  
6e0d0be715fe04 Trond Myklebust 2013-08-20  246  		TP_ARGS(dir, dentry, flags),
6e0d0be715fe04 Trond Myklebust 2013-08-20  247  
6e0d0be715fe04 Trond Myklebust 2013-08-20  248  		TP_STRUCT__entry(
7d4006c161ad8c Chuck Lever     2019-06-19  249  			__field(unsigned long, flags)
6e0d0be715fe04 Trond Myklebust 2013-08-20  250  			__field(dev_t, dev)
6e0d0be715fe04 Trond Myklebust 2013-08-20  251  			__field(u64, dir)
6e0d0be715fe04 Trond Myklebust 2013-08-20  252  			__string(name, dentry->d_name.name)
6e0d0be715fe04 Trond Myklebust 2013-08-20  253  		),
6e0d0be715fe04 Trond Myklebust 2013-08-20  254  
6e0d0be715fe04 Trond Myklebust 2013-08-20  255  		TP_fast_assign(
6e0d0be715fe04 Trond Myklebust 2013-08-20  256  			__entry->dev = dir->i_sb->s_dev;
6e0d0be715fe04 Trond Myklebust 2013-08-20  257  			__entry->dir = NFS_FILEID(dir);
6e0d0be715fe04 Trond Myklebust 2013-08-20  258  			__entry->flags = flags;
6e0d0be715fe04 Trond Myklebust 2013-08-20  259  			__assign_str(name, dentry->d_name.name);
6e0d0be715fe04 Trond Myklebust 2013-08-20  260  		),
6e0d0be715fe04 Trond Myklebust 2013-08-20  261  
6e0d0be715fe04 Trond Myklebust 2013-08-20  262  		TP_printk(
7d4006c161ad8c Chuck Lever     2019-06-19  263  			"flags=0x%lx (%s) name=%02x:%02x:%llu/%s",
6e0d0be715fe04 Trond Myklebust 2013-08-20  264  			__entry->flags,
6e0d0be715fe04 Trond Myklebust 2013-08-20  265  			show_lookup_flags(__entry->flags),
6e0d0be715fe04 Trond Myklebust 2013-08-20  266  			MAJOR(__entry->dev), MINOR(__entry->dev),
6e0d0be715fe04 Trond Myklebust 2013-08-20  267  			(unsigned long long)__entry->dir,
6e0d0be715fe04 Trond Myklebust 2013-08-20  268  			__get_str(name)
6e0d0be715fe04 Trond Myklebust 2013-08-20  269  		)
6e0d0be715fe04 Trond Myklebust 2013-08-20  270  );
6e0d0be715fe04 Trond Myklebust 2013-08-20  271  
6e0d0be715fe04 Trond Myklebust 2013-08-20  272  #define DEFINE_NFS_LOOKUP_EVENT(name) \
6e0d0be715fe04 Trond Myklebust 2013-08-20  273  	DEFINE_EVENT(nfs_lookup_event, name, \
6e0d0be715fe04 Trond Myklebust 2013-08-20  274  			TP_PROTO( \
6e0d0be715fe04 Trond Myklebust 2013-08-20  275  				const struct inode *dir, \
6e0d0be715fe04 Trond Myklebust 2013-08-20  276  				const struct dentry *dentry, \
6e0d0be715fe04 Trond Myklebust 2013-08-20  277  				unsigned int flags \
6e0d0be715fe04 Trond Myklebust 2013-08-20  278  			), \
6e0d0be715fe04 Trond Myklebust 2013-08-20  279  			TP_ARGS(dir, dentry, flags))
6e0d0be715fe04 Trond Myklebust 2013-08-20  280  
6e0d0be715fe04 Trond Myklebust 2013-08-20  281  DECLARE_EVENT_CLASS(nfs_lookup_event_done,
6e0d0be715fe04 Trond Myklebust 2013-08-20  282  		TP_PROTO(
6e0d0be715fe04 Trond Myklebust 2013-08-20  283  			const struct inode *dir,
6e0d0be715fe04 Trond Myklebust 2013-08-20  284  			const struct dentry *dentry,
6e0d0be715fe04 Trond Myklebust 2013-08-20  285  			unsigned int flags,
6e0d0be715fe04 Trond Myklebust 2013-08-20  286  			int error
6e0d0be715fe04 Trond Myklebust 2013-08-20  287  		),
6e0d0be715fe04 Trond Myklebust 2013-08-20  288  
6e0d0be715fe04 Trond Myklebust 2013-08-20  289  		TP_ARGS(dir, dentry, flags, error),
6e0d0be715fe04 Trond Myklebust 2013-08-20  290  
6e0d0be715fe04 Trond Myklebust 2013-08-20  291  		TP_STRUCT__entry(
38a638a72a349c Chuck Lever     2019-06-19  292  			__field(unsigned long, error)
7d4006c161ad8c Chuck Lever     2019-06-19  293  			__field(unsigned long, flags)
6e0d0be715fe04 Trond Myklebust 2013-08-20  294  			__field(dev_t, dev)
6e0d0be715fe04 Trond Myklebust 2013-08-20  295  			__field(u64, dir)
6e0d0be715fe04 Trond Myklebust 2013-08-20  296  			__string(name, dentry->d_name.name)
6e0d0be715fe04 Trond Myklebust 2013-08-20  297  		),
6e0d0be715fe04 Trond Myklebust 2013-08-20  298  
6e0d0be715fe04 Trond Myklebust 2013-08-20  299  		TP_fast_assign(
6e0d0be715fe04 Trond Myklebust 2013-08-20  300  			__entry->dev = dir->i_sb->s_dev;
6e0d0be715fe04 Trond Myklebust 2013-08-20  301  			__entry->dir = NFS_FILEID(dir);
38a638a72a349c Chuck Lever     2019-06-19  302  			__entry->error = error < 0 ? -error : 0;
6e0d0be715fe04 Trond Myklebust 2013-08-20  303  			__entry->flags = flags;
6e0d0be715fe04 Trond Myklebust 2013-08-20  304  			__assign_str(name, dentry->d_name.name);
6e0d0be715fe04 Trond Myklebust 2013-08-20  305  		),
6e0d0be715fe04 Trond Myklebust 2013-08-20  306  
6e0d0be715fe04 Trond Myklebust 2013-08-20 @307  		TP_printk(
7d4006c161ad8c Chuck Lever     2019-06-19  308  			"error=%ld (%s) flags=0x%lx (%s) name=%02x:%02x:%llu/%s",
38a638a72a349c Chuck Lever     2019-06-19  309  			-__entry->error, nfs_show_status(__entry->error),
6e0d0be715fe04 Trond Myklebust 2013-08-20  310  			__entry->flags,
6e0d0be715fe04 Trond Myklebust 2013-08-20 @311  			show_lookup_flags(__entry->flags),
6e0d0be715fe04 Trond Myklebust 2013-08-20  312  			MAJOR(__entry->dev), MINOR(__entry->dev),
6e0d0be715fe04 Trond Myklebust 2013-08-20  313  			(unsigned long long)__entry->dir,
6e0d0be715fe04 Trond Myklebust 2013-08-20  314  			__get_str(name)
6e0d0be715fe04 Trond Myklebust 2013-08-20  315  		)
6e0d0be715fe04 Trond Myklebust 2013-08-20  316  );
6e0d0be715fe04 Trond Myklebust 2013-08-20  317  

:::::: The code at line 210 was first introduced by commit
:::::: 7d4006c161ad8cded95f80f43b5fecc36e781497 NFS: Update symbolic flags displayed by trace events

:::::: TO: Chuck Lever <chuck.lever@oracle.com>
:::::: CC: Anna Schumaker <Anna.Schumaker@Netapp.com>

---
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: 28082 bytes --]

                 reply	other threads:[~2019-08-31  0:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201908310840.UAbyGXb8%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@01.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=viro@zeniv.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).