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: 13170224 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 8D550C6FD19 for ; Fri, 10 Mar 2023 22:00:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232054AbjCJWAp (ORCPT ); Fri, 10 Mar 2023 17:00:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232079AbjCJWAZ (ORCPT ); Fri, 10 Mar 2023 17:00:25 -0500 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AD3914DA05 for ; Fri, 10 Mar 2023 13:57:10 -0800 (PST) Received: by mail-ed1-x52a.google.com with SMTP id g3so26272479eda.1 for ; Fri, 10 Mar 2023 13:57:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678485429; 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=C7/kQP0fh0Lt2W7V1+gzMuKXj8PiOrLnyRqUSUSBNFbcAXTY39AB8gwDVCtURMS9rq fS+p/9+36LLRQ3dnHNwSrMmtwOIx/h4fMzvoRryaPwg2OEPRLTtu8JxY2wjvw0SXA35H 5elOilyd/iM0TiZecGkoUvucNOH0gepGZVUhBDEaSNFi76spgcXdiCAV2A1XXxiXa1ur 20lEOuD8Nrb98vf6vu24B/BVc5JkEBcXcdQrI9Tpfyb44k+qsvUQwv3gScmdanLmChqG /l0qT/40ydYGnnHLlZgBDD8tog+atYKCSxvsvoyXT9Qc8WgErcJbxgGzVkZTNBZdbIQz lT0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678485429; 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=Ga9VRfmZQug0iP9K9vJsf/fbwxoPXOQDyATDjSErbX23YJsaprmfsoOIDICVePIEid F4rlaVjRQxzUhtXh8FVMyYBlD6IFF0nem0wYOihyY0HK5JywuJtZjy2dye5/nnn73bGt pjI9cPzASLZ8iB0+WMemz1kJ5HLaisCZl4rRQoGJNuESxrXVZS0qFkZzxc4VSN/P0IIw K/YjNUltIKeMBpioXKYoyoCYgQoh8xQJhg5DKuyMk/gTnPDREtqtNL4AaWJAOXh3FYoC 70xzsiGwPStCgfj+KndVezxV0y6PV0FgJUe303sEjoEd29ZNRfPu6rkJAMGFZiegXQrk h3oQ== X-Gm-Message-State: AO0yUKUlb7K1f29R2uUKyLyHAVI8BRmARf2+U5nvzciejj29Hh6Xg5MM fPfesFFGE18Vn8ZsSVGyPIOYz+jHiIz+VLN0quY= 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-arm-msm@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) {