linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH] fs/seq_file.c: Rename the "Fill" label to avoid build failure
       [not found] <1587716944-28250-1-git-send-email-chenhc@lemote.com>
@ 2020-04-24 11:27 ` Matthew Wilcox
  2020-04-25  2:54   ` Huacai Chen
  0 siblings, 1 reply; 3+ messages in thread
From: Matthew Wilcox @ 2020-04-24 11:27 UTC (permalink / raw)
  To: Huacai Chen
  Cc: Alexander Viro, linux-fsdevel, Fuxin Zhang, Zhangjin Wu,
	Huacai Chen, linux-mips

On Fri, Apr 24, 2020 at 04:29:04PM +0800, Huacai Chen wrote:
> 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.

You should rename the Fill macro in the mips header instead.
I'd suggest Fill_R4000 of R4000_Fill.

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

* Re: [PATCH] fs/seq_file.c: Rename the "Fill" label to avoid build failure
  2020-04-24 11:27 ` [PATCH] fs/seq_file.c: Rename the "Fill" label to avoid build failure Matthew Wilcox
@ 2020-04-25  2:54   ` Huacai Chen
  2020-04-26 13:46     ` Thomas Bogendoerfer
  0 siblings, 1 reply; 3+ messages in thread
From: Huacai Chen @ 2020-04-25  2:54 UTC (permalink / raw)
  To: Matthew Wilcox, Thomas Bogendoerfer
  Cc: Alexander Viro, linux-fsdevel, Fuxin Zhang, Zhangjin Wu,
	open list:MIPS

Hi, Matthew,

Thank you for your comments,

On Fri, Apr 24, 2020 at 7:27 PM Matthew Wilcox <willy@infradead.org> wrote:
>
> On Fri, Apr 24, 2020 at 04:29:04PM +0800, Huacai Chen wrote:
> > 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.
>
> You should rename the Fill macro in the mips header instead.
> I'd suggest Fill_R4000 of R4000_Fill.

Hi, Thomas,

What do you think about this? If you agree to rename the "Fill" macro
in cacheops.h, I want to rename it to Fill_I, because it has the same
coding style as other cache operations in cacheops.h.

Thanks,
Huacai

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

* Re: [PATCH] fs/seq_file.c: Rename the "Fill" label to avoid build failure
  2020-04-25  2:54   ` Huacai Chen
@ 2020-04-26 13:46     ` Thomas Bogendoerfer
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Bogendoerfer @ 2020-04-26 13:46 UTC (permalink / raw)
  To: Huacai Chen
  Cc: Matthew Wilcox, Alexander Viro, linux-fsdevel, Fuxin Zhang,
	Zhangjin Wu, open list:MIPS

On Sat, Apr 25, 2020 at 10:54:23AM +0800, Huacai Chen wrote:
> On Fri, Apr 24, 2020 at 7:27 PM Matthew Wilcox <willy@infradead.org> wrote:
> >
> > On Fri, Apr 24, 2020 at 04:29:04PM +0800, Huacai Chen wrote:
> > > 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.
> >
> > You should rename the Fill macro in the mips header instead.
> > I'd suggest Fill_R4000 of R4000_Fill.
> 
> What do you think about this? If you agree to rename the "Fill" macro
> in cacheops.h, I want to rename it to Fill_I, because it has the same
> coding style as other cache operations in cacheops.h.

works for me, I've merged your patch to mips-next.

Thomas.

-- 
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]

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

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

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1587716944-28250-1-git-send-email-chenhc@lemote.com>
2020-04-24 11:27 ` [PATCH] fs/seq_file.c: Rename the "Fill" label to avoid build failure 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).