From patchwork Sat Mar 11 11:15:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 662324 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 4BB5EC7619A for ; Sat, 11 Mar 2023 11:17:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230018AbjCKLRZ (ORCPT ); Sat, 11 Mar 2023 06:17:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230245AbjCKLQs (ORCPT ); Sat, 11 Mar 2023 06:16:48 -0500 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7CEF222110 for ; Sat, 11 Mar 2023 03:15:42 -0800 (PST) Received: by mail-ed1-x530.google.com with SMTP id r15so3548992edq.11 for ; Sat, 11 Mar 2023 03:15:42 -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:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=fYWLbP0o0BPJT+QU5FDRXNhad6YmNgjikMTXUdy900I=; b=umU7Tob1FhElfnpqwWwGmQVTbz0SgF9aOg2cryOiQicWIhIEo3pTUVEkuXt8w8wpF3 f15QBlApflUDCcUzCCgemNWYMGXeTxy8vmiZx+MqqYOMlrUS/ogvUpn2jU7IOLzPXQTk 0TW8BfIltJX39vdMBDEzPu/ED2/AljBYizMfnDZHs+swZHEwsM3cWNhCmIcLXObPn+50 dWCctN3KNauTTt+U3Q1cgqUjpsRIIBucCJ0Mnf2WFmcu1Ml7FjcDTIfuKitxfCZea9zB tY05gcUoOMnjQNGriMq7Vua2UG+a5sVVQmGEizWP3YnlQNaKJd4rZnceQK5l9h8cfTzX lyJQ== 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:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=fYWLbP0o0BPJT+QU5FDRXNhad6YmNgjikMTXUdy900I=; b=AIspAns2w/ix8GtAMnfwgqik08dwxUg7lPKIfrK4WvB4owHHMA1zI/AVQYSvcBaHMT bpSeSbakT3/r+sKNc2an7QcRFe0sIxkSSyqRxlB1hULr0ZOurTo+c1ozxkoG1Ie/JS0H /YinIyHq+cNONWfbz5xCXdkPEOYqKEyaBPV/eTnQHn3CWI1+Y1s3eNbh1XHVtWnXilaY p/PmkdUzuqPxTE75O4R77XBjta1UUuRYEpbz9bHCAiotI6Hg50+AWrCweIvOtWKamopH Wb9EWfs3E7WY9Z/kKKfTFHSdtnE9XSnbK/XrAQUocBIGhqLuq3KcmpvXj7DD7/kvZFNT RKsQ== X-Gm-Message-State: AO0yUKWq7nL5s99UL3WCD2Gd410BHoSUaFKwd6TQuIC3ZfX0L6dLCazd UinMYlc4Y+sys25ThS6DAu8Cmw== X-Google-Smtp-Source: AK7set+7IpTQBuX+JwRr9nLlvyTwq8XQh4sf9RuB2igROCvVvLI2t3hBZa0WiFhb420amkKSdNC2tQ== X-Received: by 2002:a17:907:6d1e:b0:878:7c18:8fd9 with SMTP id sa30-20020a1709076d1e00b008787c188fd9mr34833150ejc.44.1678533334894; Sat, 11 Mar 2023 03:15:34 -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:34 -0800 (PST) From: Krzysztof Kozlowski To: Sebastian Reichel , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 1/6] power: supply: rt9455_charger: mark OF related data as maybe unused Date: Sat, 11 Mar 2023 12:15:27 +0100 Message-Id: <20230311111532.251604-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-pm@vger.kernel.org The driver can be compile tested with !CONFIG_OF making certain data unused: drivers/power/supply/rt9455_charger.c:1725:34: error: ‘rt9455_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/power/supply/rt9455_charger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/rt9455_charger.c b/drivers/power/supply/rt9455_charger.c index 31fb6526a1fd..0149e00f2bf8 100644 --- a/drivers/power/supply/rt9455_charger.c +++ b/drivers/power/supply/rt9455_charger.c @@ -1722,7 +1722,7 @@ static const struct i2c_device_id rt9455_i2c_id_table[] = { }; MODULE_DEVICE_TABLE(i2c, rt9455_i2c_id_table); -static const struct of_device_id rt9455_of_match[] = { +static const struct of_device_id rt9455_of_match[] __maybe_unused = { { .compatible = "richtek,rt9455", }, { }, }; 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", }, { } }; From patchwork Sat Mar 11 11:15:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 662325 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 C6459C7618E for ; Sat, 11 Mar 2023 11:17:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229999AbjCKLRY (ORCPT ); Sat, 11 Mar 2023 06:17:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230371AbjCKLQy (ORCPT ); Sat, 11 Mar 2023 06:16:54 -0500 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A030985A40 for ; Sat, 11 Mar 2023 03:15:50 -0800 (PST) Received: by mail-ed1-x531.google.com with SMTP id i34so30692757eda.7 for ; Sat, 11 Mar 2023 03:15:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678533339; 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=Z1ivl38YE2I2SDvE1TdE0gIwBk6FF3/hABoULacrRYE=; b=wMYxFquxhp0t9lKQAOER1JX7CmKUNsOOctHhvaGDOuKSS46NJgvw9/nQzmwmqLlIWo KzP+wNeYjC5LgKCaIagU78wTTmhYCiXXtXgNTSix29J0trMc8t05ipD/aDur7lNZji5F /z2il8ImOTmCHbGl0eKxd1Qpb+Cxthsaz2tIn0EI65oS7o43nYH8NK3NcesV6hDoTvL1 Me1nBTww+cvBNBSEsVyzakbj01KNMV2i1bVi7fyInug8LBrsAkqtsa2H8tcvf40mopiC IWrcfWY8QGrcEpt6hjBCEDPuHrTu2csOUlzU/30u5Nryl7nqy5HmZRXtDi5yfewoOrww RoLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678533339; 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=Z1ivl38YE2I2SDvE1TdE0gIwBk6FF3/hABoULacrRYE=; b=Ioncl04lPBf9rzZqxFYxBpiMOuKT85u7BCFV2fsklLzH0NrgVUS+4BSryd+5mkHZ7q inUAVCg4hami/UaIP2JeN50+x2rvIs/ecsDRaTrJDFM4p9kuXRa245nMTw/Hio5wj9A+ e0Qn7kppMoD7FLMt9ZY/oCeLvOiLmOLJXFjskqynwOUXGJ/V3akpQh5eBzdg8Zxxi3uV EoeFUvukCtM2vr/y+fHC2bKllu2jiY1dpJa97WfW3p0PHpPWzKCXsRYiHuMAmPihTQIC BM+auPqaJytmt+gQ5QBSNeIgJCudSNQJQ2wQ+knmIwdyCVBzfW1lieMz9fv1atfIyTHe 1Gug== X-Gm-Message-State: AO0yUKUIqmn45W2hAqAL4kr4csR3rYMJkdK8rlWnPQHwjKST6xDuFZ7m zzzT9PYSvyw7QUexlrWqui/r1w== X-Google-Smtp-Source: AK7set+UBH/7lfNgSQ5TQ9eY5JIS3egl5tRPqIzcjIcnGzntH5Tf2EsKSNfoJvDIl5VjTTfL2z0d+A== X-Received: by 2002:a05:6402:1352:b0:4fa:3b3:c86c with SMTP id y18-20020a056402135200b004fa03b3c86cmr2059703edw.12.1678533339401; Sat, 11 Mar 2023 03:15:39 -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.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 03:15:39 -0800 (PST) From: Krzysztof Kozlowski To: Sebastian Reichel , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 6/6] power: supply: bq25890_charger: mark OF related data as maybe unused Date: Sat, 11 Mar 2023 12:15:32 +0100 Message-Id: <20230311111532.251604-6-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/bq25890_charger.c:1625:34: error: ‘bq25890_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/power/supply/bq25890_charger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/bq25890_charger.c b/drivers/power/supply/bq25890_charger.c index bfe08d7bfaf3..22cde35eb144 100644 --- a/drivers/power/supply/bq25890_charger.c +++ b/drivers/power/supply/bq25890_charger.c @@ -1622,7 +1622,7 @@ static const struct i2c_device_id bq25890_i2c_ids[] = { }; MODULE_DEVICE_TABLE(i2c, bq25890_i2c_ids); -static const struct of_device_id bq25890_of_match[] = { +static const struct of_device_id bq25890_of_match[] __maybe_unused = { { .compatible = "ti,bq25890", }, { .compatible = "ti,bq25892", }, { .compatible = "ti,bq25895", },