[PATCH] LIB: Replace inappropriate include of <linux/bug.h>

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Replace an irrelevant include of bug.h with the more appropriate
includes of slab.h and module.h.

Signed-off-by: Robert P. J. Day <rpjday@xxxxxxxxxxxxxx>

---

  it's not as if the original inclusion is an error, it's simply not
related to the contents of that source file, while the other two are.

  compile-tested on i386.


diff --git a/lib/argv_split.c b/lib/argv_split.c
index 4096ed4..8eada37 100644
--- a/lib/argv_split.c
+++ b/lib/argv_split.c
@@ -4,7 +4,8 @@

 #include <linux/kernel.h>
 #include <linux/ctype.h>
-#include <linux/bug.h>
+#include <linux/slab.h>
+#include <linux/module.h>

 static const char *skip_sep(const char *cp)
 {
-- 
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://crashcourse.ca
========================================================================
-
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux