Re: [PATCH] accel/habanalabs: make hl_class constant

2023-10-09 Thread Greg Kroah-Hartman
On Tue, Oct 10, 2023 at 09:07:53AM +0300, Oded Gabbay wrote: > On Fri, Oct 6, 2023 at 4:57 PM Greg Kroah-Hartman > wrote: > > > > Now that the driver core allows for struct class to be in read-only > > memory, we should make all 'class' structures declared at build time > > placing them into read-

Re: [PATCH] accel/habanalabs: make hl_class constant

2023-10-09 Thread Oded Gabbay
On Fri, Oct 6, 2023 at 4:57 PM Greg Kroah-Hartman wrote: > > Now that the driver core allows for struct class to be in read-only > memory, we should make all 'class' structures declared at build time > placing them into read-only memory, instead of having to be dynamically > allocated at runtime.

[PATCH] accel/habanalabs: make hl_class constant

2023-10-06 Thread Greg Kroah-Hartman
Now that the driver core allows for struct class to be in read-only memory, we should make all 'class' structures declared at build time placing them into read-only memory, instead of having to be dynamically allocated at runtime. This requires some passing of const struct class * around in the co