lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210919170330.0b79cb0e@jic23-huawei>
Date:   Sun, 19 Sep 2021 17:03:30 +0100
From:   Jonathan Cameron <jic23@...nel.org>
To:     Daniel Palmer <daniel@...f.com>
Cc:     lars@...afoo.de, linux-iio@...r.kernel.org,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH] iio: accel: mma7660: Mark acpi match table as maybe
 unused

On Sun, 19 Sep 2021 16:26:16 +0900
Daniel Palmer <daniel@...f.com> wrote:

> When building kernels without ACPI support the table is declared
> but is not used because ACPI_PTR() turns it into a NULL.
> 
> Add the __maybe_unused attribute to stop the compiler whining.
> 
> Signed-off-by: Daniel Palmer <daniel@...f.com>
Applied to the togreg branch of iio.git which is initially pushed out as testing
to let 0-day poke at it and see if we missed anything.

Thanks,

Jonathan

> ---
>  drivers/iio/accel/mma7660.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/iio/accel/mma7660.c b/drivers/iio/accel/mma7660.c
> index 47f5cd66e996..cd6cdf2c51b0 100644
> --- a/drivers/iio/accel/mma7660.c
> +++ b/drivers/iio/accel/mma7660.c
> @@ -254,7 +254,7 @@ static const struct of_device_id mma7660_of_match[] = {
>  };
>  MODULE_DEVICE_TABLE(of, mma7660_of_match);
>  
> -static const struct acpi_device_id mma7660_acpi_id[] = {
> +static const struct acpi_device_id __maybe_unused mma7660_acpi_id[] = {
>  	{"MMA7660", 0},
>  	{}
>  };

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ