lkml.org 
[lkml]   [2011]   [May]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[RESEND PATCH 1/2] ppc: Fix compiler warning in ptrace.c [-Wno-array-bounds]
    Date
    The trick used to bypass the thread_struct fpr array in order to access the
    struct fpscr, in arch/powerpc/kernel/ptrace.c, can trigger an "array subscript
    is above array bounds [-Werror=array-bounds]" warning.

    Add -Wno-array-bounds to CFLAGS_ptrace.o, in arch/powerpc/kernel/Makefile to
    slience this warning.

    Signed-off-by: Stratos Psomadakis <psomas@ece.ntua.gr>
    ---
    arch/powerpc/kernel/Makefile | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/arch/powerpc/kernel/Makefile b/arch/powerpc/kernel/Makefile
    index 3bb2a3e..92b1002 100644
    --- a/arch/powerpc/kernel/Makefile
    +++ b/arch/powerpc/kernel/Makefile
    @@ -2,7 +2,7 @@
    # Makefile for the linux kernel.
    #

    -CFLAGS_ptrace.o += -DUTS_MACHINE='"$(UTS_MACHINE)"'
    +CFLAGS_ptrace.o += -DUTS_MACHINE='"$(UTS_MACHINE)"' $(call cc-option, -Wno-array-bounds)

    subdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror

    --
    1.5.6.5


    \
     
     \ /
      Last update: 2011-05-07 17:57    [W:0.023 / U:30.564 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site