Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp564717rwd; Thu, 1 Jun 2023 04:04:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ68W4SGTuXm2zcUWeqkA5dKQfg6PcJjxR41DpgOmJOszjj2KKFjR+wRzMTvj6XaoOKHhO8d X-Received: by 2002:a17:903:2307:b0:1ac:451d:34b with SMTP id d7-20020a170903230700b001ac451d034bmr7584152plh.9.1685617495715; Thu, 01 Jun 2023 04:04:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685617495; cv=none; d=google.com; s=arc-20160816; b=d8mwI0wuqbibhiWDvdl/N0iZyvfT22wrFEInEF8V76tJErph15vTfQ9PkbAmE+AdkC OUQPKNKF4tMvVn46lBPibi7VC5z0dwlkD+2VpvErdeWrkEyZ1vcJtmTORzpFtO9aXotl jKChIMeAZOvJkNG5VXDELjrAhEQQtN2QoL+p5Rg/4HEw88ed0ikRykZ89Jfw4bcYBhfd drdc1WvGVU406Zo5PfjcrKKCvNnU7TxioMGONUO0A/2riSL5rwumB1MJ0eAnMcPVEryg jfdLHo+dfO0gHsz0vrdTv0B+2rcxS6sUw1+9BI5hDPtYIA1Fo/SDSpHgq36IujwCgbQg IaqQ== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id; bh=p2dIH7/2doeLH9W26gysE0pjlIepnZjugCGsT7aqBM8=; b=qxAV3gsa+kT/1PTMxfmZF9Sk0DzwbCk7R4WRvHKBwDEwLgWOG2Y5CAh0JlpPBZ05kk qc/q5zrTVHYLb1ELpwK4bDL8gVaC6eGPGCNW27/yFMOh/okNifO2lIVTNPx11RD3d0J5 kVed2vrXHZiv5O4e/mZkuPlcM8dtngS4ybWFD10c3u3RoH7RxJzPfGyO1i/Oc48bNKVN GqR5wZY7fuQ6c64DDjNb9u+kkhtvRViXiZpvlhM5Q4hFKFHMcqtewEAHaiU1osHnUvVV YuCSQecAl3URzsE2bJq8e5iBjOle12F315gswDnISVRhtIgxZOpBCRkauY5kRs+waV1R bbkA== 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=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b5-20020a170902650500b001a64fba3382si574904plk.148.2023.06.01.04.04.41; Thu, 01 Jun 2023 04:04:55 -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=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232229AbjFAKbj (ORCPT + 99 others); Thu, 1 Jun 2023 06:31:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230399AbjFAKbh (ORCPT ); Thu, 1 Jun 2023 06:31:37 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D7E2D185; Thu, 1 Jun 2023 03:31:34 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id F4044169C; Thu, 1 Jun 2023 03:32:19 -0700 (PDT) Received: from [10.57.84.85] (unknown [10.57.84.85]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C79D73F663; Thu, 1 Jun 2023 03:31:32 -0700 (PDT) Message-ID: <1751a3c4-a6b0-0a8c-cd1b-c05d25d30380@arm.com> Date: Thu, 1 Jun 2023 11:31:27 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [PATCH] acpi: Fix header declaration of acpi_arch_dma_setup() w/o CONFIG_ACPI To: Hanjun Guo , Dave Jiang , lpieralisi@kernel.org, sudeep.holla@arm.com Cc: kernel test robot , Jianmin Lv , "Rafael J. Wysocki" , rafael@kernel.org, lenb@kernel.org, linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <168477156440.3873520.6153672647621739139.stgit@djiang5-mobl3> <0953941a-ad4e-ba7e-4f4e-64c47de71f0b@huawei.com> Content-Language: en-GB From: Robin Murphy In-Reply-To: <0953941a-ad4e-ba7e-4f4e-64c47de71f0b@huawei.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,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 On 2023-06-01 02:48, Hanjun Guo wrote: > 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. Looking at the linked LKP report, it seems it's it's explicitly trying to build drivers/acpi/arm64/ despite the config: mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/acpi/arm64/ So I guess it's a problem with the LKP setup? In general, trying to build arbitrary parts of the kernel which are configured out can never be expected to work. Thanks, Robin.