summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2016-01-11 13:11:06 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2016-01-11 13:11:06 +0100
commita7964180e1d7ee8fbddd087ad45dbb96c23c8c1e (patch)
treebf0d4e256df392564f50304d2d89fd56355d4023 /include
parentae33625512143ac277d96a26e1390c7935259373 (diff)
parent5e11907b7b661a2c6ebe14ce10d3273f1d28fb8c (diff)
downloadbarebox-a7964180e1d7ee8fbddd087ad45dbb96c23c8c1e.tar.gz
barebox-a7964180e1d7ee8fbddd087ad45dbb96c23c8c1e.tar.xz
Merge branch 'for-next/gcc5'
Diffstat (limited to 'include')
-rw-r--r--include/linux/barebox-wrapper.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/barebox-wrapper.h b/include/linux/barebox-wrapper.h
index 3859185186..5fe7971018 100644
--- a/include/linux/barebox-wrapper.h
+++ b/include/linux/barebox-wrapper.h
@@ -39,8 +39,8 @@ typedef int spinlock_t;
#define spin_lock_init(...)
#define spin_lock(...)
#define spin_unlock(...)
-static inline void spin_lock_irqsave(spinlock_t *lock, unsigned long flags) {}
-static inline void spin_unlock_irqrestore(spinlock_t *lock, unsigned long flags) {}
+#define spin_lock_irqsave(lock, flags) do { flags = 0; } while (0)
+#define spin_unlock_irqrestore(lock, flags) do { flags = flags; } while (0)
#define mutex_init(...)
#define mutex_lock(...)