[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJF2gTQ9vJZrDJ32nzq67XmYOqtXjYdsx=L2ob9yGP94fM-G5w@mail.gmail.com>
Date: Fri, 11 Aug 2023 16:13:47 +0800
From: Guo Ren <guoren@...nel.org>
To: Arnd Bergmann <arnd@...db.de>
Cc: "linux-csky@...r.kernel.org" <linux-csky@...r.kernel.org>,
linux-kernel@...r.kernel.org,
Linux-Arch <linux-arch@...r.kernel.org>,
Guo Ren <guoren@...ux.alibaba.com>,
Arnd Bergmann <arnd@...nel.org>
Subject: Re: [PATCH] csky: Fixup -Wmissing-prototypes warning
On Fri, Aug 11, 2023 at 3:33 PM Arnd Bergmann <arnd@...db.de> wrote:
>
> On Fri, Aug 11, 2023, at 05:07, guoren@...nel.org wrote:
> >
> > Link: https://lore.kernel.org/lkml/20230810141947.1236730-17-arnd@kernel.org/
> > Reported-by: Arnd Bergmann <arnd@...nel.org>
> > Signed-off-by: Guo Ren <guoren@...ux.alibaba.com>
> > Signed-off-by: Guo Ren <guoren@...nel.org>
>
> Thanks for addressing these!
>
> Reviewed-by: Arnd Bergmann <arnd@...db.de>
>
> > --- a/arch/csky/kernel/vdso/vgettimeofday.c
> > +++ b/arch/csky/kernel/vdso/vgettimeofday.c
> > @@ -3,24 +3,35 @@
> > #include <linux/time.h>
> > #include <linux/types.h>
> >
> > +extern
> > +int __vdso_clock_gettime(clockid_t clock,
> > + struct old_timespec32 *ts);
> > int __vdso_clock_gettime(clockid_t clock,
> > struct old_timespec32 *ts)
> > {
> > return __cvdso_clock_gettime32(clock, ts);
> > }
> >
>
> This works, but it would be a bit nicer to move the
> declarations into a header. I see that we already handle
I know you concern, but I didn't find a proper header file. So I
copied riscv solution, let's solve that in riscv first, then csky
would follow up. Thx.
> this in three different ways across x86, arm and arm64,
> and you picked method from x86 (and loongarch) here, so
> I can't really complain.
>
> What we should probably have instead is a new header
> in include/vdso/ that declares the functions for
> every architecture.
>
> Arnd
--
Best Regards
Guo Ren
Powered by blists - more mailing lists