mirror of
				https://xff.cz/git/u-boot/
				synced 2025-10-31 18:35:42 +01:00 
			
		
		
		
	dm: Disable dm_warn() in SPL
Since this function can use up quite a bit of space for its strings, disable it by default in SPL. Use CONFIG_DM_WARN to re-enable it. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@ti.com>
This commit is contained in:
		| @@ -21,6 +21,7 @@ | |||||||
| #define CONFIG_PARTITIONS 1 | #define CONFIG_PARTITIONS 1 | ||||||
|  |  | ||||||
| #ifndef CONFIG_SPL_BUILD | #ifndef CONFIG_SPL_BUILD | ||||||
|  | #define CONFIG_DM_WARN | ||||||
| #define CONFIG_DM_DEVICE_REMOVE | #define CONFIG_DM_DEVICE_REMOVE | ||||||
| #define CONFIG_DM_STDIO | #define CONFIG_DM_STDIO | ||||||
| #endif | #endif | ||||||
|   | |||||||
| @@ -7,7 +7,13 @@ | |||||||
| #ifndef __DM_UTIL_H | #ifndef __DM_UTIL_H | ||||||
| #define __DM_UTIL_H | #define __DM_UTIL_H | ||||||
|  |  | ||||||
|  | #ifdef CONFIG_DM_WARN | ||||||
| void dm_warn(const char *fmt, ...); | void dm_warn(const char *fmt, ...); | ||||||
|  | #else | ||||||
|  | static inline void dm_warn(const char *fmt, ...) | ||||||
|  | { | ||||||
|  | } | ||||||
|  | #endif | ||||||
|  |  | ||||||
| #ifdef DEBUG | #ifdef DEBUG | ||||||
| void dm_dbg(const char *fmt, ...); | void dm_dbg(const char *fmt, ...); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user