CC: kbuild-...@lists.01.org TO: "Christoph, Hellwig," <h...@lst.de> CC: Al Viro <v...@zeniv.linux.org.uk>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: e7b08814b16b80a0bf76eeca16317f8c2ed23b8c commit: 32927393dc1ccd60fb2bdc05b9e8e88753761469 [3942/14131] sysctl: pass kernel pointers to ->proc_handler :::::: branch date: 3 days ago :::::: commit date: 5 weeks ago config: i386-randconfig-s002-20200601 (attached as .config) compiler: gcc-9 (Debian 9.3.0-13) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.1-243-gc100a7ab-dirty git checkout 32927393dc1ccd60fb2bdc05b9e8e88753761469 # save the attached .config to linux build tree make W=1 C=1 ARCH=i386 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot <l...@intel.com> sparse warnings: (new ones prefixed by >>) drivers/char/random.c:2100:50: sparse: sparse: incorrect type in argument 3 (different address spaces) @@ expected void * @@ got void [noderef] <asn:1> *buffer @@ drivers/char/random.c:2100:50: sparse: expected void * drivers/char/random.c:2100:50: sparse: got void [noderef] <asn:1> *buffer drivers/char/random.c:2117:35: sparse: sparse: incorrect type in initializer (incompatible argument 3 (different address spaces)) @@ expected int ( [usertype] *proc_handler )( ... ) @@ got int ( * )( ... ) @@ >> drivers/char/random.c:2117:35: sparse: expected int ( [usertype] >> *proc_handler )( ... ) drivers/char/random.c:2117:35: sparse: got int ( * )( ... ) -- drivers/cdrom/cdrom.c:3597:42: sparse: sparse: incorrect type in argument 3 (different address spaces) @@ expected void * @@ got void [noderef] <asn:1> *buffer @@ >> drivers/cdrom/cdrom.c:3597:42: sparse: expected void * drivers/cdrom/cdrom.c:3597:42: sparse: got void [noderef] <asn:1> *buffer drivers/cdrom/cdrom.c:3665:35: sparse: sparse: incorrect type in initializer (incompatible argument 3 (different address spaces)) @@ expected int ( [usertype] *proc_handler )( ... ) @@ got int ( * )( ... ) @@ drivers/cdrom/cdrom.c:3665:35: sparse: expected int ( [usertype] *proc_handler )( ... ) drivers/cdrom/cdrom.c:3665:35: sparse: got int ( * )( ... ) # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=32927393dc1ccd60fb2bdc05b9e8e88753761469 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git remote update linux-next git checkout 32927393dc1ccd60fb2bdc05b9e8e88753761469 vim +2117 drivers/char/random.c a283b5c459784f H. Peter Anvin 2013-09-10 2102 ^1da177e4c3f41 Linus Torvalds 2005-04-16 2103 static int sysctl_poolsize = INPUT_POOL_WORDS * 32; a151427ed08695 Joe Perches 2013-06-13 2104 extern struct ctl_table random_table[]; a151427ed08695 Joe Perches 2013-06-13 2105 struct ctl_table random_table[] = { ^1da177e4c3f41 Linus Torvalds 2005-04-16 2106 { ^1da177e4c3f41 Linus Torvalds 2005-04-16 2107 .procname = "poolsize", ^1da177e4c3f41 Linus Torvalds 2005-04-16 2108 .data = &sysctl_poolsize, ^1da177e4c3f41 Linus Torvalds 2005-04-16 2109 .maxlen = sizeof(int), ^1da177e4c3f41 Linus Torvalds 2005-04-16 2110 .mode = 0444, 6d4561110a3e9f Eric W. Biederman 2009-11-16 2111 .proc_handler = proc_dointvec, ^1da177e4c3f41 Linus Torvalds 2005-04-16 2112 }, ^1da177e4c3f41 Linus Torvalds 2005-04-16 2113 { ^1da177e4c3f41 Linus Torvalds 2005-04-16 2114 .procname = "entropy_avail", ^1da177e4c3f41 Linus Torvalds 2005-04-16 2115 .maxlen = sizeof(int), ^1da177e4c3f41 Linus Torvalds 2005-04-16 2116 .mode = 0444, a283b5c459784f H. Peter Anvin 2013-09-10 @2117 .proc_handler = proc_do_entropy, ^1da177e4c3f41 Linus Torvalds 2005-04-16 2118 .data = &input_pool.entropy_count, ^1da177e4c3f41 Linus Torvalds 2005-04-16 2119 }, ^1da177e4c3f41 Linus Torvalds 2005-04-16 2120 { ^1da177e4c3f41 Linus Torvalds 2005-04-16 2121 .procname = "write_wakeup_threshold", 2132a96f66b6b4 Greg Price 2013-12-06 2122 .data = &random_write_wakeup_bits, ^1da177e4c3f41 Linus Torvalds 2005-04-16 2123 .maxlen = sizeof(int), ^1da177e4c3f41 Linus Torvalds 2005-04-16 2124 .mode = 0644, 6d4561110a3e9f Eric W. Biederman 2009-11-16 2125 .proc_handler = proc_dointvec_minmax, ^1da177e4c3f41 Linus Torvalds 2005-04-16 2126 .extra1 = &min_write_thresh, ^1da177e4c3f41 Linus Torvalds 2005-04-16 2127 .extra2 = &max_write_thresh, ^1da177e4c3f41 Linus Torvalds 2005-04-16 2128 }, f5c2742c23886e Theodore Ts'o 2013-09-22 2129 { f5c2742c23886e Theodore Ts'o 2013-09-22 2130 .procname = "urandom_min_reseed_secs", f5c2742c23886e Theodore Ts'o 2013-09-22 2131 .data = &random_min_urandom_seed, f5c2742c23886e Theodore Ts'o 2013-09-22 2132 .maxlen = sizeof(int), f5c2742c23886e Theodore Ts'o 2013-09-22 2133 .mode = 0644, f5c2742c23886e Theodore Ts'o 2013-09-22 2134 .proc_handler = proc_dointvec, f5c2742c23886e Theodore Ts'o 2013-09-22 2135 }, ^1da177e4c3f41 Linus Torvalds 2005-04-16 2136 { ^1da177e4c3f41 Linus Torvalds 2005-04-16 2137 .procname = "boot_id", ^1da177e4c3f41 Linus Torvalds 2005-04-16 2138 .data = &sysctl_bootid, ^1da177e4c3f41 Linus Torvalds 2005-04-16 2139 .maxlen = 16, ^1da177e4c3f41 Linus Torvalds 2005-04-16 2140 .mode = 0444, 6d4561110a3e9f Eric W. Biederman 2009-11-16 2141 .proc_handler = proc_do_uuid, ^1da177e4c3f41 Linus Torvalds 2005-04-16 2142 }, ^1da177e4c3f41 Linus Torvalds 2005-04-16 2143 { ^1da177e4c3f41 Linus Torvalds 2005-04-16 2144 .procname = "uuid", ^1da177e4c3f41 Linus Torvalds 2005-04-16 2145 .maxlen = 16, ^1da177e4c3f41 Linus Torvalds 2005-04-16 2146 .mode = 0444, 6d4561110a3e9f Eric W. Biederman 2009-11-16 2147 .proc_handler = proc_do_uuid, ^1da177e4c3f41 Linus Torvalds 2005-04-16 2148 }, 43759d4f429c8d Theodore Ts'o 2014-06-14 2149 #ifdef ADD_INTERRUPT_BENCH 43759d4f429c8d Theodore Ts'o 2014-06-14 2150 { 43759d4f429c8d Theodore Ts'o 2014-06-14 2151 .procname = "add_interrupt_avg_cycles", 43759d4f429c8d Theodore Ts'o 2014-06-14 2152 .data = &avg_cycles, 43759d4f429c8d Theodore Ts'o 2014-06-14 2153 .maxlen = sizeof(avg_cycles), 43759d4f429c8d Theodore Ts'o 2014-06-14 2154 .mode = 0444, 43759d4f429c8d Theodore Ts'o 2014-06-14 2155 .proc_handler = proc_doulongvec_minmax, 43759d4f429c8d Theodore Ts'o 2014-06-14 2156 }, 43759d4f429c8d Theodore Ts'o 2014-06-14 2157 { 43759d4f429c8d Theodore Ts'o 2014-06-14 2158 .procname = "add_interrupt_avg_deviation", 43759d4f429c8d Theodore Ts'o 2014-06-14 2159 .data = &avg_deviation, 43759d4f429c8d Theodore Ts'o 2014-06-14 2160 .maxlen = sizeof(avg_deviation), 43759d4f429c8d Theodore Ts'o 2014-06-14 2161 .mode = 0444, 43759d4f429c8d Theodore Ts'o 2014-06-14 2162 .proc_handler = proc_doulongvec_minmax, 43759d4f429c8d Theodore Ts'o 2014-06-14 2163 }, 43759d4f429c8d Theodore Ts'o 2014-06-14 2164 #endif 894d2491153a9f Eric W. Biederman 2009-11-05 2165 { } ^1da177e4c3f41 Linus Torvalds 2005-04-16 2166 }; ^1da177e4c3f41 Linus Torvalds 2005-04-16 2167 #endif /* CONFIG_SYSCTL */ ^1da177e4c3f41 Linus Torvalds 2005-04-16 2168 :::::: The code at line 2117 was first introduced by commit :::::: a283b5c459784f9762a74c312b134e9a524f5a5f random: allow fractional bits to be tracked :::::: TO: H. Peter Anvin <h...@zytor.com> :::::: CC: Theodore Ts'o <ty...@mit.edu> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org
.config.gz
Description: application/gzip
_______________________________________________ kbuild mailing list -- kbuild@lists.01.org To unsubscribe send an email to kbuild-le...@lists.01.org