From patchwork Fri Mar 10 21:45:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170221 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 7FF30C6FA99 for ; Fri, 10 Mar 2023 22:02:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231860AbjCJWCV (ORCPT ); Fri, 10 Mar 2023 17:02:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231634AbjCJWBs (ORCPT ); Fri, 10 Mar 2023 17:01:48 -0500 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A969911C2 for ; Fri, 10 Mar 2023 13:58:30 -0800 (PST) Received: by mail-ed1-x533.google.com with SMTP id i34so26165200eda.7 for ; Fri, 10 Mar 2023 13:58:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678485509; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=fbyswuRmDGOGqggdQqXqT7Cs+m5LJh2VXeBWZLXjLIU=; b=pf6zobEKtbQeV8fAFdLe0q/q3dfTjbhqA+95V4oD8nkpxQpbFM2HF509wa3ATk916Z lKezsqP4ncAY3lJ+Mg37nH1beoozkAWPrHiqH3de8vEpi/hqq9Mx3TR4Ynb560G9FZeF Y2qEyn3gu7z6mJ61XkhWnum1uN2FBOwgsesKiNMh1+9NCtspXQXTu1rp+/VJIUG4ttRG mZ2B7O3+jMrmhobGQ3cjeAy7pKzFKHVIGXoTm/hwLNK04k2ZZdWJxvHGOo8M78zetIhF 0cWUvli1Ob6RKqYYF+jRn1jv2HWZ5gJQ7UqJE5+vwZE7Pe33wJrPwJGr+ZPxhv6aMekx HOlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678485509; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fbyswuRmDGOGqggdQqXqT7Cs+m5LJh2VXeBWZLXjLIU=; b=0NhVF2fAI9fuVIGugdUJSUAJXPCyHkGCGOEpymGD6MFc9lhMEtS/cmzUFtD01AzyAN vFtJUtATncqiZtwbjUBI/r/S6PsWmNSFByDO2nOhZpiSFKaOkBDBHc1/hhBUeGPeSkCl j+iN41QdiMlSCN7vqF9mcqjUgSoetMRb24tx5SxmC7NJ6Ta2hD1NZO+OroBW5YJCeyLz crClF2zDvPxyYZg3C2KfVvIWO8IcmRc/BhoXo2bCDnp4XSsvGeuE79MsrE816J1AdrZj GDlMTVim/CTPfwQtA6/Pv25A+JV+O7hIPoYWwEPdZw/+PlrYgTqd9Ds+vj7w7vu2DCp3 qCWQ== X-Gm-Message-State: AO0yUKWvUCz152dk4rB6un5StzpVaSh6U/5SEx5KwggeUjBIu0sb4+AK 21iA1BQO4L1iH0rj11URJpa+CA3ug8tjJmoD8n8= X-Google-Smtp-Source: AK7set9Jf40AEyHbOmvy87vpw1Xb+IaWlreNsCXG2RxDHOTbxWqUwmXTuwkUpr4oApOCilH/43fEng== X-Received: by 2002:aa7:cb4b:0:b0:4af:7bdc:1891 with SMTP id w11-20020aa7cb4b000000b004af7bdc1891mr3712523edt.11.1678484757769; Fri, 10 Mar 2023 13:45:57 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:34:52e3:a77e:cac5]) by smtp.gmail.com with ESMTPSA id u7-20020a50d507000000b004be11e97ca2sm471873edi.90.2023.03.10.13.45.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Mar 2023 13:45:57 -0800 (PST) From: Krzysztof Kozlowski To: Liam Girdwood , Mark Brown , Laurent Pinchart , Matthias Brugger , AngeloGioacchino Del Regno , Tony Lindgren , Andy Gross , Bjorn Andersson , Konrad Dybcio , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-omap@vger.kernel.org, linux-arm-msm@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 2/9] regulator: max20086: Mark OF related data as maybe unused Date: Fri, 10 Mar 2023 22:45:46 +0100 Message-Id: <20230310214553.275450-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230310214553.275450-1-krzysztof.kozlowski@linaro.org> References: <20230310214553.275450-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org The driver can be compile tested with !CONFIG_OF making certain data unused: drivers/regulator/max20086-regulator.c:289:34: error: ‘max20086_dt_ids’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski Reviewed-by: Laurent Pinchart --- drivers/regulator/max20086-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/max20086-regulator.c b/drivers/regulator/max20086-regulator.c index b8bf76c170fe..c98a72f43935 100644 --- a/drivers/regulator/max20086-regulator.c +++ b/drivers/regulator/max20086-regulator.c @@ -286,7 +286,7 @@ static const struct i2c_device_id max20086_i2c_id[] = { MODULE_DEVICE_TABLE(i2c, max20086_i2c_id); -static const struct of_device_id max20086_dt_ids[] = { +static const struct of_device_id max20086_dt_ids[] __maybe_unused = { { .compatible = "maxim,max20086", .data = &(const struct max20086_chip_info) {