Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp66863rwd; Wed, 31 May 2023 19:09:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ778JZq7RHgx4r9FM3EyH0MYg/Qs332oNNhgAJ65s+6Z8rbI7+eoMor+765JqjlDHznNo0s X-Received: by 2002:a05:6a20:6a1e:b0:10b:dca4:8a3b with SMTP id p30-20020a056a206a1e00b0010bdca48a3bmr6823168pzk.31.1685585363304; Wed, 31 May 2023 19:09:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685585363; cv=none; d=google.com; s=arc-20160816; b=bY5ohqWR4vaiKzJifWRnPXZ5q65dqfARmztwmzgqNMvny6kPlf8X0cueXOF4zZamzq K7vtZidh8OKGAMqeTvKKdfcup+mGGVzsXIxw1yNUJKnMW8bQDFgW2MXd71bfc1ezq3mS 1yfHGyE3Z0lcmu6TFjIGMr+aKYRjF4xPL23ItlKNh/EzC10yi2sCtCT3LU+u0zjwW2FJ 8emfCT3YyFsg5Ix60Rk9LzU4+dHoIrFYIaO0g9sSg0W8NKXGkp7+vw62FYBbjTCkrS2l 4c9/togr3aBVyE+g/7KvhMxJcMIonIFkQnpXExz4suInZ2kFFPejE7qm0CFPF6Cq2Z6n hfWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=Ki/6nh89dSavYI0Y7NyJ99SRknlR+38AgCl9fXccpso=; b=WwKC/090xUEwcl74Aa71XI4OyrMSfH/wiz58n5h/MVNcqDZQ9ilbFza5G1DIMjkDXQ U0LRs9kV+vlM9Ka/u66dn9mnus6xNb1Trq6s5ajzLiEgaD0mJMMN8kQ1hIxLEJdae1sy S24tYMe2ixoIgzvXP+nIMfvXvR8AiWWRhZGnrWwC68D0NOHRF9MOIWCVHzrnY24XDfzE t5jLsW/3hGGHn/u9Kd4Q2wrzQXyayh5DKnKLQkf2wUdJO05L9TknPLGLXboOWp5TjWw0 E/ZjP36+nBZnCIupLTVMwtH5HA1Khao0ihpC6JZouEQhj2Kl3uHAZoF3ppajSSXdT/VI 9qBQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c9-20020a170902d48900b001b039693da8si1947407plg.635.2023.05.31.19.09.00; Wed, 31 May 2023 19:09:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230143AbjFABs4 (ORCPT + 99 others); Wed, 31 May 2023 21:48:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229618AbjFABsy (ORCPT ); Wed, 31 May 2023 21:48:54 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57C5BA3; Wed, 31 May 2023 18:48:52 -0700 (PDT) Received: from dggpemm500002.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4QWpqy5DdHzLqM9; Thu, 1 Jun 2023 09:45:50 +0800 (CST) Received: from [10.174.178.247] (10.174.178.247) by dggpemm500002.china.huawei.com (7.185.36.229) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Thu, 1 Jun 2023 09:48:49 +0800 Subject: Re: [PATCH] acpi: Fix header declaration of acpi_arch_dma_setup() w/o CONFIG_ACPI To: Dave Jiang , , CC: kernel test robot , Jianmin Lv , "Rafael J. Wysocki" , , , , , References: <168477156440.3873520.6153672647621739139.stgit@djiang5-mobl3> From: Hanjun Guo Message-ID: <0953941a-ad4e-ba7e-4f4e-64c47de71f0b@huawei.com> Date: Thu, 1 Jun 2023 09:48:32 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <168477156440.3873520.6153672647621739139.stgit@djiang5-mobl3> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.178.247] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpemm500002.china.huawei.com (7.185.36.229) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dave, Sorry for the late reply, I have some comments inline. On 2023/5/23 0:06, Dave Jiang wrote: > arm64 build can be done without CONFIG_ACPI. The ifdef bits for > acpi_arch_dma_setup() is placed inside CONFIG_ACPI. When CONFIG_ACPI is > not set, this causes warning reported by kernel test bot. Move the > prototype declaration for acpi_arch_dma_setup() outside of CONFIG_ACPI. ... > >>> drivers/acpi/arm64/dma.c:7:6: warning: no previous prototype for function 'acpi_arch_dma_setup' [-Wmissing-prototypes] > void acpi_arch_dma_setup(struct device *dev) > ^ > drivers/acpi/arm64/dma.c:7:1: note: declare 'static' if the function is not intended to be used outside of this translation unit > void acpi_arch_dma_setup(struct device *dev) > ^ > static > 1 warning generated. drivers/acpi can only be compiled with CONFIG_ACPI=y, so drivers/acpi/arm64/ will be the same, not sure how to trigger this compile warning. I disable CONFIG_ACPI on my ARM64 machine, but didn't get the warning you reported. > > Reported-by: kernel test robot > Closes: https://lore.kernel.org/oe-kbuild-all/202305200933.afKCLlxS-lkp@intel.com/ How to generate the kernel config file as you kindly attached in the link? Thanks Hanjun