@@ -1038,22 +1038,22 @@ extern __printf(3, 4)
1038
1038
int dev_printk_emit (int level , const struct device * dev , const char * fmt , ...);
1039
1039
1040
1040
extern __printf (3 , 4 )
1041
- int dev_printk (const char * level , const struct device * dev ,
1042
- const char * fmt , ...);
1041
+ void dev_printk (const char * level , const struct device * dev ,
1042
+ const char * fmt , ...);
1043
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
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
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
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
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
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
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
1058
#else
1059
1059
@@ -1065,35 +1065,35 @@ static inline __printf(3, 4)
1065
1065
int dev_printk_emit (int level , const struct device * dev , const char * fmt , ...)
1066
1066
{ return 0 ; }
1067
1067
1068
- static inline int __dev_printk (const char * level , const struct device * dev ,
1069
- struct va_format * vaf )
1070
- { return 0 ; }
1068
+ static inline void __dev_printk (const char * level , const struct device * dev ,
1069
+ struct va_format * vaf )
1070
+ {}
1071
1071
static inline __printf (3 , 4 )
1072
- int dev_printk (const char * level , const struct device * dev ,
1073
- const char * fmt , ...)
1074
- { return 0 ; }
1072
+ void dev_printk (const char * level , const struct device * dev ,
1073
+ const char * fmt , ...)
1074
+ {}
1075
1075
1076
1076
static inline __printf (2 , 3 )
1077
- int dev_emerg (const struct device * dev , const char * fmt , ...)
1078
- { return 0 ; }
1077
+ void dev_emerg (const struct device * dev , const char * fmt , ...)
1078
+ {}
1079
1079
static inline __printf (2 , 3 )
1080
- int dev_crit (const struct device * dev , const char * fmt , ...)
1081
- { return 0 ; }
1080
+ void dev_crit (const struct device * dev , const char * fmt , ...)
1081
+ {}
1082
1082
static inline __printf (2 , 3 )
1083
- int dev_alert (const struct device * dev , const char * fmt , ...)
1084
- { return 0 ; }
1083
+ void dev_alert (const struct device * dev , const char * fmt , ...)
1084
+ {}
1085
1085
static inline __printf (2 , 3 )
1086
- int dev_err (const struct device * dev , const char * fmt , ...)
1087
- { return 0 ; }
1086
+ void dev_err (const struct device * dev , const char * fmt , ...)
1087
+ {}
1088
1088
static inline __printf (2 , 3 )
1089
- int dev_warn (const struct device * dev , const char * fmt , ...)
1090
- { return 0 ; }
1089
+ void dev_warn (const struct device * dev , const char * fmt , ...)
1090
+ {}
1091
1091
static inline __printf (2 , 3 )
1092
- int dev_notice (const struct device * dev , const char * fmt , ...)
1093
- { return 0 ; }
1092
+ void dev_notice (const struct device * dev , const char * fmt , ...)
1093
+ {}
1094
1094
static inline __printf (2 , 3 )
1095
- int _dev_info (const struct device * dev , const char * fmt , ...)
1096
- { return 0 ; }
1095
+ void _dev_info (const struct device * dev , const char * fmt , ...)
1096
+ {}
1097
1097
1098
1098
#endif
1099
1099
@@ -1119,7 +1119,6 @@ do { \
1119
1119
({ \
1120
1120
if (0 ) \
1121
1121
dev_printk (KERN_DEBUG , dev , format , ##arg ); \
1122
- 0 ; \
1123
1122
})
1124
1123
#endif
1125
1124
@@ -1215,7 +1214,6 @@ do { \
1215
1214
({ \
1216
1215
if (0) \
1217
1216
dev_printk(KERN_DEBUG, dev, format, ##arg); \
1218
- 0; \
1219
1217
})
1220
1218
#endif
1221
1219
0 commit comments