Re: [PATCH] libosd: Remove ignored __weak attribute
From: Linus Torvalds
Date: Fri Oct 26 2018 - 15:22:29 EST
On Fri, Oct 26, 2018 at 11:32 AM Nick Desaulniers
<ndesaulniers@xxxxxxxxxx> wrote:
>
> + Linus
> I'm not about the process of removing code from the kernel. Doesn't
> that violate the "thou shalt not break userspace" rule?
The only thing that breaks the "thou shalt not break userspace" rule
is fairly simple: things that break user space.
Does removing the code break for somebody? If so we don't do it. But
if nobody notices because nobody uses, it's fine.
Basically, there is no "theoretical" rule about what breaks user space
or not. In particular, the rule is *not* that you can't change ABI.
You can do any change you want that changes a kernel exported ABI,
just as long as nobody actually notices the change.
But in practice, it's often _much_ more work to try to figure out
whether something breaks somebody than it is to just say "don't change
behavior", so 99% of the time, the rule ends up being just "try to
avoid intentionally changing behavior, because you'll likely get it
wrong".
Linus