All of lore.kernel.org
 help / color / mirror / Atom feed
* [android-common:android16-6.12-desktop 0/8] include/linux/jump_label.h: linux/atomic.h is included more than once.
@ 2025-04-30  5:56 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-04-30  5:56 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: Manual check reason: "low confidence bisect report"
:::::: 

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: cros-kernel-buildreports@googlegroups.com

tree:   https://android.googlesource.com/kernel/common android16-6.12-desktop
head:   74912b718e9ab4e3472b80384b60f4af0389190b
commit: 6bfb9916dcaefd1e4c35ee4ea287c02343449c59 [0/8] ANDROID: jump_label: disable jump labels in fips140.ko
:::::: branch date: 14 hours ago
:::::: commit date: 5 months ago
compiler: clang version 20.1.2 (https://github.com/llvm/llvm-project 58df0ef89dd64126512e4ee27b4ac3fd8ddf6247)

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/r/202504301333.v2VgXVP9-lkp@intel.com/

includecheck warnings: (new ones prefixed by >>)
>> include/linux/jump_label.h: linux/atomic.h is included more than once.

vim +200 include/linux/jump_label.h

   199	
 > 200	#include <linux/atomic.h>
   201	
   202	static inline int static_key_count(struct static_key *key)
   203	{
   204		return raw_atomic_read(&key->enabled);
   205	}
   206	
   207	static __always_inline bool static_key_false(struct static_key *key)
   208	{
   209		if (unlikely(static_key_count(key) > 0))
   210			return true;
   211		return false;
   212	}
   213	
   214	static __always_inline bool static_key_true(struct static_key *key)
   215	{
   216		if (likely(static_key_count(key) > 0))
   217			return true;
   218		return false;
   219	}
   220	
   221	#elif defined(CONFIG_JUMP_LABEL)
   222	
   223	#define JUMP_TYPE_FALSE		0UL
   224	#define JUMP_TYPE_TRUE		1UL
   225	#define JUMP_TYPE_LINKED	2UL
   226	#define JUMP_TYPE_MASK		3UL
   227	
   228	static __always_inline bool static_key_false(struct static_key *key)
   229	{
   230		return arch_static_branch(key, false);
   231	}
   232	
   233	static __always_inline bool static_key_true(struct static_key *key)
   234	{
   235		return !arch_static_branch(key, true);
   236	}
   237	
   238	extern struct jump_entry __start___jump_table[];
   239	extern struct jump_entry __stop___jump_table[];
   240	
   241	extern void jump_label_init(void);
   242	extern void jump_label_init_ro(void);
   243	extern void jump_label_lock(void);
   244	extern void jump_label_unlock(void);
   245	extern void arch_jump_label_transform(struct jump_entry *entry,
   246					      enum jump_label_type type);
   247	extern bool arch_jump_label_transform_queue(struct jump_entry *entry,
   248						    enum jump_label_type type);
   249	extern void arch_jump_label_transform_apply(void);
   250	extern int jump_label_text_reserved(void *start, void *end);
   251	extern bool static_key_slow_inc(struct static_key *key);
   252	extern bool static_key_fast_inc_not_disabled(struct static_key *key);
   253	extern void static_key_slow_dec(struct static_key *key);
   254	extern bool static_key_slow_inc_cpuslocked(struct static_key *key);
   255	extern void static_key_slow_dec_cpuslocked(struct static_key *key);
   256	extern int static_key_count(struct static_key *key);
   257	extern void static_key_enable(struct static_key *key);
   258	extern void static_key_disable(struct static_key *key);
   259	extern void static_key_enable_cpuslocked(struct static_key *key);
   260	extern void static_key_disable_cpuslocked(struct static_key *key);
   261	extern enum jump_label_type jump_label_init_type(struct jump_entry *entry);
   262	
   263	/*
   264	 * We should be using ATOMIC_INIT() for initializing .enabled, but
   265	 * the inclusion of atomic.h is problematic for inclusion of jump_label.h
   266	 * in 'low-level' headers. Thus, we are initializing .enabled with a
   267	 * raw value, but have added a BUILD_BUG_ON() to catch any issues in
   268	 * jump_label_init() see: kernel/jump_label.c.
   269	 */
   270	#define STATIC_KEY_INIT_TRUE					\
   271		{ .enabled = { 1 },					\
   272		  { .type = JUMP_TYPE_TRUE } }
   273	#define STATIC_KEY_INIT_FALSE					\
   274		{ .enabled = { 0 },					\
   275		  { .type = JUMP_TYPE_FALSE } }
   276	
   277	#else  /* !CONFIG_JUMP_LABEL */
   278	
 > 279	#include <linux/atomic.h>
   280	#include <linux/bug.h>
   281	

-- 
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-04-30  5:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-30  5:56 [android-common:android16-6.12-desktop 0/8] include/linux/jump_label.h: linux/atomic.h is included more than once 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.