Re: [PATCH] uacce: make uacce_class constant

From: Greg Kroah-Hartman
Date: Fri Oct 27 2023 - 02:52:30 EST


On Thu, Oct 26, 2023 at 10:21:52AM +0800, Zhangfei Gao wrote:
> On Tue, 24 Oct 2023 at 19:50, Greg Kroah-Hartman
> <gregkh@xxxxxxxxxxxxxxxxxxx> 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.
> >
> > Cc: Zhangfei Gao <zhangfei.gao@xxxxxxxxxx>
> > Cc: Zhou Wang <wangzhou1@xxxxxxxxxxxxx>
> > Cc: Arnd Bergmann <arnd@xxxxxxxx>
> > Cc: linux-accelerators@xxxxxxxxxxxxxxxx
> > Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
>
> Thanks, Greg
>
> Tested-by: Zhangfei Gao <zhangfei.gao@xxxxxxxxxx>

Wonderful, thanks for testing!