From 4cb81c29dde242744eccf9f37f2014ea3b37ade2 Mon Sep 17 00:00:00 2001 From: Oleksandr Suvorov Date: Thu, 21 May 2020 21:42:07 +0300 Subject: backport-include: fix loop in including MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- backport-include/linux/kernel.h | 1 - 1 file changed, 1 deletion(-) 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 -#include #include /* * some older kernels don't have this and thus don't -- cgit v1.2.3