From patchwork Sat Mar 11 11:15: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: 13170760 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 33FAAC761A6 for ; Sat, 11 Mar 2023 11:17:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230060AbjCKLR0 (ORCPT ); Sat, 11 Mar 2023 06:17:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230309AbjCKLQu (ORCPT ); Sat, 11 Mar 2023 06:16:50 -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 C940BF34D5 for ; Sat, 11 Mar 2023 03:15:44 -0800 (PST) Received: by mail-ed1-x533.google.com with SMTP id cy23so30633045edb.12 for ; Sat, 11 Mar 2023 03:15:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678533337; 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=7Un3CjoEdCB2Y+KA2war6cOphuSBhkuVlcMrtsEspY0=; b=bv9EYEBXgAO23nOb44UGWdsSf4eIg+pYeE7wW1LDGL6NGBjeDmB7yHcei2z0l7ZsKZ IySTRB4IaiKSHfLBqvMas2pV585r5fr+wWCuoGSX3NVliJp7NDr+J2Ahmt7jLqAdkB+3 FggQ9pNdJxi2YZFSF1khYqlzOBYFdiuP1w0x/y+DblGiGPGkMNR9svbtvuKkCmHGkjfI 5KyBmFokh/ZPC06bXJwqeMO1e90NPZ9CkkN/CDm5pg80fcBDCOqw8EwofLxhkO3xLn6V LdVkaZEZiEyQV0RxDIlRsxxctsaSgwlbPD7exG3ECqIkNEIiCKjLvJuD7VlnXydCfz+Y 4ytA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678533337; 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=7Un3CjoEdCB2Y+KA2war6cOphuSBhkuVlcMrtsEspY0=; b=tJuCSMyQ3n8+kE0HqzrXu9JiNF+P7UxQItI62X6/ju/bfm6BJUcdQXJXiR+sleFlYe nsBWQcDLkGoYo8f3ng1sESj847J1XzLTbjsGRmy9aIWF2NCDUoKOIw6EZ1ROYOSrht81 UXezKlkF2HUXJOXdaasO0iEbr5J+CKf4RMfMrg/DFbL7m4YhMOBHkzp80tC4f9eFEsBa CD7ldbBQe0UuW2+EK6RZlCIaPn4TZ4itXhJyCjpl4KUHU1G0V04qe7Bw2dB22SbmbXJK oxNUQ0HXHJJBoY2v2ivr+FZtJu/b+Nl7QDa3dF52B+/ez3+Ct6+2wjXwCkS6hs0wfgz6 6JFg== X-Gm-Message-State: AO0yUKV1TLOVmKBBMPb2D+Rt7UQem+OTlaOWAuzjZpVRaOTeJS3mW0TH aRldsMmVQg3PzlIJfo8phR0GEg== X-Google-Smtp-Source: AK7set+6UYUp9rH3P3Zh3iQMRqVkuLuZtpFRsnFDS9D11L5+PLpBWrXkMsuOXt8YeuY44hiWdjIEmw== X-Received: by 2002:a17:906:8a64:b0:88d:d76d:8527 with SMTP id hy4-20020a1709068a6400b0088dd76d8527mr26282349ejc.47.1678533337111; Sat, 11 Mar 2023 03:15:37 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:fa97:2d7c:bdd7:e1b]) by smtp.gmail.com with ESMTPSA id w15-20020a50c44f000000b004bf28bfc9absm1064150edf.11.2023.03.11.03.15.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 03:15:36 -0800 (PST) From: Krzysztof Kozlowski To: Sebastian Reichel , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 3/6] power: supply: lp8727_charger: mark OF related data as maybe unused Date: Sat, 11 Mar 2023 12:15:29 +0100 Message-Id: <20230311111532.251604-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230311111532.251604-1-krzysztof.kozlowski@linaro.org> References: <20230311111532.251604-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The driver can be compile tested with !CONFIG_OF making certain data unused: drivers/power/supply/lp8727_charger.c:601:34: error: ‘lp8727_dt_ids’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/power/supply/lp8727_charger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/lp8727_charger.c b/drivers/power/supply/lp8727_charger.c index e6c21377d53c..dc42d354b892 100644 --- a/drivers/power/supply/lp8727_charger.c +++ b/drivers/power/supply/lp8727_charger.c @@ -598,7 +598,7 @@ static void lp8727_remove(struct i2c_client *cl) lp8727_unregister_psy(pchg); } -static const struct of_device_id lp8727_dt_ids[] = { +static const struct of_device_id lp8727_dt_ids[] __maybe_unused = { { .compatible = "ti,lp8727", }, { } };