* [avpatel:riscv_defconfig_v1 54/59] include/linux/riscv_sse.h:40:16: error: implicit declaration of function 'ERR_PTR'
@ 2024-12-18 7:06 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-12-18 7:06 UTC (permalink / raw)
To: Himanshu Chauhan; +Cc: oe-kbuild-all, Anup Patel
tree: https://github.com/avpatel/linux.git riscv_defconfig_v1
head: 4fd509619498a267ba245e95fefba09eef65a97e
commit: 1246727818573869b528326a8ea0b79b7c430763 [54/59] riscv: Introduce HEST SSE notification handlers
config: x86_64-buildonly-randconfig-006-20241218 (https://download.01.org/0day-ci/archive/20241218/202412181703.Lt1RFtxU-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-12) 11.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241218/202412181703.Lt1RFtxU-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/202412181703.Lt1RFtxU-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from drivers/acpi/apei/ghes.c:20:
include/linux/riscv_sse.h: In function 'sse_event_register':
>> include/linux/riscv_sse.h:40:16: error: implicit declaration of function 'ERR_PTR' [-Werror=implicit-function-declaration]
40 | return ERR_PTR(-EOPNOTSUPP);
| ^~~~~~~
>> include/linux/riscv_sse.h:40:25: error: 'EOPNOTSUPP' undeclared (first use in this function)
40 | return ERR_PTR(-EOPNOTSUPP);
| ^~~~~~~~~~
include/linux/riscv_sse.h:40:25: note: each undeclared identifier is reported only once for each function it appears in
include/linux/riscv_sse.h: In function 'sse_event_set_target_cpu':
include/linux/riscv_sse.h:48:17: error: 'EOPNOTSUPP' undeclared (first use in this function)
48 | return -EOPNOTSUPP;
| ^~~~~~~~~~
include/linux/riscv_sse.h: In function 'sse_event_enable':
include/linux/riscv_sse.h:53:17: error: 'EOPNOTSUPP' undeclared (first use in this function)
53 | return -EOPNOTSUPP;
| ^~~~~~~~~~
include/linux/riscv_sse.h: In function 'sse_register_ghes':
include/linux/riscv_sse.h:61:17: error: 'EOPNOTSUPP' undeclared (first use in this function)
61 | return -EOPNOTSUPP;
| ^~~~~~~~~~
include/linux/riscv_sse.h: In function 'sse_unregister_ghes':
include/linux/riscv_sse.h:66:17: error: 'EOPNOTSUPP' undeclared (first use in this function)
66 | return -EOPNOTSUPP;
| ^~~~~~~~~~
In file included from arch/x86/include/asm/processor.h:36,
from arch/x86/include/asm/cpufeature.h:5,
from arch/x86/include/asm/thread_info.h:59,
from include/linux/thread_info.h:60,
from include/linux/spinlock.h:60,
from include/linux/mmzone.h:8,
from include/linux/gfp.h:7,
from include/linux/slab.h:16,
from include/linux/resource_ext.h:11,
from include/linux/acpi.h:13,
from include/acpi/apei.h:9,
from include/acpi/ghes.h:5,
from include/linux/arm_sdei.h:8,
from drivers/acpi/apei/ghes.c:21:
include/linux/err.h: At top level:
>> include/linux/err.h:39:35: error: conflicting types for 'ERR_PTR'; have 'void *(long int)'
39 | static inline void * __must_check ERR_PTR(long error)
| ^~~~~~~
In file included from drivers/acpi/apei/ghes.c:20:
include/linux/riscv_sse.h:40:16: note: previous implicit declaration of 'ERR_PTR' with type 'int()'
40 | return ERR_PTR(-EOPNOTSUPP);
| ^~~~~~~
cc1: some warnings being treated as errors
vim +/ERR_PTR +40 include/linux/riscv_sse.h
4552a7367be3171 Clément Léger 2024-12-06 31
72590be23472547 Himanshu Chauhan 2023-10-26 32 int sse_register_ghes(struct ghes *ghes, sse_event_handler *lo_cb,
72590be23472547 Himanshu Chauhan 2023-10-26 33 sse_event_handler *hi_cb);
72590be23472547 Himanshu Chauhan 2023-10-26 34 int sse_unregister_ghes(struct ghes *ghes);
4552a7367be3171 Clément Léger 2024-12-06 35 #else
4552a7367be3171 Clément Léger 2024-12-06 36 static inline struct sse_event *sse_event_register(u32 event_num, u32 priority,
4552a7367be3171 Clément Léger 2024-12-06 37 sse_event_handler *handler,
4552a7367be3171 Clément Léger 2024-12-06 38 void *arg)
4552a7367be3171 Clément Léger 2024-12-06 39 {
4552a7367be3171 Clément Léger 2024-12-06 @40 return ERR_PTR(-EOPNOTSUPP);
4552a7367be3171 Clément Léger 2024-12-06 41 }
4552a7367be3171 Clément Léger 2024-12-06 42
:::::: The code at line 40 was first introduced by commit
:::::: 4552a7367be31713c5e06313f2a8e7233aceaafd drivers: firmware: add riscv SSE support
:::::: TO: Clément Léger <cleger@rivosinc.com>
:::::: CC: Anup Patel <anup@brainfault.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:[~2024-12-18 7:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-18 7:06 [avpatel:riscv_defconfig_v1 54/59] include/linux/riscv_sse.h:40:16: error: implicit declaration of function 'ERR_PTR' 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.