linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ssb: make ssb_bustype const
@ 2024-02-04 20:44 Ricardo B. Marliere
  2024-02-04 20:48 ` Michael Büsch
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Ricardo B. Marliere @ 2024-02-04 20:44 UTC (permalink / raw)
  To: Michael Buesch
  Cc: linux-wireless, linux-kernel, Greg Kroah-Hartman,
	Ricardo B. Marliere

Now that the driver core can properly handle constant struct bus_type,
move the ssb_bustype variable to be a constant structure as well,
placing it into read-only memory which can not be modified at runtime.

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net>
---
 drivers/ssb/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/ssb/main.c b/drivers/ssb/main.c
index b9934b9c2d70..9f30e0edadfe 100644
--- a/drivers/ssb/main.c
+++ b/drivers/ssb/main.c
@@ -384,7 +384,7 @@ static struct attribute *ssb_device_attrs[] = {
 };
 ATTRIBUTE_GROUPS(ssb_device);
 
-static struct bus_type ssb_bustype = {
+static const struct bus_type ssb_bustype = {
 	.name		= "ssb",
 	.match		= ssb_bus_match,
 	.probe		= ssb_device_probe,

---
base-commit: 41b9fb381a486360b2daaec0c7480f8e3ff72bc7
change-id: 20240204-bus_cleanup-ssb-64aef4eda20e

Best regards,
-- 
Ricardo B. Marliere <ricardo@marliere.net>


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] ssb: make ssb_bustype const
  2024-02-04 20:44 [PATCH] ssb: make ssb_bustype const Ricardo B. Marliere
@ 2024-02-04 20:48 ` Michael Büsch
  2024-02-05 12:46 ` Greg Kroah-Hartman
  2024-02-06 18:07 ` Kalle Valo
  2 siblings, 0 replies; 6+ messages in thread
From: Michael Büsch @ 2024-02-04 20:48 UTC (permalink / raw)
  To: Ricardo B. Marliere; +Cc: linux-wireless, linux-kernel, Greg Kroah-Hartman

[-- Attachment #1: Type: text/plain, Size: 523 bytes --]

On Sun, 04 Feb 2024 17:44:21 -0300
"Ricardo B. Marliere" <ricardo@marliere.net> wrote:

> --- a/drivers/ssb/main.c
> +++ b/drivers/ssb/main.c
> @@ -384,7 +384,7 @@ static struct attribute *ssb_device_attrs[] = {
>  };
>  ATTRIBUTE_GROUPS(ssb_device);
>  
> -static struct bus_type ssb_bustype = {
> +static const struct bus_type ssb_bustype = {
>  	.name		= "ssb",
>  	.match		= ssb_bus_match,
>  	.probe		= ssb_device_probe,

Acked-by: Michael Büsch <m@bues.ch>


-- 
Michael Büsch
https://bues.ch/

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] ssb: make ssb_bustype const
  2024-02-04 20:44 [PATCH] ssb: make ssb_bustype const Ricardo B. Marliere
  2024-02-04 20:48 ` Michael Büsch
@ 2024-02-05 12:46 ` Greg Kroah-Hartman
  2024-02-06  6:31   ` Kalle Valo
  2024-02-06 18:07 ` Kalle Valo
  2 siblings, 1 reply; 6+ messages in thread
From: Greg Kroah-Hartman @ 2024-02-05 12:46 UTC (permalink / raw)
  To: Ricardo B. Marliere; +Cc: Michael Buesch, linux-wireless, linux-kernel

On Sun, Feb 04, 2024 at 05:44:21PM -0300, Ricardo B. Marliere wrote:
> Now that the driver core can properly handle constant struct bus_type,
> move the ssb_bustype variable to be a constant structure as well,
> placing it into read-only memory which can not be modified at runtime.
> 
> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net>

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] ssb: make ssb_bustype const
  2024-02-05 12:46 ` Greg Kroah-Hartman
@ 2024-02-06  6:31   ` Kalle Valo
  2024-02-06  9:45     ` Greg Kroah-Hartman
  0 siblings, 1 reply; 6+ messages in thread
From: Kalle Valo @ 2024-02-06  6:31 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Ricardo B. Marliere, Michael Buesch, linux-wireless, linux-kernel

Greg Kroah-Hartman <gregkh@linuxfoundation.org> writes:

> On Sun, Feb 04, 2024 at 05:44:21PM -0300, Ricardo B. Marliere wrote:
>> Now that the driver core can properly handle constant struct bus_type,
>> move the ssb_bustype variable to be a constant structure as well,
>> placing it into read-only memory which can not be modified at runtime.
>> 
>> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
>> Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
>> Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net>
>
> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Greg, I saw your Reviewed-by email 7 times. Not sure if the problem is
on my end or your end but wanted to make sure you are aware of it.

-- 
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] ssb: make ssb_bustype const
  2024-02-06  6:31   ` Kalle Valo
@ 2024-02-06  9:45     ` Greg Kroah-Hartman
  0 siblings, 0 replies; 6+ messages in thread
From: Greg Kroah-Hartman @ 2024-02-06  9:45 UTC (permalink / raw)
  To: Kalle Valo
  Cc: Ricardo B. Marliere, Michael Buesch, linux-wireless, linux-kernel

On Tue, Feb 06, 2024 at 08:31:44AM +0200, Kalle Valo wrote:
> Greg Kroah-Hartman <gregkh@linuxfoundation.org> writes:
> 
> > On Sun, Feb 04, 2024 at 05:44:21PM -0300, Ricardo B. Marliere wrote:
> >> Now that the driver core can properly handle constant struct bus_type,
> >> move the ssb_bustype variable to be a constant structure as well,
> >> placing it into read-only memory which can not be modified at runtime.
> >> 
> >> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> >> Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> >> Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net>
> >
> > Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> 
> Greg, I saw your Reviewed-by email 7 times. Not sure if the problem is
> on my end or your end but wanted to make sure you are aware of it.

Yes, sorry, happened due to writing emails on a plane without a fully
working internet connection :(

My fault.

greg k-h

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] ssb: make ssb_bustype const
  2024-02-04 20:44 [PATCH] ssb: make ssb_bustype const Ricardo B. Marliere
  2024-02-04 20:48 ` Michael Büsch
  2024-02-05 12:46 ` Greg Kroah-Hartman
@ 2024-02-06 18:07 ` Kalle Valo
  2 siblings, 0 replies; 6+ messages in thread
From: Kalle Valo @ 2024-02-06 18:07 UTC (permalink / raw)
  To: Ricardo B. Marliere
  Cc: Michael Buesch, linux-wireless, linux-kernel, Greg Kroah-Hartman,
	Ricardo B. Marliere

"Ricardo B. Marliere" <ricardo@marliere.net> wrote:

> Now that the driver core can properly handle constant struct bus_type,
> move the ssb_bustype variable to be a constant structure as well,
> placing it into read-only memory which can not be modified at runtime.
> 
> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net>
> Acked-by: Michael Büsch <m@bues.ch>
> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Patch applied to wireless-next.git, thanks.

78092e68557b ssb: make ssb_bustype const

-- 
https://patchwork.kernel.org/project/linux-wireless/patch/20240204-bus_cleanup-ssb-v1-1-511026cd5f3c@marliere.net/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-02-06 18:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-04 20:44 [PATCH] ssb: make ssb_bustype const Ricardo B. Marliere
2024-02-04 20:48 ` Michael Büsch
2024-02-05 12:46 ` Greg Kroah-Hartman
2024-02-06  6:31   ` Kalle Valo
2024-02-06  9:45     ` Greg Kroah-Hartman
2024-02-06 18:07 ` Kalle Valo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).