LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [hch-misc:seq_get_buf 2/5] block/mq-deadline-cgroup.c:105:17: error: initialization of 'bool (*)(struct blkg_policy_data *, struct seq_file *)' {aka '_Bool (*)(struct blkg_policy_data *, struct seq_file *)'} from incompatible pointer type 'size_t (*)(struct blkg_policy_data *, char...
@ 2021-07-27 21:48 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-07-27 21:48 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: kbuild-all, linux-kernel

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

tree:   git://git.infradead.org/users/hch/misc.git seq_get_buf
head:   efa12012e09ece48c0732409eb555c81f285dbe1
commit: 087e1b1513bde6ed0fd631b0497aead7ff7085d4 [2/5] blk-cgroup: stop using seq_get_buf
config: nios2-randconfig-r021-20210727 (attached as .config)
compiler: nios2-linux-gcc (GCC) 10.3.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 seq_get_buf
        git checkout 087e1b1513bde6ed0fd631b0497aead7ff7085d4
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=nios2 

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/mq-deadline-cgroup.c:105:17: error: initialization of 'bool (*)(struct blkg_policy_data *, struct seq_file *)' {aka '_Bool (*)(struct blkg_policy_data *, struct seq_file *)'} from incompatible pointer type 'size_t (*)(struct blkg_policy_data *, char *, size_t)' {aka 'unsigned int (*)(struct blkg_policy_data *, char *, unsigned int)'} [-Werror=incompatible-pointer-types]
     105 |  .pd_stat_fn  = dd_pd_stat,
         |                 ^~~~~~~~~~
   block/mq-deadline-cgroup.c:105:17: note: (near initialization for 'dd_blkcg_policy.pd_stat_fn')
   cc1: some warnings being treated as errors

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for SERIAL_CORE_CONSOLE
   Depends on TTY && HAS_IOMEM
   Selected by
   - EARLY_PRINTK


vim +105 block/mq-deadline-cgroup.c

08a9ad8bf60738 Bart Van Assche 2021-06-17   98  
08a9ad8bf60738 Bart Van Assche 2021-06-17   99  static struct blkcg_policy dd_blkcg_policy = {
08a9ad8bf60738 Bart Van Assche 2021-06-17  100  	.cpd_alloc_fn		= dd_cpd_alloc,
08a9ad8bf60738 Bart Van Assche 2021-06-17  101  	.cpd_free_fn		= dd_cpd_free,
08a9ad8bf60738 Bart Van Assche 2021-06-17  102  
08a9ad8bf60738 Bart Van Assche 2021-06-17  103  	.pd_alloc_fn		= dd_pd_alloc,
08a9ad8bf60738 Bart Van Assche 2021-06-17  104  	.pd_free_fn		= dd_pd_free,
08a9ad8bf60738 Bart Van Assche 2021-06-17 @105  	.pd_stat_fn		= dd_pd_stat,
08a9ad8bf60738 Bart Van Assche 2021-06-17  106  };
08a9ad8bf60738 Bart Van Assche 2021-06-17  107  

:::::: The code at line 105 was first introduced by commit
:::::: 08a9ad8bf607388d768a341957d53eae64250c2d block/mq-deadline: Add cgroup support

:::::: TO: Bart Van Assche <bvanassche@acm.org>
:::::: CC: Jens Axboe <axboe@kernel.dk>

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

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

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

only message in thread, other threads:[~2021-07-27 21:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-27 21:48 [hch-misc:seq_get_buf 2/5] block/mq-deadline-cgroup.c:105:17: error: initialization of 'bool (*)(struct blkg_policy_data *, struct seq_file *)' {aka '_Bool (*)(struct blkg_policy_data *, struct seq_file *)'} from incompatible pointer type 'size_t (*)(struct blkg_policy_data *, char 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;
as well as URLs for NNTP newsgroup(s).