mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
Add a dummy printk function for the maintenance of unused printks
Add a dummy printk function for the maintenance of unused printks through gcc format checking, and also so that side-effect checking is maintained too. Signed-off-by: David Howells <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
1490cf5f0c
commit
12fdff3fc2
8 changed files with 22 additions and 54 deletions
|
|
@ -44,11 +44,6 @@ static const char serial_revdate[] = "2007-11-06";
|
|||
#include <unit/timex.h>
|
||||
#include "mn10300-serial.h"
|
||||
|
||||
static inline __attribute__((format(printf, 1, 2)))
|
||||
void no_printk(const char *fmt, ...)
|
||||
{
|
||||
}
|
||||
|
||||
#define kenter(FMT, ...) \
|
||||
printk(KERN_DEBUG "-->%s(" FMT ")\n", __func__, ##__VA_ARGS__)
|
||||
#define _enter(FMT, ...) \
|
||||
|
|
|
|||
Loading…
Reference in a new issue