Skip to content

Commit

Permalink
lfq: fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
fcangialosi authored and akshayknarayan committed Jun 6, 2018
1 parent 85f4f89 commit 110c3fe
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions ccpkp/lfq/lfq.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
#include <linux/wait.h>
#include <linux/uaccess.h>

#ifndef __MALLOC__
#define __MALLOC__(size) kmalloc(size, GFP_KERNEL)
#endif
#ifndef ___FREE___
#define ___FREE___(p) kfree(p)
#endif
#ifndef __MALLOC__
#define __MALLOC__(size) kmalloc(size, GFP_KERNEL)
#endif
#ifndef ___FREE___
#define ___FREE___(p) kfree(p)
#endif
#define CAS(a,o,n) cmpxchg(a,o,n) == o
#define ASSERT(cond)
#ifndef COPY_TO_USER
Expand All @@ -30,12 +30,13 @@
#include <errno.h>
#include <assert.h>
#include <pthread.h>
#ifndef __MALLOC__
#define __MALLOC__(size) malloc(size)
#endif
#ifndef ___FREE___
#define ___FREE___(p) free(p)
#endif

#ifndef __MALLOC__
#define __MALLOC__(size) malloc(size)
#endif
#ifndef ___FREE___
#define ___FREE___(p) free(p)
#endif
#define CAS(a,o,n) __sync_bool_compare_and_swap(a,o,n)
#define ASSERT(cond) assert(cond)
#ifndef COPY_TO_USER
Expand Down

0 comments on commit 110c3fe

Please sign in to comment.