* [tip:ras/core 11/13] include/linux/ras.h:9:10: fatal error: uapi/asm/mce.h: No such file or directory
@ 2024-01-03 18:35 kernel test robot
2024-01-03 19:33 ` Borislav Petkov
0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2024-01-03 18:35 UTC (permalink / raw)
To: Yazen Ghannam; +Cc: oe-kbuild-all, linux-kernel, x86, Borislav Petkov (AMD)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git ras/core
head: d48d30d8c358004c7b1cb2e16969a569d45953b3
commit: 8e1d0790e0a749a62428ff039c7a9050a06e9feb [11/13] RAS: Introduce AMD Address Translation Library
config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20240104/202401040257.NPrXuVk7-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240104/202401040257.NPrXuVk7-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/202401040257.NPrXuVk7-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from drivers/ras/ras.c:10:
>> include/linux/ras.h:9:10: fatal error: uapi/asm/mce.h: No such file or directory
9 | #include <uapi/asm/mce.h>
| ^~~~~~~~~~~~~~~~
compilation terminated.
vim +9 include/linux/ras.h
8
> 9 #include <uapi/asm/mce.h>
10
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [tip:ras/core 11/13] include/linux/ras.h:9:10: fatal error: uapi/asm/mce.h: No such file or directory
2024-01-03 18:35 [tip:ras/core 11/13] include/linux/ras.h:9:10: fatal error: uapi/asm/mce.h: No such file or directory kernel test robot
@ 2024-01-03 19:33 ` Borislav Petkov
0 siblings, 0 replies; 2+ messages in thread
From: Borislav Petkov @ 2024-01-03 19:33 UTC (permalink / raw)
To: kernel test robot; +Cc: Yazen Ghannam, oe-kbuild-all, linux-kernel, x86
On Thu, Jan 04, 2024 at 02:35:29AM +0800, kernel test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git ras/core
> head: d48d30d8c358004c7b1cb2e16969a569d45953b3
> commit: 8e1d0790e0a749a62428ff039c7a9050a06e9feb [11/13] RAS: Introduce AMD Address Translation Library
> config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20240104/202401040257.NPrXuVk7-lkp@intel.com/config)
> compiler: sh4-linux-gcc (GCC) 13.2.0
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240104/202401040257.NPrXuVk7-lkp@intel.com/reproduce)
How are you even testing this successfully?
I get with this compiler here:
<stdin>:1519:2: warning: #warning syscall clone3 not implemented [-Wcpp]
{standard input}: Assembler messages:
{standard input}:1094: Warning: end of file not at end of a line; newline inserted
{standard input}:1095: Error: expected symbol name
sh4-linux-gcc: internal compiler error: Segmentation fault signal terminated program cc1
Please submit a full bug report, with preprocessed source (by using -freport-bug).
See <https://gcc.gnu.org/bugs/> for instructions.
make[5]: *** [scripts/Makefile.build:243: drivers/net/pcs/pcs-xpcs.o] Error 4
make[4]: *** [scripts/Makefile.build:480: drivers/net/pcs] Error 2
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [scripts/Makefile.build:480: drivers/net] Error 2
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [scripts/Makefile.build:480: drivers] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [/mnt/kernel/kernel/linux/Makefile:1911: .] Error 2
make: *** [Makefile:234: __sub-make] Error 2
Anyway, this should fix it:
diff --git a/include/linux/ras.h b/include/linux/ras.h
index 829252a358b7..5d8f0e6fc03d 100644
--- a/include/linux/ras.h
+++ b/include/linux/ras.h
@@ -6,7 +6,9 @@
#include <linux/uuid.h>
#include <linux/cper.h>
+#ifdef CONFIG_X86_MCE
#include <uapi/asm/mce.h>
+#endif
#ifdef CONFIG_DEBUG_FS
int ras_userspace_consumers(void);
@@ -38,11 +40,12 @@ static inline void
log_arm_hw_error(struct cper_sec_proc_arm *err) { return; }
#endif
-#if IS_ENABLED(CONFIG_AMD_ATL)
+#ifdef CONFIG_AMD_ATL
void amd_atl_register_decoder(unsigned long (*f)(struct mce *));
void amd_atl_unregister_decoder(void);
unsigned long amd_convert_umc_mca_addr_to_sys_addr(struct mce *m);
#else
+struct mce;
static inline unsigned long amd_convert_umc_mca_addr_to_sys_addr(struct mce *m) { return -EINVAL; }
#endif /* CONFIG_AMD_ATL */
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-01-03 19:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-03 18:35 [tip:ras/core 11/13] include/linux/ras.h:9:10: fatal error: uapi/asm/mce.h: No such file or directory kernel test robot
2024-01-03 19:33 ` Borislav Petkov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®