From: kernel test robot <lkp@intel.com>
To: Joel Granados <joel.granados@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [joel-granados:jag/dovec_consolidate 11/13] kernel/sysctl.c:1290:5: error: conflicting types for 'proc_doulongvec_minmax_conv'
Date: Wed, 17 Dec 2025 00:31:27 +0800 [thread overview]
Message-ID: <202512170002.Zo44Hspd-lkp@intel.com> (raw)
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
reply other threads:[~2025-12-16 16:32 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=202512170002.Zo44Hspd-lkp@intel.com \
--to=lkp@intel.com \
--cc=joel.granados@kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/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 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.