linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fs/seq_file.c: Rename the "Fill" label to avoid build failure
@ 2020-04-24  8:29 Huacai Chen
  2020-04-24 11:27 ` Matthew Wilcox
  0 siblings, 1 reply; 4+ messages in thread
From: Huacai Chen @ 2020-04-24  8:29 UTC (permalink / raw)
  To: Alexander Viro
  Cc: linux-fsdevel, Fuxin Zhang, Zhangjin Wu, Huacai Chen, Huacai Chen

MIPS define a "Fill" macro as a cache operation in cacheops.h, this
will cause build failure under some special configurations. To avoid
this failure we rename the "Fill" label in seq_file.c.

Signed-off-by: Huacai Chen <chenhc@lemote.com>
---
 fs/seq_file.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/seq_file.c b/fs/seq_file.c
index 70f5fdf..4e6c56be 100644
--- a/fs/seq_file.c
+++ b/fs/seq_file.c
@@ -213,7 +213,7 @@ ssize_t seq_read(struct file *file, char __user *buf, size_t size, loff_t *ppos)
 			continue;
 		}
 		if (m->count < m->size)
-			goto Fill;
+			goto Fillbuf;
 		m->op->stop(m, p);
 		kvfree(m->buf);
 		m->count = 0;
@@ -225,7 +225,7 @@ ssize_t seq_read(struct file *file, char __user *buf, size_t size, loff_t *ppos)
 	m->op->stop(m, p);
 	m->count = 0;
 	goto Done;
-Fill:
+Fillbuf:
 	/* they want more? let's try to get some more */
 	while (1) {
 		size_t offs = m->count;
-- 
2.7.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-04-26 13:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-24  8:29 [PATCH] fs/seq_file.c: Rename the "Fill" label to avoid build failure Huacai Chen
2020-04-24 11:27 ` Matthew Wilcox
2020-04-25  2:54   ` Huacai Chen
2020-04-26 13:46     ` Thomas Bogendoerfer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).