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