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: 13170759 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: 13170761 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: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", }, { } }; From patchwork Sat Mar 11 11:15:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170758 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 DF5CAC7618D for ; Sat, 11 Mar 2023 11:17:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229989AbjCKLRX (ORCPT ); Sat, 11 Mar 2023 06:17:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230336AbjCKLQv (ORCPT ); Sat, 11 Mar 2023 06:16:51 -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 062D413907D for ; Sat, 11 Mar 2023 03:15:48 -0800 (PST) Received: by mail-ed1-x531.google.com with SMTP id r15so3549281edq.11 for ; Sat, 11 Mar 2023 03:15:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678533338; 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=Uznhd3PaZMFBLcetE5uxOnwFeJd1Kvz0kbb3FEDLHu4=; b=ECTsPmKyLrp9lBDJPgIVuF22lAIFATWjk2IraqByzFRhCziUnH1U7SReDEcfXx0tnw Yax/l/LZHhK1Xgj4fC5Fn5LIlpwcbY8/7inPctx+mtLHyZOKMYYu6ZKLwFY/LobucJ7U lCOGJSKl26WaoOPHR3NdKLuKZA0aJoEwriyDpj2UKb/6pWDyZ59nHP0bgjU/vq0Gy3pJ 7ZM1Me0hCd3asABEY3YOptuWjZAax9ixVwl/fyewWJlimRroaeW8OpQqp/ahXj8OJwCl j4oZvqzw5lW6SJ5Kc0FSi0WIPoWVBZZhePh5TfJgGultdU7HLFBJvy47YsKrgrkxwNT3 xUcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678533338; 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=Uznhd3PaZMFBLcetE5uxOnwFeJd1Kvz0kbb3FEDLHu4=; b=xqU4dHXhUoixViEML2ClB0NZ/7tLruCWNc+IB/Ax7Qcog1CW+Dg0br3fJ3Rf6ImPMA rRwBUj0OBgugqhATyor7Q98y/xEEqOP+CT0ZGHtub/zlAYpACglyV+JcYUxiVgMSXQoc 8Kc8quV6PHLnJA1DatSy6Fe3iwU4wl2ma22gsuuANNQVMxp2B03PDt//O3u4wG0TqkhX kNzg8PGme81toiKDl5y9jmV0K9W61RLU6PqKf9qsGMsBEjvZMhJa2GqgDasJLY0nKBJY c2fmTGYCOGOs55XxF6XnjjLaO/vO9g87ce9xzauTvJkO/dj/2WMRU8E11PlNjRVU7Pvx jVlQ== X-Gm-Message-State: AO0yUKVcwxmbDoVkNwsP5qUyZAlhHkMIL2Q/PCTj3pNmWx4l8iQaHbUd ozq/Km2zl4Q+Lg7ovK49HQKtOQ== X-Google-Smtp-Source: AK7set9IyxLBcFMyhRiPSnl96+6aM5tzfrsjVKILFy3hmVR0DK5phIUs5wKfYhSJQja4y6L2yglStA== X-Received: by 2002:a05:6402:7ce:b0:4c0:57b:47a9 with SMTP id u14-20020a05640207ce00b004c0057b47a9mr25746879edy.35.1678533337882; 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.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 03:15:37 -0800 (PST) From: Krzysztof Kozlowski To: Sebastian Reichel , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 4/6] power: supply: ltc4162-l-charger: mark OF related data as maybe unused Date: Sat, 11 Mar 2023 12:15:30 +0100 Message-Id: <20230311111532.251604-4-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/ltc4162-l-charger.c:911:34: error: ‘ltc4162l_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/power/supply/ltc4162-l-charger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/ltc4162-l-charger.c b/drivers/power/supply/ltc4162-l-charger.c index 0e95c65369b8..285580845e2f 100644 --- a/drivers/power/supply/ltc4162-l-charger.c +++ b/drivers/power/supply/ltc4162-l-charger.c @@ -908,7 +908,7 @@ static const struct i2c_device_id ltc4162l_i2c_id_table[] = { }; MODULE_DEVICE_TABLE(i2c, ltc4162l_i2c_id_table); -static const struct of_device_id ltc4162l_of_match[] = { +static const struct of_device_id ltc4162l_of_match[] __maybe_unused = { { .compatible = "lltc,ltc4162-l", }, { }, }; From patchwork Sat Mar 11 11:15:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170756 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 9B629C74A5B for ; Sat, 11 Mar 2023 11:17:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229967AbjCKLRV (ORCPT ); Sat, 11 Mar 2023 06:17:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230360AbjCKLQx (ORCPT ); Sat, 11 Mar 2023 06:16:53 -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 C6FB325E2A for ; Sat, 11 Mar 2023 03:15:49 -0800 (PST) Received: by mail-ed1-x531.google.com with SMTP id er25so2603595edb.5 for ; Sat, 11 Mar 2023 03:15:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678533338; 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=CnVytKXzG/PfqmH1YFo44HqQ/pxS3EVtu4JHHtkscVQ=; b=W2cNVSZPzNqiL8DwRdYMZLA+BBMukG08dxRtSpQIT/o1HRRioAgzbrwmQF3xhPJffx 2pzuB8hgC6WVtEWtdYQDBWU2+IYETM8+EFi6bQGYt06ikJ9VOQVAkW47Pn6enRbMnyOl rLnxTVKkxx8KGLdy04O2baaEfqst8StaX31t23qnEDp8lXw9i0C7klcr+I0jwDefULoU oe7H/tJ2suaAmTgC0Omu/UOFtrtKo7Z3PFmtY1+w+XveTMlrmxMFQIytf/h5CXYqNN9z FJT7o5oudwRMPAP68syb9qv4M/5F39fo9WghtFXmGgNwC0EPnrWq0o4zKG9l1t9ZPzHv dDZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678533338; 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=CnVytKXzG/PfqmH1YFo44HqQ/pxS3EVtu4JHHtkscVQ=; b=ZOL6CZLe1C0lKx/IvAlT4qod3z5m+gifwS4tLsEJ1HknXs0j0ooGcGy0pCqkwzlVzo Kk68h/cZmxpQ0VkLgKYcfov0AVmvh33Cq+za6TYFajvJHQ07Qh0JbirdOsIKUjGIYqhg dnmCXPep1q/3WKFltVvWc28bxvFYpc9CgzSumKQjzyvDi9lV5p/clhMkloJTj2dN28OW MVnQz51GeqSEkS6XoyH10X/z5vIF006SC1RzL09EOe1ir3k6XBN4cbllnckUlJs56j+4 fZMU6Nab06leaR9EzJjCHckW6eocU7nnNEQJ3D15+AOXvwa4aNOqnBPDzJ8IkO8GxsSH 6KVQ== X-Gm-Message-State: AO0yUKVndqo2wryf2ivnMoKW0K0FyQNcRhQ/skNVHIrLHkfWAvJWSAEP eO1d+26MfzOZaa3g5eJmAEJ6Cg== X-Google-Smtp-Source: AK7set+WPqvhWN6zo0+j5J849Jl6Kh+GwuoGLiZVKuNdzn6qAMbBsp6RrjA412S51YmdGdQm7SUzuA== X-Received: by 2002:a17:906:dd7:b0:87e:a34b:9e2b with SMTP id p23-20020a1709060dd700b0087ea34b9e2bmr28952527eji.28.1678533338677; Sat, 11 Mar 2023 03:15:38 -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:38 -0800 (PST) From: Krzysztof Kozlowski To: Sebastian Reichel , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 5/6] power: supply: bq24257_charger: mark OF related data as maybe unused Date: Sat, 11 Mar 2023 12:15:31 +0100 Message-Id: <20230311111532.251604-5-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/bq24257_charger.c:1143:34: error: ‘bq24257_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/power/supply/bq24257_charger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/bq24257_charger.c b/drivers/power/supply/bq24257_charger.c index 103ddc2b3def..45e4ba30da98 100644 --- a/drivers/power/supply/bq24257_charger.c +++ b/drivers/power/supply/bq24257_charger.c @@ -1140,7 +1140,7 @@ static const struct i2c_device_id bq24257_i2c_ids[] = { }; MODULE_DEVICE_TABLE(i2c, bq24257_i2c_ids); -static const struct of_device_id bq24257_of_match[] = { +static const struct of_device_id bq24257_of_match[] __maybe_unused = { { .compatible = "ti,bq24250", }, { .compatible = "ti,bq24251", }, { .compatible = "ti,bq24257", }, 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: 13170757 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", },