From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.175.65.16 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792612330; b=uz+oWW1KVsL/1Mr9vfyGhixb/6HA+BRu/F7A4pT9yQR4fNJnRiFj1LdgRrCLSX+5yHAR JcABpkSjuWRLojeEwSxAMOgr9VW+fnQFcttCa1g7JCSHth90qY177B9saQ6/nlCv0HKWQ RLqMNeB9QLBhrTCBOVZ1g40C7+Th4L49HYfDxzMuuAPUtEPL0tB0XiuUQHaa2BBBJY+so ooCJKRHcK4z1PABnth5NAuOUQFNRztnaDLq7Ff1BF0d5R9Nn3GJ0uCq2KzTOD9icYN/Sx s7Z7ccHkrRrwfBzuI43vhBUm13+kFRpxQNDm7caYHXLfIQD6l8/ct05uo6d2OHBZk7w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792612330; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Received:Date:From:To: Cc:Subject:Message-ID:User-Agent; bh=RqNqY7uTAsAXWBcaUYcwgRm85B/qwgasUEhHcqX/mY4=; b=ra7/T2t6TNZOHkUIewWrR9Ga5mDTO9wF21qM3JLJ3L4KFJYx5beLnICM2iXDc6HipdwH 7CqKPqKlhgbUrD7Vyi7LPJHH3orsOHc2SsF8HqukocrLBzTTQOy6iUXoPnDEcHj0v4BpC BSENEKbLeHDz2XG2QlqDcmXfQsdztNKnZ070vnPxdVpracnPqOnVkgSkXGcOhLLfm8RSP hYww/KEqmsvWjkbVAinVTzewPVwJMI5UCX5GsxRb+g9bDyZ+/jdSKe6fxueyLrF3FsbVe 1BIKuDJ/9AMG6q0FBVyx6r33yJuaUWWXB961NPTNNsnxdIHc+GwBmR+8QtIfrnKZPmA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=YS8saNh2; arc=none smtp.remote-ip=198.175.65.16 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 37E73606A325; Wed, 21 Oct 2026 19:52:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 37E73606A325 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=YS8saNh2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1792612329; x=1824148329; h=date:from:to:cc:subject:message-id; bh=u6tUKmB7kcDZA0KHbZW2x4bcZLQ3ULHPWTB+XZa2RNk=; b=YS8saNh28BOF8OstVHWGQSEilwOOi6FRh54JmscHUoZJWKo5WBBjOl9I JcqI9bjQIGeQCx4OjJpuEIRWpB9+GPVgFFYtiKJ7ThyrTAj96WLOTPjen ZeRE2fAsIBuUjN4YTUFkKn+UAJlLyjXso7CN139orYEuuvC3P0kjKNhii KFvG+jxVOhc7bRa3HZG42srzVun5Tn5LT/1zNE15MMtlk9/qualeiqQ0Z b6ypM9Z2y5ZQKj9ChnJaY1WN0HejtcXFifnv56fLm5OU9xh1shCvP1BlR +jTOlVdlBwgrUW9d5+Z67DM4sGb/RfuXvHSkQhnWDC9hQuZbNvOkn/yFE Q==; X-CSE-ConnectionGUID: isDDyXaZQ26Xwe/yUdKmJQ== X-CSE-MsgGUID: 0VlPmA+RRnaYw/j1p9gk2w== X-IronPort-AV: E=McAfee;i="6800,10657,11942"; a="1341844" X-IronPort-AV: E=Sophos;i="6.27,170,1787036400"; d="scan'208";a="1341844" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Oct 2026 12:52:09 -0700 X-CSE-ConnectionGUID: PbT//wQCTtyMmm2U4D0mIw== X-CSE-MsgGUID: QyACaCNaSuGJv9iM6lLi4w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,170,1787036400"; d="scan'208";a="3248236" Received: from lkp-server01.sh.intel.com (HELO 0caa9d2d175c) ([10.239.97.150]) by fmviesa003.fm.intel.com with ESMTP; 21 Oct 2026 12:52:07 -0700 Received: from kbuild by 0caa9d2d175c with local (Exim 4.98.2) (envelope-from ) id 1xJcM0-00000000Pzu-37yM; Wed, 21 Oct 2026 19:52:04 +0000 Date: Thu, 22 Oct 2026 03:51:29 +0800 From: kernel test robot To: Dave Hansen Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev Subject: [daveh-devel:kss-2026-10-19 16/24] include/linux/thread_info.h:237:20: error: redefinition of 'arch_kernel_shstk_enabled' Message-ID: <202610220358.3dxFUVcz-lkp@intel.com> User-Agent: s-nail v14.9.25 X-Mailing-List: llvm@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list tree: https://git.kernel.org/pub/scm/linux/kernel/git/daveh/devel.git kss-2026-10-19 head: b28e7d03a8472efab137c77cbb5dd666fa08e9a7 commit: 967449663fb3eb7dcca67c4652293712530809c8 [16/24] arch-shadow-stacks-enabled config: x86_64-kexec (https://download.01.org/0day-ci/archive/20261022/202610220358.3dxFUVcz-lkp@intel.com/config) compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261022/202610220358.3dxFUVcz-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 | Closes: https://lore.kernel.org/oe-kbuild-all/202610220358.3dxFUVcz-lkp@intel.com/ All error/warnings (new ones prefixed by >>): In file included from arch/x86/kernel/asm-offsets.c:9: In file included from include/linux/crypto.h:15: In file included from include/linux/completion.h:12: In file included from include/linux/swait.h:7: In file included from include/linux/spinlock.h:60: In file included from include/linux/interrupt_rc.h:17: In file included from include/linux/smp.h:118: In file included from include/linux/thread_info.h:62: >> arch/x86/include/asm/thread_info.h:237:6: warning: no previous prototype for function 'arch_kernel_shstk_enabled' [-Wmissing-prototypes] 237 | bool arch_kernel_shstk_enabled(void) | ^ arch/x86/include/asm/thread_info.h:237:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 237 | bool arch_kernel_shstk_enabled(void) | ^ | static In file included from arch/x86/kernel/asm-offsets.c:9: In file included from include/linux/crypto.h:15: In file included from include/linux/completion.h:12: In file included from include/linux/swait.h:7: In file included from include/linux/spinlock.h:60: In file included from include/linux/interrupt_rc.h:17: In file included from include/linux/smp.h:118: >> include/linux/thread_info.h:237:8: warning: attribute declaration must precede definition [-Wignored-attributes] 237 | static inline bool arch_kernel_shstk_enabled(void) | ^ include/linux/compiler_types.h:235:23: note: expanded from macro 'inline' 235 | #define inline inline __gnu_inline __inline_maybe_unused notrace | ^ include/linux/compiler_attributes.h:165:56: note: expanded from macro '__gnu_inline' 165 | #define __gnu_inline __attribute__((__gnu_inline__)) | ^ arch/x86/include/asm/thread_info.h:237:6: note: previous definition is here 237 | bool arch_kernel_shstk_enabled(void) | ^ In file included from arch/x86/kernel/asm-offsets.c:9: In file included from include/linux/crypto.h:15: In file included from include/linux/completion.h:12: In file included from include/linux/swait.h:7: In file included from include/linux/spinlock.h:60: In file included from include/linux/interrupt_rc.h:17: In file included from include/linux/smp.h:118: >> include/linux/thread_info.h:237:8: warning: attribute declaration must precede definition [-Wignored-attributes] 237 | static inline bool arch_kernel_shstk_enabled(void) | ^ include/linux/compiler_types.h:235:36: note: expanded from macro 'inline' 235 | #define inline inline __gnu_inline __inline_maybe_unused notrace | ^ include/linux/compiler_types.h:257:31: note: expanded from macro '__inline_maybe_unused' 257 | #define __inline_maybe_unused __maybe_unused | ^ include/linux/compiler_attributes.h:352:56: note: expanded from macro '__maybe_unused' 352 | #define __maybe_unused __attribute__((__unused__)) | ^ arch/x86/include/asm/thread_info.h:237:6: note: previous definition is here 237 | bool arch_kernel_shstk_enabled(void) | ^ In file included from arch/x86/kernel/asm-offsets.c:9: In file included from include/linux/crypto.h:15: In file included from include/linux/completion.h:12: In file included from include/linux/swait.h:7: In file included from include/linux/spinlock.h:60: In file included from include/linux/interrupt_rc.h:17: In file included from include/linux/smp.h:118: >> include/linux/thread_info.h:237:8: warning: attribute declaration must precede definition [-Wignored-attributes] 237 | static inline bool arch_kernel_shstk_enabled(void) | ^ include/linux/compiler_types.h:235:58: note: expanded from macro 'inline' 235 | #define inline inline __gnu_inline __inline_maybe_unused notrace | ^ arch/x86/include/asm/linkage.h:9:32: note: expanded from macro 'notrace' 9 | #define notrace __attribute__((no_instrument_function)) | ^ arch/x86/include/asm/thread_info.h:237:6: note: previous definition is here 237 | bool arch_kernel_shstk_enabled(void) | ^ In file included from arch/x86/kernel/asm-offsets.c:9: In file included from include/linux/crypto.h:15: In file included from include/linux/completion.h:12: In file included from include/linux/swait.h:7: In file included from include/linux/spinlock.h:60: In file included from include/linux/interrupt_rc.h:17: In file included from include/linux/smp.h:118: >> include/linux/thread_info.h:237:20: error: redefinition of 'arch_kernel_shstk_enabled' 237 | static inline bool arch_kernel_shstk_enabled(void) | ^ arch/x86/include/asm/thread_info.h:237:6: note: previous definition is here 237 | bool arch_kernel_shstk_enabled(void) | ^ In file included from arch/x86/kernel/asm-offsets.c:14: In file included from include/linux/suspend.h:5: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:13: In file included from include/linux/cgroup.h:17: In file included from include/linux/fs.h:5: In file included from include/linux/fs/super.h:5: In file included from include/linux/fs/super_types.h:13: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:98:11: warning: array index 3 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 98 | return (set->sig[3] | set->sig[2] | | ^ ~ arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here 24 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/x86/kernel/asm-offsets.c:14: In file included from include/linux/suspend.h:5: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:13: In file included from include/linux/cgroup.h:17: In file included from include/linux/fs.h:5: In file included from include/linux/fs/super.h:5: In file included from include/linux/fs/super_types.h:13: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:98:25: warning: array index 2 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 98 | return (set->sig[3] | set->sig[2] | | ^ ~ arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here 24 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/x86/kernel/asm-offsets.c:14: In file included from include/linux/suspend.h:5: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:13: In file included from include/linux/cgroup.h:17: In file included from include/linux/fs.h:5: In file included from include/linux/fs/super.h:5: In file included from include/linux/fs/super_types.h:13: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:99:4: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 99 | set->sig[1] | set->sig[0]) == 0; | ^ ~ arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here 24 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/x86/kernel/asm-offsets.c:14: In file included from include/linux/suspend.h:5: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:13: In file included from include/linux/cgroup.h:17: In file included from include/linux/fs.h:5: In file included from include/linux/fs/super.h:5: In file included from include/linux/fs/super_types.h:13: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:101:11: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 101 | return (set->sig[1] | set->sig[0]) == 0; | ^ ~ arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here 24 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/x86/kernel/asm-offsets.c:14: In file included from include/linux/suspend.h:5: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:13: In file included from include/linux/cgroup.h:17: In file included from include/linux/fs.h:5: In file included from include/linux/fs/super.h:5: In file included from include/linux/fs/super_types.h:13: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:114:11: warning: array index 3 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds] 114 | return (set1->sig[3] == set2->sig[3]) && | ^ ~ arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here 24 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/x86/kernel/asm-offsets.c:14: In file included from include/linux/suspend.h:5: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:13: In file included from include/linux/cgroup.h:17: In file included from include/linux/fs.h:5: In file included from include/linux/fs/super.h:5: In file included from include/linux/fs/super_types.h:13: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: vim +/arch_kernel_shstk_enabled +237 include/linux/thread_info.h e66101020b3651c Dave Hansen 2026-10-19 235 5daba193b8cf422 Dave Hansen 2026-10-19 236 #ifndef arch_kernel_shstk_enabled 5daba193b8cf422 Dave Hansen 2026-10-19 @237 static inline bool arch_kernel_shstk_enabled(void) 5daba193b8cf422 Dave Hansen 2026-10-19 238 { 5daba193b8cf422 Dave Hansen 2026-10-19 239 return false; 5daba193b8cf422 Dave Hansen 2026-10-19 240 } 5daba193b8cf422 Dave Hansen 2026-10-19 241 #endif 5daba193b8cf422 Dave Hansen 2026-10-19 242 :::::: The code at line 237 was first introduced by commit :::::: 5daba193b8cf422043348d59ff40fbda09a528d7 kernel/task: Add "runtime" check for shadow stack support :::::: TO: Dave Hansen :::::: CC: Dave Hansen -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki