[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20211029081656.29a66889@canb.auug.org.au>
Date: Fri, 29 Oct 2021 08:16:56 +1100
From: Stephen Rothwell <sfr@...b.auug.org.au>
To: Kefeng Wang <wangkefeng.wang@...wei.com>
Cc: Naresh Kamboju <naresh.kamboju@...aro.org>,
linux-riscv <linux-riscv@...ts.infradead.org>,
open list <linux-kernel@...r.kernel.org>,
Linux-Next Mailing List <linux-next@...r.kernel.org>,
<lkft-triage@...ts.linaro.org>,
Paul Walmsley <paul.walmsley@...ive.com>,
Albert Ou <aou@...s.berkeley.edu>,
Palmer Dabbelt <palmer@...belt.com>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: riscv: delay.c:77:17: error: implicit declaration of function
'cpu_relax' [-Werror=implicit-function-declaration]
Hi all,
[cc'ing Andy and Andrew]
On Thu, 28 Oct 2021 22:57:02 +0800 Kefeng Wang <wangkefeng.wang@...wei.com> wrote:
>
> From c83a7b83ff96ba77a7c26090ccdd42aa7722788f Mon Sep 17 00:00:00 2001
> From: Kefeng Wang <wangkefeng.wang@...wei.com>
> Date: Thu, 28 Oct 2021 23:03:13 +0800
> Subject: [PATCH] riscv: Fix implicit declaration of function 'cpu_relax'
>
> Including <asm/processor.h> to fix the implicit declaration of function
> 'cpu_relax'.
>
> Reported-by: Linux Kernel Functional Testing <lkft@...aro.org>
> Signed-off-by: Kefeng Wang <wangkefeng.wang@...wei.com>
> ---
> After "include/linux/delay.h: replace kernel.h with the necessary inclusions", we need this include.
>
> arch/riscv/lib/delay.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> 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 <linux/timex.h>
> #include <linux/export.h>
>
> +#include <asm/processor.h>
> +
> /*
> * This is copies from arch/arm/include/asm/delay.h
> *
> --
> 2.26.2
--
Cheers,
Stephen Rothwell
Content of type "application/pgp-signature" skipped
Powered by blists - more mailing lists