Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2002186pxb; Thu, 28 Oct 2021 14:19:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxITiwqpBB/3qMvI4mi4s03FWTP63GN3sIDQJna3vzjk/sgK02RhaEU9VmJPeKnmMdqXNGZ X-Received: by 2002:a50:fb15:: with SMTP id d21mr3017149edq.85.1635455965154; Thu, 28 Oct 2021 14:19:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635455965; cv=none; d=google.com; s=arc-20160816; b=zTGWGNDDhqUgE58eGSMp6fJwTJuu10W+a1LS8WonR1y0eUHHo+ehQyWf1giJdga1gP M0YtLasBWhwVHcbhMSDGcojqJIBSY5hgPj/OVW6zpH71GMvqQpWssD1Fu71OWZ3okgt0 On2mQaWN4jUSBAPRPryOksYJlVG1lwU6dkHFoCDFjsvi4KTuU7SEuKGuz15YB96hiPr8 V+e24pHXSd6mQqoflkSM1G4wsWR2UBHmV+i089V8rpYLyTgttWizDOr5cfecq3WmT4W3 NHHgex/KGV3Ui67KcPdHzVSYxzjRP1P7axNtWLU9H68eUsQzV0F3gObG5HW2lxXLqy3s 61Yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=77b6Wqpi5myKp7cmYqHYaq9WuF85O34cJH2RaLKBxUM=; b=bR2recXSAWbnsv/drbJf1SBMgB2UrLK89wtmEvZB5H2cQeRYL8VdzQdJ/BJv8qbIHA kHo6J6DG5sQJCiXJnsyR+uKS8NMKehfhh9SK5zWpUdqfndmIjEfLgzSPZ7PkiO3SsnNc CSWZxKhsh4Lij62AJDAYTaR241YFUT+Yc/71Ru1z/XFmBH7tIz+wudfE/9KqCL1UjyUz x/P/K9xQctZvsaJG0VKCuzu74kCGIxSB5ejjaZlsYI/7BltioKW/wHA04LNjObwO+uk4 oJ0EukwwHKpzLyBBFHvQiZ3Io9ZvH/pDf8lwRkhTBTyhgvE1rSxVsDTpgJWcWTD1FLgC 7Ztg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=uyiUdjfj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gn41si6628086ejc.594.2021.10.28.14.19.00; Thu, 28 Oct 2021 14:19:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=uyiUdjfj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230498AbhJ1VTa (ORCPT + 99 others); Thu, 28 Oct 2021 17:19:30 -0400 Received: from gandalf.ozlabs.org ([150.107.74.76]:49901 "EHLO gandalf.ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230404AbhJ1VT3 (ORCPT ); Thu, 28 Oct 2021 17:19:29 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4HgJKQ2sdcz4xZ1; Fri, 29 Oct 2021 08:16:57 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1635455820; bh=77b6Wqpi5myKp7cmYqHYaq9WuF85O34cJH2RaLKBxUM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=uyiUdjfjUiWv6vLY7jPJidnMGI3NSeDl4eLBuV23oGFhYPyvu2bFtGHGd5UjDCyvS EPcs0FJpU+zeV3rnXH3I1HRdkP1sa1PH9STvSu4HVtdqDpeaumLWwwRBuztVCLcqsV eyCKH3SnBnLFlEXJQKdh55UPr8M/NLZw37ofcK6RjzeRpGG2s9OSGO6s8pYe+gPZ8X rn9NfJgV83EAWJ+AfigdvyXIZUkNIbJ//Pf9iM8LgXUxuAldqRI71V4L/h/xqpsdB7 knZKi/BNR7Qx679v7CqtWxPnHmNpD1/M+V08cW1VCJawFa4xLSI6USj2MDgcunhbO8 XJs60vWbZwvzw== Date: Fri, 29 Oct 2021 08:16:56 +1100 From: Stephen Rothwell To: Kefeng Wang Cc: Naresh Kamboju , linux-riscv , open list , Linux-Next Mailing List , , Paul Walmsley , Albert Ou , Palmer Dabbelt , Andy Shevchenko , Andrew Morton Subject: Re: riscv: delay.c:77:17: error: implicit declaration of function 'cpu_relax' [-Werror=implicit-function-declaration] Message-ID: <20211029081656.29a66889@canb.auug.org.au> In-Reply-To: <3555118a-914f-8c21-d5c9-7f3d969d357e@huawei.com> References: <3555118a-914f-8c21-d5c9-7f3d969d357e@huawei.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/A+1lE0AWxzXcwYX7hLCIbyc"; protocol="application/pgp-signature"; micalg=pgp-sha256 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/A+1lE0AWxzXcwYX7hLCIbyc Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, [cc'ing Andy and Andrew] On Thu, 28 Oct 2021 22:57:02 +0800 Kefeng Wang = wrote: > > From c83a7b83ff96ba77a7c26090ccdd42aa7722788f Mon Sep 17 00:00:00 2001 > From: Kefeng Wang > Date: Thu, 28 Oct 2021 23:03:13 +0800 > Subject: [PATCH] riscv: Fix implicit declaration of function 'cpu_relax' >=20 > Including to fix the implicit declaration of function > 'cpu_relax'. >=20 > Reported-by: Linux Kernel Functional Testing > Signed-off-by: Kefeng Wang > --- > After "include/linux/delay.h: replace kernel.h with the necessary inclus= ions", we need this include. >=20 > arch/riscv/lib/delay.c | 2 ++ > 1 file changed, 2 insertions(+) >=20 > diff --git a/arch/riscv/lib/delay.c b/arch/riscv/lib/delay.c > index f51c9a03bca1..8148dcdee894 100644 > --- a/arch/riscv/lib/delay.c > +++ b/arch/riscv/lib/delay.c > @@ -8,6 +8,8 @@ > #include > #include >=20 > +#include > + > /* > * This is copies from arch/arm/include/asm/delay.h > * > --=20 > 2.26.2 --=20 Cheers, Stephen Rothwell --Sig_/A+1lE0AWxzXcwYX7hLCIbyc Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmF7E0gACgkQAVBC80lX 0GzREQf/Q4E7qFg/IApEKzU4bhquoI5QuysvDZvnFl9WK9ha8r+sAN0ZBIeODfa4 bmeKbb8JRfhdWbOzIyOIKAgF6lEawqDCxvSnX/muItuBCAsYK2wFe8ZfbKwTTsGt vxADZEg9unMeiTH5BTlPGEpoCZFzMjha2eImRnLhysGjGa3jM9kUv+La24HizMmg Hc/9t/qaJ0SmPL90kNbkqen1/546aKjG3wi0tvm+WPRWFPY/FFrJEz9ipf/mR5cx yo09wZj7Rd5MQkI/VjGpRhsXsVltP4kWp2v4ZMBu+NnLB73ZzRaGuxWZsVNxuytr N8yX9UabqHI0m57sW2UfWozd5ApNsw== =ZeJi -----END PGP SIGNATURE----- --Sig_/A+1lE0AWxzXcwYX7hLCIbyc--