summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleksandr Suvorov <oleksandr.suvorov@toradex.com>2020-05-21 21:42:07 +0300
committerOleksandr Suvorov <oleksandr.suvorov@toradex.com>2020-05-21 21:43:09 +0300
commit4cb81c29dde242744eccf9f37f2014ea3b37ade2 (patch)
tree6e1995a91ebc6007b80597ecc922d806d8960cce
parente8ef623db4bd6fb85df341d583000e1b12a64a63 (diff)
asm-generic/bug.h should proceeded before linux/bug.h to avoid the compillation error [1]. [1] ======================================= In file included from backport-include/linux/bug.h:3, from backport-include/linux/kernel.h:4, from include/asm-generic/bug.h:13, from backport-include/asm-generic/bug.h:3, from ./arch/arm/include/asm/bug.h:62, from ./arch/arm/include/asm/div64.h:63, from include/linux/math64.h:5, from backport-include/linux/math64.h:3, from include/linux/jiffies.h:5, from backport-include/linux/jiffies.h:3, from net/mac80211/rx.c:12: include/linux/bug.h:91:47: warning: ‘struct bug_entry’ declared inside parameter list will not be visible outside of this definition or declaration 91 | static inline int is_warning_bug(const struct bug_entry *bug) | ^~~~~~~~~ include/linux/bug.h: In function ‘is_warning_bug’: include/linux/bug.h:93:12: error: dereferencing pointer to incomplete type ‘const struct bug_entry’ 93 | return bug->flags & BUGFLAG_WARNING; | ^~ ======================================= Related-to: ELB-2724 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
-rw-r--r--backport-include/linux/kernel.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/backport-include/linux/kernel.h b/backport-include/linux/kernel.h
index f508166..3ddeb13 100644
--- a/backport-include/linux/kernel.h
+++ b/backport-include/linux/kernel.h
@@ -1,7 +1,6 @@
#ifndef __BACKPORT_KERNEL_H
#define __BACKPORT_KERNEL_H
#include_next <linux/kernel.h>
-#include <linux/bug.h>
#include <linux/version.h>
/*
* some older kernels don't have this and thus don't