diff options
| author | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-02-23 14:02:19 -0500 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-02-23 14:02:19 -0500 |
| commit | 99a85b901eb54f62ff0c3fd6eb56e60b7b9f15c8 (patch) | |
| tree | 0c6637b7d2172e079c30e966847326767cbaf45c /include/linux/device.h | |
| parent | 135f9be9194cf7778eb73594aa55791b229cf27c (diff) | |
| parent | c517d838eb7d07bbe9507871fab3931deccff539 (diff) | |
Merge tag 'v4.0-rc1' into patchwork
Linux 34.0-rc1
* tag 'v4.0-rc1': (8947 commits)
Linux 4.0-rc1
autofs4 copy_dev_ioctl(): keep the value of ->size we'd used for allocation
procfs: fix race between symlink removals and traversals
debugfs: leave freeing a symlink body until inode eviction
Documentation/filesystems/Locking: ->get_sb() is long gone
trylock_super(): replacement for grab_super_passive()
fanotify: Fix up scripted S_ISDIR/S_ISREG/S_ISLNK conversions
Cachefiles: Fix up scripted S_ISDIR/S_ISREG/S_ISLNK conversions
VFS: (Scripted) Convert S_ISLNK/DIR/REG(dentry->d_inode) to d_is_*(dentry)
SELinux: Use d_is_positive() rather than testing dentry->d_inode
Smack: Use d_is_positive() rather than testing dentry->d_inode
TOMOYO: Use d_is_dir() rather than d_inode and S_ISDIR()
Apparmor: Use d_is_positive/negative() rather than testing dentry->d_inode
Apparmor: mediated_filesystem() should use dentry->d_sb not inode->i_sb
VFS: Split DCACHE_FILE_TYPE into regular and special types
VFS: Add a fallthrough flag for marking virtual dentries
VFS: Add a whiteout dentry type
VFS: Introduce inode-getting helpers for layered/unioned fs environments
kernel: make READ_ONCE() valid on const arguments
blk-throttle: check stats_cpu before reading it from sysfs
...
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 | ||
