Skip to content

Commit

Permalink
drm/linux: Fix WARN_ONCE()
Browse files Browse the repository at this point in the history
  • Loading branch information
François Tigeot committed Jul 4, 2015
1 parent 965b839 commit c7a40bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sys/dev/drm/include/linux/kernel.h
Expand Up @@ -146,11 +146,13 @@

#define WARN_ONCE(condition, format...) ({ \
static bool __warned_once; \
int __ret = !!(condition); \
\
if ((condition) && !__warned_once) { \
WARN(condition, format); \
__warned_once = true; \
} \
unlikely(__ret); \
})

#define container_of(ptr, type, member) \
Expand Down

0 comments on commit c7a40bf

Please sign in to comment.