]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mfd: omap-usb-tll: Annotate struct usbtll_omap with __counted_by
authorJavier Carrasco <javier.carrasco.cruz@gmail.com>
Thu, 20 Jun 2024 21:22:33 +0000 (23:22 +0200)
committerLee Jones <lee@kernel.org>
Thu, 4 Jul 2024 16:38:41 +0000 (17:38 +0100)
commitfa0c3667d0bf41442927f79d4453b52a265ab601
tree08ca8687c475840c0b06be87dc38335e896ebd95
parent6b10f1c581f302b12bdd77d06038984a0709e0b0
mfd: omap-usb-tll: Annotate struct usbtll_omap with __counted_by

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 <javier.carrasco.cruz@gmail.com>
Link: https://lore.kernel.org/r/20240620-omap-usb-tll-counted_by-v1-1-77797834bb9a@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/omap-usb-tll.c