1. 23 6月, 2013 7 次提交
    • G
      h8300: Mark H83002 and H83048 CPU support broken · a4cb378f
      Geert Uytterhoeven 提交于
      arch/h8300/include/asm/io.h supports only H83007 (H8/3006,3007), H83068
      (H8/3065,3066,3067,3068,3069), and H8S2678 (H8S/2670,2673,2674R,2675,2676)
      CPU types.
      
      Hence disable H83002 (H8/3001,3002,3003) and H83048
      (H8/3044,3045,3046,3047,3048,3052) CPU support at the Kconfig level.
      
      This fixes build failures in allmodconfig/allyesconfig builds, as these
      always choose the first CPU type (H83002), which was unsupported:
      
      arch/h8300/include/asm/io.h:13:2: error: #error UNKNOWN CPU TYPE
      Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      a4cb378f
    • G
      h8300: Switch h8300 to drivers/Kconfig · 9ac6adbc
      Geert Uytterhoeven 提交于
      Convert the last remaining architecture to drivers/Kconfig.
      Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      9ac6adbc
    • G
      h8300: Limit timer channel ranges in Kconfig · 4e8d1e48
      Geert Uytterhoeven 提交于
      arch/h8300/kernel/timer/itu.c and arch/h8300/kernel/timer/tpu.c
      only support 0--4 for CONFIG_H8300_ITU_CH resp. H8300_TPU_CH, hence limit
      them to that range in Kconfig.
      Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      4e8d1e48
    • G
      h8300: Wire up asm-generic/xor.h · e71eccdb
      Geert Uytterhoeven 提交于
      crypto/xor.c:25:21: fatal error: asm/xor.h: No such file or directory
      Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      e71eccdb
    • G
      h8300: Fill the system call table using a CALL() macro · c9490255
      Geert Uytterhoeven 提交于
      The CALL() macro abstracts (a.o.) the underscore symbol prefix.
      Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      c9490255
    • G
      h8300: Fix <asm/tlb.h> · 1e2b3bda
      Geert Uytterhoeven 提交于
      Ten years ago, a mismerge happened, concatenating two slightly different
      versions of the same file. As a consequence, <asm-generic/tlb.h> was never
      included, leading to a build failure only now:
      
      kernel/cpu/idle.c: In function 'cpu_idle_loop':
      kernel/cpu/idle.c:70:4: error: implicit declaration of function 'check_pgt_cache' [-Werror=implicit-function-declaration]
      
      Remove the duplicates, and the header comment with the no longer correct
      file name.
      Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      Acked-by: NYoshinori Sato <ysato@users.sourceforge.jp>
      1e2b3bda
    • G
      h8300: Hardcode symbol prefixes in asm sources · db5ede6f
      Geert Uytterhoeven 提交于
      Commit e1b5bb6d ("consolidate cond_syscall
      and SYSCALL_ALIAS declarations") broke the h8300 build because it removed
      the duplicate SYMBOL_NAME() macro from arch/h8300/include/asm/linkage.h,
      and all the h8300 asm files include <asm/linkage.h> instead of
      <linux/linkage.h>:
      
          arch/h8300/kernel/entry.S: Assembler messages:
          arch/h8300/kernel/entry.S:158: Error: junk at end of line, first unrecognized character is `('
          ...
          arch/h8300/kernel/syscalls.S: Assembler messages:
          arch/h8300/kernel/syscalls.S:6: Error: junk at end of line, first unrecognized character is `('
          ...
          arch/h8300/lib/abs.S: Assembler messages:
          arch/h8300/lib/abs.S:12: Error: junk at end of line, first unrecognized character is `('
          ...
          arch/h8300/lib/memcpy.S: Assembler messages:
          arch/h8300/lib/memcpy.S:13: Error: junk at end of line, first unrecognized character is `('
          ...
          arch/h8300/lib/memset.S: Assembler messages:
          arch/h8300/lib/memset.S:13: Error: junk at end of line, first unrecognized character is `('
          ...
      
      Commit 126de6b2 ("linkage.h: fix build
      breakage due to symbol prefix handling") broke it even more, by removing
      SYMBOL_NAME() and replacing it by __SYMBOL_NAME().
      
      Commit f8ce1faf ("Merge tag
      'modules-next-for-linus' of
      git://git.kernel.org/pub/scm/linuxkernel/git/rusty/linux")
      also removed __SYMBOL_NAME(), hidden in a merge conflict resolution.
      
      Hence, replace the use of SYMBOL_NAME() and SYMBOL_NAME_LABEL() in h8300
      assembler sources by hardcoding the underscore symbol prefix, like other
      architectures (blackfin/metag) do.
      
      This allows to kill SYMBOL_NAME_LABEL(). Now <asm/linkage.h> becomes empty,
      and h8300 can be switched to asm-generic/linkage.h.
      Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      db5ede6f
  2. 16 6月, 2013 20 次提交
    • J
      h8300: add missing definition for read_barries_depends() · c805a5b7
      Jiang Liu 提交于
      Add missing definition for read_barries_depends() for h8300 to fix error:
      kernel/task_work.c: In function 'task_work_cancel':
      kernel/task_work.c:38:3: error: implicit declaration of function 'read_barrier_depends' [-Werror=implicit-function-declaration]
      cc1: some warnings being treated as errors
      make[1]: *** [kernel/task_work.o] Error 1
      make: *** [kernel] Error 2
      
      Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
      Cc: David Howells <dhowells@redhat.com>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: linux-kernel@vger.kernel.org
      Signed-off-by: NJiang Liu <jiang.liu@huawei.com>
      c805a5b7
    • G
      frv: head.S - Remove commented-out initialization code · c0b81e00
      Geert Uytterhoeven 提交于
      The commented-out calls to processor_init() and unit_init() seem to have
      been copied from mn10300, when starting the frv port. Remove them.
      Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      c0b81e00
    • G
      cris: Wire up asm-generic/vga.h · e3ccbc34
      Geert Uytterhoeven 提交于
      When compiling several DRM related files:
      
      include/video/vga.h:22:21: fatal error: asm/vga.h: No such file or directory
      Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      e3ccbc34
    • G
    • G
      35356292
    • G
      cris: Switch cris to drivers/Kconfig · acf83630
      Geert Uytterhoeven 提交于
      allmodconfig:
      
      drivers/video/console/fonts.c:71:2: error: #error No fonts configured.
      
      This is caused by cris not using the generic drivers/Kconfig, and thus not
      traversing drivers/video/console/Kconfig.
      As the build system does traverse drivers/video/console/Makefile, fonts.c
      was compiled with an inconsistent configuration.
      Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      acf83630
    • G
      cris: Wire up asm-generic/xor.h · cd07f4f3
      Geert Uytterhoeven 提交于
      crypto/xor.c:25:21: fatal error: asm/xor.h: No such file or directory
      Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      Acked-by: NJesper Nilsson <jesper.nilsson@axis.com>
      cd07f4f3
    • G
    • G
      cris: Provide inb_p() and outb_p() · 0dad16fd
      Geert Uytterhoeven 提交于
      drivers/block/hd.c: In function 'check_status':
      drivers/block/hd.c:256:2: error: implicit declaration of function 'inb_p' [-Werror=implicit-function-declaration]
      drivers/block/hd.c: In function 'controller_ready':
      drivers/block/hd.c:297:3: error: implicit declaration of function 'outb_p' [-Werror=implicit-function-declaration]
      Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      0dad16fd
    • G
      cris: Provide <asm/kvm_para.h> · 95f40de9
      Geert Uytterhoeven 提交于
      In file included from include/linux/kvm_para.h:4:0,
                       from kernel/watchdog.c:28:
      include/uapi/linux/kvm_para.h:26:26: fatal error: asm/kvm_para.h: No such file or directory
      Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      95f40de9
    • G
      cris/kgdb: Remove sections protected by #ifdef PROCESS_SUPPORT · 6a89a9db
      Geert Uytterhoeven 提交于
      When enabled, it doesn't build anyway:
      
      arch/cris/arch-v10/kernel/kgdb.c: In function 'copy_registers_from_stack':
      arch/cris/arch-v10/kernel/kgdb.c:631:2: error: unknown type name 'stack_registers'
      arch/cris/arch-v10/kernel/kgdb.c:631:24: error: 'stack_registers' undeclared (first use in this function)
      arch/cris/arch-v10/kernel/kgdb.c:631:24: note: each undeclared identifier is reported only once for each function it appears in
      arch/cris/arch-v10/kernel/kgdb.c:631:41: error: expected expression before ')' token
      arch/cris/arch-v10/kernel/kgdb.c:635:11: error: request for member 'r' in something not a structure or union
      arch/cris/arch-v10/kernel/kgdb.c:636:29: error: 'stack_list' undeclared (first use in this function)
      arch/cris/arch-v10/kernel/kgdb.c:637:16: error: request for member 'pc' in something not a structure or union
      arch/cris/arch-v10/kernel/kgdb.c:638:18: error: request for member 'dccr' in something not a structure or union
      arch/cris/arch-v10/kernel/kgdb.c:639:17: error: request for member 'srp' in something not a structure or union
      arch/cris/arch-v10/kernel/kgdb.c: In function 'copy_registers_to_stack':
      arch/cris/arch-v10/kernel/kgdb.c:648:2: error: unknown type name 'stack_registers'
      arch/cris/arch-v10/kernel/kgdb.c:648:24: error: 'stack_registers' undeclared (first use in this function)
      arch/cris/arch-v10/kernel/kgdb.c:648:41: error: expected expression before ')' token
      arch/cris/arch-v10/kernel/kgdb.c:652:4: error: request for member 'r' in something not a structure or union
      arch/cris/arch-v10/kernel/kgdb.c:654:3: error: request for member 'pc' in something not a structure or union
      arch/cris/arch-v10/kernel/kgdb.c:655:3: error: request for member 'dccr' in something not a structure or union
      arch/cris/arch-v10/kernel/kgdb.c:656:3: error: request for member 'srp' in something not a structure or union
      arch/cris/arch-v10/kernel/kgdb.c: In function 'write_stack_register':
      arch/cris/arch-v10/kernel/kgdb.c:702:2: error: unknown type name 'stack_registers'
      arch/cris/arch-v10/kernel/kgdb.c:702:24: error: 'stack_registers' undeclared (first use in this function)
      arch/cris/arch-v10/kernel/kgdb.c:702:41: error: expected expression before ')' token
      arch/cris/arch-v10/kernel/kgdb.c:707:4: error: request for member 'r' in something not a structure or union
      arch/cris/arch-v10/kernel/kgdb.c:710:3: error: 'stack_list' undeclared (first use in this function)
      arch/cris/arch-v10/kernel/kgdb.c:713:4: error: request for member 'pc' in something not a structure or union
      arch/cris/arch-v10/kernel/kgdb.c:716:4: error: request for member 'srp' in something not a structure or union
      arch/cris/arch-v10/kernel/kgdb.c:719:4: error: request for member 'dccr' in something not a structure or union
      arch/cris/arch-v10/kernel/kgdb.c: In function 'stub_is_stopped':
      arch/cris/arch-v10/kernel/kgdb.c:827:36: error: 'pos' undeclared (first use in this function)
      arch/cris/arch-v10/kernel/kgdb.c: In function 'handle_exception':
      arch/cris/arch-v10/kernel/kgdb.c:1064:40: error: 'number_of_tasks' undeclared (first use in this function)
      arch/cris/arch-v10/kernel/kgdb.c:1125:8: error: implicit declaration of function 'os_is_started' [-Werror=implicit-function-declaration]
      Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      6a89a9db
    • G
      cris/kgdb: Fix buffer overflow in getpacket() · de666cf0
      Geert Uytterhoeven 提交于
      arch/cris/arch-v10/kernel/kgdb.c: In function 'handle_exception':
      arch/cris/arch-v10/kernel/kgdb.c:534:17: warning: array subscript is above array bounds [-Warray-bounds]
      Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      de666cf0
    • G
      cris/kgdb: Remove obsolete USED*() macros · e42e3980
      Geert Uytterhoeven 提交于
      handle_exception and internal_stack are now global
      Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      e42e3980
    • G
      cris/kgdb: Make symbols used from asm global · 6408ac49
      Geert Uytterhoeven 提交于
      arch/cris/arch-v10/kernel/built-in.o: In function `kgdb_handle_breakpoint':
      (.text+0x2c3e): undefined reference to `reg'
      arch/cris/arch-v10/kernel/built-in.o: In function `kgdb_handle_breakpoint':
      (.text+0x2c48): undefined reference to `reg'
      arch/cris/arch-v10/kernel/built-in.o: In function `kgdb_handle_breakpoint':
      (.text+0x2c50): undefined reference to `reg'
      arch/cris/arch-v10/kernel/built-in.o: In function `kgdb_handle_breakpoint':
      (.text+0x2c58): undefined reference to `reg'
      arch/cris/arch-v10/kernel/built-in.o: In function `kgdb_handle_breakpoint':
      (.text+0x2c60): undefined reference to `reg'
      arch/cris/arch-v10/kernel/built-in.o:(.text+0x2c68): more undefined references to `reg' follow
      arch/cris/arch-v10/kernel/built-in.o: In function `is_static':
      kgdb.c:(.text+0x2d46): undefined reference to `internal_stack'
      kgdb.c:(.text+0x2d4e): undefined reference to `handle_exception'
      kgdb.c:(.text+0x2d54): undefined reference to `reg'
      kgdb.c:(.text+0x2d5c): undefined reference to `reg'
      kgdb.c:(.text+0x2d64): undefined reference to `reg'
      kgdb.c:(.text+0x2d6c): undefined reference to `reg'
      kgdb.c:(.text+0x2d74): undefined reference to `reg'
      arch/cris/arch-v10/kernel/built-in.o:kgdb.c:(.text+0x2d7c): more undefined references to `reg' follow
      arch/cris/arch-v10/kernel/built-in.o: In function `kgdb_handle_serial':
      (.text+0x2ef6): undefined reference to `internal_stack'
      arch/cris/arch-v10/kernel/built-in.o: In function `kgdb_handle_serial':
      (.text+0x2efe): undefined reference to `handle_exception'
      arch/cris/arch-v10/kernel/built-in.o: In function `goback':
      kgdb.c:(.text+0x2f04): undefined reference to `reg'
      kgdb.c:(.text+0x2f0c): undefined reference to `reg'
      kgdb.c:(.text+0x2f14): undefined reference to `reg'
      kgdb.c:(.text+0x2f1c): undefined reference to `reg'
      kgdb.c:(.text+0x2f24): undefined reference to `reg'
      arch/cris/arch-v10/kernel/built-in.o:kgdb.c:(.text+0x2f2c): more undefined references to `reg' follow
      
      Make reg, internal_stack, and handle_exception global to fix this.
      Rename reg to cris_reg as it's a too generic name for a global symbol.
      Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      6408ac49
    • G
      cris/kgdb: Use #ifdef PROCESS_SUPPORT where needed · d6c97e1c
      Geert Uytterhoeven 提交于
      arch/cris/arch-v10/kernel/kgdb.c:354:12: warning: 'current_thread_c' defined but not used [-Wunused-variable]
      arch/cris/arch-v10/kernel/kgdb.c:355:12: warning: 'current_thread_g' defined but not used [-Wunused-variable]
      arch/cris/arch-v10/kernel/kgdb.c:359:18: warning: 'reg_g' defined but not used [-Wunused-variable]
      arch/cris/arch-v10/kernel/kgdb.c:622:1: warning: 'copy_registers' defined but not used [-Wunused-function]
      Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      d6c97e1c
    • G
      cris/kgdb: Kill forward declarations for static functions · 4bf01dda
      Geert Uytterhoeven 提交于
      Move some functions around and kill forward declarations for static
      functions. This fixes:
      
      arch/cris/arch-v10/kernel/kgdb.c:255:13: warning: 'copy_registers_from_stack' declared 'static' but never defined [-Wunused-function]
      arch/cris/arch-v10/kernel/kgdb.c:259:13: warning: 'copy_registers_to_stack' declared 'static' but never defined [-Wunused-function]
      arch/cris/arch-v10/kernel/kgdb.c:267:12: warning: 'write_stack_register' declared 'static' but never defined [-Wunused-function]
      Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      4bf01dda
    • G
      4bb77a9d
    • G
      cris/kgdb: Properly split long lines in asm · 7fc6a8ba
      Geert Uytterhoeven 提交于
      arch/cris/arch-v10/kernel/kgdb.c:1273:6: warning: missing terminating " character [enabled by default]
      arch/cris/arch-v10/kernel/kgdb.c:1359:1: warning: missing terminating " character [enabled by default]
      arch/cris/arch-v10/kernel/kgdb.c:1370:6: warning: missing terminating " character [enabled by default]
      arch/cris/arch-v10/kernel/kgdb.c:1457:1: warning: missing terminating " character [enabled by default]
      arch/cris/arch-v10/kernel/kgdb.c:1273:6: warning: missing terminating " character [enabled by default]
      arch/cris/arch-v10/kernel/kgdb.c:1273:1: error: missing terminating " character
      arch/cris/arch-v10/kernel/kgdb.c:1274:3: error: expected string literal before '.' token
      arch/cris/arch-v10/kernel/kgdb.c:1359:1: warning: missing terminating " character [enabled by default]
      arch/cris/arch-v10/kernel/kgdb.c:1359:1: error: missing terminating " character
      arch/cris/arch-v10/kernel/kgdb.c:1370:6: warning: missing terminating " character [enabled by default]
      arch/cris/arch-v10/kernel/kgdb.c:1370:1: error: missing terminating " character
      arch/cris/arch-v10/kernel/kgdb.c:1457:1: warning: missing terminating " character [enabled by default]
      arch/cris/arch-v10/kernel/kgdb.c:1457:1: error: missing terminating " character
      Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      7fc6a8ba
    • G
      7e973d79
    • G
      avr32: atmel_default_console_device depends on CONFIG_SERIAL_ATMEL · b5cc4891
      Geert Uytterhoeven 提交于
      allnoconfig:
      
      arch/avr32/mach-at32ap/built-in.o: In function `at32_select_gpio':
      (.init.text+0x548): undefined reference to `atmel_default_console_device'
      Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      Acked-by: NHans-Christian Egtvedt <egtvedt@samfundet.no>
      b5cc4891
  3. 09 6月, 2013 13 次提交