From patchwork Fri May 28 12:41:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12286995 X-Patchwork-Delegate: kuba@kernel.org 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 BAF5CC4708C for ; Fri, 28 May 2021 12:42:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9D00E610A0 for ; Fri, 28 May 2021 12:42:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236866AbhE1Mo1 (ORCPT ); Fri, 28 May 2021 08:44:27 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:42539 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235999AbhE1Mn6 (ORCPT ); Fri, 28 May 2021 08:43:58 -0400 Received: from mail-ua1-f69.google.com ([209.85.222.69]) by youngberry.canonical.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1lmboj-00081N-SO for netdev@vger.kernel.org; Fri, 28 May 2021 12:42:21 +0000 Received: by mail-ua1-f69.google.com with SMTP id a8-20020ab03c880000b029020f88f9250bso1826969uax.17 for ; Fri, 28 May 2021 05:42:21 -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=Xi/NsDS4IjaK0xUaurfvCiwF1a8SfsfV6rw+HJ5RS3o=; b=ANe9c5GI8K5Q4eqNbPIIqzgjliwiAnf4DOBXKAey0TGNSV4fXkWNM0aNc2XujRdTJT qDYCCVrVwFPIGJKbPnnnaVnjt0t7TLkj0MMADWRMd3o9Yu5qe0AbEHQw0Oggm0rcHEZh +nUkA1K/hiK0qZ9T7UOIPXXYtNlFa6txW5UVa3DDR32Su6QyfpG5OdN8x+imvgJGMe7g RitdaDsQT35zwmsxG7TPKhuL3BmuZIDRlhVIly6g4F9SDqQ+fxEQuzZOWOBZCfkqRcpA GfSnW95+y6j96qiRI6ObBSaM2mM7B3DpRzpViOfxDUhwq6sDl8AQhQx8uh5jcMnrIMuw Hq3g== X-Gm-Message-State: AOAM533eneY3z/umW2zaD3/XVO53ZJAWABndtWoK+BR2tfAg1HTdgfGu YLgechlu9Yfwo+sTwOlO4Vc4uWe7TB8y2FbQKlfNE+9ars20Z4HgPeTaIoizVlB/N65urXiF3v8 +rQL6VLgU3zVAVYDWL2sn2DOlura2bhusPw== X-Received: by 2002:a1f:f84a:: with SMTP id w71mr5977873vkh.4.1622205741008; Fri, 28 May 2021 05:42:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnhXTt0JMrjFgz7bxnO/WhpFd/Z/vii9Wwis1Kyx0+9nbuCIwGaLCOgr65EHk25XSkaukBKA== X-Received: by 2002:a1f:f84a:: with SMTP id w71mr5977858vkh.4.1622205740887; Fri, 28 May 2021 05:42:20 -0700 (PDT) Received: from localhost.localdomain ([45.237.48.6]) by smtp.gmail.com with ESMTPSA id b35sm782328uae.20.2021.05.28.05.42.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 May 2021 05:42:20 -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 09/12] nfc: pn544: mark ACPI and OF device ID tables as maybe unused Date: Fri, 28 May 2021 08:41:57 -0400 Message-Id: <20210528124200.79655-9-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 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@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/pn544/i2c.c:53:36: warning: ‘pn544_hci_i2c_acpi_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/nfc/pn544/i2c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/nfc/pn544/i2c.c b/drivers/nfc/pn544/i2c.c index 4ac8cb262559..aac778c5ddd2 100644 --- a/drivers/nfc/pn544/i2c.c +++ b/drivers/nfc/pn544/i2c.c @@ -50,7 +50,7 @@ static const struct i2c_device_id pn544_hci_i2c_id_table[] = { MODULE_DEVICE_TABLE(i2c, pn544_hci_i2c_id_table); -static const struct acpi_device_id pn544_hci_i2c_acpi_match[] = { +static const struct acpi_device_id pn544_hci_i2c_acpi_match[] __maybe_unused = { {"NXP5440", 0}, {} }; @@ -951,7 +951,7 @@ static int pn544_hci_i2c_remove(struct i2c_client *client) return 0; } -static const struct of_device_id of_pn544_i2c_match[] = { +static const struct of_device_id of_pn544_i2c_match[] __maybe_unused = { { .compatible = "nxp,pn544-i2c", }, {}, };