Skip to content

Commit 3453855

Browse files
akpm00sfrothwell
authored andcommitted
ipc-utilc-ipc_rcu_alloc-cacheline-align-allocation-checkpatch-fixes
ERROR: "(foo*)" should be "(foo *)" torvalds#47: FILE: ipc/util.c:493: + struct ipc_rcu *p = ((struct ipc_rcu*)ptr)-1; ERROR: "(foo*)" should be "(foo *)" #58: FILE: ipc/util.c:509: + struct ipc_rcu *p = ((struct ipc_rcu*)ptr)-1; total: 2 errors, 0 warnings, 34 lines checked ./patches/ipc-utilc-ipc_rcu_alloc-cacheline-align-allocation.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: Manfred Spraul <manfred@colorfullife.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent 84c6421 commit 3453855

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ipc/util.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -486,12 +486,12 @@ void *ipc_rcu_alloc(int size)
486486
if (unlikely(!out))
487487
return NULL;
488488
atomic_set(&out->refcount, 1);
489-
return out+1;
489+
return out + 1;
490490
}
491491

492492
int ipc_rcu_getref(void *ptr)
493493
{
494-
struct ipc_rcu *p = ((struct ipc_rcu*)ptr)-1;
494+
struct ipc_rcu *p = ((struct ipc_rcu *)ptr) - 1;
495495

496496
return atomic_inc_not_zero(&p->refcount);
497497
}
@@ -507,7 +507,7 @@ static void ipc_schedule_free(struct rcu_head *head)
507507

508508
void ipc_rcu_putref(void *ptr)
509509
{
510-
struct ipc_rcu *p = ((struct ipc_rcu*)ptr)-1;
510+
struct ipc_rcu *p = ((struct ipc_rcu *)ptr) - 1;
511511

512512
if (!atomic_dec_and_test(&p->refcount))
513513
return;

0 commit comments

Comments
 (0)