* [joel-granados:jag/dovec_consolidate 11/13] kernel/sysctl.c:1290:5: error: conflicting types for 'proc_doulongvec_minmax_conv'
@ 2025-12-16 16:31 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-12-16 16:31 UTC (permalink / raw)
To: Joel Granados; +Cc: llvm, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/joel.granados/linux.git jag/dovec_consolidate
head: 9134ddd35af0dce7b5ee8b8cfc248acac95eb422
commit: 3fc1abf74ebe19e822604a73790cd9612f309882 [11/13] sysctl: Replace do_proc_doulongvec with a type-generic macro
config: hexagon-randconfig-001-20251216 (https://download.01.org/0day-ci/archive/20251217/202512170002.Zo44Hspd-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 1335a05ab8bc8339ce24be3a9da89d8c3f4e0571)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251217/202512170002.Zo44Hspd-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512170002.Zo44Hspd-lkp@intel.com/
All errors (new ones prefixed by >>):
>> kernel/sysctl.c:1290:5: error: conflicting types for 'proc_doulongvec_minmax_conv'
1290 | int proc_doulongvec_minmax_conv(const struct ctl_table *table, int dir,
| ^
include/linux/sysctl.h:104:5: note: previous declaration is here
104 | int proc_doulongvec_minmax_conv(const struct ctl_table *table, int dir,
| ^
1 error generated.
--
>> kernel/time/jiffies.c:298:47: error: use of undeclared identifier 'sysctl_msecs_to_jiffies'
298 | return proc_ulong_u2k_conv_uop(u_ptr, k_ptr, sysctl_msecs_to_jiffies);
| ^~~~~~~~~~~~~~~~~~~~~~~
>> kernel/time/jiffies.c:303:47: error: use of undeclared identifier 'sysctl_jiffies_to_msecs'; did you mean 'jiffies_to_msecs'?
303 | return proc_ulong_k2u_conv_kop(u_ptr, k_ptr, sysctl_jiffies_to_msecs);
| ^~~~~~~~~~~~~~~~~~~~~~~
| jiffies_to_msecs
include/linux/jiffies.h:437:21: note: 'jiffies_to_msecs' declared here
437 | extern unsigned int jiffies_to_msecs(const unsigned long j);
| ^
>> kernel/time/jiffies.c:303:47: error: incompatible function pointer types passing 'unsigned int (const unsigned long)' to parameter of type 'ulong (*)(const ulong)' (aka 'unsigned long (*)(const unsigned long)') [-Wincompatible-function-pointer-types]
303 | return proc_ulong_k2u_conv_kop(u_ptr, k_ptr, sysctl_jiffies_to_msecs);
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/sysctl.h:135:15: note: passing argument to parameter 'k_ptr_op' here
135 | ulong(*k_ptr_op)(const ulong));
| ^
3 errors generated.
vim +/proc_doulongvec_minmax_conv +1290 kernel/sysctl.c
f461d2dcd511c0 Christoph Hellwig 2020-04-24 1289
4639faaa607f3b Joel Granados 2025-10-14 @1290 int proc_doulongvec_minmax_conv(const struct ctl_table *table, int dir,
4639faaa607f3b Joel Granados 2025-10-14 1291 void *buffer, size_t *lenp, loff_t *ppos,
4639faaa607f3b Joel Granados 2025-10-14 1292 unsigned long convmul, unsigned long convdiv)
af91322ef3f29a Dave Young 2009-09-22 1293 {
f461d2dcd511c0 Christoph Hellwig 2020-04-24 1294 return -ENOSYS;
f461d2dcd511c0 Christoph Hellwig 2020-04-24 1295 }
f461d2dcd511c0 Christoph Hellwig 2020-04-24 1296
:::::: The code at line 1290 was first introduced by commit
:::::: 4639faaa607f3bed85f2cdde686a88453c99ef06 sysctl: Move proc_doulongvec_ms_jiffies_minmax to kernel/time/jiffies.c
:::::: TO: Joel Granados <joel.granados@kernel.org>
:::::: CC: Joel Granados <joel.granados@kernel.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-12-16 16:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-16 16:31 [joel-granados:jag/dovec_consolidate 11/13] kernel/sysctl.c:1290:5: error: conflicting types for 'proc_doulongvec_minmax_conv' 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.