Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1744205ybt; Thu, 2 Jul 2020 12:43:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZ6CRsYoz+94BebS36/C9lOEBxW/Uejw3gc8TY5GbE49eWmbMDxVfcvGoPpfutmSSpyole X-Received: by 2002:aa7:c816:: with SMTP id a22mr19528360edt.28.1593719004885; Thu, 02 Jul 2020 12:43:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593719004; cv=none; d=google.com; s=arc-20160816; b=vmBGHd2FQ30Ko6Zx0QjLC2RQD6lQ152X2wRBVkhmV/pcq+3ORetQ7Awznp92QgU/wv 6l+negK59VHXj0zh1s8M9hVMcHv5nZVZjnuQ1Wf+T1nnyjAIDUpDJSEJKzpNrghxtvL5 1Lupw3oDUzIuaoePLqSJNw8z8LWnsN7KeOSFFyp+hNAfmNdR7mcovEzAIWaABe45iZd2 7q1YGOQWTGCJf0F38aAI+0RnJsVLpIZm541MD5abBB1V7r5B+qVadF0iBVFHGzMW2Icy iWdVjIEdt8XrYlwdw+MEdQrUa3drUQn4bbSv5DRLPAKSFqabSRYeSkryRTowRsuTuSO+ TCbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=boCB++59YR1MS+YXDEsix8grOvspQ3z1Y08y0ZLgZ3M=; b=WW2GFeBryt+dAf0Y7CQ7T5rOKfVT0exZbIbl1a9BihZ9s7/JmXsAWlzEtJo4Vvy8tb yPD/7OlLFNXhDXjk9z4SWPG9z0MYItAhUMswi174T7C6QNFnbOyZ3SMF/vtrg7043Evi 9H7vKufElaPyizoSF+V8iUVzIkD3R7vx95Sp3+kvJ2VriMYuXZ7dkNAflzxhSVefNDWj mmcaHNnmguGn+f1p0oDqetpDZW8gopfLCHBd24J0jTwNDbAObRTQihfdgqlwXPH9wyYb /hh8yUI6XXTLKqxetMdCONLDJF1DFg90nMpOJlU7Bu1pYSxVuW4+5wuJsLMSw48uDyw3 z8Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=PQF+y8KN; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e6si6516453ejx.444.2020.07.02.12.42.59; Thu, 02 Jul 2020 12:43:24 -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=@broadcom.com header.s=google header.b=PQF+y8KN; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726010AbgGBTmr (ORCPT + 99 others); Thu, 2 Jul 2020 15:42:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725915AbgGBTmr (ORCPT ); Thu, 2 Jul 2020 15:42:47 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C70AC08C5C1 for ; Thu, 2 Jul 2020 12:42:47 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id f18so29900098wml.3 for ; Thu, 02 Jul 2020 12:42:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=boCB++59YR1MS+YXDEsix8grOvspQ3z1Y08y0ZLgZ3M=; b=PQF+y8KNYwb22Q8KdP3OAcdMJA4IqMbKEHL0VW2HKOSAifxvWv7JV3/2jSaAMwQKmC yyrqxksTOJuDhBpap8LABoL21w9yiPKPgAcBHvQ6mQUqZd1ObsFhLXukaTkela0tkKkY u+xQcjPcxExrm1ORvBwlxnQ2Op6CsKYkAjzms= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=boCB++59YR1MS+YXDEsix8grOvspQ3z1Y08y0ZLgZ3M=; b=TlAudpFjifSpcoXiLaJ8CI9Or4KPdPLNkYZae8fJece5JkXYVUk0emuPF3L3uY4QDf 9UJTw365PsfCTWrctrPjcG54x4BULZMGwXzHpzFQTcVfgHLiBkNH4A5SHjN2cR22svIH zYooRmA5haCcc03Hgv3E975f+oOu7lSMhnA5HGtJR4DGDIKXtd3+9hxiQndcySMVsEbp 6bOiyZztbg78GWS85kD0VKR3bN76am2dH1fF4sO7RVyVsJ1uquA8FQ5KWUAdtjXsnTCJ BwWHvhENoaA561fOsgsypPiEH5dduG23yf0JBvywqiWPA1nB4iKyX4KSfeLZpflbJ/QQ vJ/A== X-Gm-Message-State: AOAM533KVSTzlaW0hRnokyN3M3W95S1Yr5uAtPkuP7NziSS1tWKXNyp5 1mC5P4dUpWFpZfrPcDsNJN78NA== X-Received: by 2002:a7b:c746:: with SMTP id w6mr35078507wmk.171.1593718965566; Thu, 02 Jul 2020 12:42:45 -0700 (PDT) Received: from [10.136.13.65] ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id y6sm11965936wmy.0.2020.07.02.12.42.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 02 Jul 2020 12:42:44 -0700 (PDT) Subject: Re: [PATCH 15/15] mmc: host: sdhci-iproc: Tell the compiler that ACPI functions may not be used To: Lee Jones , ulf.hansson@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Adrian Hunter , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com References: <20200701124702.908713-1-lee.jones@linaro.org> <20200701124702.908713-16-lee.jones@linaro.org> From: Scott Branden Message-ID: <3a32b98c-45c6-6f8d-0853-161f91e65b57@broadcom.com> Date: Thu, 2 Jul 2020 12:42:40 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200701124702.908713-16-lee.jones@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Lee, On 2020-07-01 5:47 a.m., Lee Jones wrote: > ... as is the case when !CONFIG_ACPI. > > Fixes the following W=1 kernel build warning: > > mmc/host/sdhci-iproc.c:297:36: warning: ‘sdhci_iproc_acpi_ids’ defined but not used [-Wunused-const-variable=] > > Cc: Adrian Hunter > Cc: Ray Jui > Cc: Scott Branden > Cc: bcm-kernel-feedback-list@broadcom.com > Signed-off-by: Lee Jones > --- > drivers/mmc/host/sdhci-iproc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mmc/host/sdhci-iproc.c b/drivers/mmc/host/sdhci-iproc.c > index 225603148d7de..9c7d130205edd 100644 > --- a/drivers/mmc/host/sdhci-iproc.c > +++ b/drivers/mmc/host/sdhci-iproc.c > @@ -294,7 +294,7 @@ static const struct of_device_id sdhci_iproc_of_match[] = { > }; > MODULE_DEVICE_TABLE(of, sdhci_iproc_of_match); > Would it better to compile this in if CONFIG_ACPI is defined instead? #if CONFIG_ACPI > -static const struct acpi_device_id sdhci_iproc_acpi_ids[] = { > +static const struct acpi_device_id __maybe_unused sdhci_iproc_acpi_ids[] = { > { .id = "BRCM5871", .driver_data = (kernel_ulong_t)&iproc_cygnus_data }, > { .id = "BRCM5872", .driver_data = (kernel_ulong_t)&iproc_data }, > { /* sentinel */ }