mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Christoph Hellwig <hch@lst.de>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [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...
Date: Wed, 28 Jul 2021 05:48:23 +0800	[thread overview]
Message-ID: <202107280516.pJ0X9yqt-lkp@intel.com> (raw)

[-- 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 --]

                 reply	other threads:[~2021-07-27 21:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202107280516.pJ0X9yqt-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=hch@lst.de \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®