* [jlayton:uek-localio 2182/2262] kernel/auditsc.c:827:13: warning: unknown pragma ignored
@ 2025-05-24 13:24 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-05-24 13:24 UTC (permalink / raw)
To: Håkon Bugge; +Cc: llvm, oe-kbuild-all, LUCI Bot, Konrad Wilk
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git uek-localio
head: 65b0dc6bb1f5c18e63d8ee9ea1cca997456a81a9
commit: ea8c1ee70f911f6b6fb7f9a0c99f02e6e515e67f [2182/2262] audit: Re-apply special optimizations
config: arm-randconfig-003-20250524 (https://download.01.org/0day-ci/archive/20250524/202505242111.ChHzvXBl-lkp@intel.com/config)
compiler: clang version 20.1.2 (https://github.com/llvm/llvm-project 58df0ef89dd64126512e4ee27b4ac3fd8ddf6247)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250524/202505242111.ChHzvXBl-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/202505242111.ChHzvXBl-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from kernel/auditsc.c:48:
In file included from include/linux/netlink.h:7:
In file included from include/linux/skbuff.h:17:
In file included from include/linux/bvec.h:10:
include/linux/highmem.h:265:2: error: call to undeclared function 'clear_user_page_uncached'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
265 | clear_user_page_uncached(addr, vaddr, page);
| ^
include/linux/highmem.h:265:2: note: did you mean 'clear_user_highpage_uncached'?
include/linux/highmem.h:261:20: note: 'clear_user_highpage_uncached' declared here
261 | static inline void clear_user_highpage_uncached(struct page *page, unsigned long vaddr)
| ^
262 | {
263 | void *addr = kmap_atomic(page);
264 |
265 | clear_user_page_uncached(addr, vaddr, page);
| ~~~~~~~~~~~~~~~~~~~~~~~~
| clear_user_highpage_uncached
>> kernel/auditsc.c:827:13: warning: unknown pragma ignored [-Wunknown-pragmas]
827 | #pragma GCC optimize("unswitch-loops", "align-loops=16", "align-jumps=16")
| ^
kernel/auditsc.c:848:13: warning: unknown pragma ignored [-Wunknown-pragmas]
848 | #pragma GCC reset_options
| ^
2 warnings and 1 error generated.
vim +827 kernel/auditsc.c
812
813 /**
814 * __audit_filter_op - common filter helper for operations (syscall/uring/etc)
815 * @tsk: associated task
816 * @ctx: audit context
817 * @list: audit filter list
818 * @name: audit_name (can be NULL)
819 * @op: current syscall/uring_op
820 *
821 * Run the udit filters specified in @list against @tsk using @ctx,
822 * @name, and @op, as necessary; the caller is responsible for ensuring
823 * that the call is made while the RCU read lock is held. The @name
824 * parameter can be NULL, but all others must be specified.
825 * Returns 1/true if the filter finds a match, 0/false if none are found.
826 */
> 827 #pragma GCC optimize("unswitch-loops", "align-loops=16", "align-jumps=16")
828 static int __audit_filter_op(struct task_struct *tsk,
829 struct audit_context *ctx,
830 struct list_head *list,
831 struct audit_names *name,
832 unsigned long op)
833 {
834 struct audit_entry *e;
835 enum audit_state state;
836
837 list_for_each_entry_rcu(e, list, list) {
838 if (unlikely(audit_in_mask(&e->rule, op))) {
839 if (audit_filter_rules(tsk, &e->rule, ctx, name,
840 &state, false)) {
841 ctx->current_state = state;
842 return 1;
843 }
844 }
845 }
846 return 0;
847 }
848 #pragma GCC reset_options
849
--
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-05-24 13:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-24 13:24 [jlayton:uek-localio 2182/2262] kernel/auditsc.c:827:13: warning: unknown pragma ignored kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox