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]
Message-ID: <447f8544-43e7-4907-bb76-0a805d3e7a20@roeck-us.net>
Date: Thu, 13 Jun 2024 16:45:14 -0700
From: Guenter Roeck <linux@...ck-us.net>
To: Thomas Weißschuh <linux@...ssschuh.net>
Cc: Jean Delvare <jdelvare@...e.com>, linux-hwmon@...r.kernel.org,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] hwmon: (core) Make hwmon_class const

On Fri, Jun 14, 2024 at 01:01:42AM +0200, Thomas Weißschuh wrote:
> Now that the driver core allows for struct class to be in read-only
> memory, mark hwmon_class as const.
> 
> Signed-off-by: Thomas Weißschuh <linux@...ssschuh.net>

Applied.

Thanks,
Guenter

> ---
>  drivers/hwmon/hwmon.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> 
> ---
> base-commit: d20f6b3d747c36889b7ce75ee369182af3decb6b
> change-id: 20240614-class-const-hwmon-556014c02b70
> 
> Best regards,
> 
> diff --git a/drivers/hwmon/hwmon.c b/drivers/hwmon/hwmon.c
> index 3b259c425ab7..1d1451dd239d 100644
> --- a/drivers/hwmon/hwmon.c
> +++ b/drivers/hwmon/hwmon.c
> @@ -136,7 +136,7 @@ static void hwmon_dev_release(struct device *dev)
>  	kfree(hwdev);
>  }
>  
> -static struct class hwmon_class = {
> +static const struct class hwmon_class = {
>  	.name = "hwmon",
>  	.dev_groups = hwmon_dev_attr_groups,
>  	.dev_release = hwmon_dev_release,

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ