Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp553028ybt; Wed, 8 Jul 2020 06:21:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMIIc783Iz31gYaDAAw2FkrOjaL5cGX6YwLhhBqOWe7xwoL4RjVpChx5qTJpBRvU1UsnEZ X-Received: by 2002:aa7:da8d:: with SMTP id q13mr63231842eds.339.1594214515671; Wed, 08 Jul 2020 06:21:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594214515; cv=none; d=google.com; s=arc-20160816; b=dZ/MZS8V1Y3iKJbbsLk/fWF7bLYj6KlnSihrSznLBrRz5q61fRuUXtW882mCTqIZuR 8/Btxg5XPdLs82nTGKvpQfbZAyNVlxLHjyggt5mgPYUlwfrLy1OVatiR4Q/M6ieXjmuD PBk4ZHxZLxkB2dQTy6K/rZqnJst8vb4eABhpGJ3yz5RJLbk1s0VHX+LULoNdF9YH/DDe NLD9hadguD2v1+d8Z15FfJoWZ3LHiCZ5zavS/ItN4jNb1xbDaSQ/l8BvWoCAqTsCTX7Q ux+altID6ZtzafeAmUpfl/XHyLr60T7yIyE6ioScy6QiCqDJQ51vrC2iu3jIBLZ73W4t TWWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=1E21POru3zmdZ6HFzPnD0O/ns0rx/jP8kjgxQgRDrmM=; b=eJQZGpRcGKJ/6g0nE6Y0UBniS3r+LMo2O3SZEXmVBwCHwj+aC7lCDLOXIIDIX5J5yz /uDPj6X+39vELxWai3ktUVUK6CGd895RxFN2NPQTAjmioZztzKHwQ1NE+l8s5uGnOAdb x3HbeCfjmtHUQcMvLWBv2DhWzT5wJnLbvouipmQK24ClufxU8D0BwUHi4hOJRqmXlFfW e1brzh0Bwe1crxo8vxno54XrVYYMhyD5Jfh+PJ66bbnmzEzZ0jK68DMYRaGSvjXNQwZv wZK7tXoPL96PmvZP9h7e5cTuC7eihi1GUHm0oe820vZiWS2lK0eLh9qpY2Sgd/NoJulq CeHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ACwrozzz; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lm17si15050269ejb.366.2020.07.08.06.21.32; Wed, 08 Jul 2020 06:21:55 -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=@linaro.org header.s=google header.b=ACwrozzz; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729310AbgGHNVE (ORCPT + 99 others); Wed, 8 Jul 2020 09:21:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729147AbgGHNVE (ORCPT ); Wed, 8 Jul 2020 09:21:04 -0400 Received: from mail-vs1-xe41.google.com (mail-vs1-xe41.google.com [IPv6:2607:f8b0:4864:20::e41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40059C061A0B for ; Wed, 8 Jul 2020 06:21:04 -0700 (PDT) Received: by mail-vs1-xe41.google.com with SMTP id e15so24446694vsc.7 for ; Wed, 08 Jul 2020 06:21:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=1E21POru3zmdZ6HFzPnD0O/ns0rx/jP8kjgxQgRDrmM=; b=ACwrozzz+P2Wsxd3epGxe/MZr1epApOctZw7v0nt7erekf6hiPHQsQYIs1TGwglq+z oH7su7jwOkUFKrXZPMImb48iWNTUDwR14pQxYUYk94XHpY0aOJdjvtSvMFR9SE9t0fS9 Gy/sRycXcaXrruWp2HV74ktp9UlzO+TQrwGNkp+aaCVWyCjbrKOwe+DoU4xjJvAUaKpy 8cAts5nYJwdQkreEcCEWevLAY5k5CvdjiRSlbnCTk1xMhbKBNin7llwTxWhdhCyBKsWW SvxCo3CUtH32wxTbdxMYjT9pLz2kG2YHM6KoQSDm7AtWB7Zr/XZEAUWiOhG45LYvaX+C 7+tQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=1E21POru3zmdZ6HFzPnD0O/ns0rx/jP8kjgxQgRDrmM=; b=gbEvNhT3Am0+UummJqAbAi61l+StZfq4j+0JToOYHGLhYkYNVri7du+090fUi3P0rG 3LSBi8WwPGiK0f5uQxYncs87pOFDjiN5JBZ6prNmaZPirBcoeBFAKJ1nJSmfexA9eopA 1HW4hMo7GogFj7dfLs2Cl4zP2Rg4OGq6vpVIf/sgAKfHJ3fzkKHQTgC0UCTrhirjMV2N SdNuMuFalNFkM6SOff+WHcDLczOdUCu+bX+eCxW5L4J1c2IJFowzKSzzrSMrvh64kJXC D4bLeX3ZwrXg4VpiU09S0zNPjX++sCjmm/omd9VzzahA00ZmBa30mYB2y8dXKAb6+dGX SK1Q== X-Gm-Message-State: AOAM532Cdxd3VfEQQsucbLarNi7dYOP13/0uBEgZDyu3IomxUTtIePsg W66fEr4pDMFS9JrPH8Sk+HB86k9lO1W71qDaE7FoXg== X-Received: by 2002:a67:f888:: with SMTP id h8mr22995905vso.165.1594214462784; Wed, 08 Jul 2020 06:21:02 -0700 (PDT) MIME-Version: 1.0 References: <20200701124702.908713-1-lee.jones@linaro.org> <20200701124702.908713-16-lee.jones@linaro.org> <20200707064701.GC3500@dell> In-Reply-To: <20200707064701.GC3500@dell> From: Ulf Hansson Date: Wed, 8 Jul 2020 15:20:26 +0200 Message-ID: Subject: Re: [PATCH v2 15/15] mmc: host: sdhci-iproc: Do not define 'struct acpi_device_id' when !CONFIG_ACPI To: Lee Jones Cc: Linux ARM , Linux Kernel Mailing List , Adrian Hunter , Ray Jui , Scott Branden , BCM Kernel Feedback Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 7 Jul 2020 at 08:47, Lee Jones wrote: > > Since ACPI_PTR() is used to NULLify the value when !CONFIG_ACPI, > 'struct sdhci_iproc_acpi_ids' becomes defined but unused. > > Fixes the following W=3D1 kernel build warning: > > mmc/host/sdhci-iproc.c:297:36: warning: =E2=80=98sdhci_iproc_acpi_ids=E2= =80=99 defined but not used [-Wunused-const-variable=3D] > > Cc: Adrian Hunter > Cc: Ray Jui > Cc: Scott Branden > Cc: bcm-kernel-feedback-list@broadcom.com > Signed-off-by: Lee Jones Alright, so I have replaced v1 with this v2 on my next branch, thanks! Kind regards Uffe > > diff --git a/drivers/mmc/host/sdhci-iproc.c b/drivers/mmc/host/sdhci-ipro= c.c > index 225603148d7de..e2d8dfe90077e 100644 > --- a/drivers/mmc/host/sdhci-iproc.c > +++ b/drivers/mmc/host/sdhci-iproc.c > @@ -294,12 +294,14 @@ static const struct of_device_id sdhci_iproc_of_mat= ch[] =3D { > }; > MODULE_DEVICE_TABLE(of, sdhci_iproc_of_match); > > +#ifdef CONFIG_ACPI > static const struct acpi_device_id sdhci_iproc_acpi_ids[] =3D { > { .id =3D "BRCM5871", .driver_data =3D (kernel_ulong_t)&iproc_cyg= nus_data }, > { .id =3D "BRCM5872", .driver_data =3D (kernel_ulong_t)&iproc_dat= a }, > { /* sentinel */ } > }; > MODULE_DEVICE_TABLE(acpi, sdhci_iproc_acpi_ids); > +#endif > > static int sdhci_iproc_probe(struct platform_device *pdev) > {