Skip to content

Commit c7388c1

Browse files
Christoph HellwigAl Viro
authored andcommitted
net/sysctl: remove leftover __user annotations on neigh_proc_dointvec*
Remove the leftover __user annotation on the prototypes for neigh_proc_dointvec*. The implementations already got this right, but the headers kept the __user tags around. Fixes: 3292739 ("sysctl: pass kernel pointers to ->proc_handler") Reported-by: build test robot <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Al Viro <[email protected]>
1 parent 56965ac commit c7388c1

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

include/net/neighbour.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -392,13 +392,12 @@ void *neigh_seq_next(struct seq_file *, void *, loff_t *);
392392
void neigh_seq_stop(struct seq_file *, void *);
393393

394394
int neigh_proc_dointvec(struct ctl_table *ctl, int write,
395-
void __user *buffer, size_t *lenp, loff_t *ppos);
395+
void *buffer, size_t *lenp, loff_t *ppos);
396396
int neigh_proc_dointvec_jiffies(struct ctl_table *ctl, int write,
397-
void __user *buffer,
397+
void *buffer,
398398
size_t *lenp, loff_t *ppos);
399399
int neigh_proc_dointvec_ms_jiffies(struct ctl_table *ctl, int write,
400-
void __user *buffer,
401-
size_t *lenp, loff_t *ppos);
400+
void *buffer, size_t *lenp, loff_t *ppos);
402401

403402
int neigh_sysctl_register(struct net_device *dev, struct neigh_parms *p,
404403
proc_handler *proc_handler);

0 commit comments

Comments
 (0)