All of lore.kernel.org
 help / color / mirror / Atom feed
* [axboe-block:for-6.5/block 65/74] include/linux/gfp.h:320:36: warning: passing argument 1 of 'free_pages' makes integer from pointer without a cast
@ 2023-05-31 19:44 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-05-31 19:44 UTC (permalink / raw)
  To: Johannes Thumshirn
  Cc: oe-kbuild-all, Jens Axboe, Christoph Hellwig, Damien Le Moal

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git for-6.5/block
head:   8e8fedab1194ef90e007636eb3d224c4f8e979a7
commit: 6473bc325644b9c8473e6c92bfb520a68dce1e12 [65/74] md: check for failure when adding pages in alloc_behind_master_bio
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20230601/202306010344.RTCWrUvf-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 12.3.0
reproduce (this is a W=1 build):
        mkdir -p ~/bin
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git/commit/?id=6473bc325644b9c8473e6c92bfb520a68dce1e12
        git remote add axboe-block https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git
        git fetch --no-tags axboe-block for-6.5/block
        git checkout 6473bc325644b9c8473e6c92bfb520a68dce1e12
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.3.0 ~/bin/make.cross W=1 O=build_dir ARCH=alpha olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.3.0 ~/bin/make.cross W=1 O=build_dir ARCH=alpha SHELL=/bin/bash drivers/md/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202306010344.RTCWrUvf-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from include/linux/slab.h:15,
                    from drivers/md/raid1.c:26:
   drivers/md/raid1.c: In function 'alloc_behind_master_bio':
>> include/linux/gfp.h:320:36: warning: passing argument 1 of 'free_pages' makes integer from pointer without a cast [-Wint-conversion]
     320 | #define free_page(addr) free_pages((addr), 0)
         |                                    ^~~~~~
         |                                    |
         |                                    struct page *
   drivers/md/raid1.c:1151:25: note: in expansion of macro 'free_page'
    1151 |                         free_page(page);
         |                         ^~~~~~~~~
   include/linux/gfp.h:303:38: note: expected 'long unsigned int' but argument is of type 'struct page *'
     303 | extern void free_pages(unsigned long addr, unsigned int order);
         |                        ~~~~~~~~~~~~~~^~~~


vim +/free_pages +320 include/linux/gfp.h

b63ae8ca096dfd Alexander Duyck 2015-05-06  318  
^1da177e4c3f41 Linus Torvalds  2005-04-16  319  #define __free_page(page) __free_pages((page), 0)
^1da177e4c3f41 Linus Torvalds  2005-04-16 @320  #define free_page(addr) free_pages((addr), 0)
^1da177e4c3f41 Linus Torvalds  2005-04-16  321  

:::::: The code at line 320 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

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

only message in thread, other threads:[~2023-05-31 19:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-31 19:44 [axboe-block:for-6.5/block 65/74] include/linux/gfp.h:320:36: warning: passing argument 1 of 'free_pages' makes integer from pointer without a cast kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.