From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0A97BC4345F for ; Mon, 15 Apr 2024 21:08:04 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8F76B6B0098; Mon, 15 Apr 2024 17:08:03 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 8A8456B0099; Mon, 15 Apr 2024 17:08:03 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 770136B009A; Mon, 15 Apr 2024 17:08:03 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 5AA536B0098 for ; Mon, 15 Apr 2024 17:08:03 -0400 (EDT) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id E4316C082E for ; Mon, 15 Apr 2024 21:08:02 +0000 (UTC) X-FDA: 82013003604.23.51ED1C3 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) by imf13.hostedemail.com (Postfix) with ESMTP id 522812001F for ; Mon, 15 Apr 2024 21:08:00 +0000 (UTC) Authentication-Results: imf13.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="T7f/Xhgk"; spf=pass (imf13.hostedemail.com: domain of lkp@intel.com designates 192.198.163.12 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1713215281; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=HJY40p9SapnJFTJQ2motX+C1F2SPVsvPA6QWr0LGqnw=; b=KiTCQL3Wtcj8tt3KNqHITj9Eh9YEn6wO6J0EP09eJCpa/nLEY2xRHUsaZYF5TNC7kAd649 aFsgW0Fw0+LnCkVr6kjv4xViodbBWbq4N/sAaaLlsWAVnjHQAk9ZOVB/jxpv53NI8k5QpV eDBpKqgDWZodOJ41AUEW0mmfAlImzkE= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1713215281; a=rsa-sha256; cv=none; b=nGmPCtJE+lcUICpLzdg8/XGp5xTHq8m/MVYYS8bgASBXMh3MRtDAR1Ar/Dc7yOnRWJGzia UxfsWoXq2RvzyxSKL30RPkAewlmZ9FxiahralPTGW1yFd2AX7IQdLWh1u/iRn3C7FD2rZx PsPe+OSGbb9kzfjchrY9Hjr5LwKOHug= ARC-Authentication-Results: i=1; imf13.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="T7f/Xhgk"; spf=pass (imf13.hostedemail.com: domain of lkp@intel.com designates 192.198.163.12 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1713215280; x=1744751280; h=date:from:to:cc:subject:message-id:mime-version; bh=HTswpeWTqlqRO4Z7nRnbsNegu7NAlPW8sxScnc8V1YY=; b=T7f/XhgkDZDPNkDmNkOgpPj856Q4kV3Wbv33BrOhHj6avAp/C6dGtLy/ SlrgSVRvg68zxtvpBc+gGJ3ggl/mCgYXJ4nBwgAibpA13I49BgbO83Wlo QAtmedoYD3Ew1czv4bENJsq7hB0MxdmS3+1KMw67uVXEKqlwn9p/iCll7 5jtTtUcMtfVRk+A/DkM8fEBnmSTlLEQUxOZPNveyr6wmOxq31v+WthrMZ 643EqhO5/sm1h1USkMuLZopVwXYGuMULL8oWDxG7eaOlRdhN4y5Q3lWC/ BxBnOOsf9BgGLowLKwlbw2mrdo95wzaHnyopHD/AQ0qns2Ts+xg4NJwJg A==; X-CSE-ConnectionGUID: HDFs0Yj6SGewpo6iQMNvMw== X-CSE-MsgGUID: HaZlWSsZTtG2fGTvufs8tg== X-IronPort-AV: E=McAfee;i="6600,9927,11045"; a="12404589" X-IronPort-AV: E=Sophos;i="6.07,203,1708416000"; d="scan'208";a="12404589" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Apr 2024 14:07:58 -0700 X-CSE-ConnectionGUID: n4v3mX0uQn2ombcOmLA+yA== X-CSE-MsgGUID: Su4Kic6XR3SVPA36LZfymQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,203,1708416000"; d="scan'208";a="26834182" Received: from unknown (HELO 23c141fc0fd8) ([10.239.97.151]) by orviesa005.jf.intel.com with ESMTP; 15 Apr 2024 14:07:57 -0700 Received: from kbuild by 23c141fc0fd8 with local (Exim 4.96) (envelope-from ) id 1rwTYQ-0004eb-2e; Mon, 15 Apr 2024 21:07:54 +0000 Date: Tue, 16 Apr 2024 05:07:03 +0800 From: kernel test robot To: "Paul E. McKenney" Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , linux-snps-arc@lists.infradead.org Subject: [linux-next:master 4535/6266] arch/arc/include/asm/cmpxchg.h:73:27: error: implicit declaration of function 'cmpxchg_emu_u8' Message-ID: <202404160503.zFIp77TO-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 522812001F X-Rspam-User: X-Stat-Signature: ua57dxhysodmgcrqsg3657ce4sbaym6x X-Rspamd-Server: rspam03 X-HE-Tag: 1713215280-585607 X-HE-Meta: U2FsdGVkX1/EcJmivZ8NJQzrDZQDTjfHXfkLb4Z+W8I6nMbvDjEVBNnSc6vb2PnZtJ6eNWwm2AnKiNM1qR1r+UBfEzEkNL9PcH7BQhrmQwNtyNvAkAwFnAgR3lr4QlOT9Nal8lnYDzeTy4Tqe69QfMy3ue8/vDuVKBJBDmlgHb8Sud7Dsu8Hbtf20BcNN/TLV7Kj5+Tt/GkyZ+3IMzr12MB7/XPbp+tKEJWqSiSAsMOrJJN7b7JPmASaOIs50rzjKdcvbGOV70O0UCrqdh156rOMQoMdjRlYp38WsRx6/ELsgL5EL12b7C5AXpc4LMIVNdCbanWRyrEbhVrDoMBSgBdQXq+rrgLqsWGMyl3uZgTApsA/dOAImMkCSAsIb0xiG/WQggi5oKMlbImdQDBm/yUB/y3wyll2lA9bSy09mfgd9aq/COcleQakjsDK9bVzLTby2kQ5HUFdmIjSb8sAzbXSw1bxhdFGF5e2SpbXlZTpGUwbe9Yw5N/j5H3E3o1uaFsGF2nu5m/iccbMa7kmQRm19X7p6DicJ9BCnbIivHiDUpYf6024dmmvieTVDmBjrD0ke5wcSTr1oVqhrBpFaAEXiopaAEp4ijF2M0mLcmP+bqoiQSE3UZFSyygSJjXRufB0BojV41sob7UOgCvyrYI6szbYduzHcE5GIoIV6i8lbVDRyUmzr887miZuqK+qat2aDaKNgXgrJOGaCUKVL6nGn3cNLemKXaKExFYgFGWghwvmEyYaahxVimfuxlZKYY4nGCGxZb6jlW4uPg2hv6IQrb4qDBX/LdUKnDvmpt7MHArPfqjE9Qp3xIYaDXqxpIIh3nCfI4djgKe93LcLKsiyWFXukFrkYhRKC7LT0aAlccqKj+lDRB7RbVKBapMAu0/LoNVFGWg= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 6bd343537461b57f3efe5dfc5fc193a232dfef1e commit: d4f26ed66a53be57567bf71d60e80a116cec34e1 [4535/6266] ARC: Emulate one-byte cmpxchg config: arc-randconfig-r016-20230816 (https://download.01.org/0day-ci/archive/20240416/202404160503.zFIp77TO-lkp@intel.com/config) compiler: arceb-elf-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240416/202404160503.zFIp77TO-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/202404160503.zFIp77TO-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from include/linux/bitops.h:68, from include/linux/log2.h:12, from kernel/bounds.c:13: arch/arc/include/asm/bitops.h: In function '__fls': arch/arc/include/asm/bitops.h:137:17: error: implicit declaration of function '__builtin_arc_fls'; did you mean '__builtin_arc_flag'? [-Werror=implicit-function-declaration] 137 | return __builtin_arc_fls(x); | ^~~~~~~~~~~~~~~~~ | __builtin_arc_flag In file included from arch/arc/include/asm/atomic.h:31, from include/linux/atomic.h:7, from include/asm-generic/bitops/lock.h:5, from arch/arc/include/asm/bitops.h:188: arch/arc/include/asm/atomic64-arcv2.h: At top level: arch/arc/include/asm/atomic64-arcv2.h:13:3: error: conflicting types for 'atomic64_t'; have 'struct ' 13 | } atomic64_t; | ^~~~~~~~~~ In file included from include/linux/page-flags.h:9, from kernel/bounds.c:10: include/linux/types.h:184:3: note: previous declaration of 'atomic64_t' with type 'atomic64_t' 184 | } atomic64_t; | ^~~~~~~~~~ In file included from arch/arc/include/asm/atomic.h:13: include/linux/atomic/atomic-arch-fallback.h: In function 'raw_atomic_cmpxchg': >> arch/arc/include/asm/cmpxchg.h:73:27: error: implicit declaration of function 'cmpxchg_emu_u8' [-Werror=implicit-function-declaration] 73 | __flags = cmpxchg_emu_u8((volatile u8 *)_p_, _o_, _n_); \ | ^~~~~~~~~~~~~~ include/linux/atomic/atomic-arch-fallback.h:55:21: note: in expansion of macro 'arch_cmpxchg' 55 | #define raw_cmpxchg arch_cmpxchg | ^~~~~~~~~~~~ include/linux/atomic/atomic-arch-fallback.h:2026:16: note: in expansion of macro 'raw_cmpxchg' 2026 | return raw_cmpxchg(&v->counter, old, new); | ^~~~~~~~~~~ In file included from arch/arc/include/uapi/asm/byteorder.h:14, from include/asm-generic/bitops/le.h:6, from arch/arc/include/asm/bitops.h:192: include/linux/byteorder/big_endian.h: At top level: include/linux/byteorder/big_endian.h:8:2: warning: #warning inconsistent configuration, needs CONFIG_CPU_BIG_ENDIAN [-Wcpp] 8 | #warning inconsistent configuration, needs CONFIG_CPU_BIG_ENDIAN | ^~~~~~~ cc1: some warnings being treated as errors make[3]: *** [scripts/Makefile.build:117: kernel/bounds.s] Error 1 make[3]: Target 'prepare' not remade because of errors. make[2]: *** [Makefile:1197: prepare0] Error 2 make[2]: Target 'prepare' not remade because of errors. make[1]: *** [Makefile:240: __sub-make] Error 2 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:240: __sub-make] Error 2 make: Target 'prepare' not remade because of errors. vim +/cmpxchg_emu_u8 +73 arch/arc/include/asm/cmpxchg.h 62 63 #define arch_cmpxchg(ptr, old, new) \ 64 ({ \ 65 volatile __typeof__(ptr) _p_ = (ptr); \ 66 __typeof__(*(ptr)) _o_ = (old); \ 67 __typeof__(*(ptr)) _n_ = (new); \ 68 __typeof__(*(ptr)) _prev_; \ 69 unsigned long __flags; \ 70 \ 71 switch(sizeof((_p_))) { \ 72 case 1: \ > 73 __flags = cmpxchg_emu_u8((volatile u8 *)_p_, _o_, _n_); \ 74 _prev_ = (__typeof__(*(ptr)))__flags; \ 75 break; \ 76 break; \ 77 case 4: \ 78 /* \ 79 * spin lock/unlock provide the needed smp_mb() \ 80 * before/after \ 81 */ \ 82 atomic_ops_lock(__flags); \ 83 _prev_ = *_p_; \ 84 if (_prev_ == _o_) \ 85 *_p_ = _n_; \ 86 atomic_ops_unlock(__flags); \ 87 break; \ 88 default: \ 89 BUILD_BUG(); \ 90 } \ 91 \ 92 _prev_; \ 93 }) 94 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki