diff options
| -rw-r--r-- | common/usb.c | 4 | ||||
| -rw-r--r-- | common/usb_storage.c | 2 | ||||
| -rw-r--r-- | include/common.h | 4 | ||||
| -rw-r--r-- | include/i2c.h | 5 | 
4 files changed, 9 insertions, 6 deletions
| diff --git a/common/usb.c b/common/usb.c index a401c0919..a5f9e9f5b 100644 --- a/common/usb.c +++ b/common/usb.c @@ -63,7 +63,7 @@  #ifdef	USB_DEBUG  #define	USB_PRINTF(fmt, args...)	printf(fmt , ##args)  #else -#define USB_PRINTF(fmt, args...) +static inline void USB_PRINTF(const char *fmt, ...) {}  #endif  #define USB_BUFSIZ	512 @@ -970,7 +970,7 @@ void usb_scan_devices(void)  #ifdef	USB_HUB_DEBUG  #define	USB_HUB_PRINTF(fmt, args...)	printf(fmt , ##args)  #else -#define USB_HUB_PRINTF(fmt, args...) +static inline void USB_HUB_PRINTF(const char *fmt, ...) {}  #endif diff --git a/common/usb_storage.c b/common/usb_storage.c index 16667f394..5c56918e2 100644 --- a/common/usb_storage.c +++ b/common/usb_storage.c @@ -63,7 +63,7 @@  #ifdef	USB_STOR_DEBUG  #define USB_STOR_PRINTF(fmt, args...)	printf(fmt , ##args)  #else -#define USB_STOR_PRINTF(fmt, args...) +static inline void USB_STOR_PRINTF(const char *fmt, ...) {}  #endif  #include <scsi.h> diff --git a/include/common.h b/include/common.h index d244bd40b..aeb2d8436 100644 --- a/include/common.h +++ b/include/common.h @@ -120,8 +120,8 @@ typedef volatile unsigned char	vu_char;  #define debug(fmt,args...)	printf (fmt ,##args)  #define debugX(level,fmt,args...) if (DEBUG>=level) printf(fmt,##args);  #else -#define debug(fmt,args...) -#define debugX(level,fmt,args...) +static inline void debug(const char *fmt, ...) {} +static inline void debugX(int level, const char *fmt, ...) {}  #endif	/* DEBUG */  #ifdef DEBUG diff --git a/include/i2c.h b/include/i2c.h index 8ceb4c852..323150ded 100644 --- a/include/i2c.h +++ b/include/i2c.h @@ -55,7 +55,10 @@  #else  #define CONFIG_SYS_MAX_I2C_BUS		1  #define I2C_GET_BUS()		0 -#define I2C_SET_BUS(a) +static inline int I2C_SET_BUS(unsigned int bus) +{ +	return 0; +}  #endif  /* define the I2C bus number for RTC and DTT if not already done */ |