[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20191227010035.854913-3-dwlsalmeida@gmail.com>
Date: Thu, 26 Dec 2019 22:00:35 -0300
From: "Daniel W. S. Almeida" <dwlsalmeida@...il.com>
To: viro@...iv.linux.org.uk
Cc: "Daniel W. S. Almeida" <dwlsalmeida@...il.com>,
linux-kernel@...r.kernel.org, skhan@...uxfoundation.org,
linux-kernel-mentees@...ts.linuxfoundation.org,
linux-fsdevel@...r.kernel.org
Subject: [PATCH] fs: seq_file.c: Fix warnings
From: "Daniel W. S. Almeida" <dwlsalmeida@...il.com>
Fix the following warnings:
fs/seq_file.c:40: WARNING: Inline strong start-string without end-string.
fs/seq_file.c:40: WARNING: Inline strong start-string without end-string.
fs/seq_file.c:40: WARNING: Inline strong start-string without end-string.
fs/seq_file.c:40: WARNING: Inline strong start-string without end-string
By escaping the parenthesis in the affected line. Line breaks were added
for clarity.
Signed-off-by: Daniel W. S. Almeida <dwlsalmeida@...il.com>
---
fs/seq_file.c | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/fs/seq_file.c b/fs/seq_file.c
index 1600034a929b..aad4354ceeb0 100644
--- a/fs/seq_file.c
+++ b/fs/seq_file.c
@@ -38,10 +38,18 @@ static void *seq_buf_alloc(unsigned long size)
* @op: method table describing the sequence
*
* seq_open() sets @file, associating it with a sequence described
- * by @op. @op->start() sets the iterator up and returns the first
- * element of sequence. @op->stop() shuts it down. @op->next()
- * returns the next element of sequence. @op->show() prints element
- * into the buffer. In case of error ->start() and ->next() return
+ * by @op.
+ *
+ * @op->start\(\) sets the iterator up and returns the first
+ * element of sequence.
+ *
+ * @op->stop\(\) shuts it down.
+ *
+ * @op->next\(\) returns the next element of sequence.
+ *
+ * @op->show\(\) prints element into the buffer.
+ *
+ * In case of error ->start() and ->next() return
* ERR_PTR(error). In the end of sequence they return %NULL. ->show()
* returns 0 in case of success and negative number in case of error.
* Returning SEQ_SKIP means "discard this element and move on".
--
2.24.1
Powered by blists - more mailing lists