Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 187f1882 authored by Paul Gortmaker's avatar Paul Gortmaker
Browse files

BUG: headers with BUG/BUG_ON etc. need linux/bug.h



If a header file is making use of BUG, BUG_ON, BUILD_BUG_ON, or any
other BUG variant in a static inline (i.e. not in a #define) then
that header really should be including <linux/bug.h> and not just
expecting it to be implicitly present.

We can make this change risk-free, since if the files using these
headers didn't have exposure to linux/bug.h already, they would have
been causing compile failures/warnings.

Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent 50af5ead
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
#ifndef __ASM_AVR32_IO_H
#define __ASM_AVR32_IO_H

#include <linux/bug.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/types.h>
+1 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@

#include <linux/linkage.h>
#include <linux/kernel.h>
#include <linux/bug.h>
#include <linux/irqflags.h>
#include <asm/segment.h>
#include <asm/entry.h>
+1 −0
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@
#ifndef _LINUX_ASM_VGA_H_
#define _LINUX_ASM_VGA_H_

#include <linux/bug.h>
#include <asm/types.h>

#define VT_BUF_HAVE_RW
+1 −0
Original line number Diff line number Diff line
@@ -10,6 +10,7 @@
#include <asm/paravirt_types.h>

#ifndef __ASSEMBLY__
#include <linux/bug.h>
#include <linux/types.h>
#include <linux/cpumask.h>

+1 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
#define _ASM_GENERIC_DMA_MAPPING_H

#include <linux/kmemcheck.h>
#include <linux/bug.h>
#include <linux/scatterlist.h>
#include <linux/dma-debug.h>
#include <linux/dma-attrs.h>
Loading