Re: [PATCH] fixing sendfile on 64bit architectures

From: Andrew Morton
Date: Thu May 20 2004 - 17:24:33 EST


Jesse Barnes <jbarnes@xxxxxxxxxxxx> wrote:
>
> On Thursday, May 20, 2004 5:56 pm, Andrew Morton wrote:
> > An alternative might be to remove all the ifdefs, build with
> > -ffunction-sections and let the linker drop any unreferenced code...
>
> That would probably be even more confusing than the #ifdefs. At least with
> those you know that you need to check whether the current code will be
> called...
>

Me no understand Jesse.

Removing the ifdefs and letting the linker do the job has the advantage
that the compiler gets to check more code for you.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/