diff options
Diffstat (limited to 'include/linux/device.h')
-rw-r--r-- | include/linux/device.h | 62 |
1 files changed, 30 insertions, 32 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index fb506738f7b7..0eb8ee2dc6d1 100644 --- a/include/linux/device.h +++ b/include/linux/device.h | |||
@@ -1038,22 +1038,22 @@ extern __printf(3, 4) | |||
1038 | int dev_printk_emit(int level, const struct device *dev, const char *fmt, ...); | 1038 | int dev_printk_emit(int level, const struct device *dev, const char *fmt, ...); |
1039 | 1039 | ||
1040 | extern __printf(3, 4) | 1040 | extern __printf(3, 4) |
1041 | int dev_printk(const char *level, const struct device *dev, | 1041 | void dev_printk(const char *level, const struct device *dev, |
1042 | const char *fmt, ...); | 1042 | const char *fmt, ...); |
1043 | extern __printf(2, 3) | 1043 | extern __printf(2, 3) |
1044 | int dev_emerg(const struct device *dev, const char *fmt, ...); | 1044 | void dev_emerg(const struct device *dev, const char *fmt, ...); |
1045 | extern __printf(2, 3) | 1045 | extern __printf(2, 3) |
1046 | int dev_alert(const struct device *dev, const char *fmt, ...); | 1046 | void dev_alert(const struct device *dev, const char *fmt, ...); |
1047 | extern __printf(2, 3) | 1047 | extern __printf(2, 3) |
1048 | int dev_crit(const struct device *dev, const char *fmt, ...); | 1048 | void dev_crit(const struct device *dev, const char *fmt, ...); |
1049 | extern __printf(2, 3) | 1049 | extern __printf(2, 3) |
1050 | int dev_err(const struct device *dev, const char *fmt, ...); | 1050 | void dev_err(const struct device *dev, const char *fmt, ...); |
1051 | extern __printf(2, 3) | 1051 | extern __printf(2, 3) |
1052 | int dev_warn(const struct device *dev, const char *fmt, ...); | 1052 | void dev_warn(const struct device *dev, const char *fmt, ...); |
1053 | extern __printf(2, 3) | 1053 | extern __printf(2, 3) |
1054 | int dev_notice(const struct device *dev, const char *fmt, ...); | 1054 | void dev_notice(const struct device *dev, const char *fmt, ...); |
1055 | extern __printf(2, 3) | 1055 | extern __printf(2, 3) |
1056 | int _dev_info(const struct device *dev, const char *fmt, ...); | 1056 | void _dev_info(const struct device *dev, const char *fmt, ...); |
1057 | 1057 | ||
1058 | #else | 1058 | #else |
1059 | 1059 | ||
@@ -1065,35 +1065,35 @@ static inline __printf(3, 4) | |||
1065 | int dev_printk_emit(int level, const struct device *dev, const char *fmt, ...) | 1065 | int dev_printk_emit(int level, const struct device *dev, const char *fmt, ...) |
1066 | { return 0; } | 1066 | { return 0; } |
1067 | 1067 | ||
1068 | static inline int __dev_printk(const char *level, const struct device *dev, | 1068 | static inline void __dev_printk(const char *level, const struct device *dev, |
1069 | struct va_format *vaf) | 1069 | struct va_format *vaf) |
1070 | { return 0; } | 1070 | {} |
1071 | static inline __printf(3, 4) | 1071 | static inline __printf(3, 4) |
1072 | int dev_printk(const char *level, const struct device *dev, | 1072 | void dev_printk(const char *level, const struct device *dev, |
1073 | const char *fmt, ...) | 1073 | const char *fmt, ...) |
1074 | { return 0; } | 1074 | {} |
1075 | 1075 | ||
1076 | static inline __printf(2, 3) | 1076 | static inline __printf(2, 3) |
1077 | int dev_emerg(const struct device *dev, const char *fmt, ...) | 1077 | void dev_emerg(const struct device *dev, const char *fmt, ...) |
1078 | { return 0; } | 1078 | {} |
1079 | static inline __printf(2, 3) | 1079 | static inline __printf(2, 3) |
1080 | int dev_crit(const struct device *dev, const char *fmt, ...) | 1080 | void dev_crit(const struct device *dev, const char *fmt, ...) |
1081 | { return 0; } | 1081 | {} |
1082 | static inline __printf(2, 3) | 1082 | static inline __printf(2, 3) |
1083 | int dev_alert(const struct device *dev, const char *fmt, ...) | 1083 | void dev_alert(const struct device *dev, const char *fmt, ...) |
1084 | { return 0; } | 1084 | {} |
1085 | static inline __printf(2, 3) | 1085 | static inline __printf(2, 3) |
1086 | int dev_err(const struct device *dev, const char *fmt, ...) | 1086 | void dev_err(const struct device *dev, const char *fmt, ...) |
1087 | { return 0; } | 1087 | {} |
1088 | static inline __printf(2, 3) | 1088 | static inline __printf(2, 3) |
1089 | int dev_warn(const struct device *dev, const char *fmt, ...) | 1089 | void dev_warn(const struct device *dev, const char *fmt, ...) |
1090 | { return 0; } | 1090 | {} |
1091 | static inline __printf(2, 3) | 1091 | static inline __printf(2, 3) |
1092 | int dev_notice(const struct device *dev, const char *fmt, ...) | 1092 | void dev_notice(const struct device *dev, const char *fmt, ...) |
1093 | { return 0; } | 1093 | {} |
1094 | static inline __printf(2, 3) | 1094 | static inline __printf(2, 3) |
1095 | int _dev_info(const struct device *dev, const char *fmt, ...) | 1095 | void _dev_info(const struct device *dev, const char *fmt, ...) |
1096 | { return 0; } | 1096 | {} |
1097 | 1097 | ||
1098 | #endif | 1098 | #endif |
1099 | 1099 | ||
@@ -1119,7 +1119,6 @@ do { \ | |||
1119 | ({ \ | 1119 | ({ \ |
1120 | if (0) \ | 1120 | if (0) \ |
1121 | dev_printk(KERN_DEBUG, dev, format, ##arg); \ | 1121 | dev_printk(KERN_DEBUG, dev, format, ##arg); \ |
1122 | 0; \ | ||
1123 | }) | 1122 | }) |
1124 | #endif | 1123 | #endif |
1125 | 1124 | ||
@@ -1156,7 +1155,7 @@ do { \ | |||
1156 | #define dev_info_once(dev, fmt, ...) \ | 1155 | #define dev_info_once(dev, fmt, ...) \ |
1157 | dev_level_once(dev_info, dev, fmt, ##__VA_ARGS__) | 1156 | dev_level_once(dev_info, dev, fmt, ##__VA_ARGS__) |
1158 | #define dev_dbg_once(dev, fmt, ...) \ | 1157 | #define dev_dbg_once(dev, fmt, ...) \ |
1159 | dev_level_once(dev_info, dev, fmt, ##__VA_ARGS__) | 1158 | dev_level_once(dev_dbg, dev, fmt, ##__VA_ARGS__) |
1160 | 1159 | ||
1161 | #define dev_level_ratelimited(dev_level, dev, fmt, ...) \ | 1160 | #define dev_level_ratelimited(dev_level, dev, fmt, ...) \ |
1162 | do { \ | 1161 | do { \ |
@@ -1215,7 +1214,6 @@ do { \ | |||
1215 | ({ \ | 1214 | ({ \ |
1216 | if (0) \ | 1215 | if (0) \ |
1217 | dev_printk(KERN_DEBUG, dev, format, ##arg); \ | 1216 | dev_printk(KERN_DEBUG, dev, format, ##arg); \ |
1218 | 0; \ | ||
1219 | }) | 1217 | }) |
1220 | #endif | 1218 | #endif |
1221 | 1219 | ||