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 6BC5EC4345F for ; Tue, 30 Apr 2024 17:55:04 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id F21576B00BB; Tue, 30 Apr 2024 13:55:03 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id EA9BA6B00C3; Tue, 30 Apr 2024 13:55:03 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D4B246B00C7; Tue, 30 Apr 2024 13:55:03 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id B33FF6B00BB for ; Tue, 30 Apr 2024 13:55:03 -0400 (EDT) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 2EE8FC03FA for ; Tue, 30 Apr 2024 17:55:03 +0000 (UTC) X-FDA: 82066949286.13.3BCA0DB Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf26.hostedemail.com (Postfix) with ESMTP id 63CFB14000E for ; Tue, 30 Apr 2024 17:55:01 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b="UOez/C/E"; spf=pass (imf26.hostedemail.com: domain of "SRS0=E2i9=MD=paulmck-ThinkPad-P17-Gen-1.home=paulmck@kernel.org" designates 139.178.84.217 as permitted sender) smtp.mailfrom="SRS0=E2i9=MD=paulmck-ThinkPad-P17-Gen-1.home=paulmck@kernel.org"; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1714499701; h=from:from:sender:reply-to: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:in-reply-to:references:references:dkim-signature; bh=UtXqTZ81wCz4H2H2Q/oXdTU0vcrwUHlgL2tTicAd8Lw=; b=1w0ZkM9uzCPd1pUYHECnjDwFbUAbiAm5OJVTf26MMeZdPa5ZdWwGDr8CmOGk54f90TQ54s yNPMgsW3JDsj142xBMVoQy4zAY3uguDbc5favA7bOeBlEXHFB+OjzF2k/G8GoEH1ttupOw wnMLv/eLIXQKcwLYFhrACFge2YaaqbA= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b="UOez/C/E"; spf=pass (imf26.hostedemail.com: domain of "SRS0=E2i9=MD=paulmck-ThinkPad-P17-Gen-1.home=paulmck@kernel.org" designates 139.178.84.217 as permitted sender) smtp.mailfrom="SRS0=E2i9=MD=paulmck-ThinkPad-P17-Gen-1.home=paulmck@kernel.org"; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1714499701; a=rsa-sha256; cv=none; b=6QDHRf0eB/31NNfycXVNnHcWCgV7YWGB5IBKQe0QDV1cm6PCjEOWhUuVG2fcPBc5r5RMwj 0hEJqEcGjQIBW2pkud1YjtZKzSgxf9VKlDuKB0VpLPsdtLRYYkfHszj06TeHPXWcNTIl8Y rMp4S9tTfU9Fttld2TI3qIA+ObAuRL4= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 47C336168D; Tue, 30 Apr 2024 17:55:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E1034C2BBFC; Tue, 30 Apr 2024 17:54:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714499699; bh=1LxL23nGRyjW2xUInrY6Mm5qmylyJIeZ0ypfoAn79Ek=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=UOez/C/E/ORsVJ2pSSlEMoAWC/D7k2hWGyrVZ/iWHyK67ukRzrFPpfP2xABh9SnGb SQfvw2gchZvqPV8dMMzC4kamqRMjyO+qrjEjRGq+I2sLRXoNF+pPSK8LsWC0ZnyKIu NfXyeDdNU8gjldL4jMH/mlCF/1Su1DrjO69H0GS89F80T37QL/auJvU1L2QPyOU8Mh o4UDBDJQEJ0Gii92ShHVDxtzf+enbtqmwdtToFtkZGSkSMi0kOwO8vNO27iqPr/Mou VStNZ/QxMB9sPatE8DQyObxQQexQjulGLaaal/R8ZVD6C/u2ePv+QjGFY34n+/aWgb ALG7Pkwl5H8Eg== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 802EACE0C37; Tue, 30 Apr 2024 10:54:59 -0700 (PDT) Date: Tue, 30 Apr 2024 10:54:59 -0700 From: "Paul E. McKenney" To: kernel test robot Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , linux-snps-arc@lists.infradead.org Subject: Re: [linux-next:master 4535/6266] arch/arc/include/asm/cmpxchg.h:73:27: error: implicit declaration of function 'cmpxchg_emu_u8' Message-ID: <15ae9a2f-a7dc-4b39-b7f7-9268d7163031@paulmck-laptop> Reply-To: paulmck@kernel.org References: <202404160503.zFIp77TO-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202404160503.zFIp77TO-lkp@intel.com> X-Rspam-User: X-Rspamd-Queue-Id: 63CFB14000E X-Rspamd-Server: rspam06 X-Stat-Signature: w54po8d9r7swr4eh9cg5mzfzy8zhop8i X-HE-Tag: 1714499701-913384 X-HE-Meta: U2FsdGVkX19yqct9IiZ/UxKDmLatpx7Vi9isXM/6WzsEfkpG9TSKodlCySGS13X5f+kt1F4PYr8FRpNXe+2YVlR8ELTvjUtLskSYcqPBDqTSF8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tLKtpWyMrMhYoL2VJFGKmyx94qAr0EXA68cCo7gO/QXIz0JoF5Wwa36kw0DbL5kB3nQWnXbO6Obog/JeTm9m/hAQUEhubeQyH03/d94h0Y+4BHVYHMf9p6wuxE5kLD+PC1yY3nH8nolhybHVq+lWbLE+rRTGS0MEMHWvdcZWwjlnw1MWg9Tmy089eNbV0GZ7PFxO9acyTNJ8CcEwkCGz1PxB5A5P+Cz9j3Dn78+7vOyiY6MBFDpVjVYWRkipHwvULqm3IcsxoAFmLdPv8gRvDAs0O+puW1gmqlJdmKQtUmiM9gcrAdpCeXPDvS9dq4VB64tX9UK971iPU1B5o2WI/3TW9HjvyJjqA19CN3dpz9DQ9AV39g5aSUMdEtWcx55BE3zq64gvDaEpDbT0XXnn6US/N1tRqmxR1a3q742jy3vJI0A20QOtvJ8yl/bl7skjFEsvPux/o2AtkHaAOSSgRy61u0y9YLjlBC45YE7poL1T5Geah1djx/vujaFthPdoz7bEaMggHqYfF8hZ8gI2QqcgQDBFu80z8dfbikemwEKtZGqBcpiaPQ== 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: On Tue, Apr 16, 2024 at 05:07:03AM +0800, kernel test robot wrote: > 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/ I might be suffering a failure of imagination, but I am not seeing how my change could result in these diagnostics. Please let me know what I am missing! Thanx, Paul > 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