POSIX TIMER: coding style: no space between asterisk and variable name
PATCH 2/2 POSIX TIMER: coding style: no space between asterisk and variable name
Here we delete the space between '*' and the following variable/function name.
Signed-off-by Li Zefan <[email protected]>
--- include/linux/posix-timers.h | 16 ++++++++-------- kernel/posix-timers.c | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-)
include/linux/posix-timers.h +8 -8
@@ -67,19 +67,19 @@ struct k_itimer {struct k_clock {int res;/* in nanoseconds */ int (*clock_getres) (const clockid_t which_clock,struct timespec *tp); -int (*clock_set) (const clockid_t which_clock,struct timespec * tp); -int (*clock_get) (const clockid_t which_clock,struct timespec * tp); +int (*clock_set) (const clockid_t which_clock,struct timespec *tp); +int (*clock_get) (const clockid_t which_clock,struct timespec *tp);int (*timer_create) (struct k_itimer *timer);int (*nsleep) (const clockid_t which_clock,int flags,struct timespec *,struct timespec __user *);long (*nsleep_restart) (struct restart_block *restart_block); -int (*timer_set) (struct k_itimer * timr,int flags, -struct itimerspec * new_setting, -struct itimerspec * old_setting); -int (*timer_del) (struct k_itimer * timr); +int (*timer_set) (struct k_itimer *timr,int flags, +struct itimerspec *new_setting, +struct itimerspec *old_setting); +int (*timer_del) (struct k_itimer *timr);#define TIMER_RETRY 1 -void (*timer_get) (struct k_itimer * timr, -struct itimerspec * cur_setting); +void (*timer_get) (struct k_itimer *timr, +struct itimerspec *cur_setting); };void register_posix_clock (const clockid_t clock_id,struct k_clock *new_clock);
kernel/posix-timers.c +4 -4
@@ -398,7 +398,7 @@ static enum hrtimer_restart posix_timer_fn(struct hrtimer *timer)return ret; } -static struct task_struct *good_sigevent (sigevent_t * event) +static struct task_struct *good_sigevent (sigevent_t *event) {struct task_struct *rtn = current->group_leader;
@@ -427,7 +427,7 @@ void register_posix_clock(const clockid_t clock_id, struct k_clock *new_clock) }EXPORT_SYMBOL_GPL (register_posix_clock); -static struct k_itimer *alloc_posix_timer (void ) +static struct k_itimer *alloc_posix_timer (void ) {struct k_itimer *tmr; tmr =kmem_cache_zalloc (posix_timers_cache,GFP_KERNEL );
@@ -462,7 +462,7 @@ static void release_posix_timer(struct k_itimer *tmr, int it_id_set)asmlinkage long sys_timer_create (const clockid_t which_clock,struct sigevent __user *timer_event_spec, -timer_t __user * created_timer_id) +timer_t __user *created_timer_id) {int error =0 ;struct k_itimer *new_timer =NULL ;
@@ -593,7 +593,7 @@ out:* the find to the timer lock. To avoid a dead lock, the timer id MUST * be release with out holding the timer lock. */ -static struct k_itimer *lock_timer (timer_t timer_id,unsigned long *flags) +static struct k_itimer *lock_timer (timer_t timer_id,unsigned long *flags) {struct k_itimer *timr;/*
Signature · 1 line
1.5.3.rc7