Skip to content
Snippets Groups Projects
Commit b63815e3 authored by Matthias Kaehlcke's avatar Matthias Kaehlcke Committed by Wolfgang Denk
Browse files

move definition of macros likely and unlikely to compiler.h


the macros likely and unlikely were defined in include/linux/mtd/compat.h,
but used in code not related to MTD. moved the macro definitions to compiler.h

Signed-off-by: default avatarMatthias Kaehlcke <matthias@kaehlcke.net>
parent c3d7eec6
No related branches found
No related tags found
No related merge requests found
......@@ -125,4 +125,7 @@ typedef unsigned int uintptr_t;
/* compiler options */
#define uninitialized_var(x) x = x
#define likely(x) __builtin_expect(!!(x), 1)
#define unlikely(x) __builtin_expect(!!(x), 0)
#endif
......@@ -48,8 +48,5 @@
#define BUG_ON(condition) do { if (condition) BUG(); } while(0)
#endif /* BUG */
#define likely(x) __builtin_expect(!!(x), 1)
#define unlikely(x) __builtin_expect(!!(x), 0)
#define PAGE_SIZE 4096
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment