From patchwork Fri Mar 10 22:28:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170332 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 37128C6FA99 for ; Fri, 10 Mar 2023 22:46:10 +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:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=BZq8xkiMmSFqOHkPXSUrCCR/+/7EKmUzlP/nAjdyXJA=; b=qTg+/M8dc4DVGD XjiKySJIju4cpIbP+/FSJVuOMTjJdTUH/EYqnV6/C6QansK0nq/QLbfwVlrKNohEbloCGZl5QVnC7 F4/VJp8gSp2e/0v7m85FK1Q3CpWt2otAFeqfR7ouYuEfHnL1MjqrzalETWEmjGzOG57tnIPx6Bw3A IepL0W11Zu4YPR1hE99UEE1Ix2ouQE8bXdKn7zvpYaZBgAdGsC9yPWlsBkTo/ZtbmVt1r0WtrCxGF ZA73u87P2EIQQGv2XPKL4noxH087v+DxLKGz8zNariNUEv5s9VlmCsatJKIsUc/6Y6mkfTq8byxOw BiRPKW3hah4BOlLQNlOQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1palUo-00GTWi-B5; Fri, 10 Mar 2023 22:45:54 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1palUa-00GTQE-H3 for linux-amlogic@bombadil.infradead.org; Fri, 10 Mar 2023 22:45:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:Content-Type :MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:To:From:Sender: Reply-To:Cc:Content-ID:Content-Description; bh=FIaJ3CNzZzvLZoER+JbEXfRFWn2Y0AmXfJ1n98/Pih8=; b=jBKtytD/XpicPGfWjERkeApm9S 9wvcBQkvL8UmK//tqB/Zs4QsRTokY/zhaHj3Ch5MFXs+QqT1T3aUAiLZ6xUgFYGRC5iMV/E8ElhSG tcM1bsQxCBU78dt12+HOAC2KSnrFydkbTsmmUlGr0B6ZUKzHL1coJEslVvhGpvl5dXejyAHY2n7uk zxMhEmJ4FWhg1KBRZL+OqoWpgt+Lyl2OvwJjScnZjiEJk1lXm2vgTy7MaMr6ZLtg5n1dTENOVdAs6 dTnoPny4pdwDijOE7TgX3/tsGWdfw5/VioFnQlSARRZE0Wnv5ffKV2VlRjWigFTglAfYMaJaT6tbi 5oSQ/DZQ==; Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1palEi-000apn-2e for linux-amlogic@lists.infradead.org; Fri, 10 Mar 2023 22:29:20 +0000 Received: by mail-ed1-x533.google.com with SMTP id x3so26395262edb.10 for ; Fri, 10 Mar 2023 14:29:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678487356; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=FIaJ3CNzZzvLZoER+JbEXfRFWn2Y0AmXfJ1n98/Pih8=; b=fb1NJ83RjyRvSKj0rXB4LrfAGEIsxmSjejZNxPWkM53UJeQEzoPANpAkGjEWOssWNr cG8jEKufjok4zpc1P6XdyVx3QaRYE94wyiKjaPDo1STMngh6goWGRQgqTNJFuGRL8o+5 dosIz0grQHvWJ0qC+Mg5QtyJ9+7JmX4qqgUjvLi6gByOTaDTzKcJoaZCnrt8c/JUl6ae oMaPC7T23+IoKlugxJTFWl9dEDgMuAMv7zWHIf32Ky7j9j/+DCTTTzJL+gyTAPENFePG yMGr9hnSbko6tWLPskVscE2ZO9vSFofD1V1rjQkrp2iQL55A/d/IUHnCnq+xGpAJ7o7u rwOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678487356; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FIaJ3CNzZzvLZoER+JbEXfRFWn2Y0AmXfJ1n98/Pih8=; b=0DI84o/STHvAublIZO1j4vlRlaXcBxunPUMRKuuCeAGsMIIjUGcE/451hSfrciPvDZ VTR4x6CtCS4gxor6/VyWOrtEpJMlSr2lM42UBo+kR12owHicU9i8UwEcd2j7mwHsdfv5 11eg6H16thhkb380uAia4FyDMMasHjvBkNIe+LKQfQ83DAmG1TzhE5MTEu6qxL+HvFzg u8pk6YsxHkoCr2p4r+VE26brBaVzaPL7mmIYldGO+2PPPKyC44fGmqgIFnOAl2pbcq5D Etw5xPchZLB2sxbf9nvfPScLxFvkASW1mPL1Z6K66YQCPWPasqS9LEOMVgUa90U/R5nQ GaEA== X-Gm-Message-State: AO0yUKVYG4L1juHZmGo1amzK9Vf6Gr5bAD2fbG6dhZLo+OmJtGfgjOXg HcjaSJiL2YW3jNpH4VWOqGpEpw== X-Google-Smtp-Source: AK7set9oOs+ouUsV12VicHtBBZ+mnisQzcWRj4a6R7IcGKs+Ki++e/B2Xo1UC0guT3zbocHXFlq8Rg== X-Received: by 2002:aa7:dcc8:0:b0:4fa:57bf:141a with SMTP id w8-20020aa7dcc8000000b004fa57bf141amr213950edu.32.1678487356567; Fri, 10 Mar 2023 14:29:16 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:34:52e3:a77e:cac5]) by smtp.gmail.com with ESMTPSA id x101-20020a50baee000000b004aeeb476c5bsm525467ede.24.2023.03.10.14.29.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Mar 2023 14:29:16 -0800 (PST) From: Krzysztof Kozlowski To: Mark Brown , Kamal Dasu , Broadcom internal kernel review list , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Daniel Mack , Haojian Zhuang , Robert Jarzmik , Heiko Stuebner , Krzysztof Kozlowski , Andi Shyti , Alim Akhtar , Stephen Boyd , Matthias Brugger , AngeloGioacchino Del Regno , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH 13/16] spi: bcm-qspi: Mark OF related data as maybe unused Date: Fri, 10 Mar 2023 23:28:54 +0100 Message-Id: <20230310222857.315629-13-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230310222857.315629-1-krzysztof.kozlowski@linaro.org> References: <20230310222857.315629-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230310_222918_278915_57492DEF X-CRM114-Status: GOOD ( 12.90 ) X-BeenThere: linux-amlogic@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-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org The driver can be compile tested with !CONFIG_OF making certain data unused: drivers/spi/spi-bcm-qspi.c:1460:34: error: ‘bcm_qspi_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/spi/spi-bcm-qspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-bcm-qspi.c b/drivers/spi/spi-bcm-qspi.c index 0eee574d3e1f..1de1b669fc96 100644 --- a/drivers/spi/spi-bcm-qspi.c +++ b/drivers/spi/spi-bcm-qspi.c @@ -1457,7 +1457,7 @@ static const struct bcm_qspi_data bcm_qspi_spcr3_data = { .has_spcr3_sysclk = true, }; -static const struct of_device_id bcm_qspi_of_match[] = { +static const struct of_device_id bcm_qspi_of_match[] __maybe_unused = { { .compatible = "brcm,spi-bcm7445-qspi", .data = &bcm_qspi_rev_data,