* [hch-misc:swap_activate /12] block/fops.c:963:25: error: passing argument 3 of 'add_swap_extent' makes integer from pointer without a cast
@ 2026-05-12 10:36 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-05-12 10:36 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: oe-kbuild-all
tree: git://git.infradead.org/users/hch/misc.git swap_activate
head: 7414a67e6a700a2e9fef1fcd2ccce5592290e575
commit: 2596670a53e80bf99d7793cafc90e33db3899192 [/12] swap: push down setting sis->bdev into ->swap_activate
config: microblaze-defconfig (https://download.01.org/0day-ci/archive/20260512/202605121802.seSugOoh-lkp@intel.com/config)
compiler: microblaze-linux-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260512/202605121802.seSugOoh-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202605121802.seSugOoh-lkp@intel.com/
All errors (new ones prefixed by >>):
block/fops.c: In function 'blkdev_swap_activate':
>> block/fops.c:963:25: error: passing argument 3 of 'add_swap_extent' makes integer from pointer without a cast [-Wint-conversion]
963 | I_BDEV(file->f_mapping->host), 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| struct block_device *
In file included from include/linux/suspend.h:5,
from block/fops.c:17:
include/linux/swap.h:531:49: note: expected 'long unsigned int' but argument is of type 'struct block_device *'
531 | unsigned long nr_pages, sector_t start_block)
| ~~~~~~~~~~~~~~^~~~~~~~
vim +/add_swap_extent +963 block/fops.c
951
952 static int blkdev_swap_activate(struct file *file, struct swap_info_struct *sis)
953 {
954 loff_t isize = i_size_read(bdev_file_inode(file));
955
956 /*
957 * The swap code performs arbitrary overwrites, which are not supported
958 * on zones with sequential write constraints.
959 */
960 if (bdev_is_zoned(I_BDEV(file->f_mapping->host)))
961 return -EINVAL;
962 return add_swap_extent(sis, div_u64(isize, PAGE_SIZE),
> 963 I_BDEV(file->f_mapping->host), 0);
964 }
965
--
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:[~2026-05-12 10:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-12 10:36 [hch-misc:swap_activate /12] block/fops.c:963:25: error: passing argument 3 of 'add_swap_extent' 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.