Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Håkon Bugge" <haakon.bugge@oracle.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	LUCI Bot <vijayendra.suman@oracle.com>,
	Konrad Wilk <Konrad.wilk@oracle.com>
Subject: [jlayton:uek-localio 2182/2262] kernel/auditsc.c:827:13: warning: unknown pragma ignored
Date: Sat, 24 May 2025 21:24:06 +0800	[thread overview]
Message-ID: <202505242111.ChHzvXBl-lkp@intel.com> (raw)

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

                 reply	other threads:[~2025-05-24 13:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202505242111.ChHzvXBl-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=Konrad.wilk@oracle.com \
    --cc=haakon.bugge@oracle.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=vijayendra.suman@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox