1. 27 Mar, 2007 4 commits
    • Mikael Pettersson's avatar
      [SPARC]: sparc64 gcc-4.2.0 20070317 -Werror failure · 7945d562
      Mikael Pettersson authored
      Compiling 2.6.21-rc5 with gcc-4.2.0 20070317 (prerelease)
      for sparc64 fails as follows:
      
        gcc -Wp,-MD,arch/sparc64/kernel/.time.o.d  -nostdinc -isystem /home/mikpe/pkgs/linux-sparc64/gcc-4.2.0/lib/gcc/sparc64-unknown-linux-gnu/4.2.0/include -D__KERNEL__ -Iinclude  -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os -m64 -pipe -mno-fpu -mcpu=ultrasparc -mcmodel=medlow -ffixed-g4 -ffixed-g5 -fcall-used-g7 -Wno-sign-compare -Wa,--undeclared-regs -fomit-frame-pointer  -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign -Werror   -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(time)"  -D"KBUILD_MODNAME=KBUILD_STR(time)" -c -o arch/sparc64/kernel/time.o arch/sparc64/kernel/time.c
      cc1: warnings being treated as errors
      arch/sparc64/kernel/time.c: In function 'kick_start_clock':
      arch/sparc64/kernel/time.c:559: warning: overflow in implicit constant conversion
      make[1]: *** [arch/sparc64/kernel/time.o] Error 1
      make: *** [arch/sparc64/kernel] Error 2
      
      gcc gets unhappy when the MSTK_SET macro's u8 __val variable
      is updated with &= ~0xff (MSTK_YEAR_MASK). Making the constant
      unsigned fixes the problem.
      
      [ I fixed up the sparc32 side as well -DaveM ]
      Signed-off-by: default avatarMikael Pettersson <mikpe@it.uu.se>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      7945d562
    • David S. Miller's avatar
      [VIDEO] ffb: Fix two DAC handling bugs. · 37db9a34
      David S. Miller authored
      The determination of whether the DAC has inverted cursor logic is
      broken, import the version checks the X.org driver uses to fix this.
      
      Next, when we change the timing generator, borrow code from X.org that
      does 10 NOP reads of the timing generator register afterwards to make
      sure the video-enable transition occurs cleanly.
      
      Finally, use macros for the DAC registers and fields in order to
      provide documentation for the next person who reads this code.
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      37db9a34
    • Robert Reif's avatar
      [SPARC32]: Fix SMP build regression · 74e61dee
      Robert Reif authored
      commit b19cbe2a [BRIDGE]: Fix fdb RCU
      race
      
      breaks sparc SMP build because atomic_add_unless is not exported.
      
      This patch exports atomic_add_unless and atomic_cmpxchg.
      Signed-off-by: default avatarRobert Reif <reif@earthlink.net>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      74e61dee
    • David S. Miller's avatar
      [DRM]: Delete sparc64 FFB driver code that never gets built. · b82f87f6
      David S. Miller authored
      The Kconfig bits were removed long ago, so we should kill off the
      driver too.
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      b82f87f6
  2. 26 Mar, 2007 36 commits