OSDN Git Service

parport: Remove register_sysctl_table from parport_proc_register
authorJoel Granados <j.granados@samsung.com>
Tue, 23 May 2023 12:22:14 +0000 (14:22 +0200)
committerLuis Chamberlain <mcgrof@kernel.org>
Wed, 24 May 2023 04:43:25 +0000 (21:43 -0700)
commit93810936a6bfbc538771914836fca24570e3bcc5
tree5bdf2d97b79b9e16bbb15cd41bdb38b59eed925f
parent7c0bf4dad6bf44eef4a573985dd053de77688df1
parport: Remove register_sysctl_table from parport_proc_register

This is part of the general push to deprecate register_sysctl_paths and
register_sysctl_table. Register dev/parport/PORTNAME and
dev/parport/PORTNAME/devices. Temporary allocation for name is freed at
the end of the function. Remove all the struct elements that are no
longer used in the parport_device_sysctl_template struct. Add parport
specific defines that hide the base path sizes.

To make sure the resulting directory structure did not change we
made sure that `find /proc/sys/dev/ | sha1sum` was the same before and
after the change.

Signed-off-by: Joel Granados <j.granados@samsung.com>
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/r/202305150948.pHgIh7Ql-lkp@intel.com/
Reported-by: Dan Carpenter <error27@gmail.com>
Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
drivers/parport/procfs.c