* [bjackman:asi/next 27/49] include/linux/set_memory.h:77:20: error: redefinition of 'direct_map_sensitive'
@ 2025-11-11 23:46 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-11-11 23:46 UTC (permalink / raw)
To: Brendan Jackman; +Cc: oe-kbuild-all
tree: https://github.com/bjackman/linux asi/next
head: 3c0474df6f211ae4eebffa6f5538335687dd9e0b
commit: c1f37f806e373cf7de31395a0cb72c0e11a1593a [27/49] mm/asi: bad_page() when ASI mappings are wrong
config: alpha-allnoconfig (https://download.01.org/0day-ci/archive/20251112/202511120744.Ej8ITYYu-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251112/202511120744.Ej8ITYYu-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/202511120744.Ej8ITYYu-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from include/linux/filter.h:19,
from kernel/extable.c:14:
include/linux/set_memory.h:73:5: error: redefinition of 'set_direct_map_sensitive'
73 | int set_direct_map_sensitive(struct page *page, unsigned long nr, bool sensitive)
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/set_memory.h:48:19: note: previous definition of 'set_direct_map_sensitive' with type 'int(struct page *, long unsigned int, bool)' {aka 'int(struct page *, long unsigned int, _Bool)'}
48 | static inline int set_direct_map_sensitive(struct page *page,
| ^~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/set_memory.h:77:20: error: redefinition of 'direct_map_sensitive'
77 | static inline bool direct_map_sensitive(struct page *page) { return false; }
| ^~~~~~~~~~~~~~~~~~~~
include/linux/set_memory.h:54:20: note: previous definition of 'direct_map_sensitive' with type 'bool(struct page *)' {aka '_Bool(struct page *)'}
54 | static inline bool direct_map_sensitive(struct page *page) { return false; }
| ^~~~~~~~~~~~~~~~~~~~
vim +/direct_map_sensitive +77 include/linux/set_memory.h
d253ca0c3865a8 Rick Edgecombe 2019-04-25 69
6dd7718570d9a8 Brendan Jackman 2025-09-11 70 /* Without ASI, sensitivity ops are a nop regardless of ARCH_HAS_SET_DIRECT_MAP. */
6dd7718570d9a8 Brendan Jackman 2025-09-11 71 #ifndef CONFIG_MITIGATION_ADDRESS_SPACE_ISOLATION
6dd7718570d9a8 Brendan Jackman 2025-09-11 72 static inline
6dd7718570d9a8 Brendan Jackman 2025-09-11 73 int set_direct_map_sensitive(struct page *page, unsigned long nr, bool sensitive)
6dd7718570d9a8 Brendan Jackman 2025-09-11 74 {
6dd7718570d9a8 Brendan Jackman 2025-09-11 75 return 0;
6dd7718570d9a8 Brendan Jackman 2025-09-11 76 }
6dd7718570d9a8 Brendan Jackman 2025-09-11 @77 static inline bool direct_map_sensitive(struct page *page) { return false; }
6dd7718570d9a8 Brendan Jackman 2025-09-11 78 #endif /* !CONFIG_MITIGATION_ADDRESS_SPACE_ISOLATION */
6dd7718570d9a8 Brendan Jackman 2025-09-11 79
:::::: The code at line 77 was first introduced by commit
:::::: 6dd7718570d9a84ab2563fd3e9d696935dfd904b mm/asi: support changing pageblock sensitivity
:::::: TO: Brendan Jackman <jackmanb@google.com>
:::::: CC: Brendan Jackman <jackmanb@google.com>
--
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-11-11 23:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-11 23:46 [bjackman:asi/next 27/49] include/linux/set_memory.h:77:20: error: redefinition of 'direct_map_sensitive' 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.