Some macros are already defined in include/linux/compat.h.
Remove the unnecessary defined macros.
Partially picked from mainline commit
ff94bc40af34 ("mtd, ubi, ubifs: resync with Linux-3.14").
Change-Id: Id5e55f577fddcaf26680c2dec3460776fb0b581c
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
#include <linux/compat.h>
/* common */
-#define spin_lock_init(...)
-#define spin_lock(...)
-#define spin_lock_irqsave(lock, flags) do { debug("%lu\n", flags); } while (0)
-#define spin_unlock(...)
-#define spin_unlock_irqrestore(lock, flags) do {flags = 0; } while (0)
-#define disable_irq(...)
-#define enable_irq(...)
-
-#define mutex_init(...)
-#define mutex_lock(...)
-#define mutex_unlock(...)
-
-#define GFP_KERNEL 0
-
-#define IRQ_HANDLED 1
-
#define ENOTSUPP 524 /* Operation is not supported */
#define BITS_PER_BYTE 8