Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6667618rwb; Mon, 5 Dec 2022 16:07:25 -0800 (PST) X-Google-Smtp-Source: AA0mqf6oy5Wc8+X0/D++WN3PQAYXIiunG5BeiGiRLuPt+Syvnle0+Lq4cTxIDiOD70XSZ+xsoXaz X-Received: by 2002:a17:902:d3cc:b0:189:5c4d:603d with SMTP id w12-20020a170902d3cc00b001895c4d603dmr53780321plb.5.1670285245105; Mon, 05 Dec 2022 16:07:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670285245; cv=none; d=google.com; s=arc-20160816; b=BwLYNCEpNVPHDCSv/Xv/wx6hKVPvfuXF9kVS6LYtMPMMQWhU8QizuK1cO5cz/tKI0M uCeNm/rBRNr4xJp2+OzvcD3V36dQN5iZJAAcmNLJQU8fEOojscvTyZJdUJ3HgqiXywHi dRWBweuob2SeNXfRnotomCxmYPbDxIbsHDfviJlqPDqelVek+5sHeVfaOinZFW5fdbru Q6DzVP4Q7srwv7vsXEUMNaJsvQN2gv2xmfKjKMwEs7gEi0snqxhRHXdm8Yk/CuEZD8No 4MCJl3050uofiX/OLBtv3t5B5yB1sjM01mz4Ayu4CLR7gNKEh0KOK939mW38wM7VmN7D cMnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Du9fC8uNx8ue3fvIkuE2kVsiCyslxGafpD/Atw5Se3c=; b=rH61YNKOyUd6mGZyZBM3eDOfg94wKIW0UcWy3LIbA4xqyP/djB6i6dbam7szE77rmS GNVKcWPeh1UEOAFPa8dgBEEzzQZkRaEoUNXgu0NjDloRpxs8I6FtcRz3LfLLzbIYqufP 4h0PzdXc3Ds0X5kWcffwO1cOcZB9hVOcO2vitZyu68NVmqW+09ZLk1uRrAFq0KFdf+5s zjmhF7D8HDPNxPi3YpBBS9M0/m5MUVdaiaqb9NKaRAeEj8a4RfxcP8yl2FDuaMJbvspX aZGHCtQWCqiKXvGzCeNkFYchxUTERnTGlK87KuVz2l8CWhwgZcPPTFV8EwjCiSI4hoC/ qy5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=dVrWEz+M; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o8-20020a17090a4b4800b00213a9e1fa86si18088499pjl.73.2022.12.05.16.07.13; Mon, 05 Dec 2022 16:07:25 -0800 (PST) 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; dkim=pass header.i=@chromium.org header.s=google header.b=dVrWEz+M; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232179AbiLFAEh (ORCPT + 80 others); Mon, 5 Dec 2022 19:04:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232006AbiLFAEf (ORCPT ); Mon, 5 Dec 2022 19:04:35 -0500 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AED441CB24 for ; Mon, 5 Dec 2022 16:04:32 -0800 (PST) Received: by mail-pg1-x52d.google.com with SMTP id r18so11880890pgr.12 for ; Mon, 05 Dec 2022 16:04:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Du9fC8uNx8ue3fvIkuE2kVsiCyslxGafpD/Atw5Se3c=; b=dVrWEz+M2VbizK97uaojc0bn58XNs+jECIOm4Dk4fuhywQcVIsQVd6m7RXVPtwsL8m ga6n0cdybF4Sh/FS6pqSX36CNLgxugRZ74aKcrmpBhw/lymbZwnHdW5+zTwgAZhesOFX P77S7byXu92e/BpKcIVT+gkAcCOPiTUr9HXqE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Du9fC8uNx8ue3fvIkuE2kVsiCyslxGafpD/Atw5Se3c=; b=bnX89aIpmB3gEu1RuLt+Bqw+ChlrYL3ptb/VVP3/EIExpQE7R55eNA4nb/4cI9MgTx 0xWsyNLqpIuzMIn/WPeid1rwbL7iBJhcpOa/w7wKK2An5YIePHOIPKuA05yxxkuVjolk 5JZUZw2OSk27r0vMjVGjlteLe4Nc9aDjD1SF6qdjutc+ct7eJQ5B/d2pv54fX6anH6xt ndWByutSzM9GOOjuLrOhby38hT+2AvX/OsSAqZtZ2zdPyEpipgW6jEzqU6cCV3IvTH3D OJ6baqeKqXTAbXfUAF1Niq9ehTmn5ojv35e1ZjrX/2zHKuch0DJ7DNrB9mUmx55G4UON KwXQ== X-Gm-Message-State: ANoB5pkWkThvwMDIXtBlzvWykIjrlOUhobYClj7GDagPicW+lTNWB+Rq 2cWZAYSnpqbpDqTafIiv4Yd0lQ== X-Received: by 2002:a63:de4a:0:b0:429:983d:22f8 with SMTP id y10-20020a63de4a000000b00429983d22f8mr56608777pgi.165.1670285072207; Mon, 05 Dec 2022 16:04:32 -0800 (PST) Received: from localhost ([2620:15c:9d:2:9b83:ae6f:f47b:bb4d]) by smtp.gmail.com with UTF8SMTPSA id z27-20020aa79e5b000000b00576f9773c81sm2382267pfq.211.2022.12.05.16.04.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 05 Dec 2022 16:04:31 -0800 (PST) From: Brian Norris To: Ulf Hansson Cc: linux-mmc@vger.kernel.org, Florian Fainelli , Adrian Hunter , Al Cooper , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Broadcom internal kernel review list , Brian Norris , kernel test robot Subject: [PATCH] mmc: sdhci-brcmstb: Resolve "unused" warnings with CONFIG_OF=n Date: Mon, 5 Dec 2022 16:04:06 -0800 Message-Id: <20221205160353.1.I5fa28f1045f17fb9285d507accf139f8b2a8f4b5@changeid> X-Mailer: git-send-email 2.39.0.rc0.267.gcb52ba06e7-goog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 With W=1, we can see this gcc warning: drivers/mmc/host/sdhci-brcmstb.c:182:34: warning: ‘sdhci_brcm_of_match’ defined but not used [-Wunused-const-variable=] 182 | static const struct of_device_id sdhci_brcm_of_match[] = { | ^~~~~~~~~~~~~~~~~~~ Rather than play around more with #ifdef's, the simplest solution is to just mark this __maybe_unused. Fixes: 1fad8422c989 ("mmc: sdhci-brcmstb: Allow building with COMPILE_TEST") Reported-by: kernel test robot Link: https://lore.kernel.org/all/202212060700.NjMecjxS-lkp@intel.com/ Signed-off-by: Brian Norris --- drivers/mmc/host/sdhci-brcmstb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-brcmstb.c b/drivers/mmc/host/sdhci-brcmstb.c index 55d8bd232695..f2cf3d70db79 100644 --- a/drivers/mmc/host/sdhci-brcmstb.c +++ b/drivers/mmc/host/sdhci-brcmstb.c @@ -179,7 +179,7 @@ static const struct brcmstb_match_priv match_priv_7216 = { .ops = &sdhci_brcmstb_ops_7216, }; -static const struct of_device_id sdhci_brcm_of_match[] = { +static const struct of_device_id __maybe_unused sdhci_brcm_of_match[] = { { .compatible = "brcm,bcm7425-sdhci", .data = &match_priv_7425 }, { .compatible = "brcm,bcm7445-sdhci", .data = &match_priv_7445 }, { .compatible = "brcm,bcm7216-sdhci", .data = &match_priv_7216 }, -- 2.39.0.rc0.267.gcb52ba06e7-goog