s390: convert use of typedef ctl_table to struct ctl_table
This typedef is unnecessary and should just be removed. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
parent
cb4deb6962
commit
302bfe20ad
|
@ -48,9 +48,9 @@ static struct platform_device *appldata_pdev;
|
||||||
* /proc entries (sysctl)
|
* /proc entries (sysctl)
|
||||||
*/
|
*/
|
||||||
static const char appldata_proc_name[APPLDATA_PROC_NAME_LENGTH] = "appldata";
|
static const char appldata_proc_name[APPLDATA_PROC_NAME_LENGTH] = "appldata";
|
||||||
static int appldata_timer_handler(ctl_table *ctl, int write,
|
static int appldata_timer_handler(struct ctl_table *ctl, int write,
|
||||||
void __user *buffer, size_t *lenp, loff_t *ppos);
|
void __user *buffer, size_t *lenp, loff_t *ppos);
|
||||||
static int appldata_interval_handler(ctl_table *ctl, int write,
|
static int appldata_interval_handler(struct ctl_table *ctl, int write,
|
||||||
void __user *buffer,
|
void __user *buffer,
|
||||||
size_t *lenp, loff_t *ppos);
|
size_t *lenp, loff_t *ppos);
|
||||||
|
|
||||||
|
@ -201,7 +201,7 @@ static void __appldata_vtimer_setup(int cmd)
|
||||||
* Start/Stop timer, show status of timer (0 = not active, 1 = active)
|
* Start/Stop timer, show status of timer (0 = not active, 1 = active)
|
||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
appldata_timer_handler(ctl_table *ctl, int write,
|
appldata_timer_handler(struct ctl_table *ctl, int write,
|
||||||
void __user *buffer, size_t *lenp, loff_t *ppos)
|
void __user *buffer, size_t *lenp, loff_t *ppos)
|
||||||
{
|
{
|
||||||
unsigned int len;
|
unsigned int len;
|
||||||
|
@ -243,7 +243,7 @@ out:
|
||||||
* current timer interval.
|
* current timer interval.
|
||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
appldata_interval_handler(ctl_table *ctl, int write,
|
appldata_interval_handler(struct ctl_table *ctl, int write,
|
||||||
void __user *buffer, size_t *lenp, loff_t *ppos)
|
void __user *buffer, size_t *lenp, loff_t *ppos)
|
||||||
{
|
{
|
||||||
unsigned int len;
|
unsigned int len;
|
||||||
|
@ -287,7 +287,7 @@ out:
|
||||||
* monitoring (0 = not in process, 1 = in process)
|
* monitoring (0 = not in process, 1 = in process)
|
||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
appldata_generic_handler(ctl_table *ctl, int write,
|
appldata_generic_handler(struct ctl_table *ctl, int write,
|
||||||
void __user *buffer, size_t *lenp, loff_t *ppos)
|
void __user *buffer, size_t *lenp, loff_t *ppos)
|
||||||
{
|
{
|
||||||
struct appldata_ops *ops = NULL, *tmp_ops;
|
struct appldata_ops *ops = NULL, *tmp_ops;
|
||||||
|
|
|
@ -889,7 +889,7 @@ static int debug_active=1;
|
||||||
* if debug_active is already off
|
* if debug_active is already off
|
||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
s390dbf_procactive(ctl_table *table, int write,
|
s390dbf_procactive(struct ctl_table *table, int write,
|
||||||
void __user *buffer, size_t *lenp, loff_t *ppos)
|
void __user *buffer, size_t *lenp, loff_t *ppos)
|
||||||
{
|
{
|
||||||
if (!write || debug_stoppable || !debug_active)
|
if (!write || debug_stoppable || !debug_active)
|
||||||
|
|
|
@ -253,8 +253,8 @@ static int cmm_skip_blanks(char *cp, char **endp)
|
||||||
|
|
||||||
static struct ctl_table cmm_table[];
|
static struct ctl_table cmm_table[];
|
||||||
|
|
||||||
static int cmm_pages_handler(ctl_table *ctl, int write, void __user *buffer,
|
static int cmm_pages_handler(struct ctl_table *ctl, int write,
|
||||||
size_t *lenp, loff_t *ppos)
|
void __user *buffer, size_t *lenp, loff_t *ppos)
|
||||||
{
|
{
|
||||||
char buf[16], *p;
|
char buf[16], *p;
|
||||||
unsigned int len;
|
unsigned int len;
|
||||||
|
@ -293,8 +293,8 @@ static int cmm_pages_handler(ctl_table *ctl, int write, void __user *buffer,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int cmm_timeout_handler(ctl_table *ctl, int write, void __user *buffer,
|
static int cmm_timeout_handler(struct ctl_table *ctl, int write,
|
||||||
size_t *lenp, loff_t *ppos)
|
void __user *buffer, size_t *lenp, loff_t *ppos)
|
||||||
{
|
{
|
||||||
char buf[64], *p;
|
char buf[64], *p;
|
||||||
long nr, seconds;
|
long nr, seconds;
|
||||||
|
|
Loading…
Reference in New Issue