ARM: ux500: storage class should be before const qualifier

This change “ARM: ux500: storage class should be before const qualifier” (commit 922468c) in Linux kernel is authored by Tobias Klauser <tklauser [at] distanz.ch> on Tue Jul 1 10:47:48 2014 +0200.

Description of "ARM: ux500: storage class should be before const qualifier"

The change “ARM: ux500: storage class should be before const qualifier” introduces changes as follows.

ARM: ux500: storage class should be before const qualifier

The C99 specification states in section 6.11.5:

The placement of a storage-class specifier other than at the beginning
of the declaration specifiers in a declaration is an obsolescent
feature.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

Linux kernel releases containing commit 922468c

The Linux kernel releases containing this commit are as follows.

Linux kernel code changes from "ARM: ux500: storage class should be before const qualifier"

There are 2 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 arch/arm/mach-ux500/timer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 
diff --git a/arch/arm/mach-ux500/timer.c b/arch/arm/mach-ux500/timer.c
index 87efda0aa348..ff28d8ad1ed7 100644
--- a/arch/arm/mach-ux500/timer.c
+++ b/arch/arm/mach-ux500/timer.c
@@ -16,7 +16,7 @@
 #include "db8500-regs.h"
 #include "id.h"
 
-const static struct of_device_id prcmu_timer_of_match[] __initconst = {
+static const struct of_device_id prcmu_timer_of_match[] __initconst = {
 	{ .compatible = "stericsson,db8500-prcmu-timer-4", },
 	{ },
 };

The commit for this change in Linux stable tree is 922468c (patch).

Last modified: 2020/02/10