Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1670083pxb; Thu, 28 Oct 2021 07:59:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylrWqKI34Shb+9B8oUVT6hgKReJsTBJN/TXz8Mf6daTBNAZ9dI+OgKhFh8vT2vxFUE+sJI X-Received: by 2002:a17:90b:380a:: with SMTP id mq10mr13267283pjb.182.1635433178571; Thu, 28 Oct 2021 07:59:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635433178; cv=none; d=google.com; s=arc-20160816; b=TGzrLLJC5p6DfDVeGsXhUbwqYaA0xs39ghzj5gJnQlLkVu7TsbRT7fpgCqsqhlJSWI RV5CDq2TGx9rr/78ze4AayFTM2+stn2KwSDDoupZc57j/i00T/aGoko6o9bGQlbfgf86 G5Wd52eCxiQ+2YrOf+2FnT5cffqIzPkLlt7NoICKTh0pRidEFxyFUKCid2AEhz0enOtQ +N5rbqGMglVlrSdAV4z1mYDumd2eiYOFylz4eGWXEiqTXD6+yn7HPeQJfGTfxfWnP++y F+ilDJ+IfciHn3WWLDWxBlWtWFC9j7cEXDG4BbXswCP3RFf7jzI2K5BKzeTmM+IT51jg MoZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=gZWlg8+65dBvAynUJOjM2E0qv2FKo/McUpei6KvlmBI=; b=pUqkdt0cs+QSkRYYFZA6MBSC32qHzqYVdp7T4Rgcq+w52KqRv+RI74JJHORBZk95kM NaKqwRFKRug3vzx9xTY3CHgQXO/bpuRVXQqoD95jQJ6j9EPz9R72iLKTaS6c93VcsDex +HKP9YiHqs1Z3rFX1ge0Z4gb1JI7coO+DwOhZPcAkfnLrHUcZmFIZmQgCnPLtgek5fUd RN7p9hhsd77D34VBDO+oASFT4Jxb7/2oJFLee5gqwdobVh04JeXHd56z2uR9H0XmmoNq 7/ZrD2ybQ30gfgYSheYP+C4Q62Wm7/S0cXYvsUEFBAD1PRsd44dEav6TNJBIu+RKUDT4 Zd4A== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c9si3731443pjg.134.2021.10.28.07.59.25; Thu, 28 Oct 2021 07:59:38 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231370AbhJ1O7n (ORCPT + 99 others); Thu, 28 Oct 2021 10:59:43 -0400 Received: from szxga03-in.huawei.com ([45.249.212.189]:26203 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230406AbhJ1O7n (ORCPT ); Thu, 28 Oct 2021 10:59:43 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.53]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4Hg7sT2FS0z8ttS; Thu, 28 Oct 2021 22:55:41 +0800 (CST) Received: from dggpemm500001.china.huawei.com (7.185.36.107) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.15; Thu, 28 Oct 2021 22:57:04 +0800 Received: from [10.174.177.243] (10.174.177.243) by dggpemm500001.china.huawei.com (7.185.36.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2308.15; Thu, 28 Oct 2021 22:57:03 +0800 Message-ID: <3555118a-914f-8c21-d5c9-7f3d969d357e@huawei.com> Date: Thu, 28 Oct 2021 22:57:02 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: riscv: delay.c:77:17: error: implicit declaration of function 'cpu_relax' [-Werror=implicit-function-declaration] Content-Language: en-US To: Naresh Kamboju , linux-riscv , open list , Linux-Next Mailing List , CC: Paul Walmsley , Albert Ou , Palmer Dabbelt , "Stephen Rothwell" , Kefeng Wang References: From: Kefeng Wang In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.177.243] X-ClientProxiedBy: dggeme707-chm.china.huawei.com (10.1.199.103) To dggpemm500001.china.huawei.com (7.185.36.107) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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' Including to fix the implicit declaration of function 'cpu_relax'. Reported-by: Linux Kernel Functional Testing Signed-off-by: Kefeng Wang --- 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 #include +#include + /* * This is copies from arch/arm/include/asm/delay.h * -- 2.26.2