From: Andrew Morton Date: Thu, 8 Dec 2011 04:41:56 +0000 (+1100) Subject: brlocks-lglocks-clean-up-code-checkpatch-fixes X-Git-Tag: next-20111209~3^2~124 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0bd21c0ac563648910aec89f2e91bf1531fc2a7b;p=karo-tx-linux.git brlocks-lglocks-clean-up-code-checkpatch-fixes Cc: Al Viro ERROR: trailing whitespace #768: FILE: include/linux/lglock.h:54: +#endif $ WARNING: line over 80 characters #772: FILE: include/linux/lglock.h:58: + DEFINE_PER_CPU(arch_spinlock_t, name ## _lock) = __ARCH_SPIN_LOCK_UNLOCKED; \ ERROR: trailing whitespace #917: FILE: kernel/lglock.c:5: +void lg_lock_init(struct lglock *lg, char *name) $ ERROR: trailing whitespace #923: FILE: kernel/lglock.c:11: +void lg_local_lock(struct lglock *lg) $ ERROR: trailing whitespace #933: FILE: kernel/lglock.c:21: +void lg_local_unlock(struct lglock *lg) $ ERROR: trailing whitespace #943: FILE: kernel/lglock.c:31: +void lg_local_lock_cpu(struct lglock *lg, int cpu) $ ERROR: trailing whitespace #953: FILE: kernel/lglock.c:41: +void lg_local_unlock_cpu(struct lglock *lg, int cpu) $ ERROR: trailing whitespace #963: FILE: kernel/lglock.c:51: +void lg_global_lock_online(struct lglock *lg) $ total: 7 errors, 1 warnings, 893 lines checked NOTE: whitespace errors detected, you may wish to use scripts/cleanpatch or scripts/cleanfile ./patches/brlocks-lglocks-clean-up-code.patch has style problems, please review. If any of these errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. Please run checkpatch prior to sending patches Cc: Al Viro Cc: Andi Kleen Cc: Nick Piggin Signed-off-by: Andrew Morton --- diff --git a/kernel/lglock.c b/kernel/lglock.c index 1a1d7f6a4d85..26c5bc2fa2a4 100644 --- a/kernel/lglock.c +++ b/kernel/lglock.c @@ -2,13 +2,13 @@ #include #include -void lg_lock_init(struct lglock *lg, char *name) +void lg_lock_init(struct lglock *lg, char *name) { LOCKDEP_INIT_MAP(&lg->lock_dep_map, name, &lg->lock_key, 0); } EXPORT_SYMBOL(lg_lock_init); -void lg_local_lock(struct lglock *lg) +void lg_local_lock(struct lglock *lg) { arch_spinlock_t *lock; preempt_disable(); @@ -18,7 +18,7 @@ void lg_local_lock(struct lglock *lg) } EXPORT_SYMBOL(lg_local_lock); -void lg_local_unlock(struct lglock *lg) +void lg_local_unlock(struct lglock *lg) { arch_spinlock_t *lock; rwlock_release(&lg->lock_dep_map, 1, _RET_IP_); @@ -28,7 +28,7 @@ void lg_local_unlock(struct lglock *lg) } EXPORT_SYMBOL(lg_local_unlock); -void lg_local_lock_cpu(struct lglock *lg, int cpu) +void lg_local_lock_cpu(struct lglock *lg, int cpu) { arch_spinlock_t *lock; preempt_disable(); @@ -38,7 +38,7 @@ void lg_local_lock_cpu(struct lglock *lg, int cpu) } EXPORT_SYMBOL(lg_local_lock_cpu); -void lg_local_unlock_cpu(struct lglock *lg, int cpu) +void lg_local_unlock_cpu(struct lglock *lg, int cpu) { arch_spinlock_t *lock; rwlock_release(&lg->lock_dep_map, 1, _RET_IP_); @@ -48,7 +48,7 @@ void lg_local_unlock_cpu(struct lglock *lg, int cpu) } EXPORT_SYMBOL(lg_local_unlock_cpu); -void lg_global_lock_online(struct lglock *lg) +void lg_global_lock_online(struct lglock *lg) { int i; preempt_disable();