summaryrefslogtreecommitdiffstats
path: root/drivers/bus
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2023-10-16 22:53:30 +0200
committerArnd Bergmann <arnd@arndb.de>2023-10-16 22:53:31 +0200
commit765e4aa6be024496e2f599cd977701996cc629a8 (patch)
tree700d8a7e1995fec0eb696b666f2e4322b528b7b9 /drivers/bus
parent0aefb041c5dd4a2e594d9e2a17e4e87a6711d5bd (diff)
parentcb289ce6e2ce4cee594285d0c1e0249ae868c1de (diff)
downloadlinux-stable-765e4aa6be024496e2f599cd977701996cc629a8.tar.gz
linux-stable-765e4aa6be024496e2f599cd977701996cc629a8.tar.bz2
linux-stable-765e4aa6be024496e2f599cd977701996cc629a8.zip
Merge tag 'vexpress-update-6.7' of git://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux into soc/drivers
Arm Vexpress updates for v6.7 Just a single update to use __counted_by annotation in config bus driver in preparation to the upcoming versions of the toolchains(GCC and Clang) with __counted_by attribute. * tag 'vexpress-update-6.7' of git://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux: bus: vexpress-config: Annotate struct vexpress_syscfg_func with __counted_by Link: https://lore.kernel.org/r/20231010124339.1620012-1-sudeep.holla@arm.com Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'drivers/bus')
-rw-r--r--drivers/bus/vexpress-config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bus/vexpress-config.c b/drivers/bus/vexpress-config.c
index c4e1becbb2d2..d2c7ada90186 100644
--- a/drivers/bus/vexpress-config.c
+++ b/drivers/bus/vexpress-config.c
@@ -54,7 +54,7 @@ struct vexpress_syscfg_func {
struct vexpress_syscfg *syscfg;
struct regmap *regmap;
int num_templates;
- u32 template[]; /* Keep it last! */
+ u32 template[] __counted_by(num_templates); /* Keep it last! */
};
struct vexpress_config_bridge_ops {