lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Wed, 28 Jul 2021 05:48:23 +0800
From:   kernel test robot <lkp@...el.com>
To:     Christoph Hellwig <hch@....de>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.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...

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@...el.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@....org>
:::::: CC: Jens Axboe <axboe@...nel.dk>

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

Download attachment ".config.gz" of type "application/gzip" (31897 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ