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", }, { }, };