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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Tue, 9 Feb 2016 23:48:53 +0100
From:	Alban <albeu@...e.fr>
To:	Philipp Zabel <p.zabel@...gutronix.de>
Cc:	Aban Bedel <albeu@...e.fr>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] reset: ath79: Make reset_control_ops const

On Mon,  8 Feb 2016 14:28:17 +0100
Philipp Zabel <p.zabel@...gutronix.de> wrote:

> The ath79_reset_ops structure is never modified. Make it const.
> 
> Signed-off-by: Philipp Zabel <p.zabel@...gutronix.de>
> ---
>  drivers/reset/reset-ath79.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/reset/reset-ath79.c b/drivers/reset/reset-ath79.c
> index 692fc89..ccb940a 100644
> --- a/drivers/reset/reset-ath79.c
> +++ b/drivers/reset/reset-ath79.c
> @@ -70,7 +70,7 @@ static int ath79_reset_status(struct reset_controller_dev *rcdev,
>  	return !!(val & BIT(id));
>  }
>  
> -static struct reset_control_ops ath79_reset_ops = {
> +static const struct reset_control_ops ath79_reset_ops = {
>  	.assert = ath79_reset_assert,
>  	.deassert = ath79_reset_deassert,
>  	.status = ath79_reset_status,

Acked-by: Alban Bedel <albeu@...e.fr>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ