Re: [PATCH] fix modpost warnings for xtensa

From: Sam Ravnborg
Date: Wed Jul 25 2007 - 16:28:20 EST


On Thu, Jul 19, 2007 at 11:37:56AM -0700, Chris Zankel wrote:
> [PATCH] fix modpost warnings for xtensa
>
> The Xtensa architecture places literal pools in sections separate
> from the instructions. The corresponsing text sections, therefore,
> reference the .literal section, and we have to suppress those
> warnings. The naming convention defines the name for a literal
> section as .SECTION.literal, unless .SECTION is .text. In that case
> the name is only .literal. Using strncmp() instead of strcmp()
> to compare the from-section with .SECTION.init.refok in pattern 0
> should not cause any regressions for other architectures.
> We also need to suppress warnings for two informational
> sections (.xt.lit and .xt.prop) used by the Xtensa architecture.
>
> Signed-off-by: Chris Zankel <chris@xxxxxxxxxx>

Hi Chris,
I hand applied your patch and have pushed the following patch to kbuild.git.
I simplified it a bit and decided to break the 80 char limit..

Sam