svc.c (91de76e661a266731fc2889a398ad1694df9d523) | svc.c (e4dca7b7aa08b22893c45485d222b5807c1375ae) |
---|---|
1/* 2 * linux/fs/lockd/svc.c 3 * 4 * This is the central lockd service. 5 * 6 * FIXME: Separate the lockd NFS server functionality from the lockd NFS 7 * client functionality. Oh why didn't Sun create two separate 8 * services in the first place? --- 588 unchanged lines hidden (view full) --- 597 598#endif /* CONFIG_SYSCTL */ 599 600/* 601 * Module (and sysfs) parameters. 602 */ 603 604#define param_set_min_max(name, type, which_strtol, min, max) \ | 1/* 2 * linux/fs/lockd/svc.c 3 * 4 * This is the central lockd service. 5 * 6 * FIXME: Separate the lockd NFS server functionality from the lockd NFS 7 * client functionality. Oh why didn't Sun create two separate 8 * services in the first place? --- 588 unchanged lines hidden (view full) --- 597 598#endif /* CONFIG_SYSCTL */ 599 600/* 601 * Module (and sysfs) parameters. 602 */ 603 604#define param_set_min_max(name, type, which_strtol, min, max) \ |
605static int param_set_##name(const char *val, struct kernel_param *kp) \ | 605static int param_set_##name(const char *val, const struct kernel_param *kp) \ |
606{ \ 607 char *endp; \ 608 __typeof__(type) num = which_strtol(val, &endp, 0); \ 609 if (endp == val || *endp || num < (min) || num > (max)) \ 610 return -EINVAL; \ 611 *((type *) kp->arg) = num; \ 612 return 0; \ 613} --- 174 unchanged lines hidden --- | 606{ \ 607 char *endp; \ 608 __typeof__(type) num = which_strtol(val, &endp, 0); \ 609 if (endp == val || *endp || num < (min) || num > (max)) \ 610 return -EINVAL; \ 611 *((type *) kp->arg) = num; \ 612 return 0; \ 613} --- 174 unchanged lines hidden --- |