1. 08 Dec, 2008 6 commits
  2. 07 Dec, 2008 6 commits
  3. 06 Dec, 2008 17 commits
  4. 04 Dec, 2008 11 commits
    • Sam Ravnborg's avatar
      sparc: unify kernel/init_task · b28017f5
      Sam Ravnborg authored
      A closer inspection revealed that these two files had identical
      functionality - but the implementation of it differed slightly.
      
      Base it on the sparc version as it was the best.
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      b28017f5
    • Sam Ravnborg's avatar
      sparc: drop CONFIG_SUN_AUXIO · 757498c6
      Sam Ravnborg authored
      It is always equals y so no need to test for it
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      757498c6
    • Nicolas Palix's avatar
      sparc: Add missing of_node_put · c2e27c35
      Nicolas Palix authored
      of_node_put is needed before discarding a value received from
      of_find_node_by_name, eg in error handling code or when the device
      node is no longer used.
      
      The semantic match that catches the bug is as follows:
      (http://www.emn.fr/x-info/coccinelle/)
      
      // <smpl>
      @r exists@
      local idexpression struct device_node *n;
      position p1, p2;
      struct device_node *n1;
      statement S;
      identifier f;
      expression E;
      expression *ptr != NULL;
      @@
      
      n@p1 = of_find_node_by_name(...)
      ...
      if (!n) S
      ... when != of_node_put(n)
          when != n1 = f(n,...)
          when != E = n
          when any
          when strict
      (
        return \(0\|<+...n...+>\|ptr\);
      |
      return@p2 ...;
      |
        of_node_put(n);
      |
        n1 = f(n,...)
      |
        E = n
      )
      
      @script:python@
      p1 << r.p1;
      p2 << r.p2;
      @@
      
      print "* file: %s of_find_node_by_name %s return %s" % (p1[0].file,p1[0].line,p2[0].line)
      // </smpl>
      Signed-off-by: default avatarNicolas Palix <npalix@diku.dk>
      Signed-off-by: default avatarJulia Lawall <julia@diku.dk>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      c2e27c35
    • Sam Ravnborg's avatar
      sparc,sparc64: unify boot/ · a8c601ca
      Sam Ravnborg authored
      Simple unification:
      o renamed piggyback to *_32.c/*_64.c
      o copied content of Makefile from sparc64 to sparc and guard it
      o updated sparc/boot/.gitignore
      o deleted remaining files in sparc64/boot
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a8c601ca
    • Sam Ravnborg's avatar
      sparc,sparc64: unify kernel/ · a88b5ba8
      Sam Ravnborg authored
      o Move all files from sparc64/kernel/ to sparc/kernel
        - rename as appropriate
      o Update sparc/Makefile to the changes
      o Update sparc/kernel/Makefile to include the sparc64 files
      
      NOTE: This commit changes link order on sparc64!
      
      Link order had to change for either of sparc32 and sparc64.
      And assuming sparc64 see more testing than sparc32 change link
      order on sparc64 where issues will be caught faster.
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a88b5ba8
    • Sam Ravnborg's avatar
      sparc: prepare kernel/ for unification · d670bd4f
      Sam Ravnborg authored
      o sparc32 files with identical names to sparc64 renamed to <name>_32.S
      o introduced a few Kconfig helpers to simplify Makefile logic
      o refactored Makefile to prepare for unification
        - use obj-$(CONFIG_SPARC32) for sparc32 specific files
        - use <name>_$(BITS) for files where sparc64 has a _64 variant
        - sparc64 directly include a few files where sparc32 builds them,
          refer to these files directly (no BITS)
        - sneaked in -Werror as used by sparc64
      o modified sparc/Makefile to use the new names for head/init_task
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      d670bd4f
    • Sam Ravnborg's avatar
      sparc,sparc64: unify lib/ · 478b8fec
      Sam Ravnborg authored
      o Renamed files in sparc64 to <name>_64.S when identical
        to sparc32 files.
      o iomap.c were equal for sparc32 and sparc64
      o adjusted sparc/Makefile now we have only one lib/
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      478b8fec
    • Sam Ravnborg's avatar
      sparc: prepare lib/ for unification · 18269c0f
      Sam Ravnborg authored
      Identical named files renamed to <name>_32.S
      Refactored Makefile to prepare for unification.
      
      Linking order was altered slightly - but this is a lib.a file so
      it should not matter.
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      18269c0f
    • Sam Ravnborg's avatar
      sparc,sparc64: unify prom/ · 5de18cde
      Sam Ravnborg authored
      - all files with identical names copied and renamed to *_64.c
      - the remaning files copied as is
      - added sparc64 specific files to sparc/prom/Makefile
      - teach sparc64 Makefile to look into sparc/prom/
      - delete unused Makefile from sparc64/prom/
      
      linking order was not kept for sparc64 with this change.
      It was not possible to keep linking order for both sparc and sparc64
      and as sparc64 see more testing than sparc it was natural to
      break linking order on sparc64. Should it have any effect it
      would be detected sooner this way.
      
      printf_32.c and printf_64.c are obvious candidates to be merged
      but they are not 100% equal so that was left for later
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      5de18cde
    • Sam Ravnborg's avatar
      sparc: prepare prom/ for unification · 708d4f09
      Sam Ravnborg authored
      - rename files where sparc64 uses identical names to *_32.c
      - refactor Makefile (but keep linking order)
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      708d4f09
    • Sam Ravnborg's avatar
      sparc,sparc64: unify Makefile · 5e538790
      Sam Ravnborg authored
      To unify Makefile for sparc and sparc64 a few other steps was needed:
      1) separate defconfig files for sparc and sparc64 is required,
         so locate these in arch/sparc/configs
      2) removoval of hack in toplevel Makefile to deal with that
         headers was in a separate directory compared to the rest
      
      The unification of the Makefile required usage of several
      
          foo-$(CONFIG_SPARCnn) +=
      
      due to a few directories pending unification.
      This will be cleaned up when we unify the remaining directories.
      
      Included in this patch are the deletion of a few files in
      sparc64 as they are no longer needed: Makefile + Kconfig.
      arch/sparc64/ will after this patch is applied only
      have four directories (prom, lib, kernel, boot)
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      5e538790