1. 12 May, 2011 1 commit
    • Will Deacon's avatar
      ARM: 6890/1: memmap: only free allocated memmap entries when using SPARSEMEM · 9af386c8
      Will Deacon authored
      The SPARSEMEM code allocates memmap entries only for sections which are
      present (i.e. those which contain some valid memory). The membank checks
      in free_unused_memmap do not take this into account and can incorrectly
      attempt to free memory which is not allocated, resulting in a BUG() in
      the bootmem code.
      
      However, if memory is configured as follows:
      
          |<----section---->|<----hole---->|<----section---->|
          +--------+--------+--------------+--------+--------+
          | bank 0 | unused |              | bank 1 | unused |
          +--------+--------+--------------+--------+--------+
      
      where a bank only occupies part of a section, the memmap allocated for
      the remainder of the section *can* be freed.
      
      This patch modifies the checks in free_unused_memmap so that only valid
      memmap entries are considered for removal.
      Acked-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
      Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
      Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
      9af386c8
  2. 07 May, 2011 5 commits
  3. 06 May, 2011 2 commits
    • Russell King's avatar
      ARM: RiscPC: acornfb: fix section mismatches · 52fe1163
      Russell King authored
      WARNING: drivers/video/built-in.o(.devinit.text+0x38): Section mismatch in reference from the function acornfb_probe() to the function .init.text:acornfb_setup()
      The function __devinit acornfb_probe() references
      a function __init acornfb_setup().
      If acornfb_setup is only used by acornfb_probe then
      annotate acornfb_setup with a matching annotation.
      
      WARNING: drivers/video/built-in.o(.devinit.text+0x3c): Section mismatch in reference from the function acornfb_probe() to the function .init.text:acornfb_init_fbinfo()
      The function __devinit acornfb_probe() references
      a function __init acornfb_init_fbinfo().
      If acornfb_init_fbinfo is only used by acornfb_probe then
      annotate acornfb_init_fbinfo with a matching annotation.
      
      WARNING: drivers/video/built-in.o(.devinit.text+0x4c0): Section mismatch in reference from the function acornfb_probe() to the (unknown reference) .init.data:(unknown)
      The function __devinit acornfb_probe() references
      a (unknown reference) __initdata (unknown).
      If (unknown) is only used by acornfb_probe then
      annotate (unknown) with a matching annotation.
      
      WARNING: drivers/video/built-in.o(.devinit.text+0x4c8): Section mismatch in reference from the function acornfb_probe() to the (unknown reference) .init.data:(unknown)
      The function __devinit acornfb_probe() references
      a (unknown reference) __initdata (unknown).
      If (unknown) is only used by acornfb_probe then
      annotate (unknown) with a matching annotation.
      
      WARNING: drivers/video/built-in.o(.devinit.text+0x4cc): Section mismatch in reference from the function acornfb_probe() to the (unknown reference) .init.data:(unknown)
      The function __devinit acornfb_probe() references
      a (unknown reference) __initdata (unknown).
      If (unknown) is only used by acornfb_probe then
      annotate (unknown) with a matching annotation.
      Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
      52fe1163
    • Russell King's avatar
      ARM: RiscPC: etherh: fix section mismatches · 56f3aeb2
      Russell King authored
      WARNING: drivers/net/arm/built-in.o(.data+0x0): Section mismatch in reference from the variable etherh_driver to the function .init.text:etherh_probe()
      The variable etherh_driver references
      the function __init etherh_probe()
      If the reference is valid then annotate the
      variable with __init* or __refdata (see linux/init.h) or name the variable:
      *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console
      Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
      56f3aeb2
  4. 04 May, 2011 13 commits
  5. 03 May, 2011 16 commits
  6. 02 May, 2011 3 commits