Skip to content

Commit adc92dd

Browse files
dwlsalmeidagregkh
authored andcommitted
debugfs: Fix warnings when building documentation
Fix the following warnings: fs/debugfs/inode.c:423: WARNING: Inline literal start-string without end-string. fs/debugfs/inode.c:502: WARNING: Inline literal start-string without end-string. fs/debugfs/inode.c:534: WARNING: Inline literal start-string without end-string. fs/debugfs/inode.c:627: WARNING: Inline literal start-string without end-string. fs/debugfs/file.c:496: WARNING: Inline literal start-string without end-string. fs/debugfs/file.c:502: WARNING: Inline literal start-string without end-string. fs/debugfs/file.c:581: WARNING: Inline literal start-string without end-string. fs/debugfs/file.c:587: WARNING: Inline literal start-string without end-string. fs/debugfs/file.c:846: WARNING: Inline literal start-string without end-string. fs/debugfs/file.c:852: WARNING: Inline literal start-string without end-string. fs/debugfs/file.c:899: WARNING: Inline literal start-string without end-string. fs/debugfs/file.c:905: WARNING: Inline literal start-string without end-string. fs/debugfs/file.c:1091: WARNING: Inline literal start-string without end-string. fs/debugfs/file.c:1097: WARNING: Inline literal start-string without end-string By replacing %ERR_PTR with ERR_PTR. Signed-off-by: Daniel W. S. Almeida <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 4c002c9 commit adc92dd

File tree

2 files changed

+14
-16
lines changed

2 files changed

+14
-16
lines changed

fs/debugfs/file.c

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -496,10 +496,10 @@ DEFINE_DEBUGFS_ATTRIBUTE(fops_u32_wo, NULL, debugfs_u32_set, "%llu\n");
496496
* This function will return a pointer to a dentry if it succeeds. This
497497
* pointer must be passed to the debugfs_remove() function when the file is
498498
* to be removed (no automatic cleanup happens if your module is unloaded,
499-
* you are responsible here.) If an error occurs, %ERR_PTR(-ERROR) will be
499+
* you are responsible here.) If an error occurs, ERR_PTR(-ERROR) will be
500500
* returned.
501501
*
502-
* If debugfs is not enabled in the kernel, the value %ERR_PTR(-ENODEV) will
502+
* If debugfs is not enabled in the kernel, the value ERR_PTR(-ENODEV) will
503503
* be returned.
504504
*/
505505
struct dentry *debugfs_create_u32(const char *name, umode_t mode,
@@ -581,10 +581,10 @@ DEFINE_DEBUGFS_ATTRIBUTE(fops_ulong_wo, NULL, debugfs_ulong_set, "%llu\n");
581581
* This function will return a pointer to a dentry if it succeeds. This
582582
* pointer must be passed to the debugfs_remove() function when the file is
583583
* to be removed (no automatic cleanup happens if your module is unloaded,
584-
* you are responsible here.) If an error occurs, %ERR_PTR(-ERROR) will be
584+
* you are responsible here.) If an error occurs, ERR_PTR(-ERROR) will be
585585
* returned.
586586
*
587-
* If debugfs is not enabled in the kernel, the value %ERR_PTR(-ENODEV) will
587+
* If debugfs is not enabled in the kernel, the value ERR_PTR(-ENODEV) will
588588
* be returned.
589589
*/
590590
struct dentry *debugfs_create_ulong(const char *name, umode_t mode,
@@ -846,10 +846,10 @@ static const struct file_operations fops_bool_wo = {
846846
* This function will return a pointer to a dentry if it succeeds. This
847847
* pointer must be passed to the debugfs_remove() function when the file is
848848
* to be removed (no automatic cleanup happens if your module is unloaded,
849-
* you are responsible here.) If an error occurs, %ERR_PTR(-ERROR) will be
849+
* you are responsible here.) If an error occurs, ERR_PTR(-ERROR) will be
850850
* returned.
851851
*
852-
* If debugfs is not enabled in the kernel, the value %ERR_PTR(-ENODEV) will
852+
* If debugfs is not enabled in the kernel, the value ERR_PTR(-ENODEV) will
853853
* be returned.
854854
*/
855855
struct dentry *debugfs_create_bool(const char *name, umode_t mode,
@@ -899,10 +899,10 @@ static const struct file_operations fops_blob = {
899899
* This function will return a pointer to a dentry if it succeeds. This
900900
* pointer must be passed to the debugfs_remove() function when the file is
901901
* to be removed (no automatic cleanup happens if your module is unloaded,
902-
* you are responsible here.) If an error occurs, %ERR_PTR(-ERROR) will be
902+
* you are responsible here.) If an error occurs, ERR_PTR(-ERROR) will be
903903
* returned.
904904
*
905-
* If debugfs is not enabled in the kernel, the value %ERR_PTR(-ENODEV) will
905+
* If debugfs is not enabled in the kernel, the value ERR_PTR(-ENODEV) will
906906
* be returned.
907907
*/
908908
struct dentry *debugfs_create_blob(const char *name, umode_t mode,
@@ -1091,10 +1091,10 @@ static const struct file_operations fops_regset32 = {
10911091
* This function will return a pointer to a dentry if it succeeds. This
10921092
* pointer must be passed to the debugfs_remove() function when the file is
10931093
* to be removed (no automatic cleanup happens if your module is unloaded,
1094-
* you are responsible here.) If an error occurs, %ERR_PTR(-ERROR) will be
1094+
* you are responsible here.) If an error occurs, ERR_PTR(-ERROR) will be
10951095
* returned.
10961096
*
1097-
* If debugfs is not enabled in the kernel, the value %ERR_PTR(-ENODEV) will
1097+
* If debugfs is not enabled in the kernel, the value ERR_PTR(-ENODEV) will
10981098
* be returned.
10991099
*/
11001100
struct dentry *debugfs_create_regset32(const char *name, umode_t mode,
@@ -1158,4 +1158,3 @@ struct dentry *debugfs_create_devm_seqfile(struct device *dev, const char *name,
11581158
&debugfs_devm_entry_ops);
11591159
}
11601160
EXPORT_SYMBOL_GPL(debugfs_create_devm_seqfile);
1161-

fs/debugfs/inode.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ static struct dentry *__debugfs_create_file(const char *name, umode_t mode,
423423
* This function will return a pointer to a dentry if it succeeds. This
424424
* pointer must be passed to the debugfs_remove() function when the file is
425425
* to be removed (no automatic cleanup happens if your module is unloaded,
426-
* you are responsible here.) If an error occurs, %ERR_PTR(-ERROR) will be
426+
* you are responsible here.) If an error occurs, ERR_PTR(-ERROR) will be
427427
* returned.
428428
*
429429
* If debugfs is not enabled in the kernel, the value -%ENODEV will be
@@ -502,7 +502,7 @@ EXPORT_SYMBOL_GPL(debugfs_create_file_unsafe);
502502
* This function will return a pointer to a dentry if it succeeds. This
503503
* pointer must be passed to the debugfs_remove() function when the file is
504504
* to be removed (no automatic cleanup happens if your module is unloaded,
505-
* you are responsible here.) If an error occurs, %ERR_PTR(-ERROR) will be
505+
* you are responsible here.) If an error occurs, ERR_PTR(-ERROR) will be
506506
* returned.
507507
*
508508
* If debugfs is not enabled in the kernel, the value -%ENODEV will be
@@ -534,7 +534,7 @@ EXPORT_SYMBOL_GPL(debugfs_create_file_size);
534534
* This function will return a pointer to a dentry if it succeeds. This
535535
* pointer must be passed to the debugfs_remove() function when the file is
536536
* to be removed (no automatic cleanup happens if your module is unloaded,
537-
* you are responsible here.) If an error occurs, %ERR_PTR(-ERROR) will be
537+
* you are responsible here.) If an error occurs, ERR_PTR(-ERROR) will be
538538
* returned.
539539
*
540540
* If debugfs is not enabled in the kernel, the value -%ENODEV will be
@@ -627,7 +627,7 @@ EXPORT_SYMBOL(debugfs_create_automount);
627627
* This function will return a pointer to a dentry if it succeeds. This
628628
* pointer must be passed to the debugfs_remove() function when the symbolic
629629
* link is to be removed (no automatic cleanup happens if your module is
630-
* unloaded, you are responsible here.) If an error occurs, %ERR_PTR(-ERROR)
630+
* unloaded, you are responsible here.) If an error occurs, ERR_PTR(-ERROR)
631631
* will be returned.
632632
*
633633
* If debugfs is not enabled in the kernel, the value -%ENODEV will be
@@ -906,4 +906,3 @@ static int __init debugfs_init(void)
906906
return retval;
907907
}
908908
core_initcall(debugfs_init);
909-

0 commit comments

Comments
 (0)