diff options
| author | Greg Kroah-Hartman <gregkh@suse.de> | 2012-01-06 14:42:52 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@suse.de> | 2012-01-06 14:42:52 -0500 |
| commit | ff4b8a57f0aaa2882d444ca44b2b9b333d22a4df (patch) | |
| tree | d851c923f85566572112d4c0f884cff388a3cc05 /include/linux/debugfs.h | |
| parent | 805a6af8dba5dfdd35ec35dc52ec0122400b2610 (diff) | |
| parent | ea04018e6bc5ddb2f0466c0e5b986bd4901b7e8e (diff) | |
Merge branch 'driver-core-next' into Linux 3.2
This resolves the conflict in the arch/arm/mach-s3c64xx/s3c6400.c file,
and it fixes the build error in the arch/x86/kernel/microcode_core.c
file, that the merge did not catch.
The microcode_core.c patch was provided by Stephen Rothwell
<sfr@canb.auug.org.au> who was invaluable in the merge issues involved
with the large sysdev removal process in the driver-core tree.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/debugfs.h')
| -rw-r--r-- | include/linux/debugfs.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/linux/debugfs.h b/include/linux/debugfs.h index e7d9b20ddc5b..e8c3abc60811 100644 --- a/include/linux/debugfs.h +++ b/include/linux/debugfs.h | |||
| @@ -16,6 +16,7 @@ | |||
| 16 | #define _DEBUGFS_H_ | 16 | #define _DEBUGFS_H_ |
| 17 | 17 | ||
| 18 | #include <linux/fs.h> | 18 | #include <linux/fs.h> |
| 19 | #include <linux/seq_file.h> | ||
| 19 | 20 | ||
| 20 | #include <linux/types.h> | 21 | #include <linux/types.h> |
| 21 | 22 | ||
| @@ -26,6 +27,17 @@ struct debugfs_blob_wrapper { | |||
| 26 | unsigned long size; | 27 | unsigned long size; |
| 27 | }; | 28 | }; |
| 28 | 29 | ||
| 30 | struct debugfs_reg32 { | ||
| 31 | char *name; | ||
| 32 | unsigned long offset; | ||
| 33 | }; | ||
| 34 | |||
| 35 | struct debugfs_regset32 { | ||
| 36 | struct debugfs_reg32 *regs; | ||
| 37 | int nregs; | ||
| 38 | void __iomem *base; | ||
| 39 | }; | ||
| 40 | |||
| 29 | extern struct dentry *arch_debugfs_dir; | 41 | extern struct dentry *arch_debugfs_dir; |
| 30 | 42 | ||
| 31 | #if defined(CONFIG_DEBUG_FS) | 43 | #if defined(CONFIG_DEBUG_FS) |
| @@ -74,6 +86,13 @@ struct dentry *debugfs_create_blob(const char *name, mode_t mode, | |||
| 74 | struct dentry *parent, | 86 | struct dentry *parent, |
| 75 | struct debugfs_blob_wrapper *blob); | 87 | struct debugfs_blob_wrapper *blob); |
| 76 | 88 | ||
| 89 | struct dentry *debugfs_create_regset32(const char *name, mode_t mode, | ||
| 90 | struct dentry *parent, | ||
| 91 | struct debugfs_regset32 *regset); | ||
| 92 | |||
| 93 | int debugfs_print_regs32(struct seq_file *s, const struct debugfs_reg32 *regs, | ||
| 94 | int nregs, void __iomem *base, char *prefix); | ||
| 95 | |||
| 77 | bool debugfs_initialized(void); | 96 | bool debugfs_initialized(void); |
| 78 | 97 | ||
| 79 | #else | 98 | #else |
| @@ -188,6 +207,13 @@ static inline struct dentry *debugfs_create_blob(const char *name, mode_t mode, | |||
| 188 | return ERR_PTR(-ENODEV); | 207 | return ERR_PTR(-ENODEV); |
| 189 | } | 208 | } |
| 190 | 209 | ||
| 210 | static inline struct dentry *debugfs_create_regset32(const char *name, | ||
| 211 | mode_t mode, struct dentry *parent, | ||
| 212 | struct debugfs_regset32 *regset) | ||
| 213 | { | ||
| 214 | return ERR_PTR(-ENODEV); | ||
| 215 | } | ||
| 216 | |||
| 191 | static inline bool debugfs_initialized(void) | 217 | static inline bool debugfs_initialized(void) |
| 192 | { | 218 | { |
| 193 | return false; | 219 | return false; |
