From patchwork Fri Mar 10 21:43:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 67753 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1120965wrd; Fri, 10 Mar 2023 14:05:22 -0800 (PST) X-Google-Smtp-Source: AK7set/Pvc1MLtkmUotZY85Wmp2I38dFMHKpf73u+pwgNPRCuVdU4ItmGgNjM8iziRGhJxf4reZf X-Received: by 2002:a05:6a20:8c97:b0:d0:42a9:f5f9 with SMTP id k23-20020a056a208c9700b000d042a9f5f9mr12266647pzh.54.1678485922393; Fri, 10 Mar 2023 14:05:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678485922; cv=none; d=google.com; s=arc-20160816; b=gkOiI0vQji7mwr8G2Ezs/YtcYQgK8Jpe+ccNxSzwErwOmjj+n4Fq0AWlA9FDhwrTHC RN+ksj02iHIPcSVhN8OzblJbK5G4XjsQTu3Jy7dTrQOaqSCZ1z1sIn8zkHUSDdQX/Mxo bWpTi3eyVSN7i01GFRlO+xzA4EPpSf7ozHxrbKAf+ZojWy5M6K5z8fiPm9HwG3zIxvwJ LIf9ngt+mjuzBHpNkwiC5pMoC8TIGwEDw5dty12U3xdmxqTGKiZsQWsCmmOxGnX2qxme rb2NWS06jDi0Psz12R+nSJqo3h0BRv3ZAIzYqoL9GMngrnrPziM5gYKZZEBbTxDv2nun 70LQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=/1KmqQZradWQGSeXUs/uKrqZTIEt/A0yqDxE+DkkN5A=; b=YK/ZBMN++O1TvIISkUnSORorE7dn107nxuzEJc0JRRIWBMXDHbEp8S30EdH8yR5G2o PuIXLLMUITu8KLU/k2tln54hONFMJ/eGMwi6MoHIjWamh0Ml+Ki8iuAaArFmT1t8Z7Cg 6dYBpJRNfCM58ZBBcaR0HLBqX1iVf14tHsvf/RwxuxJ8cxs3TZeHUCGqiC8sFLilg5/o yk6S/D1E/KzDfQ1mMrPqPRSQs1+V1DevVs+elxFQOFtck6MBkD1aKRT8gXaBFIDLKTsw MOZ4CpsbWk596d+XsNyCasB6dRAOMVOGxNfxCmP/y9W9452ld9Rcu/zAi7QtuCCHxIww ehow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pAFb423p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v17-20020a634651000000b004fb961e0592si713107pgk.565.2023.03.10.14.05.08; Fri, 10 Mar 2023 14:05:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pAFb423p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232111AbjCJVqa (ORCPT + 99 others); Fri, 10 Mar 2023 16:46:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232078AbjCJVph (ORCPT ); Fri, 10 Mar 2023 16:45:37 -0500 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 139C1139D15 for ; Fri, 10 Mar 2023 13:44:17 -0800 (PST) Received: by mail-ed1-x534.google.com with SMTP id cy23so25967824edb.12 for ; Fri, 10 Mar 2023 13:44:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678484625; 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=/1KmqQZradWQGSeXUs/uKrqZTIEt/A0yqDxE+DkkN5A=; b=pAFb423pNZ8Bqtr7gmFx7JY0iqO1BBmFb27jY3CTsWbaAzqpwbWJboaCifJ6G1VmeW xC0I0G7nDy/zs2irsrlPVFl3BTQOqaTNgZesVwZ8+AWUBiMiW4rDDGem4g0qyp55M4w8 ieX7R4tXpOiRyfsVGxZWFz8O4kg+lE8SH03OT8b77Xhfc0W7nLsbo/xzUddeQmi865Ax eYY/RpmifwZXRcRacB0c29hkDEYByUFvmCg5jLsvpbT8BeUQM+Ki2nZiCDUkzuf+0bAz Bd0HgxkURtuthewHLtEnDnYU2fSSsB/gYoN00LhX5S4Z9sIVwdVk4VLKHFQo3wO656VC 9KlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678484625; 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=/1KmqQZradWQGSeXUs/uKrqZTIEt/A0yqDxE+DkkN5A=; b=P0hx6BAunaISkQqQszHIYlSdhiGGUkUMx2mRA4fGePH5pqQBk+vLG0IzhsRHPBDuo/ wxW4tDinagk+mESjguxVM3EAJ1t0e4JQx/tLHMapJHXbPtBOQRKDvIgqcaCLAHwEV5Iw FHeTRegH12C8FhE7lJSgOVbfP3eQKFV2wWQowmtzJ76a84cA1tWrErWF0dHDotcy8Jhx bQ03zD/c4Hm2TfCTCiF7ULJGjWaP5kh5Gl5ERNuq8gFcJxWyVnQ6j0FXboAbVJ68L9wy VDpFCI9MXlq9BWa99evv4Q8SsTmhMH/izwgb4lgjE67nE7cWbRMXVWIbhNWiG3Ckl/av A5eA== X-Gm-Message-State: AO0yUKUP8DUtbPeQEvc6iI91XaDuSu/5SKE1qggFov+tpEGEN3WXI587 6c+8CFq2JHQupIkP87EHeeZ4cw== X-Received: by 2002:a17:906:b1c5:b0:878:4a5e:3a56 with SMTP id bv5-20020a170906b1c500b008784a5e3a56mr26605983ejb.15.1678484624747; Fri, 10 Mar 2023 13:43:44 -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.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Mar 2023 13:43:44 -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 5/9] ASoC: codecs: adau1977-spi: Mark OF related data as maybe unused Date: Fri, 10 Mar 2023 22:43:29 +0100 Message-Id: <20230310214333.274903-6-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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760020054525872165?= X-GMAIL-MSGID: =?utf-8?q?1760020054525872165?= The driver can be compile tested with !CONFIG_OF making certain data unused: sound/soc/codecs/adau1977-spi.c:58:34: error: ‘adau1977_spi_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- sound/soc/codecs/adau1977-spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/adau1977-spi.c b/sound/soc/codecs/adau1977-spi.c index 8370bec27a9c..207c5c95f35a 100644 --- a/sound/soc/codecs/adau1977-spi.c +++ b/sound/soc/codecs/adau1977-spi.c @@ -55,7 +55,7 @@ static const struct spi_device_id adau1977_spi_ids[] = { }; MODULE_DEVICE_TABLE(spi, adau1977_spi_ids); -static const struct of_device_id adau1977_spi_of_match[] = { +static const struct of_device_id adau1977_spi_of_match[] __maybe_unused = { { .compatible = "adi,adau1977" }, { .compatible = "adi,adau1978" }, { .compatible = "adi,adau1979" },