debugfs: remove return value of debugfs_create_u8()
Subsystems (2)
Greg Kroah-Hartman
maintainerPATCH 2/8 debugfs: remove return value of debugfs_create_u16()
In reply to Greg Kroah-HartmanNo one checks the return value of debugfs_create_u16(), as it's not needed, so make the return value void, so that no one tries to do so in the future.
--- Documentation/filesystems/debugfs.txt | 4 ++-- fs/debugfs/file.c | 15 +++------------ include/linux/debugfs.h | 12 ++++-------- 3 files changed, 9 insertions(+), 22 deletions(-)
Documentation/filesystems/debugfs.txt +2 -2
@@ -70,8 +70,8 @@ created with any of: void debugfs_create_u8(const char *name, umode_t mode, struct dentry *parent, u8 *value); - struct dentry *debugfs_create_u16(const char *name, umode_t mode, - struct dentry *parent, u16 *value); + void debugfs_create_u16(const char *name, umode_t mode, + struct dentry *parent, u16 *value); struct dentry *debugfs_create_u32(const char *name, umode_t mode, struct dentry *parent, u32 *value); struct dentry *debugfs_create_u64(const char *name, umode_t mode,
fs/debugfs/file.c +3 -12
@@ -456,20 +456,11 @@ DEFINE_DEBUGFS_ATTRIBUTE(fops_u16_wo, NULL, debugfs_u16_set, "%llu\n");* This function creates a file in debugfs with the given name that * contains the value of the variable @value. If the @mode variable is so * set, it can be read from, and written to. -* -* This function will return a pointer to a dentry if it succeeds. This -* pointer must be passed to the debugfs_remove() function when the file is -* to be removed (no automatic cleanup happens if your module is unloaded, -* you are responsible here.) If an error occurs, %ERR_PTR(-ERROR) will be -* returned. -* -* If debugfs is not enabled in the kernel, the value %ERR_PTR(-ENODEV) will -* be returned. */ -struct dentry *debugfs_create_u16 (const char *name,umode_t mode, -struct dentry *parent,u16 *value) +void debugfs_create_u16 (const char *name,umode_t mode,struct dentry *parent, +u16 *value) { -return debugfs_create_mode_unsafe (name, mode, parent, value, &fops_u16, +debugfs_create_mode_unsafe (name, mode, parent, value, &fops_u16, &fops_u16_ro, &fops_u16_wo); }EXPORT_SYMBOL_GPL (debugfs_create_u16);
include/linux/debugfs.h +4 -8
@@ -99,8 +99,8 @@ struct dentry *debugfs_rename(struct dentry *old_dir, struct dentry *old_dentry,void debugfs_create_u8 (const char *name,umode_t mode,struct dentry *parent,u8 *value); -struct dentry *debugfs_create_u16 (const char *name,umode_t mode, -struct dentry *parent,u16 *value); +void debugfs_create_u16 (const char *name,umode_t mode,struct dentry *parent, +u16 *value);struct dentry *debugfs_create_u32 (const char *name,umode_t mode,struct dentry *parent,u32 *value); struct dentry *debugfs_create_u64(const char *name, umode_t mode,
@@ -247,12 +247,8 @@ static inline struct dentry *debugfs_rename(struct dentry *old_dir, struct dentrstatic inline void debugfs_create_u8 (const char *name,umode_t mode,struct dentry *parent,u8 *value) { } -static inline struct dentry *debugfs_create_u16 (const char *name,umode_t mode, -struct dentry *parent, -u16 *value) -{ -return ERR_PTR (-ENODEV ); -} +static inline void debugfs_create_u16 (const char *name,umode_t mode, +struct dentry *parent,u16 *value) { } static inline struct dentry *debugfs_create_u32(const char *name, umode_t mode, struct dentry *parent,
Signature · 1 line
2.23.0
Greg Kroah-Hartman
maintainerPATCH 1/8 debugfs: remove return value of debugfs_create_u8()
No one checks the return value of debugfs_create_u8(), as it's not needed, so make the return value void, so that no one tries to do so in the future.
--- Documentation/filesystems/debugfs.txt | 4 ++-- fs/debugfs/file.c | 15 +++------------ include/linux/debugfs.h | 12 ++++-------- 3 files changed, 9 insertions(+), 22 deletions(-)
Documentation/filesystems/debugfs.txt +2 -2
@@ -68,8 +68,8 @@ actually necessary; the debugfs code provides a number of helper functions for simple situations. Files containing a single integer value can be created with any of: - struct dentry *debugfs_create_u8(const char *name, umode_t mode, - struct dentry *parent, u8 *value); + void debugfs_create_u8(const char *name, umode_t mode, + struct dentry *parent, u8 *value); struct dentry *debugfs_create_u16(const char *name, umode_t mode, struct dentry *parent, u16 *value); struct dentry *debugfs_create_u32(const char *name, umode_t mode,
fs/debugfs/file.c +3 -12
@@ -420,20 +420,11 @@ DEFINE_DEBUGFS_ATTRIBUTE(fops_u8_wo, NULL, debugfs_u8_set, "%llu\n");* This function creates a file in debugfs with the given name that * contains the value of the variable @value. If the @mode variable is so * set, it can be read from, and written to. -* -* This function will return a pointer to a dentry if it succeeds. This -* pointer must be passed to the debugfs_remove() function when the file is -* to be removed (no automatic cleanup happens if your module is unloaded, -* you are responsible here.) If an error occurs, %ERR_PTR(-ERROR) will be -* returned. -* -* If debugfs is not enabled in the kernel, the value %ERR_PTR(-ENODEV) will -* be returned. */ -struct dentry *debugfs_create_u8 (const char *name,umode_t mode, -struct dentry *parent,u8 *value) +void debugfs_create_u8 (const char *name,umode_t mode,struct dentry *parent, +u8 *value) { -return debugfs_create_mode_unsafe (name, mode, parent, value, &fops_u8, +debugfs_create_mode_unsafe (name, mode, parent, value, &fops_u8, &fops_u8_ro, &fops_u8_wo); }EXPORT_SYMBOL_GPL (debugfs_create_u8);
include/linux/debugfs.h +4 -8
@@ -97,8 +97,8 @@ ssize_t debugfs_attr_write(struct file *file, const char __user *buf,struct dentry *debugfs_rename (struct dentry *old_dir,struct dentry *old_dentry,struct dentry *new_dir,const char *new_name); -struct dentry *debugfs_create_u8 (const char *name,umode_t mode, -struct dentry *parent,u8 *value); +void debugfs_create_u8 (const char *name,umode_t mode,struct dentry *parent, +u8 *value);struct dentry *debugfs_create_u16 (const char *name,umode_t mode,struct dentry *parent,u16 *value); struct dentry *debugfs_create_u32(const char *name, umode_t mode,
@@ -244,12 +244,8 @@ static inline struct dentry *debugfs_rename(struct dentry *old_dir, struct dentrreturn ERR_PTR (-ENODEV ); } -static inline struct dentry *debugfs_create_u8 (const char *name,umode_t mode, -struct dentry *parent, -u8 *value) -{ -return ERR_PTR (-ENODEV ); -} +static inline void debugfs_create_u8 (const char *name,umode_t mode, +struct dentry *parent,u8 *value) { } static inline struct dentry *debugfs_create_u16(const char *name, umode_t mode, struct dentry *parent,
Signature · 1 line
2.23.0
Greg Kroah-Hartman
maintainerPATCH 3/8 debugfs: remove return value of debugfs_create_u64()
No one checks the return value of debugfs_create_u64(), as it's not needed, so make the return value void, so that no one tries to do so in the future.
--- Documentation/filesystems/debugfs.txt | 4 ++-- fs/debugfs/file.c | 15 +++------------ include/linux/debugfs.h | 12 ++++-------- 3 files changed, 9 insertions(+), 22 deletions(-)
Documentation/filesystems/debugfs.txt +2 -2
@@ -74,8 +74,8 @@ created with any of: struct dentry *parent, u16 *value); struct dentry *debugfs_create_u32(const char *name, umode_t mode, struct dentry *parent, u32 *value); - struct dentry *debugfs_create_u64(const char *name, umode_t mode, - struct dentry *parent, u64 *value); + void debugfs_create_u64(const char *name, umode_t mode, + struct dentry *parent, u64 *value); These files support both reading and writing the given value; if a specific file should not be written to, simply set the mode bits accordingly. The
fs/debugfs/file.c +3 -12
@@ -538,20 +538,11 @@ DEFINE_DEBUGFS_ATTRIBUTE(fops_u64_wo, NULL, debugfs_u64_set, "%llu\n");* This function creates a file in debugfs with the given name that * contains the value of the variable @value. If the @mode variable is so * set, it can be read from, and written to. -* -* This function will return a pointer to a dentry if it succeeds. This -* pointer must be passed to the debugfs_remove() function when the file is -* to be removed (no automatic cleanup happens if your module is unloaded, -* you are responsible here.) If an error occurs, %ERR_PTR(-ERROR) will be -* returned. -* -* If debugfs is not enabled in the kernel, the value %ERR_PTR(-ENODEV) will -* be returned. */ -struct dentry *debugfs_create_u64 (const char *name,umode_t mode, -struct dentry *parent,u64 *value) +void debugfs_create_u64 (const char *name,umode_t mode,struct dentry *parent, +u64 *value) { -return debugfs_create_mode_unsafe (name, mode, parent, value, &fops_u64, +debugfs_create_mode_unsafe (name, mode, parent, value, &fops_u64, &fops_u64_ro, &fops_u64_wo); }EXPORT_SYMBOL_GPL (debugfs_create_u64);
include/linux/debugfs.h +4 -8
@@ -103,8 +103,8 @@ void debugfs_create_u16(const char *name, umode_t mode, struct dentry *parent, u16 *value);struct dentry *debugfs_create_u32 (const char *name,umode_t mode,struct dentry *parent,u32 *value); -struct dentry *debugfs_create_u64 (const char *name,umode_t mode, -struct dentry *parent,u64 *value); +void debugfs_create_u64 (const char *name,umode_t mode,struct dentry *parent, +u64 *value);struct dentry *debugfs_create_ulong (const char *name,umode_t mode,struct dentry *parent,unsigned long *value); struct dentry *debugfs_create_x8(const char *name, umode_t mode,
@@ -257,12 +257,8 @@ static inline struct dentry *debugfs_create_u32(const char *name, umode_t mode,return ERR_PTR (-ENODEV ); } -static inline struct dentry *debugfs_create_u64 (const char *name,umode_t mode, -struct dentry *parent, -u64 *value) -{ -return ERR_PTR (-ENODEV ); -} +static inline void debugfs_create_u64 (const char *name,umode_t mode, +struct dentry *parent,u64 *value) { } static inline struct dentry *debugfs_create_ulong(const char *name, umode_t mode,
Signature · 1 line
2.23.0
Greg Kroah-Hartman
maintainerPATCH 4/8 debugfs: remove return value of debugfs_create_size_t()
In reply to Greg Kroah-HartmanNo one checks the return value of debugfs_create_size_t(), as it's not needed, so make the return value void, so that no one tries to do so in the future.
--- Documentation/filesystems/debugfs.txt | 5 ++--- fs/debugfs/file.c | 9 ++++----- include/linux/debugfs.h | 13 +++++-------- 3 files changed, 11 insertions(+), 16 deletions(-)
Documentation/filesystems/debugfs.txt +2 -3
@@ -96,9 +96,8 @@ value to be exported. Some types can have different widths on different architectures, though, complicating the situation somewhat. There is a function meant to help out in one special case: - struct dentry *debugfs_create_size_t(const char *name, umode_t mode, - struct dentry *parent, - size_t *value); + void debugfs_create_size_t(const char *name, umode_t mode, + struct dentry *parent, size_t *value); As might be expected, this function will create a debugfs file to represent a variable of type size_t.
fs/debugfs/file.c +4 -5
@@ -721,12 +721,11 @@ DEFINE_DEBUGFS_ATTRIBUTE(fops_size_t_wo, NULL, debugfs_size_t_set, "%llu\n");* @value: a pointer to the variable that the file should read to and write * from. */ -struct dentry *debugfs_create_size_t (const char *name,umode_t mode, -struct dentry *parent,size_t *value) +void debugfs_create_size_t (const char *name,umode_t mode, +struct dentry *parent,size_t *value) { -return debugfs_create_mode_unsafe (name, mode, parent, value, - &fops_size_t, &fops_size_t_ro, - &fops_size_t_wo); +debugfs_create_mode_unsafe (name, mode, parent, value, &fops_size_t, + &fops_size_t_ro, &fops_size_t_wo); }EXPORT_SYMBOL_GPL (debugfs_create_size_t);
include/linux/debugfs.h +5 -8
@@ -115,8 +115,8 @@ struct dentry *debugfs_create_x32(const char *name, umode_t mode, struct dentry *parent, u32 *value);struct dentry *debugfs_create_x64 (const char *name,umode_t mode,struct dentry *parent,u64 *value); -struct dentry *debugfs_create_size_t (const char *name,umode_t mode, -struct dentry *parent,size_t *value); +void debugfs_create_size_t (const char *name,umode_t mode, +struct dentry *parent,size_t *value);struct dentry *debugfs_create_atomic_t (const char *name,umode_t mode,struct dentry *parent,atomic_t *value); struct dentry *debugfs_create_bool(const char *name, umode_t mode,
@@ -296,12 +296,9 @@ static inline struct dentry *debugfs_create_x64(const char *name, umode_t mode,return ERR_PTR (-ENODEV ); } -static inline struct dentry *debugfs_create_size_t (const char *name,umode_t mode, -struct dentry *parent, -size_t *value) -{ -return ERR_PTR (-ENODEV ); -} +static inline void debugfs_create_size_t (const char *name,umode_t mode, +struct dentry *parent,size_t *value) +{ }static inline struct dentry *debugfs_create_atomic_t (const char *name,umode_t mode,struct dentry *parent,atomic_t *value)
Signature · 1 line
2.23.0
Greg Kroah-Hartman
maintainerPATCH 5/8 debugfs: remove return value of debugfs_create_x8()
In reply to Greg Kroah-HartmanNo one checks the return value of debugfs_create_x8(), as it's not needed, so make the return value void, so that no one tries to do so in the future.
--- Documentation/filesystems/debugfs.txt | 4 ++-- fs/debugfs/file.c | 6 +++--- include/linux/debugfs.h | 12 ++++-------- 3 files changed, 9 insertions(+), 13 deletions(-)
Documentation/filesystems/debugfs.txt +2 -2
@@ -82,8 +82,8 @@ file should not be written to, simply set the mode bits accordingly. The values in these files are in decimal; if hexadecimal is more appropriate, the following functions can be used instead: - struct dentry *debugfs_create_x8(const char *name, umode_t mode, - struct dentry *parent, u8 *value); + void debugfs_create_x8(const char *name, umode_t mode, + struct dentry *parent, u8 *value); struct dentry *debugfs_create_x16(const char *name, umode_t mode, struct dentry *parent, u16 *value); struct dentry *debugfs_create_x32(const char *name, umode_t mode,
fs/debugfs/file.c +3 -3
@@ -633,10 +633,10 @@ DEFINE_DEBUGFS_ATTRIBUTE(fops_x64_wo, NULL, debugfs_u64_set, "0x%016llx\n");* @value: a pointer to the variable that the file should read to and write * from. */ -struct dentry *debugfs_create_x8 (const char *name,umode_t mode, -struct dentry *parent,u8 *value) +void debugfs_create_x8 (const char *name,umode_t mode,struct dentry *parent, +u8 *value) { -return debugfs_create_mode_unsafe (name, mode, parent, value, &fops_x8, +debugfs_create_mode_unsafe (name, mode, parent, value, &fops_x8, &fops_x8_ro, &fops_x8_wo); }EXPORT_SYMBOL_GPL (debugfs_create_x8);
include/linux/debugfs.h +4 -8
@@ -107,8 +107,8 @@ void debugfs_create_u64(const char *name, umode_t mode, struct dentry *parent, u64 *value);struct dentry *debugfs_create_ulong (const char *name,umode_t mode,struct dentry *parent,unsigned long *value); -struct dentry *debugfs_create_x8 (const char *name,umode_t mode, -struct dentry *parent,u8 *value); +void debugfs_create_x8 (const char *name,umode_t mode,struct dentry *parent, +u8 *value);struct dentry *debugfs_create_x16 (const char *name,umode_t mode,struct dentry *parent,u16 *value); struct dentry *debugfs_create_x32(const char *name, umode_t mode,
@@ -268,12 +268,8 @@ static inline struct dentry *debugfs_create_ulong(const char *name,return ERR_PTR (-ENODEV ); } -static inline struct dentry *debugfs_create_x8 (const char *name,umode_t mode, -struct dentry *parent, -u8 *value) -{ -return ERR_PTR (-ENODEV ); -} +static inline void debugfs_create_x8 (const char *name,umode_t mode, +struct dentry *parent,u8 *value) { } static inline struct dentry *debugfs_create_x16(const char *name, umode_t mode, struct dentry *parent,
Signature · 1 line
2.23.0
Greg Kroah-Hartman
maintainerPATCH 6/8 debugfs: remove return value of debugfs_create_x16()
In reply to Greg Kroah-HartmanNo one checks the return value of debugfs_create_x16(), as it's not needed, so make the return value void, so that no one tries to do so in the future.
--- Documentation/filesystems/debugfs.txt | 4 ++-- fs/debugfs/file.c | 6 +++--- include/linux/debugfs.h | 12 ++++-------- 3 files changed, 9 insertions(+), 13 deletions(-)
Documentation/filesystems/debugfs.txt +2 -2
@@ -84,8 +84,8 @@ the following functions can be used instead: void debugfs_create_x8(const char *name, umode_t mode, struct dentry *parent, u8 *value); - struct dentry *debugfs_create_x16(const char *name, umode_t mode, - struct dentry *parent, u16 *value); + void debugfs_create_x16(const char *name, umode_t mode, + struct dentry *parent, u16 *value); struct dentry *debugfs_create_x32(const char *name, umode_t mode, struct dentry *parent, u32 *value); struct dentry *debugfs_create_x64(const char *name, umode_t mode,
fs/debugfs/file.c +3 -3
@@ -651,10 +651,10 @@ EXPORT_SYMBOL_GPL(debugfs_create_x8);* @value: a pointer to the variable that the file should read to and write * from. */ -struct dentry *debugfs_create_x16 (const char *name,umode_t mode, -struct dentry *parent,u16 *value) +void debugfs_create_x16 (const char *name,umode_t mode,struct dentry *parent, +u16 *value) { -return debugfs_create_mode_unsafe (name, mode, parent, value, &fops_x16, +debugfs_create_mode_unsafe (name, mode, parent, value, &fops_x16, &fops_x16_ro, &fops_x16_wo); }EXPORT_SYMBOL_GPL (debugfs_create_x16);
include/linux/debugfs.h +4 -8
@@ -109,8 +109,8 @@ struct dentry *debugfs_create_ulong(const char *name, umode_t mode, struct dentry *parent, unsigned long *value);void debugfs_create_x8 (const char *name,umode_t mode,struct dentry *parent,u8 *value); -struct dentry *debugfs_create_x16 (const char *name,umode_t mode, -struct dentry *parent,u16 *value); +void debugfs_create_x16 (const char *name,umode_t mode,struct dentry *parent, +u16 *value);struct dentry *debugfs_create_x32 (const char *name,umode_t mode,struct dentry *parent,u32 *value); struct dentry *debugfs_create_x64(const char *name, umode_t mode,
@@ -271,12 +271,8 @@ static inline struct dentry *debugfs_create_ulong(const char *name,static inline void debugfs_create_x8 (const char *name,umode_t mode,struct dentry *parent,u8 *value) { } -static inline struct dentry *debugfs_create_x16 (const char *name,umode_t mode, -struct dentry *parent, -u16 *value) -{ -return ERR_PTR (-ENODEV ); -} +static inline void debugfs_create_x16 (const char *name,umode_t mode, +struct dentry *parent,u16 *value) { } static inline struct dentry *debugfs_create_x32(const char *name, umode_t mode, struct dentry *parent,
Signature · 1 line
2.23.0
Greg Kroah-Hartman
maintainerPATCH 7/8 debugfs: remove return value of debugfs_create_x32()
In reply to Greg Kroah-HartmanNo one checks the return value of debugfs_create_x32(), as it's not needed, so make the return value void, so that no one tries to do so in the future.
--- Documentation/filesystems/debugfs.txt | 4 ++-- fs/debugfs/file.c | 6 +++--- include/linux/debugfs.h | 12 ++++-------- 3 files changed, 9 insertions(+), 13 deletions(-)
Documentation/filesystems/debugfs.txt +2 -2
@@ -86,8 +86,8 @@ the following functions can be used instead: struct dentry *parent, u8 *value); void debugfs_create_x16(const char *name, umode_t mode, struct dentry *parent, u16 *value); - struct dentry *debugfs_create_x32(const char *name, umode_t mode, - struct dentry *parent, u32 *value); + void debugfs_create_x32(const char *name, umode_t mode, + struct dentry *parent, u32 *value); struct dentry *debugfs_create_x64(const char *name, umode_t mode, struct dentry *parent, u64 *value);
fs/debugfs/file.c +3 -3
@@ -669,10 +669,10 @@ EXPORT_SYMBOL_GPL(debugfs_create_x16);* @value: a pointer to the variable that the file should read to and write * from. */ -struct dentry *debugfs_create_x32 (const char *name,umode_t mode, -struct dentry *parent,u32 *value) +void debugfs_create_x32 (const char *name,umode_t mode,struct dentry *parent, +u32 *value) { -return debugfs_create_mode_unsafe (name, mode, parent, value, &fops_x32, +debugfs_create_mode_unsafe (name, mode, parent, value, &fops_x32, &fops_x32_ro, &fops_x32_wo); }EXPORT_SYMBOL_GPL (debugfs_create_x32);
include/linux/debugfs.h +4 -8
@@ -111,8 +111,8 @@ void debugfs_create_x8(const char *name, umode_t mode, struct dentry *parent, u8 *value);void debugfs_create_x16 (const char *name,umode_t mode,struct dentry *parent,u16 *value); -struct dentry *debugfs_create_x32 (const char *name,umode_t mode, -struct dentry *parent,u32 *value); +void debugfs_create_x32 (const char *name,umode_t mode,struct dentry *parent, +u32 *value);struct dentry *debugfs_create_x64 (const char *name,umode_t mode,struct dentry *parent,u64 *value); void debugfs_create_size_t(const char *name, umode_t mode,
@@ -274,12 +274,8 @@ static inline void debugfs_create_x8(const char *name, umode_t mode,static inline void debugfs_create_x16 (const char *name,umode_t mode,struct dentry *parent,u16 *value) { } -static inline struct dentry *debugfs_create_x32 (const char *name,umode_t mode, -struct dentry *parent, -u32 *value) -{ -return ERR_PTR (-ENODEV ); -} +static inline void debugfs_create_x32 (const char *name,umode_t mode, +struct dentry *parent,u32 *value) { } static inline struct dentry *debugfs_create_x64(const char *name, umode_t mode, struct dentry *parent,
Signature · 1 line
2.23.0
Greg Kroah-Hartman
maintainerPATCH 8/8 debugfs: remove return value of debugfs_create_x64()
In reply to Greg Kroah-HartmanNo one checks the return value of debugfs_create_x64(), as it's not needed, so make the return value void, so that no one tries to do so in the future.
--- Documentation/filesystems/debugfs.txt | 4 ++-- fs/debugfs/file.c | 6 +++--- include/linux/debugfs.h | 12 ++++-------- 3 files changed, 9 insertions(+), 13 deletions(-)
Documentation/filesystems/debugfs.txt +2 -2
@@ -88,8 +88,8 @@ the following functions can be used instead: struct dentry *parent, u16 *value); void debugfs_create_x32(const char *name, umode_t mode, struct dentry *parent, u32 *value); - struct dentry *debugfs_create_x64(const char *name, umode_t mode, - struct dentry *parent, u64 *value); + void debugfs_create_x64(const char *name, umode_t mode, + struct dentry *parent, u64 *value); These functions are useful as long as the developer knows the size of the value to be exported. Some types can have different widths on different
fs/debugfs/file.c +3 -3
@@ -687,10 +687,10 @@ EXPORT_SYMBOL_GPL(debugfs_create_x32);* @value: a pointer to the variable that the file should read to and write * from. */ -struct dentry *debugfs_create_x64 (const char *name,umode_t mode, -struct dentry *parent,u64 *value) +void debugfs_create_x64 (const char *name,umode_t mode,struct dentry *parent, +u64 *value) { -return debugfs_create_mode_unsafe (name, mode, parent, value, &fops_x64, +debugfs_create_mode_unsafe (name, mode, parent, value, &fops_x64, &fops_x64_ro, &fops_x64_wo); }EXPORT_SYMBOL_GPL (debugfs_create_x64);
include/linux/debugfs.h +4 -8
@@ -113,8 +113,8 @@ void debugfs_create_x16(const char *name, umode_t mode, struct dentry *parent, u16 *value);void debugfs_create_x32 (const char *name,umode_t mode,struct dentry *parent,u32 *value); -struct dentry *debugfs_create_x64 (const char *name,umode_t mode, -struct dentry *parent,u64 *value); +void debugfs_create_x64 (const char *name,umode_t mode,struct dentry *parent, +u64 *value);void debugfs_create_size_t (const char *name,umode_t mode,struct dentry *parent,size_t *value); struct dentry *debugfs_create_atomic_t(const char *name, umode_t mode,
@@ -277,12 +277,8 @@ static inline void debugfs_create_x16(const char *name, umode_t mode,static inline void debugfs_create_x32 (const char *name,umode_t mode,struct dentry *parent,u32 *value) { } -static inline struct dentry *debugfs_create_x64 (const char *name,umode_t mode, -struct dentry *parent, -u64 *value) -{ -return ERR_PTR (-ENODEV ); -} +static inline void debugfs_create_x64 (const char *name,umode_t mode, +struct dentry *parent,u64 *value) { }static inline void debugfs_create_size_t (const char *name,umode_t mode,struct dentry *parent,size_t *value)
Signature · 1 line
2.23.0