From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_2 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C50C1C433E0 for ; Sat, 18 Jul 2020 16:14:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A52742073A for ; Sat, 18 Jul 2020 16:14:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595088854; bh=Osp/gKISTVnGXNKf6iQAKCzlIBxB7UoGrG0JXnknpOY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:List-ID:From; b=tt25VFfKmQpRv9rP9DESr3deMfSXV1nTooQ7o0uaTU4ga1H08q+1pQSB5fl9Bp1xP ywF2hHPkGZ/TW0EwhjTW9ijQ7xCEGnbMNzpwKmg9A1WDJP6nnXash3/Plh3/BqFeUs Ndgzf8uTtnpG9jNthtgL6KLp3SkPb5GU5OTRE28I= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728311AbgGRQON (ORCPT ); Sat, 18 Jul 2020 12:14:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:59494 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726411AbgGRQON (ORCPT ); Sat, 18 Jul 2020 12:14:13 -0400 Received: from archlinux (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 71B3F2070E; Sat, 18 Jul 2020 16:14:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595088852; bh=Osp/gKISTVnGXNKf6iQAKCzlIBxB7UoGrG0JXnknpOY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=UmQESmDDKfJQC0zatRyjCf0uJkvMfUFCOGjQNf8Ai7/L7fsjfGmojzF4y0C86iQxh bZJ1CeeQrBwmWyRmIgoNHCtR7Veatn4WXEuKB4BEzy88xrt/zKcTFcxRSpXN80ny50 DGcACR0bLV8SFv0Nj3OpcKAhBHKR7NqefcBMgD00= Date: Sat, 18 Jul 2020 17:14:08 +0100 From: Jonathan Cameron To: Lee Jones Cc: knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, Lorenzo Bianconi , Denis Ciocca Subject: Re: [PATCH 29/30] iio: imu: st_lsm6dsx: st_lsm6dsx: Mark 'st_lsm6dsx_accel_ext_info' as __maybe_unused Message-ID: <20200718171408.3bd958d0@archlinux> In-Reply-To: <20200717165538.3275050-30-lee.jones@linaro.org> References: <20200717165538.3275050-1-lee.jones@linaro.org> <20200717165538.3275050-30-lee.jones@linaro.org> X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 17 Jul 2020 17:55:37 +0100 Lee Jones wrote: > It doesn't make sense to move it into '*core*' as it's co-located with > other, similar definitions which are used in multiple locations. >=20 > Fixes the following W=3D1 kernel build warning(s): >=20 > In file included from drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i2c.c:17: > drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h:497:44: warning: =E2=80=98st_lsm= 6dsx_accel_ext_info=E2=80=99 defined but not used [-Wunused-const-variable= =3D] > 497 | static const struct iio_chan_spec_ext_info st_lsm6dsx_accel_ext_in= fo[] =3D { > | ^~~~~~~~~~~~~~~~~~~~~~~~~ > In file included from drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_spi.c:17: > drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h:497:44: warning: =E2=80=98st_lsm= 6dsx_accel_ext_info=E2=80=99 defined but not used [-Wunused-const-variable= =3D] > 497 | static const struct iio_chan_spec_ext_info st_lsm6dsx_accel_ext_in= fo[] =3D { > | ^~~~~~~~~~~~~~~~~~~~~~~~~ > In file included from drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i3c.c:16: > drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h:497:44: warning: =E2=80=98st_lsm= 6dsx_accel_ext_info=E2=80=99 defined but not used [-Wunused-const-variable= =3D] > 497 | static const struct iio_chan_spec_ext_info st_lsm6dsx_accel_ext_in= fo[] =3D { > | ^~~~~~~~~~~~~~~~~~~~~~~~~ >=20 > Cc: Lorenzo Bianconi > Cc: Denis Ciocca > Signed-off-by: Lee Jones Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it. Thanks, Jonathan > --- > drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >=20 > diff --git a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h b/drivers/iio/imu/st= _lsm6dsx/st_lsm6dsx.h > index 3e47a9287938b..d82ec6398222f 100644 > --- a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h > +++ b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h > @@ -494,7 +494,8 @@ st_lsm6dsx_get_mount_matrix(const struct iio_dev *iio= _dev, > return &hw->orientation; > } > =20 > -static const struct iio_chan_spec_ext_info st_lsm6dsx_accel_ext_info[] = =3D { > +static const > +struct iio_chan_spec_ext_info __maybe_unused st_lsm6dsx_accel_ext_info[]= =3D { > IIO_MOUNT_MATRIX(IIO_SHARED_BY_ALL, st_lsm6dsx_get_mount_matrix), > { } > };