From patchwork Sat Mar 11 11:13:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170747 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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8E757C61DA4 for ; Sat, 11 Mar 2023 11:14:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229666AbjCKLOP (ORCPT ); Sat, 11 Mar 2023 06:14:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230028AbjCKLNe (ORCPT ); Sat, 11 Mar 2023 06:13:34 -0500 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AECAA20A15 for ; Sat, 11 Mar 2023 03:13:32 -0800 (PST) Received: by mail-ed1-x532.google.com with SMTP id er25so2591757edb.5 for ; Sat, 11 Mar 2023 03:13:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678533211; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=tYeKkWHhYvN+444DTzgsl5+G+f11J6OJGCVyHJg/Evs=; b=FfegRiBCebxhiHZu+Anl2gLy58pjJKjlVwbjRhrrKUu7nrGPSb9ZC0KqzD+nxGICwc yAnmoyyq2shISuujndfg8IVnKrPFWg8/Z0oI6SCvKGf1zue4uY0slKgHAuPENH2wVTNw 3sdsQrm0dEehM+8l5L25hs9mKIqqYfHQbaWDHTlStjdUvddD12YlEwN50a5a8ZZMrefP Sb09YV5o2MV13BXstUPo20xOBfjR0TDauTR+QPE2bkIgMMqvUJU4dd0hatfI9nrnKfNQ QUVdW8zwh2iCjkbOykhHgmsn0qzucWBwnStg1Ho3GLaXyuSUk+0Ji4BTvejYqtqlJdou DJRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678533211; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=tYeKkWHhYvN+444DTzgsl5+G+f11J6OJGCVyHJg/Evs=; b=Q0pDJe0sIfCwVqEgMjkITe+mOa+vdXkOQrkUXm4L8DyAAygGNE5uhZpfsxf84oPJuo D7ZSpfiZHMM09hsFvvO+OaLrO8kaSCWS/88v6dOl0/K6ge1xN9kqjkjBqjiKZw2FkLpx b/FtjEL/FR4tEIvLdJeGJi+/hWPb0o2y8eNqO8ZYXZvinKyZ1FBICxY6gK4kXjLAH3Ax P4vL/utyQeEuct+i3ZUwQ8kHFAd7cxbWP/DuJTNSVsUQaFNZ8Ke25qPM97Ly7PxWPqpg igQehOpaOodUMdxuuKNQU8lXhCxeXWszeoASBXaUnRpBlKrT3crcm0D/FCbowdhJOClr tkMw== X-Gm-Message-State: AO0yUKXqjPqLpm+Y+6vINgDqZ3IF1bIj1jIl+/RgoahGhdq+IjBkhe50 HO+J42czMXnyvJmS/ZEzxuMuZA== X-Google-Smtp-Source: AK7set+geB3WimVsQZxOu0FKGq/F0JNtiq/b4zqiHUOE3p4BIg7uSfKlTL73g821Ym14wGENKaU1GQ== X-Received: by 2002:a50:ed12:0:b0:4bb:8e88:daeb with SMTP id j18-20020a50ed12000000b004bb8e88daebmr26559718eds.31.1678533211216; Sat, 11 Mar 2023 03:13:31 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:fa97:2d7c:bdd7:e1b]) by smtp.gmail.com with ESMTPSA id sg42-20020a170907a42a00b009202ce3c8adsm722621ejc.27.2023.03.11.03.13.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 03:13:30 -0800 (PST) From: Krzysztof Kozlowski To: Mark Greer , Krzysztof Kozlowski , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] nfc: trf7970a: mark OF related data as maybe unused Date: Sat, 11 Mar 2023 12:13:28 +0100 Message-Id: <20230311111328.251219-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org The driver can be compile tested with !CONFIG_OF making certain data unused: drivers/nfc/trf7970a.c:2232:34: error: ‘trf7970a_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski Reviewed-by: Simon Horman Reviewed-by: Mark Greer --- drivers/nfc/trf7970a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nfc/trf7970a.c b/drivers/nfc/trf7970a.c index 21d68664fe08..7eb17f46a815 100644 --- a/drivers/nfc/trf7970a.c +++ b/drivers/nfc/trf7970a.c @@ -2229,7 +2229,7 @@ static const struct dev_pm_ops trf7970a_pm_ops = { trf7970a_pm_runtime_resume, NULL) }; -static const struct of_device_id trf7970a_of_match[] = { +static const struct of_device_id trf7970a_of_match[] __maybe_unused = { {.compatible = "ti,trf7970a",}, {}, };