mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 17:41:50 +00:00
fs/debugfs: add declaration for no CONFIG_DEBUG_FS
Two function declarations are absence if not define CONFIG_DEBUG_FS in include/linux/debugfs.h Signed-off-by: Weijie Yang <weijie.yang@samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
88502b9c0a
commit
5b8802143a
1 changed files with 12 additions and 0 deletions
|
@ -206,6 +206,12 @@ static inline struct dentry *debugfs_create_size_t(const char *name, umode_t mod
|
||||||
return ERR_PTR(-ENODEV);
|
return ERR_PTR(-ENODEV);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline struct dentry *debugfs_create_atomic_t(const char *name, umode_t mode,
|
||||||
|
struct dentry *parent, atomic_t *value)
|
||||||
|
{
|
||||||
|
return ERR_PTR(-ENODEV);
|
||||||
|
}
|
||||||
|
|
||||||
static inline struct dentry *debugfs_create_bool(const char *name, umode_t mode,
|
static inline struct dentry *debugfs_create_bool(const char *name, umode_t mode,
|
||||||
struct dentry *parent,
|
struct dentry *parent,
|
||||||
u32 *value)
|
u32 *value)
|
||||||
|
@ -227,6 +233,12 @@ static inline struct dentry *debugfs_create_regset32(const char *name,
|
||||||
return ERR_PTR(-ENODEV);
|
return ERR_PTR(-ENODEV);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline int debugfs_print_regs32(struct seq_file *s, const struct debugfs_reg32 *regs,
|
||||||
|
int nregs, void __iomem *base, char *prefix)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
static inline bool debugfs_initialized(void)
|
static inline bool debugfs_initialized(void)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue