From patchwork Fri Mar 10 21:44:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 661716 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 8D3CAC6FA99 for ; Fri, 10 Mar 2023 21:47:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232133AbjCJVq7 (ORCPT ); Fri, 10 Mar 2023 16:46:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232004AbjCJVqZ (ORCPT ); Fri, 10 Mar 2023 16:46:25 -0500 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0B7C147807 for ; Fri, 10 Mar 2023 13:44:36 -0800 (PST) Received: by mail-ed1-x52f.google.com with SMTP id s11so26074434edy.8 for ; Fri, 10 Mar 2023 13:44:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678484656; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=cZbU6JKa/k4DgfL7v58YgYgRn8/rNVhugShDXDLr6H8=; b=pip1/vRUbCv0obVI3sVtYvTdBVyGH8Mv5pf3mEZeIEawtKi5xLTPd4/Gn11Htmmnt2 wu6Jn95oek5LK3sxeqlf3yGr678RUhcTllknV+tDoXpHBPtcV0XYkbSd+4j1TkXE6eF/ cdNpMseoihqZZPDt4dWkGu0YMIR7cykNuF7LLDUj70EAyO2nrnUn/NAAUMz8rWRacUhL 5nb52JCdXsJXq5Z+SEt4m5PRrQgdR0jrz23Xlvu6JK2Hiwn1i24VMdcQ8oOQDsxrqj76 /o5Y1TA3OW0Ty/cu6Ah4Hhef98D5+0dNSJ9FEZcY/MwZpk+BdOwwmeWXNdkx2B/P1pJL g8mA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678484656; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=cZbU6JKa/k4DgfL7v58YgYgRn8/rNVhugShDXDLr6H8=; b=EaYEo7sEshqSNfP8XbXMUn0Iymj/9a9HEtInKdjeXpZwYG1VjHurfXcwYXgh3jDQOG YbMtGOioCyX7FH5hYEpNpCcYRan8FV1UOmmNi8gq+HSCF1H/xHwLG664cfl4E4l1uBnZ uCpFReTwp/fw+A5HVkbIWPoSYEdcmE2YElEErvsWmXBkihPr5aeqM0PZuCjoLOIwCJwc OBvSE8fycjpMYjxkYGQNNVUAkhPrrLtMV8UPtXDdQhA5eRfdSsk15X8FuD4YCFK1jyvA mv5CF0B8+5c6diPE6qBsVKzlClayyHq8aIMEGjuRpj1roWysbugu8hZn/r1dyK0jYOho cG0A== X-Gm-Message-State: AO0yUKWkQMPF3x/Gq9DqXjqOfiFXgjFjuj2FgBPmF7IlbViRMcqeMjSv VapEoOSjG3n5Fspo+n4EL6iyzQ== X-Google-Smtp-Source: AK7set+M41NOJhBxOSf8ckFKjSGuqrMmQzRLYg9nu1ipvzp8ozAZGiNaAFXDSkFIqe3QD2VPb/0Hcw== X-Received: by 2002:a17:906:dd7:b0:864:223:40b with SMTP id p23-20020a1709060dd700b008640223040bmr28847446eji.33.1678484656501; Fri, 10 Mar 2023 13:44:16 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:34:52e3:a77e:cac5]) by smtp.gmail.com with ESMTPSA id bg25-20020a170906a05900b00905a1abecbfsm333207ejb.47.2023.03.10.13.44.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Mar 2023 13:44:15 -0800 (PST) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH] soc: qcom: gsbi: mark OF related data as maybe unused Date: Fri, 10 Mar 2023 22:44:13 +0100 Message-Id: <20230310214413.275054-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 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: drivers/soc/qcom/qcom_gsbi.c:117:34: error: ‘tcsr_dt_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/soc/qcom/qcom_gsbi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/qcom/qcom_gsbi.c b/drivers/soc/qcom/qcom_gsbi.c index 290bdefbf28a..f1742e5bddb9 100644 --- a/drivers/soc/qcom/qcom_gsbi.c +++ b/drivers/soc/qcom/qcom_gsbi.c @@ -114,7 +114,7 @@ struct gsbi_info { struct regmap *tcsr; }; -static const struct of_device_id tcsr_dt_match[] = { +static const struct of_device_id tcsr_dt_match[] __maybe_unused = { { .compatible = "qcom,tcsr-ipq8064", .data = &config_ipq8064}, { .compatible = "qcom,tcsr-apq8064", .data = &config_apq8064}, { .compatible = "qcom,tcsr-msm8960", .data = &config_msm8960},