public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [jlayton:ceph-netfs-llist 1/10] fs/afs/file.c:376:2: warning: #warning TRIGGER NEW FLUSH GROUP FOR TESTING
@ 2022-07-08 23:02 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-07-08 23:02 UTC (permalink / raw)
  To: David Howells; +Cc: kbuild-all, linux-kernel, Jeff Layton

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git ceph-netfs-llist
head:   fd428464b2220bd6c59f0a30f9dadb4720b3efb5
commit: 3d4ae7bbf12af2c1ee8f93df5d6ea3556bdfb6ca [1/10] netfs: Add a write context
config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20220709/202207090619.RyQJMYoY-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git/commit/?id=3d4ae7bbf12af2c1ee8f93df5d6ea3556bdfb6ca
        git remote add jlayton https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git
        git fetch --no-tags jlayton ceph-netfs-llist
        git checkout 3d4ae7bbf12af2c1ee8f93df5d6ea3556bdfb6ca
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash fs/afs/

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

All warnings (new ones prefixed by >>):

   In file included from include/linux/gfp.h:5,
                    from include/linux/umh.h:4,
                    from include/linux/kmod.h:9,
                    from include/linux/module.h:17,
                    from fs/afs/file.c:9:
   include/linux/page-flags.h: In function 'PageHead':
   include/linux/page-flags.h:788:27: warning: passing argument 1 of 'dump_page' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     788 |         PF_POISONED_CHECK(page);
         |                           ^~~~
   include/linux/mmdebug.h:21:35: note: in definition of macro 'VM_BUG_ON_PAGE'
      21 |                         dump_page(page, "VM_BUG_ON_PAGE(" __stringify(cond)")");\
         |                                   ^~~~
   include/linux/page-flags.h:370:17: note: in expansion of macro 'VM_BUG_ON_PGFLAGS'
     370 |                 VM_BUG_ON_PGFLAGS(PagePoisoned(page), page);            \
         |                 ^~~~~~~~~~~~~~~~~
   include/linux/page-flags.h:788:9: note: in expansion of macro 'PF_POISONED_CHECK'
     788 |         PF_POISONED_CHECK(page);
         |         ^~~~~~~~~~~~~~~~~
   include/linux/mmdebug.h:12:29: note: expected 'struct page *' but argument is of type 'const struct page *'
      12 | void dump_page(struct page *page, const char *reason);
         |                ~~~~~~~~~~~~~^~~~
   fs/afs/file.c: In function 'afs_init_write_context':
>> fs/afs/file.c:376:2: warning: #warning TRIGGER NEW FLUSH GROUP FOR TESTING [-Wcpp]
     376 | #warning TRIGGER NEW FLUSH GROUP FOR TESTING
         |  ^~~~~~~


vim +376 fs/afs/file.c

   373	
   374	static int afs_init_write_context(struct netfs_write_context *write)
   375	{
 > 376	#warning TRIGGER NEW FLUSH GROUP FOR TESTING
   377		static atomic_t jump;
   378		return netfs_require_flush_group(write, (atomic_inc_return(&jump) & 3) == 3);
   379	}
   380	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

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

only message in thread, other threads:[~2022-07-08 23:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-08 23:02 [jlayton:ceph-netfs-llist 1/10] fs/afs/file.c:376:2: warning: #warning TRIGGER NEW FLUSH GROUP FOR TESTING kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox