Re: [PATCH] ARM: tegra: uncompress.h: Don't depend on kernel headers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Feb 27, 2012 at 1:27 PM, Stephen Warren <swarren@xxxxxxxxxx> wrote:
> This fixes the following compile error:
>
>  CC      arch/arm/boot/compressed/misc.o
> In file included from arch/arm/boot/compressed/misc.c:28:0:
> arch/arm/mach-tegra/include/mach/uncompress.h: In function 'arch_decomp_setup':
> arch/arm/mach-tegra/include/mach/uncompress.h:125:2: error: implicit declaration of function 'BUILD_BUG_ON_ZERO' [-Werror=implicit-function-declaration]
> cc1: some warnings being treated as errors
>
> This is due to use of the ARRAY_SIZE() macro. Typically, this would be
> solved by including <linux/bug.h>, but the compressor code isn't part of
> the kernel, and so should not include kernel headers. Instead, define
> the few macros the code uses directly, and in a way that doesn't depend
> on <linux/bug.h>.
>
> Signed-off-by: Stephen Warren <swarren@xxxxxxxxxx>

Thanks, applied on for-3.4/soc-drivers, since that's the branch the
linux/kernel.h include was introduced on.

We're losing bisectability over about 9 commits unless I rebase the
branch to squash it in, but there might be downstream users of it so I
don't want to do that.


-Olof
--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [ARM Kernel]     [Linux ARM]     [Linux ARM MSM]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux