Re: (subset) [PATCH 1/2] mfd: omap-usb-tll: annotate struct usbtll_omap with __counted_by

2024-06-26 Thread Lee Jones
On Thu, 20 Jun 2024 23:22:33 +0200, Javier Carrasco wrote: > Use the __counted_by compiler attribute for the "struct clk *ch_clk[]" > flexible array member to improve the results of array bound sanitizers. > > The comments for the variables are no longer needed as it is now clear > what is what. >

[PATCH 1/2] mfd: omap-usb-tll: annotate struct usbtll_omap with __counted_by

2024-06-20 Thread Javier Carrasco
Use the __counted_by compiler attribute for the "struct clk *ch_clk[]" flexible array member to improve the results of array bound sanitizers. The comments for the variables are no longer needed as it is now clear what is what. Signed-off-by: Javier Carrasco --- drivers/mfd/omap-usb-tll.c | 4 +