Skip to contentSkip to conversation

kernel: notifier: Remove notifier header file wherever not used

PATCH New Mukesh Ojha 2 participants 2 messages Aug 24, 2018 – Aug 30, 2018

Subsystems (9)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel: notifier: Remove notifier header file wherever not used

When notifier converted to state-machine in hotplug, we missed to remove header file from some of the files.
So, Remove it with this.

---
 fs/buffer.c            | 1 -
 kernel/printk/printk.c | 1 -
 lib/percpu_counter.c   | 1 -
 mm/page-writeback.c    | 1 -
 mm/page_alloc.c        | 1 -
 mm/slub.c              | 1 -
 net/core/dev.c         | 1 -
 7 files changed, 7 deletions(-)
fs/buffer.c +0 -1
index 4cc679d..6f1ae3a 100644
@@ -39,7 +39,6 @@
 #include <linux/buffer_head.h>
 #include <linux/task_io_accounting_ops.h>
 #include <linux/bio.h>
-#include <linux/notifier.h>
 #include <linux/cpu.h>
 #include <linux/bitops.h>
 #include <linux/mpage.h>
kernel/printk/printk.c +0 -1
index 924e37f..fd6f8ed 100644
@@ -38,7 +38,6 @@
 #include <linux/kmsg_dump.h>
 #include <linux/syslog.h>
 #include <linux/cpu.h>
-#include <linux/notifier.h>
 #include <linux/rculist.h>
 #include <linux/poll.h>
 #include <linux/irq_work.h>
lib/percpu_counter.c +0 -1
index c72577e..a66595b 100644
@@ -4,7 +4,6 @@
  */
 
 #include <linux/percpu_counter.h>
-#include <linux/notifier.h>
 #include <linux/mutex.h>
 #include <linux/init.h>
 #include <linux/cpu.h>
mm/page-writeback.c +0 -1
index 6551d3b..84ae9bf 100644
@@ -27,7 +27,6 @@
 #include <linux/mpage.h>
 #include <linux/rmap.h>
 #include <linux/percpu.h>
-#include <linux/notifier.h>
 #include <linux/smp.h>
 #include <linux/sysctl.h>
 #include <linux/cpu.h>
mm/page_alloc.c +0 -1
index e75865d..05e983f 100644
@@ -32,7 +32,6 @@
 #include <linux/slab.h>
 #include <linux/ratelimit.h>
 #include <linux/oom.h>
-#include <linux/notifier.h>
 #include <linux/topology.h>
 #include <linux/sysctl.h>
 #include <linux/cpu.h>
mm/slub.c +0 -1
index ce2b9e5..8da34a8 100644
@@ -19,7 +19,6 @@
 #include <linux/slab.h>
 #include "slab.h"
 #include <linux/proc_fs.h>
-#include <linux/notifier.h>
 #include <linux/seq_file.h>
 #include <linux/kasan.h>
 #include <linux/cpu.h>
net/core/dev.c +0 -1
index 325fc50..82114e1 100644
@@ -93,7 +93,6 @@
 #include <linux/netdevice.h>
 #include <linux/etherdevice.h>
 #include <linux/ethtool.h>
-#include <linux/notifier.h>
 #include <linux/skbuff.h>
 #include <linux/bpf.h>
 #include <linux/bpf_trace.h>
Signature · 2 lines
Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center,
Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
#1 lore raw

[tip:core/urgent] notifier: Remove notifier header file wherever not used

notifier: Remove notifier header file wherever not used
Commit-ID:  13ba17bee18e321b073b49a88dcab10881f757da
Gitweb:     https://git.kernel.org/tip/13ba17bee18e321b073b49a88dcab10881f757da
Author:     Mukesh Ojha <[email protected]>
AuthorDate: Fri, 24 Aug 2018 18:03:53 +0530
Committer:  Thomas Gleixner <[email protected]>
CommitDate: Thu, 30 Aug 2018 12:56:40 +0200

notifier: Remove notifier header file wherever not used

The conversion of the hotplug notifiers to a state machine left the notifier.h includes around in some places. Remove them.

---
 fs/buffer.c            | 1 -
 kernel/printk/printk.c | 1 -
 lib/percpu_counter.c   | 1 -
 mm/page-writeback.c    | 1 -
 mm/page_alloc.c        | 1 -
 mm/slub.c              | 1 -
 net/core/dev.c         | 1 -
 7 files changed, 7 deletions(-)
fs/buffer.c +0 -1
index 4cc679d5bf58..6f1ae3ac9789 100644
@@ -39,7 +39,6 @@
 #include <linux/buffer_head.h>
 #include <linux/task_io_accounting_ops.h>
 #include <linux/bio.h>
-#include <linux/notifier.h>
 #include <linux/cpu.h>
 #include <linux/bitops.h>
 #include <linux/mpage.h>
kernel/printk/printk.c +0 -1
index 924e37fb1620..fd6f8ed28e01 100644
@@ -38,7 +38,6 @@
 #include <linux/kmsg_dump.h>
 #include <linux/syslog.h>
 #include <linux/cpu.h>
-#include <linux/notifier.h>
 #include <linux/rculist.h>
 #include <linux/poll.h>
 #include <linux/irq_work.h>
lib/percpu_counter.c +0 -1
index c72577e472f2..a66595ba5543 100644
@@ -4,7 +4,6 @@
  */
 
 #include <linux/percpu_counter.h>
-#include <linux/notifier.h>
 #include <linux/mutex.h>
 #include <linux/init.h>
 #include <linux/cpu.h>
mm/page-writeback.c +0 -1
index 6551d3b0dc30..84ae9bf5858a 100644
@@ -27,7 +27,6 @@
 #include <linux/mpage.h>
 #include <linux/rmap.h>
 #include <linux/percpu.h>
-#include <linux/notifier.h>
 #include <linux/smp.h>
 #include <linux/sysctl.h>
 #include <linux/cpu.h>
mm/page_alloc.c +0 -1
index e75865d58ba7..05e983f42316 100644
@@ -32,7 +32,6 @@
 #include <linux/slab.h>
 #include <linux/ratelimit.h>
 #include <linux/oom.h>
-#include <linux/notifier.h>
 #include <linux/topology.h>
 #include <linux/sysctl.h>
 #include <linux/cpu.h>
mm/slub.c +0 -1
index ce2b9e5cea77..8da34a8af53d 100644
@@ -19,7 +19,6 @@
 #include <linux/slab.h>
 #include "slab.h"
 #include <linux/proc_fs.h>
-#include <linux/notifier.h>
 #include <linux/seq_file.h>
 #include <linux/kasan.h>
 #include <linux/cpu.h>
net/core/dev.c +0 -1
index 325fc5088370..82114e1111e6 100644
@@ -93,7 +93,6 @@
 #include <linux/netdevice.h>
 #include <linux/etherdevice.h>
 #include <linux/ethtool.h>
-#include <linux/notifier.h>
 #include <linux/skbuff.h>
 #include <linux/bpf.h>
 #include <linux/bpf_trace.h>