MISRA C:2012 Amendment 3 (which is under consideration, but not used by Xen
yet) is more particular about having the storage class specifier first.
No functional change.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Michal Orzel <michal.orzel@amd.com>
BUG();
}
-const static struct gic_hw_operations gicv2_ops = {
+static const struct gic_hw_operations gicv2_ops = {
.info = &gicv2_info,
.init = gicv2_init,
.secondary_init = gicv2_secondary_cpu_init,
static int8_t __initdata x2apic_phys = -1;
boolean_param("x2apic_phys", x2apic_phys);
-enum {
+static enum {
unset, physical, mixed
-} static __initdata x2apic_mode = unset;
+} x2apic_mode __initdata = unset;
static int __init cf_check parse_x2apic_mode(const char *s)
{
unsigned long start,
unsigned long nr_pages)
{
- struct {
+ static const struct {
unsigned long align;
unsigned int order;
- } static const __initconst orders[] = {
+ } orders[] __initconst = {
/* NB: must be sorted by decreasing size. */
{ .align = PFN_DOWN(GB(1)), .order = PAGE_ORDER_1G },
{ .align = PFN_DOWN(MB(2)), .order = PAGE_ORDER_2M },
typedef void (*exitcall_t)(void);
#define presmp_initcall(fn) \
- const static initcall_t __initcall_##fn __init_call("presmp") = (fn)
+ static const initcall_t __initcall_##fn __init_call("presmp") = (fn)
#define __initcall(fn) \
- const static initcall_t __initcall_##fn __init_call("1") = (fn)
+ static const initcall_t __initcall_##fn __init_call("1") = (fn)
#define __exitcall(fn) \
static exitcall_t __exitcall_##fn __exit_call = fn