From patchwork Sat Mar 11 11:16:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 68079 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp234493wrd; Sat, 11 Mar 2023 03:22:05 -0800 (PST) X-Google-Smtp-Source: AK7set8PpRe7MleEbx6sbEj4vluG0oe+RZq/5qU+0Oh3QokXLs76XiwHDzY+LMVO80sFc6EDFr2u X-Received: by 2002:a17:902:d506:b0:19e:2717:3de9 with SMTP id b6-20020a170902d50600b0019e27173de9mr35712038plg.52.1678533725411; Sat, 11 Mar 2023 03:22:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678533725; cv=none; d=google.com; s=arc-20160816; b=NnuFbjhddvOxdhQgfqTeHfk+1TcNIedP9XOXchn9rhWihxVXYju/pjVIuvlBZE6n2S 4nNNevsWRZq03hsnpmqJGMfFzzWTUt5dboDOcuISCbWKB1CE9Z/rk71xw64NL3iuLvOs 0uJNMKjcDayP6PPZzNdAIEOvLgEQU+kRoDj4h3PI5ng5OT7z0KPBofIWivzjbFkoYq40 LYQjMOmEnX4GeYjAFdN4SmNuuSIDt0IVDppz2XXiD6Em1DI7/Am+7HmsJm16Zr47hz61 5aL+1idftUeuqVQJMPosQd3sn4ePzJgqosoEAfmVyjQan72+9X7EiVoIhKiMugWtOm41 na8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=z8oeEF/AzQvtVXNpB84yj5TovVGMv/c0ViZXuwoTaQY=; b=qOVYvf9/oRJsCEx1jSCpzFsX4Urt4MdRjVkeF+zz0daNlLurthpbIwZhiPlW0nBxny LAtBvSh2LHeh4SMhYs/9PeAPJ9KWPNnB4QMqq0jIdvdj2HvSVNmZmRovVMFaI2NfMeyG 27x3RvA07cjiZIuPPi4bijHgZIMq/eAHmLrwtioRvasYrv3S5osWY3OGpWhBHhh8loQC eEWYBSQvIDBZFDVBchaYBVwdgrS7jl+ec+QOSA7WmH/ue1BqzqTJZcWw3hz+OW2zV8p/ juZdNNAFtP2zZw1qTGDCRGUjrJ8mvpfzrJyknOwqZH9g5N00bd2asc64/zOXhxyFH+41 0H9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=COAYxq8A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y16-20020a631810000000b004fc8e102b08si1917523pgl.852.2023.03.11.03.21.50; Sat, 11 Mar 2023 03:22:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=COAYxq8A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230245AbjCKLUz (ORCPT + 99 others); Sat, 11 Mar 2023 06:20:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230488AbjCKLTy (ORCPT ); Sat, 11 Mar 2023 06:19:54 -0500 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54097B7D92 for ; Sat, 11 Mar 2023 03:17:11 -0800 (PST) Received: by mail-ed1-x52f.google.com with SMTP id ec29so30751260edb.6 for ; Sat, 11 Mar 2023 03:17:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678533424; 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=z8oeEF/AzQvtVXNpB84yj5TovVGMv/c0ViZXuwoTaQY=; b=COAYxq8AT0uqrQbCHXbkj/g3Qs5hDhVsuLTBYQ2bJxruNac6vrplyfs/UEmjVMq0dg xkvGkHlKUlM/BiBesQ4flwUDD8euDmOnvLogGgeauHDXcRaKY7MKeGsDSZ/GrGNU4qIz tH7FNf6A8uxdhY7kF2QOEiB+UsCAtS2q9xCNIlHIYYUMZYCJTNhi0tyWQu0fTSiQa/w6 rYdfiaalgA17snDR6+upjrCTTZb3oCrv+sFohA/UpdFo/7hzrimPTydZ8Gpzxk01kvnY 4hpevlULBOtb7zoQlhFr9SkubsB3XM05CAhGDqHeJjeUpRZPfeVhc/hLoUeRYM5krq4H 2EQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678533424; 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=z8oeEF/AzQvtVXNpB84yj5TovVGMv/c0ViZXuwoTaQY=; b=0kp6+rBahj3736/G+o8wkls0rec5/35AC1suwO9aevyH/6Qcm7OkKAEIqTKUn54A0L OsUjXH0YK9oxyg3QiPtIiIjfGpPsvFJi5+GTareUX0SWgKfhM5rWvFzdo6Nm8461dw8T Z7QgPW4ncY03G55uyAEoo0JgsKtLz7tYqh+bfhoiSdsd85dfYyQL/pW/w8ih4p+25aEV BCDbQEB0F4pI7/FzJZvMvkn+QsZV7X/xtnwZDYUaTrWKUKO6pfeMSHdhskljno3RyHN/ v+EYfAbEEKdKXey7r/G/k2EkYFkzKJxWEC2Tb9FESAjsS8+ITepS2It4H5hnEWBPTze/ 3QLQ== X-Gm-Message-State: AO0yUKW2VtY97Tuf1+DlG5Eypy1f6+m9uFM4EsD0yUklcuKkSwsevLUy fPUwMfKpREZsnMaOyFl6h/Stkg== X-Received: by 2002:a17:906:9f21:b0:884:3707:bd83 with SMTP id fy33-20020a1709069f2100b008843707bd83mr3376069ejc.69.1678533424385; Sat, 11 Mar 2023 03:17:04 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:fa97:2d7c:bdd7:e1b]) by smtp.gmail.com with ESMTPSA id mp27-20020a1709071b1b00b008d398a4e687sm973975ejc.158.2023.03.11.03.17.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 03:17:04 -0800 (PST) From: Krzysztof Kozlowski To: Benson Leung , Guenter Roeck , Qii Wang , Matthias Brugger , AngeloGioacchino Del Regno , =?utf-8?q?Andreas_F=C3=A4rber?= , Manivannan Sadhasivam , Ard Biesheuvel , Michal Simek , linux-i2c@vger.kernel.org, chrome-platform@lists.linux.dev, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-actions@lists.infradead.org Cc: Krzysztof Kozlowski Subject: [PATCH 4/5] i2c: cros-ec-tunnel: Mark ACPI and OF related data as maybe unused Date: Sat, 11 Mar 2023 12:16:57 +0100 Message-Id: <20230311111658.251951-4-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230311111658.251951-1-krzysztof.kozlowski@linaro.org> References: <20230311111658.251951-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760070179883623925?= X-GMAIL-MSGID: =?utf-8?q?1760070179883623925?= The driver can be compile tested with !CONFIG_OF or !CONFIG_ACPI making certain data unused: drivers/i2c/busses/i2c-cros-ec-tunnel.c:295:34: error: ‘cros_ec_i2c_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski Reviewed-by: Guenter Roeck --- drivers/i2c/busses/i2c-cros-ec-tunnel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-cros-ec-tunnel.c b/drivers/i2c/busses/i2c-cros-ec-tunnel.c index 4e787dc709f9..8b3ff5bb14d8 100644 --- a/drivers/i2c/busses/i2c-cros-ec-tunnel.c +++ b/drivers/i2c/busses/i2c-cros-ec-tunnel.c @@ -292,13 +292,13 @@ static int ec_i2c_remove(struct platform_device *dev) return 0; } -static const struct of_device_id cros_ec_i2c_of_match[] = { +static const struct of_device_id cros_ec_i2c_of_match[] __maybe_unused = { { .compatible = "google,cros-ec-i2c-tunnel" }, {}, }; MODULE_DEVICE_TABLE(of, cros_ec_i2c_of_match); -static const struct acpi_device_id cros_ec_i2c_tunnel_acpi_id[] = { +static const struct acpi_device_id cros_ec_i2c_tunnel_acpi_id[] __maybe_unused = { { "GOOG0012", 0 }, { } };