From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8F01DC4708D for ; Fri, 28 May 2021 12:43:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 72A28611BD for ; Fri, 28 May 2021 12:43:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235597AbhE1Mov (ORCPT ); Fri, 28 May 2021 08:44:51 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:42560 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236514AbhE1MoD (ORCPT ); Fri, 28 May 2021 08:44:03 -0400 Received: from mail-ua1-f71.google.com ([209.85.222.71]) by youngberry.canonical.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1lmboq-000838-5k for linux-kernel@vger.kernel.org; Fri, 28 May 2021 12:42:28 +0000 Received: by mail-ua1-f71.google.com with SMTP id o7-20020ab01e870000b029020d37e3e144so1870837uak.1 for ; Fri, 28 May 2021 05:42:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=BVM99Rq9YYpmqFYN93ErdoKv+Sqk4U9Fa7zLEpo/FoQ=; b=CrQOzEAyfnWMv4x3nUCM2zoDrmtdwDZEKG3i3fHMEtLk/qObpCgj9U49ucr0MaoQO+ VlnjpJsuoUvtsVMQETYHGJLnpA7KNcZoWatV13uJDppVe9MDQlw1UewimiB6M+LsBLYV GCYKsog5rFk9ZdGh9aNRjbTtg0e3IwWwsME9L1r+EXUeLxInbKx9EjKPbkePqLWxHQAT p0EKLN8NJWOd77sX/WtmYCG9gPmWONw5d7XOwxkzIJMfgjF4/PWbbUdsfw8nPg/+xRpv /kSE1rF/LE5XdJ8N8sIfTBTcNKmi5Bvx+aOSKSIRz79AkTKHyaTAygFyfeLbwnO4l4Pe rodg== X-Gm-Message-State: AOAM533nP0KcblOSrGGqCV4jDc6xYn8mo/j/2UmJjWr1OQ6tIVmK7473 Wih/4TOQBGfhp86rQdCSKTLpoCWy4ftWebxsWz25owjEaIVbDrQ0TI95lfKLqf3Wcz3ekJQos+j vBWw9IShyWfH3qy6YfUob0pGxt/xZO3C+3ImP/wZRgQ== X-Received: by 2002:a1f:eac6:: with SMTP id i189mr6094876vkh.3.1622205745858; Fri, 28 May 2021 05:42:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxI4pXCt8bne0kZBifLt5Y1FotnUnE0PxhwFaZQXgWqXhUGHZi56pmTBuAwfHxymwdgrabXfQ== X-Received: by 2002:a1f:eac6:: with SMTP id i189mr6094860vkh.3.1622205745730; Fri, 28 May 2021 05:42:25 -0700 (PDT) Received: from localhost.localdomain ([45.237.48.6]) by smtp.gmail.com with ESMTPSA id b35sm782328uae.20.2021.05.28.05.42.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 May 2021 05:42:25 -0700 (PDT) From: Krzysztof Kozlowski To: Krzysztof Kozlowski , "David S. Miller" , Jakub Kicinski , linux-nfc@lists.01.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 12/12] nfc: st95hf: mark ACPI and OF device ID tables as maybe unused Date: Fri, 28 May 2021 08:42:00 -0400 Message-Id: <20210528124200.79655-12-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210528124200.79655-1-krzysztof.kozlowski@canonical.com> References: <20210528124200.79655-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The driver can match either via OF or ACPI ID tables. If one configuration is disabled, the table will be unused: drivers/nfc/st95hf/core.c:1059:34: warning: ‘st95hf_spi_of_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/nfc/st95hf/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nfc/st95hf/core.c b/drivers/nfc/st95hf/core.c index 88924be8decb..0d99181b6ce3 100644 --- a/drivers/nfc/st95hf/core.c +++ b/drivers/nfc/st95hf/core.c @@ -1056,7 +1056,7 @@ static const struct spi_device_id st95hf_id[] = { }; MODULE_DEVICE_TABLE(spi, st95hf_id); -static const struct of_device_id st95hf_spi_of_match[] = { +static const struct of_device_id st95hf_spi_of_match[] __maybe_unused = { { .compatible = "st,st95hf" }, { }, }; -- 2.27.0 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C7972C47087 for ; Fri, 28 May 2021 12:42:31 +0000 (UTC) Received: from ml01.01.org (ml01.01.org [198.145.21.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 923B3610A0 for ; Fri, 28 May 2021 12:42:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 923B3610A0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=canonical.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-nfc-bounces@lists.01.org Received: from ml01.vlan13.01.org (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 21611100ED4BF; Fri, 28 May 2021 05:42:30 -0700 (PDT) Received-SPF: None (mailfrom) identity=mailfrom; client-ip=91.189.89.112; helo=youngberry.canonical.com; envelope-from=krzysztof.kozlowski@canonical.com; receiver= Received: from youngberry.canonical.com (youngberry.canonical.com [91.189.89.112]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 1178A100ED4A2 for ; Fri, 28 May 2021 05:42:28 -0700 (PDT) Received: from mail-vs1-f71.google.com ([209.85.217.71]) by youngberry.canonical.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1lmboo-00082r-Lp for linux-nfc@lists.01.org; Fri, 28 May 2021 12:42:26 +0000 Received: by mail-vs1-f71.google.com with SMTP id x2-20020a67c0820000b0290231d255cecdso948428vsi.4 for ; Fri, 28 May 2021 05:42:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=BVM99Rq9YYpmqFYN93ErdoKv+Sqk4U9Fa7zLEpo/FoQ=; b=fw/0NKW/mhMypZUNDPaAaxvtVSuHz9f7EGcr5k9uK2EA3BVP4rtkWILPtdbPDWYJ2y N2Bu+xKVhBCYeF0NziJE8mINOsE6pn1ykkinnDMveD6ApyQGoHNSKI7+/ijrPRO9+E9g WzdYjn248yRumqC7ZIzbe0yIprrMA9S2wUmBB1UrJbnph7O4tQidV76D/BH2xGBTLO9h DF+5VjIsElveo3WxWG8MXYohMrwziYHMOd/ECSyHVFxI9Vv+lmSVnLNRifO0avjsAN/W MlyelOuCA1OSW0iX/RocdF9h4CX22XLhunxcBGGpLc0C2Xmbm01QiHOpo7QciG4MKhv+ YfOw== X-Gm-Message-State: AOAM5326MJCyxCedxWaH+cX9LTfpaievdHLWUmkDu0y6zrJdJZb6PFVS Wip1P1DsnWKdeOsKlAgbjQ/dGioh28C/uXSBP44Za6ivd+R18Vr+XrnZBcjJsLqviApF61hrKAX RjBJ04Qc6o+zFFREfq2w59uJMtE5a89Q5Hg== X-Received: by 2002:a1f:eac6:: with SMTP id i189mr6094878vkh.3.1622205745859; Fri, 28 May 2021 05:42:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxI4pXCt8bne0kZBifLt5Y1FotnUnE0PxhwFaZQXgWqXhUGHZi56pmTBuAwfHxymwdgrabXfQ== X-Received: by 2002:a1f:eac6:: with SMTP id i189mr6094860vkh.3.1622205745730; Fri, 28 May 2021 05:42:25 -0700 (PDT) Received: from localhost.localdomain ([45.237.48.6]) by smtp.gmail.com with ESMTPSA id b35sm782328uae.20.2021.05.28.05.42.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 May 2021 05:42:25 -0700 (PDT) From: Krzysztof Kozlowski To: Krzysztof Kozlowski , "David S. Miller" , Jakub Kicinski , linux-nfc@lists.01.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Date: Fri, 28 May 2021 08:42:00 -0400 Message-Id: <20210528124200.79655-12-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210528124200.79655-1-krzysztof.kozlowski@canonical.com> References: <20210528124200.79655-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Message-ID-Hash: 4RHU3YGXRK3IRG2GIIQX6Y6J5AITPYGD X-Message-ID-Hash: 4RHU3YGXRK3IRG2GIIQX6Y6J5AITPYGD X-MailFrom: krzysztof.kozlowski@canonical.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.1.1 Precedence: list Subject: [linux-nfc] [PATCH 12/12] nfc: st95hf: mark ACPI and OF device ID tables as maybe unused List-Id: NFC on Linux Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 VGhlIGRyaXZlciBjYW4gbWF0Y2ggZWl0aGVyIHZpYSBPRiBvciBBQ1BJIElEIHRhYmxlcy4gIElm IG9uZQ0KY29uZmlndXJhdGlvbiBpcyBkaXNhYmxlZCwgdGhlIHRhYmxlIHdpbGwgYmUgdW51c2Vk Og0KDQogICAgZHJpdmVycy9uZmMvc3Q5NWhmL2NvcmUuYzoxMDU5OjM0OiB3YXJuaW5nOg0KICAg ICAgICDigJhzdDk1aGZfc3BpX29mX21hdGNo4oCZIGRlZmluZWQgYnV0IG5vdCB1c2VkIFstV3Vu dXNlZC1jb25zdC12YXJpYWJsZT1dDQoNClNpZ25lZC1vZmYtYnk6IEtyenlzenRvZiBLb3psb3dz a2kgPGtyenlzenRvZi5rb3psb3dza2lAY2Fub25pY2FsLmNvbT4NCi0tLQ0KIGRyaXZlcnMvbmZj L3N0OTVoZi9jb3JlLmMgfCAyICstDQogMSBmaWxlIGNoYW5nZWQsIDEgaW5zZXJ0aW9uKCspLCAx IGRlbGV0aW9uKC0pDQoNCmRpZmYgLS1naXQgYS9kcml2ZXJzL25mYy9zdDk1aGYvY29yZS5jIGIv ZHJpdmVycy9uZmMvc3Q5NWhmL2NvcmUuYw0KaW5kZXggODg5MjRiZThkZWNiLi4wZDk5MTgxYjZj ZTMgMTAwNjQ0DQotLS0gYS9kcml2ZXJzL25mYy9zdDk1aGYvY29yZS5jDQorKysgYi9kcml2ZXJz L25mYy9zdDk1aGYvY29yZS5jDQpAQCAtMTA1Niw3ICsxMDU2LDcgQEAgc3RhdGljIGNvbnN0IHN0 cnVjdCBzcGlfZGV2aWNlX2lkIHN0OTVoZl9pZFtdID0gew0KIH07DQogTU9EVUxFX0RFVklDRV9U QUJMRShzcGksIHN0OTVoZl9pZCk7DQogDQotc3RhdGljIGNvbnN0IHN0cnVjdCBvZl9kZXZpY2Vf aWQgc3Q5NWhmX3NwaV9vZl9tYXRjaFtdID0gew0KK3N0YXRpYyBjb25zdCBzdHJ1Y3Qgb2ZfZGV2 aWNlX2lkIHN0OTVoZl9zcGlfb2ZfbWF0Y2hbXSBfX21heWJlX3VudXNlZCA9IHsNCiAgICAgICAg IHsgLmNvbXBhdGlibGUgPSAic3Qsc3Q5NWhmIiB9LA0KICAgICAgICAgeyB9LA0KIH07DQotLSAN CjIuMjcuMA0KX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18K TGludXgtbmZjIG1haWxpbmcgbGlzdCAtLSBsaW51eC1uZmNAbGlzdHMuMDEub3JnClRvIHVuc3Vi c2NyaWJlIHNlbmQgYW4gZW1haWwgdG8gbGludXgtbmZjLWxlYXZlQGxpc3RzLjAxLm9yZwolKHdl Yl9wYWdlX3VybClzbGlzdGluZm8lKGNnaWV4dClzLyUoX2ludGVybmFsX25hbWUpcw== From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============1341160521890981135==" MIME-Version: 1.0 From: Krzysztof Kozlowski To: linux-nfc@lists.01.org Subject: [PATCH 12/12] nfc: st95hf: mark ACPI and OF device ID tables as maybe unused Date: Fri, 28 May 2021 08:42:00 -0400 Message-ID: <20210528124200.79655-12-krzysztof.kozlowski@canonical.com> In-Reply-To: <20210528124200.79655-1-krzysztof.kozlowski@canonical.com> List-Id: --===============1341160521890981135== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable The driver can match either via OF or ACPI ID tables. If one configuration is disabled, the table will be unused: drivers/nfc/st95hf/core.c:1059:34: warning: =E2=80=98st95hf_spi_of_match=E2=80=99 defined but not used [-Wunuse= d-const-variable=3D] Signed-off-by: Krzysztof Kozlowski --- drivers/nfc/st95hf/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nfc/st95hf/core.c b/drivers/nfc/st95hf/core.c index 88924be8decb..0d99181b6ce3 100644 --- a/drivers/nfc/st95hf/core.c +++ b/drivers/nfc/st95hf/core.c @@ -1056,7 +1056,7 @@ static const struct spi_device_id st95hf_id[] =3D { }; MODULE_DEVICE_TABLE(spi, st95hf_id); = -static const struct of_device_id st95hf_spi_of_match[] =3D { +static const struct of_device_id st95hf_spi_of_match[] __maybe_unused =3D { { .compatible =3D "st,st95hf" }, { }, }; -- = 2.27.0 --===============1341160521890981135==--