From patchwork Fri Mar 10 21:43:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170140 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 84C11C74A4B for ; Fri, 10 Mar 2023 21:46:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232154AbjCJVqf (ORCPT ); Fri, 10 Mar 2023 16:46:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231873AbjCJVqD (ORCPT ); Fri, 10 Mar 2023 16:46:03 -0500 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CA4C142DDA for ; Fri, 10 Mar 2023 13:44:20 -0800 (PST) Received: by mail-ed1-x52c.google.com with SMTP id cy23so25968306edb.12 for ; Fri, 10 Mar 2023 13:44:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678484628; 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=TeP716t4cBIYV/Qo8houZ6GjE5tTEcSLUUsmtmHrwME=; b=Xx3SrnmgKxS5czxvERbapZo0uZsV01LxxYnZdeXVvqWMaJbIqc6s7RwE0R1PdiZQbQ 5VvqmpWZBxmGyzQQmiflyogrwY/TNDk5BSD48fwB9vkiEReyJZQLKCSWQyW3GgMcaFvJ GX9wIjCjB0UbY2BXuCkpTOkwcynB2cvUqjM8zQknB1+Nyrmgcc8UK/BpY39FN/n32OAj lRJdt+Uj/pTnNn7dqxBx/km2qBCwBBtsKSatpPh8iDKCLwgNPmaNSXOLGzWfogNUMry6 aiKCN+Jk9unAevVTpYExN6ukJmrgIuhQ0/nio8/z1in77IIffGTubp9hE/ZgIiDkKu7G QPMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678484628; 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=TeP716t4cBIYV/Qo8houZ6GjE5tTEcSLUUsmtmHrwME=; b=UYr9XKsYXelINexVZb1limDcSohGCHiA5jk/CSPGd/9k1gy2fVv7lNNGPcYriRUphN dJ0Agw72B8lGQ3MnUp4yYItaGX7yROsWGe00mXVJddTt1YO1sp+Qm0wdcFKL4/nhUqxq Py9JIp9OfJlXSD7OyMCLk8k4ppGGzRBloXWgaYiuWQYYsyFs56j376nkCJ39folVBvKA KwvVxxYKyO0ldfcLTmHhQFmomciXKluWv9gZSjK9i/YCIIvcDZNknp8UXdmRf0U/ZqSZ JHlD0xGXvzHw2NuzJ0rRj/m1KxBWf/aCSSuy3UhXLXvKI8FopvhWPYy6TdaXh7TFHlfP Z1Qw== X-Gm-Message-State: AO0yUKUmOxFbYOkQEeoItuXJ1SIvNqZ9lm9neqVZecRvhO7Q67LtDLC5 HBQ3146axEdzGC1PnZK1GQWBuA== X-Google-Smtp-Source: AK7set+FJFc4dSGpVtgH0w1GTDHbF5wg5x4nW3Gcxvq33tKawN+X7rAHAi4mTn8Xl6rlAxUk/Z87aw== X-Received: by 2002:a05:6402:391:b0:4fa:4b1c:5ea4 with SMTP id o17-20020a056402039100b004fa4b1c5ea4mr244220edv.29.1678484628394; Fri, 10 Mar 2023 13:43:48 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:34:52e3:a77e:cac5]) by smtp.gmail.com with ESMTPSA id f2-20020a1709064dc200b008dcf89a72d7sm327228ejw.147.2023.03.10.13.43.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Mar 2023 13:43:47 -0800 (PST) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Sebastian Reichel , Claudiu Beznea , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Nicolas Ferre , Alexandre Belloni , Lars-Peter Clausen , =?utf-8?q?Nuno_S=C3=A1?= , Oder Chiou , Srinivas Kandagatla , Banajit Goswami , Krzysztof Kozlowski , Sylwester Nawrocki , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 7/9] ASoC: codecs: rt1019: Mark OF related data as maybe unused Date: Fri, 10 Mar 2023 22:43:31 +0100 Message-Id: <20230310214333.274903-8-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230310214333.274903-1-krzysztof.kozlowski@linaro.org> References: <20230310214333.274903-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The driver can be compile tested with !CONFIG_OF making certain data unused: sound/soc/codecs/rt1019.c:549:34: error: ‘rt1019_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- sound/soc/codecs/rt1019.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/rt1019.c b/sound/soc/codecs/rt1019.c index 49f527c61a7a..dff2596c81eb 100644 --- a/sound/soc/codecs/rt1019.c +++ b/sound/soc/codecs/rt1019.c @@ -546,7 +546,7 @@ static const struct i2c_device_id rt1019_i2c_id[] = { }; MODULE_DEVICE_TABLE(i2c, rt1019_i2c_id); -static const struct of_device_id rt1019_of_match[] = { +static const struct of_device_id rt1019_of_match[] __maybe_unused = { { .compatible = "realtek,rt1019", }, {}, };