From patchwork Sat Mar 11 11:15:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 662323 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 5D142C77B60 for ; Sat, 11 Mar 2023 11:17:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230095AbjCKLR1 (ORCPT ); Sat, 11 Mar 2023 06:17:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230274AbjCKLQt (ORCPT ); Sat, 11 Mar 2023 06:16:49 -0500 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C65C9E680A for ; Sat, 11 Mar 2023 03:15:43 -0800 (PST) Received: by mail-ed1-x52c.google.com with SMTP id cy23so30632882edb.12 for ; Sat, 11 Mar 2023 03:15:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678533335; 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=pASbe7Eu+peWRZx/jNfSYrICtEAfH2gWZkppY6lRpOw=; b=ZEpadFepcu6t1hYONd9w1u72jH7xkf7k4RgAzkFFR4NyrJ8KJsHFntmx2Joqb8JYsg 05vuEu0NfSWW/fNblD7v2dtlW1hwTZd7BqWQGdWLjLNf7svW3BzMMgWY/ZMTT/dZz966 usURnuYHtb9TRX3rhGjghmcVgI8hHRclpHMg2WFuo0TOam5L6fla60lgXUYujmwszdt0 pJZ+Mmvj9/FU+jOEr1ff1HliOStWoWmev9Hu8jiUg231R+k7XUMXmCmOK1+8Kp/i7cS/ bl+1uaC/xbityhNTVnmF+nrAA3uJ1PtTBs6b3ca/WF0CEJBONCPO7HWLtmkaaZ2sYSLK Kr8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678533335; 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=pASbe7Eu+peWRZx/jNfSYrICtEAfH2gWZkppY6lRpOw=; b=gVieBSYPb8kJyujrly56cBVt4wsL8NPcHWiu7Ke6FMYYks5RkEmh6rknlO0+/CTMcx BrRP5MY1M8kHDf2OPEaeX4rgwzet3TfSYf8JZFnukIcD9YiWIlWszXxaCI5ldkRHRGpl Jz8rF1WeiHKqhQvpAqQjUJLzDgE32Xp1QBgyogSgK1iXOofeLu89S2EmOtMjK4A3+4tY mR4z+ncFBDfBjbM5rLSmocqGrXI45HSTgWwzQKGW/+7oDWoJtO+v8mvJyiI7xJfaJ529 rW8pHw3mhMdH8gx1legf6QvvRmWghjBXuc3h9JDkR/9GbXGY5irTvY9Zv4BEJ81E8A2+ DW5w== X-Gm-Message-State: AO0yUKUZwpvz3PGgyFdvJeL+7/tu7luO3I403GlSj4xTZuFwVo0F8u/g A325L1RS43ZMw713DhCHHifSqrdgjmdz0tHgjtE= X-Google-Smtp-Source: AK7set9KiUEWUKifKlYJkvBws3lJK59ktI8sQVZSH8xHRdG7GNqWFnqvfbtc4Q4y6l8jcz8TAics/Q== X-Received: by 2002:a17:907:a706:b0:878:78bc:975c with SMTP id vw6-20020a170907a70600b0087878bc975cmr30084611ejc.36.1678533335614; Sat, 11 Mar 2023 03:15:35 -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.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 03:15:35 -0800 (PST) From: Krzysztof Kozlowski To: Sebastian Reichel , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 2/6] power: supply: twl4030_charger: mark OF related data as maybe unused Date: Sat, 11 Mar 2023 12:15:28 +0100 Message-Id: <20230311111532.251604-2-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/twl4030_charger.c:1129:34: error: ‘twl_bci_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/power/supply/twl4030_charger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/twl4030_charger.c b/drivers/power/supply/twl4030_charger.c index 53a0ea5a61da..7adfd69fe649 100644 --- a/drivers/power/supply/twl4030_charger.c +++ b/drivers/power/supply/twl4030_charger.c @@ -1126,7 +1126,7 @@ static int twl4030_bci_remove(struct platform_device *pdev) return 0; } -static const struct of_device_id twl_bci_of_match[] = { +static const struct of_device_id twl_bci_of_match[] __maybe_unused = { {.compatible = "ti,twl4030-bci", }, { } };