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 80427C61DA4 for ; Sat, 11 Mar 2023 16:09:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230449AbjCKQJs (ORCPT ); Sat, 11 Mar 2023 11:09:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229601AbjCKQJp (ORCPT ); Sat, 11 Mar 2023 11:09:45 -0500 Received: from mail-yb1-xb32.google.com (mail-yb1-xb32.google.com [IPv6:2607:f8b0:4864:20::b32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 559AEF6927 for ; Sat, 11 Mar 2023 08:09:43 -0800 (PST) Received: by mail-yb1-xb32.google.com with SMTP id y144so8023456yby.12 for ; Sat, 11 Mar 2023 08:09:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; t=1678550982; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=fzWZK/2DOJOXsvG+XJAqxVL+3bPwefI5Iyt8l7pygUU=; b=NEU+nw8LaiuwdyVp2yAz91CWBZNF3qBVdmKv6heVA54lqDYYTkQrItkE9diE+ifQvu JvEPZtVIR0BDGlJwIrgrBc7d2s6maquNDE8jtzghRqbxKRpUVOdpMfOby2LbDLTkQM9I nhAsUBIxRZ1zNOu529mfMDU1amVxwVhKh3u8EvhIS2FqswVJB4uYyDfQGcMUoTguAgj6 fwP5UaRMUCK8TTDU1bS0mmVSCxZVRjVXI9NBr51EZ6g+91OBMQZshXNjyXxCbmVTQWBG jAhwLRB5tfqbjvCqVcvBLfPwrkizvdEYZcD/7Lw/+NG4spsuOWY2d9moj1xd8BzIAC+E bxCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678550982; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fzWZK/2DOJOXsvG+XJAqxVL+3bPwefI5Iyt8l7pygUU=; b=DEB8gwG/Wqds12GBgcEM7Z38U7g94f0eFXvNgF7vVb+DT1+Fbc7mAHjDtAGGB0texE Bs4wnVaHJhV9GGWwQJ4c6nqCcjs2xiGGLfjPhYualBNhel+KcvH+JzWk4URloszCLAHL PdYD71nohkK+lyQlQNszPsXwsJ2DFnlR1ISGKJQ7SprvYemEU/vLgeCHDLTh5aCxp6ut QqlGg/OUecGA1TcSzDlLD+fh/4cFm9mjEOn4LvMbgRMtph31ocWmOpyBlSqNvEQt9ccY 1EFk42Nude8BP2hM/0/jQrYvRlvHejyQRBj+MHrqTYOcXHlYxJhToo0M6A02h2ZxG+Z4 yOOA== X-Gm-Message-State: AO0yUKW1H6p9dmPpQC0B0HNvREJ61ygOsOkDruwdl3i/w2EONosjQjZr vMKvmX/y4M/AUD6aS0TEWMU6M29y+DcvsPKRq1Z+nA== X-Google-Smtp-Source: AK7set/M/rmOrpL0L838CFr6LBaCI08Xy5jWKITiGoAakJxe2vY4+K5X0NVyMqq5eu3mW3qdOhSXtUFtnmiWfHsmpwQ= X-Received: by 2002:a25:8d8e:0:b0:b30:2539:a2b0 with SMTP id o14-20020a258d8e000000b00b302539a2b0mr3437066ybl.9.1678550982435; Sat, 11 Mar 2023 08:09:42 -0800 (PST) MIME-Version: 1.0 References: <20230311111658.251951-1-krzysztof.kozlowski@linaro.org> <20230311111658.251951-4-krzysztof.kozlowski@linaro.org> In-Reply-To: <20230311111658.251951-4-krzysztof.kozlowski@linaro.org> From: Guenter Roeck Date: Sat, 11 Mar 2023 08:09:31 -0800 Message-ID: Subject: Re: [PATCH 4/5] i2c: cros-ec-tunnel: Mark ACPI and OF related data as maybe unused To: Krzysztof Kozlowski Cc: 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 11, 2023 at 3:17=E2=80=AFAM Krzysztof Kozlowski wrote: > > 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: =E2=80=98cros_ec= _i2c_of_match=E2=80=99 defined but not used [-Werror=3Dunused-const-variabl= e=3D] > > 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 *de= v) > return 0; > } > > -static const struct of_device_id cros_ec_i2c_of_match[] =3D { > +static const struct of_device_id cros_ec_i2c_of_match[] __maybe_unused = =3D { > { .compatible =3D "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[] =3D { > +static const struct acpi_device_id cros_ec_i2c_tunnel_acpi_id[] __maybe_= unused =3D { > { "GOOG0012", 0 }, > { } > }; > -- > 2.34.1 >