* Re: [PATCH 13/13] clk: microchip: core: allow driver to be compiled with COMPILE_TEST
[not found] <20260109-mips-pic32-header-move-v1-13-99859c55783d@redhat.com>
@ 2026-01-16 13:20 ` kernel test robot
2026-01-20 17:46 ` Brian Masney
0 siblings, 1 reply; 4+ messages in thread
From: kernel test robot @ 2026-01-16 13:20 UTC (permalink / raw)
To: Brian Masney; +Cc: llvm, oe-kbuild-all
Hi Brian,
kernel test robot noticed the following build errors:
[auto build test ERROR on f417b7ffcbef7d76b0d8860518f50dae0e7e5eda]
url: https://github.com/intel-lab-lkp/linux/commits/Brian-Masney/MIPS-copy-pic32-h-header-file-from-asm-mach-pic32-to-include-platform-data/20260110-005057
base: f417b7ffcbef7d76b0d8860518f50dae0e7e5eda
patch link: https://lore.kernel.org/r/20260109-mips-pic32-header-move-v1-13-99859c55783d%40redhat.com
patch subject: [PATCH 13/13] clk: microchip: core: allow driver to be compiled with COMPILE_TEST
config: um-allmodconfig (https://download.01.org/0day-ci/archive/20260116/202601162110.K1eWGORM-lkp@intel.com/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260116/202601162110.K1eWGORM-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/202601162110.K1eWGORM-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from drivers/clk/microchip/clk-core.c:9:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from arch/um/include/asm/hardirq.h:24:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:12:
In file included from arch/um/include/asm/io.h:24:
include/asm-generic/io.h:1209:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
1209 | return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;
| ~~~~~~~~~~ ^
In file included from drivers/clk/microchip/clk-core.c:13:
In file included from arch/x86/include/asm/traps.h:8:
>> arch/x86/include/asm/debugreg.h:180:20: error: no member named 'x86' in 'struct cpuinfo_um'
180 | if (boot_cpu_data.x86 < 6)
| ~~~~~~~~~~~~~ ^
arch/x86/include/asm/debugreg.h:191:20: error: no member named 'x86' in 'struct cpuinfo_um'
191 | if (boot_cpu_data.x86 < 6)
| ~~~~~~~~~~~~~ ^
In file included from drivers/clk/microchip/clk-core.c:13:
In file included from arch/x86/include/asm/traps.h:9:
In file included from arch/x86/include/asm/idtentry.h:11:
In file included from include/linux/entry-common.h:5:
In file included from include/linux/irq-entry-common.h:13:
In file included from arch/x86/include/asm/entry-common.h:8:
arch/x86/include/asm/nospec-branch.h:598:24: error: use of undeclared identifier '__KERNEL_DS'
598 | static const u16 ds = __KERNEL_DS;
| ^
In file included from drivers/clk/microchip/clk-core.c:13:
In file included from arch/x86/include/asm/traps.h:9:
In file included from arch/x86/include/asm/idtentry.h:11:
In file included from include/linux/entry-common.h:5:
In file included from include/linux/irq-entry-common.h:13:
In file included from arch/x86/include/asm/entry-common.h:9:
>> arch/x86/include/asm/io_bitmap.h:13:23: error: use of undeclared identifier 'IO_BITMAP_LONGS'
13 | unsigned long bitmap[IO_BITMAP_LONGS];
| ^
In file included from drivers/clk/microchip/clk-core.c:13:
In file included from arch/x86/include/asm/traps.h:9:
In file included from arch/x86/include/asm/idtentry.h:11:
In file included from include/linux/entry-common.h:5:
In file included from include/linux/irq-entry-common.h:13:
>> arch/x86/include/asm/entry-common.h:22:25: error: call to undeclared function 'native_save_fl'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
22 | unsigned long flags = native_save_fl();
| ^
>> arch/x86/include/asm/entry-common.h:23:24: error: use of undeclared identifier 'X86_EFLAGS_DF'
23 | unsigned long mask = X86_EFLAGS_DF | X86_EFLAGS_NT;
| ^
>> arch/x86/include/asm/entry-common.h:23:40: error: use of undeclared identifier 'X86_EFLAGS_NT'
23 | unsigned long mask = X86_EFLAGS_DF | X86_EFLAGS_NT;
| ^
>> arch/x86/include/asm/entry-common.h:28:7: error: call to undeclared function 'DISABLED_MASK_BIT_SET'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
28 | if (cpu_feature_enabled(X86_FEATURE_SMAP) ||
| ^
arch/um/include/asm/cpufeature.h:52:32: note: expanded from macro 'cpu_feature_enabled'
52 | (__builtin_constant_p(bit) && DISABLED_MASK_BIT_SET(bit) ? 0 : static_cpu_has(bit))
| ^
In file included from drivers/clk/microchip/clk-core.c:13:
In file included from arch/x86/include/asm/traps.h:9:
In file included from arch/x86/include/asm/idtentry.h:11:
In file included from include/linux/entry-common.h:5:
In file included from include/linux/irq-entry-common.h:13:
>> arch/x86/include/asm/entry-common.h:30:12: error: use of undeclared identifier 'X86_EFLAGS_AC'
30 | mask |= X86_EFLAGS_AC;
| ^
>> arch/x86/include/asm/entry-common.h:42:17: error: call to undeclared function 'on_thread_stack'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
42 | WARN_ON_ONCE(!on_thread_stack());
| ^
>> arch/x86/include/asm/entry-common.h:50:16: error: use of undeclared identifier '_TIF_USER_RETURN_NOTIFY'
50 | if (ti_work & _TIF_USER_RETURN_NOTIFY)
| ^
>> arch/x86/include/asm/entry-common.h:53:25: error: use of undeclared identifier '_TIF_IO_BITMAP'
53 | if (unlikely(ti_work & _TIF_IO_BITMAP))
| ^
>> arch/x86/include/asm/entry-common.h:56:25: error: use of undeclared identifier '_TIF_NEED_FPU_LOAD'
56 | if (unlikely(ti_work & _TIF_NEED_FPU_LOAD))
| ^
>> arch/x86/include/asm/entry-common.h:57:3: error: call to undeclared function 'switch_fpu_return'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
57 | switch_fpu_return();
| ^
>> arch/x86/include/asm/entry-common.h:63:2: error: call to undeclared function 'fpregs_assert_state_consistent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
63 | fpregs_assert_state_consistent();
| ^
arch/x86/include/asm/entry-common.h:98:6: error: call to undeclared function 'DISABLED_MASK_BIT_SET'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
98 | if (cpu_feature_enabled(X86_FEATURE_IBPB_EXIT_TO_USER) &&
| ^
arch/um/include/asm/cpufeature.h:52:32: note: expanded from macro 'cpu_feature_enabled'
52 | (__builtin_constant_p(bit) && DISABLED_MASK_BIT_SET(bit) ? 0 : static_cpu_has(bit))
| ^
In file included from drivers/clk/microchip/clk-core.c:13:
In file included from arch/x86/include/asm/traps.h:9:
In file included from arch/x86/include/asm/idtentry.h:11:
In file included from include/linux/entry-common.h:5:
In file included from include/linux/irq-entry-common.h:13:
>> arch/x86/include/asm/entry-common.h:108:2: error: call to undeclared function 'amd_clear_divider'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
108 | amd_clear_divider();
| ^
In file included from drivers/clk/microchip/clk-core.c:13:
In file included from arch/x86/include/asm/traps.h:9:
In file included from arch/x86/include/asm/idtentry.h:11:
In file included from include/linux/entry-common.h:5:
>> include/linux/irq-entry-common.h:225:25: error: use of undeclared identifier '_TIF_UPROBE'
225 | if (unlikely(ti_work & EXIT_TO_USER_MODE_WORK))
| ^
include/linux/irq-entry-common.h:31:42: note: expanded from macro 'EXIT_TO_USER_MODE_WORK'
31 | (_TIF_SIGPENDING | _TIF_NOTIFY_RESUME | _TIF_UPROBE | \
| ^
In file included from drivers/clk/microchip/clk-core.c:13:
In file included from arch/x86/include/asm/traps.h:9:
In file included from arch/x86/include/asm/idtentry.h:11:
>> include/linux/entry-common.h:48:6: error: conflicting types for 'syscall_trace_enter'
48 | long syscall_trace_enter(struct pt_regs *regs, long syscall, unsigned long work);
| ^
arch/um/include/asm/ptrace-generic.h:44:12: note: previous declaration is here
44 | extern int syscall_trace_enter(struct pt_regs *regs);
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.
vim +180 arch/x86/include/asm/debugreg.h
42181186ad4db9 Steven Rostedt 2011-12-16 174
154fcf3a788868 Thomas Gleixner 2024-03-04 175 static inline unsigned long get_debugctlmsr(void)
154fcf3a788868 Thomas Gleixner 2024-03-04 176 {
154fcf3a788868 Thomas Gleixner 2024-03-04 177 unsigned long debugctlmsr = 0;
154fcf3a788868 Thomas Gleixner 2024-03-04 178
154fcf3a788868 Thomas Gleixner 2024-03-04 179 #ifndef CONFIG_X86_DEBUGCTLMSR
154fcf3a788868 Thomas Gleixner 2024-03-04 @180 if (boot_cpu_data.x86 < 6)
154fcf3a788868 Thomas Gleixner 2024-03-04 181 return 0;
154fcf3a788868 Thomas Gleixner 2024-03-04 182 #endif
c435e608cf59ff Ingo Molnar 2025-04-09 183 rdmsrq(MSR_IA32_DEBUGCTLMSR, debugctlmsr);
154fcf3a788868 Thomas Gleixner 2024-03-04 184
154fcf3a788868 Thomas Gleixner 2024-03-04 185 return debugctlmsr;
154fcf3a788868 Thomas Gleixner 2024-03-04 186 }
154fcf3a788868 Thomas Gleixner 2024-03-04 187
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 13/13] clk: microchip: core: allow driver to be compiled with COMPILE_TEST
2026-01-16 13:20 ` [PATCH 13/13] clk: microchip: core: allow driver to be compiled with COMPILE_TEST kernel test robot
@ 2026-01-20 17:46 ` Brian Masney
2026-01-21 23:13 ` Nathan Chancellor
0 siblings, 1 reply; 4+ messages in thread
From: Brian Masney @ 2026-01-20 17:46 UTC (permalink / raw)
To: kernel test robot; +Cc: llvm, oe-kbuild-all
On Fri, Jan 16, 2026 at 09:20:36PM +0800, kernel test robot wrote:
> Hi Brian,
>
> kernel test robot noticed the following build errors:
>
> [auto build test ERROR on f417b7ffcbef7d76b0d8860518f50dae0e7e5eda]
>
> url: https://github.com/intel-lab-lkp/linux/commits/Brian-Masney/MIPS-copy-pic32-h-header-file-from-asm-mach-pic32-to-include-platform-data/20260110-005057
> base: f417b7ffcbef7d76b0d8860518f50dae0e7e5eda
> patch link: https://lore.kernel.org/r/20260109-mips-pic32-header-move-v1-13-99859c55783d%40redhat.com
> patch subject: [PATCH 13/13] clk: microchip: core: allow driver to be compiled with COMPILE_TEST
> config: um-allmodconfig (https://download.01.org/0day-ci/archive/20260116/202601162110.K1eWGORM-lkp@intel.com/config)
> compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260116/202601162110.K1eWGORM-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/202601162110.K1eWGORM-lkp@intel.com/
None of the errors in this report appear to be due to the changes that
I made that allow drivers/clk/microchip/clk-core.c to be compiled on all
architectures instead of just MIPS.
Brian
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 13/13] clk: microchip: core: allow driver to be compiled with COMPILE_TEST
2026-01-20 17:46 ` Brian Masney
@ 2026-01-21 23:13 ` Nathan Chancellor
2026-01-22 12:31 ` Brian Masney
0 siblings, 1 reply; 4+ messages in thread
From: Nathan Chancellor @ 2026-01-21 23:13 UTC (permalink / raw)
To: Brian Masney; +Cc: kernel test robot, llvm, oe-kbuild-all
On Tue, Jan 20, 2026 at 12:46:32PM -0500, Brian Masney wrote:
> On Fri, Jan 16, 2026 at 09:20:36PM +0800, kernel test robot wrote:
> > Hi Brian,
> >
> > kernel test robot noticed the following build errors:
> >
> > [auto build test ERROR on f417b7ffcbef7d76b0d8860518f50dae0e7e5eda]
> >
> > url: https://github.com/intel-lab-lkp/linux/commits/Brian-Masney/MIPS-copy-pic32-h-header-file-from-asm-mach-pic32-to-include-platform-data/20260110-005057
> > base: f417b7ffcbef7d76b0d8860518f50dae0e7e5eda
> > patch link: https://lore.kernel.org/r/20260109-mips-pic32-header-move-v1-13-99859c55783d%40redhat.com
> > patch subject: [PATCH 13/13] clk: microchip: core: allow driver to be compiled with COMPILE_TEST
> > config: um-allmodconfig (https://download.01.org/0day-ci/archive/20260116/202601162110.K1eWGORM-lkp@intel.com/config)
> > compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
> > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260116/202601162110.K1eWGORM-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/202601162110.K1eWGORM-lkp@intel.com/
>
> None of the errors in this report appear to be due to the changes that
> I made that allow drivers/clk/microchip/clk-core.c to be compiled on all
> architectures instead of just MIPS.
Well, it is just the fact that this code is now compiled on all
architectures via CONFIG_COMPILE_TEST, right? asm/traps.h is an
architecture specific header, which might not work when used outside of
arch/${SRCARCH}. In this case, x86's traps.h is used for arch/um but
arch/um has never used this header before because all generic uses are
gated on specific architectures like in this case.
Is this header needed when compile testing or could it be gated on
CONFIG_MIPS?
Cheers,
Nathan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 13/13] clk: microchip: core: allow driver to be compiled with COMPILE_TEST
2026-01-21 23:13 ` Nathan Chancellor
@ 2026-01-22 12:31 ` Brian Masney
0 siblings, 0 replies; 4+ messages in thread
From: Brian Masney @ 2026-01-22 12:31 UTC (permalink / raw)
To: Nathan Chancellor; +Cc: kernel test robot, llvm, oe-kbuild-all
On Wed, Jan 21, 2026 at 04:13:21PM -0700, Nathan Chancellor wrote:
> On Tue, Jan 20, 2026 at 12:46:32PM -0500, Brian Masney wrote:
> > None of the errors in this report appear to be due to the changes that
> > I made that allow drivers/clk/microchip/clk-core.c to be compiled on all
> > architectures instead of just MIPS.
>
> Well, it is just the fact that this code is now compiled on all
> architectures via CONFIG_COMPILE_TEST, right? asm/traps.h is an
> architecture specific header, which might not work when used outside of
> arch/${SRCARCH}. In this case, x86's traps.h is used for arch/um but
> arch/um has never used this header before because all generic uses are
> gated on specific architectures like in this case.
>
> Is this header needed when compile testing or could it be gated on
> CONFIG_MIPS?
I changed it so that it's gated on CONFIG_MIPS and it's working on
several arches.
Brian
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-01-22 12:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20260109-mips-pic32-header-move-v1-13-99859c55783d@redhat.com>
2026-01-16 13:20 ` [PATCH 13/13] clk: microchip: core: allow driver to be compiled with COMPILE_TEST kernel test robot
2026-01-20 17:46 ` Brian Masney
2026-01-21 23:13 ` Nathan Chancellor
2026-01-22 12:31 ` Brian Masney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox