From: Alexey Dobriyan <adobriyan@gmail.com>
To: akpm@linux-foundation.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] headers: remove fs.h from poll.h
Date: Tue, 1 Jul 2014 23:01:50 +0300 [thread overview]
Message-ID: <20140701200150.GA31103@p183.telecom.by> (raw)
fs.h is new sched.h!
Start removing unnecessary fs.h inclusions.
In the end of the whole series ~2000 useless fs.h inclusions are gone
(just need more comple testing).
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---
drivers/gpu/vga/vgaarb.c | 1 +
drivers/input/serio/serio_raw.c | 1 +
drivers/misc/mic/host/mic_fops.c | 1 +
drivers/platform/goldfish/goldfish_pipe.c | 1 +
drivers/pps/pps.c | 1 +
drivers/rtc/interface.c | 1 +
drivers/rtc/rtc-dev.c | 1 +
drivers/rtc/rtc-pcf8563.c | 1 +
drivers/staging/comedi/drivers/serial2002.c | 1 +
drivers/vfio/pci/vfio_pci_intrs.c | 1 +
include/linux/poll.h | 3 ++-
include/sound/pcm.h | 1 +
sound/core/control.c | 1 +
sound/core/hwdep.c | 1 +
sound/core/init.c | 1 +
sound/core/oss/mixer_oss.c | 1 +
sound/core/rawmidi.c | 1 +
sound/core/seq/oss/seq_oss.c | 1 +
sound/core/seq/oss/seq_oss_init.c | 1 +
sound/core/seq/seq_clientmgr.c | 1 +
sound/core/sound.c | 1 +
sound/core/timer.c | 1 +
sound/isa/wavefront/wavefront_fx.c | 1 +
sound/isa/wavefront/wavefront_synth.c | 1 +
24 files changed, 25 insertions(+), 1 deletion(-)
--- a/drivers/gpu/vga/vgaarb.c
+++ b/drivers/gpu/vga/vgaarb.c
@@ -29,6 +29,7 @@
*
*/
+#include <linux/fs.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/pci.h>
--- a/drivers/input/serio/serio_raw.c
+++ b/drivers/input/serio/serio_raw.c
@@ -9,6 +9,7 @@
* the Free Software Foundation.
*/
+#include <linux/fs.h>
#include <linux/kref.h>
#include <linux/sched.h>
#include <linux/slab.h>
--- a/drivers/misc/mic/host/mic_fops.c
+++ b/drivers/misc/mic/host/mic_fops.c
@@ -18,6 +18,7 @@
* Intel MIC Host driver.
*
*/
+#include <linux/fs.h>
#include <linux/poll.h>
#include <linux/pci.h>
--- a/drivers/platform/goldfish/goldfish_pipe.c
+++ b/drivers/platform/goldfish/goldfish_pipe.c
@@ -45,6 +45,7 @@
* exchange is properly mapped during a transfer.
*/
+#include <linux/fs.h>
#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/kernel.h>
--- a/drivers/pps/pps.c
+++ b/drivers/pps/pps.c
@@ -21,6 +21,7 @@
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+#include <linux/fs.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
--- a/drivers/rtc/interface.c
+++ b/drivers/rtc/interface.c
@@ -11,6 +11,7 @@
* published by the Free Software Foundation.
*/
+#include <linux/fs.h>
#include <linux/rtc.h>
#include <linux/sched.h>
#include <linux/module.h>
--- a/drivers/rtc/rtc-dev.c
+++ b/drivers/rtc/rtc-dev.c
@@ -13,6 +13,7 @@
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+#include <linux/fs.h>
#include <linux/module.h>
#include <linux/rtc.h>
#include <linux/sched.h>
--- a/drivers/rtc/rtc-pcf8563.c
+++ b/drivers/rtc/rtc-pcf8563.c
@@ -14,6 +14,7 @@
* published by the Free Software Foundation.
*/
+#include <linux/fs.h>
#include <linux/i2c.h>
#include <linux/bcd.h>
#include <linux/rtc.h>
--- a/drivers/staging/comedi/drivers/serial2002.c
+++ b/drivers/staging/comedi/drivers/serial2002.c
@@ -26,6 +26,7 @@ Status: in development
*/
+#include <linux/fs.h>
#include <linux/module.h>
#include "../comedidev.h"
--- a/drivers/vfio/pci/vfio_pci_intrs.c
+++ b/drivers/vfio/pci/vfio_pci_intrs.c
@@ -14,6 +14,7 @@
*/
#include <linux/device.h>
+#include <linux/fs.h>
#include <linux/interrupt.h>
#include <linux/eventfd.h>
#include <linux/pci.h>
--- a/include/linux/poll.h
+++ b/include/linux/poll.h
@@ -6,11 +6,12 @@
#include <linux/ktime.h>
#include <linux/wait.h>
#include <linux/string.h>
-#include <linux/fs.h>
#include <linux/sysctl.h>
#include <asm/uaccess.h>
#include <uapi/linux/poll.h>
+struct file;
+
extern struct ctl_table epoll_table[]; /* for sysctl */
/* ~832 bytes of stack space used max in sys_select/sys_poll before allocating
additional memory. */
--- a/include/sound/pcm.h
+++ b/include/sound/pcm.h
@@ -26,6 +26,7 @@
#include <sound/asound.h>
#include <sound/memalloc.h>
#include <sound/minors.h>
+#include <linux/fs.h>
#include <linux/poll.h>
#include <linux/mm.h>
#include <linux/bitops.h>
--- a/sound/core/control.c
+++ b/sound/core/control.c
@@ -19,6 +19,7 @@
*
*/
+#include <linux/fs.h>
#include <linux/threads.h>
#include <linux/interrupt.h>
#include <linux/module.h>
--- a/sound/core/hwdep.c
+++ b/sound/core/hwdep.c
@@ -19,6 +19,7 @@
*
*/
+#include <linux/fs.h>
#include <linux/major.h>
#include <linux/init.h>
#include <linux/slab.h>
--- a/sound/core/init.c
+++ b/sound/core/init.c
@@ -19,6 +19,7 @@
*
*/
+#include <linux/fs.h>
#include <linux/init.h>
#include <linux/sched.h>
#include <linux/module.h>
--- a/sound/core/oss/mixer_oss.c
+++ b/sound/core/oss/mixer_oss.c
@@ -19,6 +19,7 @@
*
*/
+#include <linux/fs.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/time.h>
--- a/sound/core/rawmidi.c
+++ b/sound/core/rawmidi.c
@@ -20,6 +20,7 @@
*/
#include <sound/core.h>
+#include <linux/fs.h>
#include <linux/major.h>
#include <linux/init.h>
#include <linux/sched.h>
--- a/sound/core/seq/oss/seq_oss.c
+++ b/sound/core/seq/oss/seq_oss.c
@@ -20,6 +20,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#include <linux/fs.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/mutex.h>
--- a/sound/core/seq/oss/seq_oss_init.c
+++ b/sound/core/seq/oss/seq_oss_init.c
@@ -27,6 +27,7 @@
#include "seq_oss_readq.h"
#include "seq_oss_timer.h"
#include "seq_oss_event.h"
+#include <linux/fs.h>
#include <linux/init.h>
#include <linux/export.h>
#include <linux/moduleparam.h>
--- a/sound/core/seq/seq_clientmgr.c
+++ b/sound/core/seq/seq_clientmgr.c
@@ -21,6 +21,7 @@
*
*/
+#include <linux/fs.h>
#include <linux/init.h>
#include <linux/export.h>
#include <linux/slab.h>
--- a/sound/core/sound.c
+++ b/sound/core/sound.c
@@ -19,6 +19,7 @@
*
*/
+#include <linux/fs.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/time.h>
--- a/sound/core/timer.c
+++ b/sound/core/timer.c
@@ -20,6 +20,7 @@
*/
#include <linux/delay.h>
+#include <linux/fs.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/time.h>
--- a/sound/isa/wavefront/wavefront_fx.c
+++ b/sound/isa/wavefront/wavefront_fx.c
@@ -17,6 +17,7 @@
*/
#include <asm/io.h>
+#include <linux/fs.h>
#include <linux/init.h>
#include <linux/time.h>
#include <linux/wait.h>
--- a/sound/isa/wavefront/wavefront_synth.c
+++ b/sound/isa/wavefront/wavefront_synth.c
@@ -21,6 +21,7 @@
*/
#include <asm/io.h>
+#include <linux/fs.h>
#include <linux/interrupt.h>
#include <linux/init.h>
#include <linux/delay.h>
next reply other threads:[~2014-07-01 20:01 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-01 20:01 Alexey Dobriyan [this message]
2014-07-01 20:43 ` [PATCH] headers: remove fs.h from poll.h Andrew Morton
2014-07-01 22:06 ` Alexey Dobriyan
2014-07-02 23:09 ` David Rientjes
2014-07-05 9:07 ` Alexey Dobriyan
2014-07-30 1:20 ` David Rientjes
2014-08-04 19:53 ` David Rientjes
2014-08-16 23:37 Alexey Dobriyan
[not found] ` <CA+55aFw3B=USNMLdehm+hv9fVWE1yaR42a2y8udcE8QvJfbSPA@mail.gmail.com>
2014-08-17 9:33 ` Alexey Dobriyan
2014-08-17 22:45 ` David Rientjes
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140701200150.GA31103@p183.telecom.by \
--to=adobriyan@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).