[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YwF8vibZ2/Xz7a/g@ZenIV>
Date: Sun, 21 Aug 2022 01:30:54 +0100
From: Al Viro <viro@...iv.linux.org.uk>
To: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: linux-arch@...r.kernel.org, linux-kernel@...r.kernel.org,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Subject: Re: [RFC][PATCHES] termios.h cleanups
On Sat, Aug 20, 2022 at 02:44:09PM -0700, Linus Torvalds wrote:
> On Sat, Aug 20, 2022 at 11:44 AM Al Viro <viro@...iv.linux.org.uk> wrote:
> >
> > Umm... Might as well, I guess... Where to put those, though?
> > drivers/tty/tty_ioctl.c is not an option, unfortunately - it'll pick
> > the local definitions, __weak or no __weak.
>
> IThat bug is ancient history, and tty_ioctl.c is just fine.
>
> Yes, we used to have the "you can't have __weak function definitions
> in the same file that uses them" rule.
>
> But it was due to a bug in gcc-4.1, which would inline weak functions.
>
> But we long since gave up on gcc-4.1, and we have __weak functions
> declarations in the same file as the use in multiple places. See for
> example arch_release_task_struct() in kernel/fork.c.
OK, that allows to reorder the whole thing better... See #work.termios2
(very lightly tested)
Powered by blists - more mailing lists