Skip to contentSkip to conversation

SH: No need to explicitly include <linux/rwlock.h>.

PATCH New Robert P. J. Day 1 participant 1 message Feb 27, 2010 SuperH

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 SH: No need to explicitly include <linux/rwlock.h>.

Since <linux/spinlock.h> already includes <linux/rwlock.h>, and the latter file will warn about not having included the former file anyway, there is no value in including rwlock.h explicitly.

---

arch/sh/mm/pmb.c +0 -1
index 198bcff..35b364f 100644
@@ -23,7 +23,6 @@
 #include <linux/err.h>
 #include <linux/io.h>
 #include <linux/spinlock.h>
-#include <linux/rwlock.h>
 #include <asm/sizes.h>
 #include <asm/system.h>
 #include <asm/uaccess.h>

====================================
Robert P. J. Day Waterloo, Ontario, CANADA

Linux Consulting, Training and Kernel Pedantry.

Web page:                                          http://crashcourse.ca
Twitter:                                       http://twitter.com/rpjday

====================================