All of lore.kernel.org
 help / color / mirror / Atom feed
* [hch-misc:sysfs-seq 10/13] block/blk-sysfs.c:652:16: error: initialization of 'int (*)(struct request_queue *, struct seq_file *)' from incompatible pointer type 'ssize_t (*)(struct request_queue *, char *)' {aka 'long int (*)(struct request_queue *, char *)'}
@ 2021-09-03 20:27 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-09-03 20:27 UTC (permalink / raw)
  To: kbuild-all

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

tree:   git://git.infradead.org/users/hch/misc.git sysfs-seq
head:   f56471a295c5c63a0a900d5a4211a74368068f3b
commit: f57fc25dd5d4d19d69fe278a2f4f36d4af5ccaa7 [10/13] block: convert the request_queue attrs to use ->seq_show
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git remote add hch-misc git://git.infradead.org/users/hch/misc.git
        git fetch --no-tags hch-misc sysfs-seq
        git checkout f57fc25dd5d4d19d69fe278a2f4f36d4af5ccaa7
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=ia64 

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

All errors (new ones prefixed by >>):

>> block/blk-sysfs.c:652:16: error: initialization of 'int (*)(struct request_queue *, struct seq_file *)' from incompatible pointer type 'ssize_t (*)(struct request_queue *, char *)' {aka 'long int (*)(struct request_queue *, char *)'} [-Werror=incompatible-pointer-types]
     652 | QUEUE_RW_ENTRY(blk_throtl_sample_time, "throttle_sample_time");
         |                ^~~~~~~~~~~~~~~~~~~~~~
   block/blk-sysfs.c:605:19: note: in definition of macro 'QUEUE_RW_ENTRY'
     605 |         .show   = _prefix##_show,                       \
         |                   ^~~~~~~
   block/blk-sysfs.c:652:16: note: (near initialization for 'blk_throtl_sample_time_entry.show')
     652 | QUEUE_RW_ENTRY(blk_throtl_sample_time, "throttle_sample_time");
         |                ^~~~~~~~~~~~~~~~~~~~~~
   block/blk-sysfs.c:605:19: note: in definition of macro 'QUEUE_RW_ENTRY'
     605 |         .show   = _prefix##_show,                       \
         |                   ^~~~~~~
   cc1: some warnings being treated as errors


vim +652 block/blk-sysfs.c

8324aa91d1e11a Jens Axboe        2008-01-29  650  
3562614705c6f2 Christoph Hellwig 2020-09-03  651  #ifdef CONFIG_BLK_DEV_THROTTLING_LOW
3562614705c6f2 Christoph Hellwig 2020-09-03 @652  QUEUE_RW_ENTRY(blk_throtl_sample_time, "throttle_sample_time");
3562614705c6f2 Christoph Hellwig 2020-09-03  653  #endif
8324aa91d1e11a Jens Axboe        2008-01-29  654  

:::::: The code at line 652 was first introduced by commit
:::::: 3562614705c6f2324f79a959a2cf1ae24d142578 block: add helper macros for queue sysfs entries

:::::: TO: Christoph Hellwig <hch@lst.de>
:::::: CC: Jens Axboe <axboe@kernel.dk>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

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

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

only message in thread, other threads:[~2021-09-03 20:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-03 20:27 [hch-misc:sysfs-seq 10/13] block/blk-sysfs.c:652:16: error: initialization of 'int (*)(struct request_queue *, struct seq_file *)' from incompatible pointer type 'ssize_t (*)(struct request_queue *, char *)' {aka 'long int (*)(struct request_queue *, char *)'} 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.