Merge branch 'hch.procfs' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 4 Jun 2018 17:00:01 +0000 (10:00 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 4 Jun 2018 17:00:01 +0000 (10:00 -0700)
Pull procfs updates from Al Viro:
 "Christoph's proc_create_... cleanups series"

* 'hch.procfs' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: (44 commits)
  xfs, proc: hide unused xfs procfs helpers
  isdn/gigaset: add back gigaset_procinfo assignment
  proc: update SIZEOF_PDE_INLINE_NAME for the new pde fields
  tty: replace ->proc_fops with ->proc_show
  ide: replace ->proc_fops with ->proc_show
  ide: remove ide_driver_proc_write
  isdn: replace ->proc_fops with ->proc_show
  atm: switch to proc_create_seq_private
  atm: simplify procfs code
  bluetooth: switch to proc_create_seq_data
  netfilter/x_tables: switch to proc_create_seq_private
  netfilter/xt_hashlimit: switch to proc_create_{seq,single}_data
  neigh: switch to proc_create_seq_data
  hostap: switch to proc_create_{seq,single}_data
  bonding: switch to proc_create_seq_data
  rtc/proc: switch to proc_create_single_data
  drbd: switch to proc_create_single
  resource: switch to proc_create_seq_data
  staging/rtl8192u: simplify procfs code
  jfs: simplify procfs code
  ...

17 files changed:
1  2 
block/genhd.c
drivers/block/DAC960.c
drivers/block/drbd/drbd_int.h
drivers/block/drbd/drbd_main.c
drivers/block/pktcdvd.c
drivers/ide/ide-cd.c
drivers/ide/ide-tape.c
drivers/parisc/ccio-dma.c
drivers/scsi/sg.c
fs/proc/array.c
fs/proc/base.c
net/core/sock.c
net/ipv4/route.c
net/netfilter/ipvs/ip_vs_conn.c
net/netfilter/ipvs/ip_vs_ctl.c
net/netfilter/x_tables.c
net/packet/af_packet.c

diff --cc block/genhd.c
Simple merge
index 7c3887a7e534737b860633d67076517fc7fe191c,6918c3d9482e3279f733c60db8031a78c3696465..6ca77d6047d619dd54ea5ef464af625d1712db8f
@@@ -6587,9 -6553,11 +6548,11 @@@ static void DAC960_CreateProcEntries(DA
                 "c%d", Controller->ControllerNumber);
        ControllerProcEntry = proc_mkdir(Controller->ControllerName,
                                         DAC960_ProcDirectoryEntry);
-       proc_create_data("initial_status", 0, ControllerProcEntry, &dac960_initial_status_proc_fops, Controller);
-       proc_create_data("current_status", 0, ControllerProcEntry, &dac960_current_status_proc_fops, Controller);
+       proc_create_single_data("initial_status", 0, ControllerProcEntry,
+                       dac960_initial_status_proc_show, Controller);
+       proc_create_single_data("current_status", 0, ControllerProcEntry,
+                       dac960_current_status_proc_show, Controller);
 -      proc_create_data("user_command", S_IWUSR | S_IRUSR, ControllerProcEntry, &dac960_user_command_proc_fops, Controller);
 +      proc_create_data("user_command", 0600, ControllerProcEntry, &dac960_user_command_proc_fops, Controller);
        Controller->ControllerProcEntry = ControllerProcEntry;
  }
  
Simple merge
index a233e71e58ff1794f89801c0a422536840ba955c,c2d154faac02a1756d4ea8b67b88c8373d0f51fe..7655d6133139961a26e02df3de444a7950683436
@@@ -2989,7 -3010,8 +2989,7 @@@ static int __init drbd_init(void
                goto fail;
  
        err = -ENOMEM;
-       drbd_proc = proc_create_data("drbd", S_IFREG | 0444 , NULL, &drbd_proc_fops, NULL);
 -      drbd_proc = proc_create_single("drbd", S_IFREG | S_IRUGO , NULL,
 -                      drbd_seq_show);
++      drbd_proc = proc_create_single("drbd", S_IFREG | 0444 , NULL, drbd_seq_show);
        if (!drbd_proc) {
                pr_err("unable to register proc file\n");
                goto fail;
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc fs/proc/array.c
Simple merge
diff --cc fs/proc/base.c
Simple merge
diff --cc net/core/sock.c
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge