diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c index ac10db66cc63..cfdff122905b 100644 --- a/kernel/locking/lockdep.c +++ b/kernel/locking/lockdep.c @@ -489,7 +489,7 @@ struct lock_trace { struct hlist_node hash_entry; u32 hash; u32 nr_entries; - unsigned long entries[0] __aligned(sizeof(unsigned long)); + unsigned long entries[] __aligned(sizeof(unsigned long)); }; #define LOCK_TRACE_SIZE_IN_LONGS \ (sizeof(struct lock_trace) / sizeof(unsigned long))