diff options
Diffstat (limited to 'include/linux/kernel.h')
| -rw-r--r-- | include/linux/kernel.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 022587afdc46..95965970e49b 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h @@ -191,4 +191,10 @@ struct sysinfo { }; #define BUG_ON(condition) do { if (unlikely((condition)!=0)) BUG(); } while(0) + +/* Trap pasters of __FUNCTION__ at compile-time */ +#if __GNUC__ > 2 || __GNUC_MINOR__ >= 95 +#define __FUNCTION__ (__func__) +#endif + #endif |
