From patchwork Tue Dec 6 00:04:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 13065215 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2267EC4708C for ; Tue, 6 Dec 2022 00:05:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=hTpw0xacVzCzfOlPEAJFKzgJU48uRIvvgecuhzJVfNg=; b=qSVf5VSoDFRi63 UKTAa+rTCGcLFN9ITBflAa4SFVSEKd1TyWzcwuGntOzygHXgblxCOH938rBVWVTTiIK8masVKMue9 EYfkDpUmBk5vpwIo3S1pA/0ZXF9iRfFzkYp43yUgK6xcMYCv67J2C7kPd0NLvsNHCM3kS2zlFDVbs a5BNXIxWf8R7PjtWIkpqU+1U+HMrxlrZF73auuQ3Ns5B4NqRkb/X2J+baIu13NOUibOtP0AiaJycx ILVDd7vBMWIA8bmor6Yrgfh6HUNyJIMiGwlO3dzlVDRetkJv0VsPRYAhMqdQeQNbHV/BfHouV6xi0 p9frkTHZwNAdE2bSQNVA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p2LRt-00Dset-VH; Tue, 06 Dec 2022 00:04:38 +0000 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p2LRq-00Dsdh-TB for linux-arm-kernel@lists.infradead.org; Tue, 06 Dec 2022 00:04:36 +0000 Received: by mail-pf1-x434.google.com with SMTP id 124so13033777pfy.0 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=AFaymkKChaxmAiVB1vPqMsuDf4hyJgypI9dIK2arAwEqwD+yvVYMl5PN7vIhcn2la3 ZIT8Tpf41hiFLDJbPydzgIa4TBAvEhpo/4/nGQVHcOjoZvGSoyce7WmtPXAxYBqmjhWo EVF2vancwvcHEPNp2s3teQy4cnJfvohviH5mt+vsLFN6V3p0VE9G/Fx9T71t8Q0MWC6E re+bLC7LdDS9ewnraU14v9vjtxmrR/mIBs5CacYKNV+hzRB8+1BSoda2gH5vaVuC8DuL M7m5BJ8gqImdI4WSeiRqBXBO7WNIaT9aCt0Kyf3oxE0D1Itgy+sftjNMTdTtlAJQfP62 Qidg== X-Gm-Message-State: ANoB5plobjOBgK0pIe4XUvKhEJ0aMaQ9oIJcfGFV5+wn/wnBhJEyA6dA CT86m7vvkbvO2dRrICW+1qFKXw== X-Google-Smtp-Source: AA0mqf6cuyzm+Fr2zJihuS/WC3/UZVnopQl0riVV+wrA94t5wzAD8Eq3DBs/aDN9xSvKEHFXMqaDCg== 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221205_160434_974310_2DCC0101 X-CRM114-Status: GOOD ( 13.12 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 Acked-by: Florian Fainelli --- 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 },