21 Jul, 2008

17 commits

  • As noted by Akinobu Mita in patch b1fceac2b9e04d278316b2faddf276015fc06e3b,
    alloc_bootmem and related functions never return NULL and always return a
    zeroed region of memory. Thus a NULL test or memset after calls to these
    functions is unnecessary.

    This was fixed using the following semantic patch.
    (http://www.emn.fr/x-info/coccinelle/)

    //
    @@
    expression E;
    statement S;
    @@

    E = \(alloc_bootmem\|alloc_bootmem_low\|alloc_bootmem_pages\|alloc_bootmem_low_pages\)(...)
    .. when != E
    (
    - BUG_ON (E == NULL);
    |
    - if (E == NULL) S
    )

    @@
    expression E,E1;
    @@

    E = \(alloc_bootmem\|alloc_bootmem_low\|alloc_bootmem_pages\|alloc_bootmem_low_pages\)(...)
    .. when != E
    - memset(E,0,E1);
    //

    Signed-off-by: Julia Lawall
    Signed-off-by: Geert Uytterhoeven
    Signed-off-by: Linus Torvalds

    Julia Lawall
     
  • As noted by Akinobu Mita in patch b1fceac2b9e04d278316b2faddf276015fc06e3b,
    alloc_bootmem and related functions never return NULL and always return a
    zeroed region of memory. Thus a NULL test or memset after calls to these
    functions is unnecessary.

    This was fixed using the following semantic patch.
    (http://www.emn.fr/x-info/coccinelle/)

    //
    @@
    expression E;
    statement S;
    @@

    E = \(alloc_bootmem\|alloc_bootmem_low\|alloc_bootmem_pages\|alloc_bootmem_low_pages\)(...)
    .. when != E
    (
    - BUG_ON (E == NULL);
    |
    - if (E == NULL) S
    )

    @@
    expression E,E1;
    @@

    E = \(alloc_bootmem\|alloc_bootmem_low\|alloc_bootmem_pages\|alloc_bootmem_low_pages\)(...)
    .. when != E
    - memset(E,0,E1);
    //

    Signed-off-by: Julia Lawall
    Signed-off-by: Geert Uytterhoeven
    Signed-off-by: Linus Torvalds

    Julia Lawall
     
  • It seems the driver was removed back in kernel 2.3 but the options were
    forgotten.

    Reported-by: Robert P. J. Day
    Signed-off-by: Adrian Bunk
    Signed-off-by: Geert Uytterhoeven
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • When the driver was removed back in 2002 the option was forgotten.

    Reported-by: Robert P. J. Day
    Signed-off-by: Adrian Bunk
    Signed-off-by: Geert Uytterhoeven
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • Add the missing call to apollo_parse_bootinfo(), which had been lost from a
    big Apollo support patch by Peter De Schrijver in 1999.

    Thanks to Adrian Bunk for noticing!

    Signed-off-by: Geert Uytterhoeven
    Signed-off-by: Linus Torvalds

    Geert Uytterhoeven
     
  • This patch contains the following possible cleanups:
    - make the following needlessly global code static:
    - config.c: sun3_bootmem_alloc()
    - config.c: sun3_sched_init()
    - dvma.c: dvma_page()
    - idprom.c: struct Sun_Machines[]
    - mmu_emu.c: struct ctx_alloc[]
    - sun3dvma.c: iommu_use[]
    - sun3ints.c: led_pattern[]
    - remove the unused sbus.c

    Signed-off-by: Adrian Bunk
    Signed-off-by: Geert Uytterhoeven
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • This patch makes the following needlessly global functions static:
    - q40_reset()
    - q40_halt()
    - q40_disable_irqs()
    - q40_gettimeoffset()
    - q40_hwclk()
    - q40_get_ss()
    - q40_set_clock_mmss()

    Signed-off-by: Adrian Bunk
    Signed-off-by: Geert Uytterhoeven
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • This patch contains the following possible cleanups:
    - make the following needlessly global code (always) static:
    - baboon.c: struct baboon
    - baboon.c: baboon_irq()
    - config.c: mac_orig_videoaddr
    - config.c: mac_identify()
    - config.c: mac_report_hardware()
    - config.c: mac_debug_console_write()
    - config.c: mac_sccb_console_write()
    - config.c: mac_scca_console_write()
    - config.c: mac_init_scc_port()
    - oss.c: oss_irq()
    - oss.c: oss_nubus_irq()
    - psc.c: psc_debug_dump()
    - psc.c: psc_dma_die_die_die()
    - via.c: rbv_clear
    - remove the unused bootparse.c
    - #if 0 the following unused functions:
    - config.c: mac_debugging_short()
    - config.c: mac_debugging_long()
    - remove the following unused code:
    - config.c: mac_bisize
    - config.c: mac_env
    - config.c: mac_SCC_init_done
    - config.c: mac_SCC_reset_done
    - config.c: mac_init_scca_port()
    - config.c: mac_init_sccb_port()

    Signed-off-by: Adrian Bunk
    Signed-off-by: Geert Uytterhoeven
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • This patch contains the following possible cleanups:
    - make the following needlessly global functions (always) static:
    - atari_mfp_console_write()
    - atari_scc_console_write()
    - atari_midi_console_write()
    - atari_init_mfp_port()
    - atari_init_scc_port()
    - atari_init_midi_port()
    - #if 0 the following unused functions:
    - atari_mfp_console_wait_key()
    - atari_scc_console_wait_key()
    - atari_midi_console_wait_key()
    - remove the following unused variables:
    - atari_MFP_init_done
    - atari_SCC_init_done

    Signed-off-by: Adrian Bunk
    Signed-off-by: Geert Uytterhoeven
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • This patch contains the following possible cleanups:
    - amiints.c: add a proper prototype for amiga_init_IRQ() in
    include/asm-m68k/amigaints.h
    - make the following needlessly global code static:
    - config.c: amiga_model
    - config.c: amiga_psfreq
    - config.c: amiga_serial_console_write()
    - #if 0 the following unused functions:
    - config.c: amiga_serial_puts()
    - config.c: amiga_serial_console_wait_key()
    - config.c: amiga_serial_gets()
    - remove the following unused variable:
    - config.c: amiga_masterclock

    Signed-off-by: Adrian Bunk
    Signed-off-by: Geert Uytterhoeven
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • This patch fixes the following build error:

    ..
    Building modules, stage 2.
    MODPOST 1203 modules
    ERROR: "amiga_vblank" [drivers/video/amifb.ko] undefined!
    ..
    make[2]: *** [__modpost] Error 1

    Reported-by: Adrian Bunk
    Signed-off-by: Adrian Bunk
    Signed-off-by: Geert Uytterhoeven
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • Unless I miss something that's code for a sparc machine even the sparc
    code no longer supports that got copied to m68k when these files were
    copied.

    Signed-off-by: Adrian Bunk
    Signed-off-by: Geert Uytterhoeven
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • It seems to match the intention behind multi_defconfig to make it the
    default defconfig.

    Signed-off-by: Adrian Bunk
    Signed-off-by: Geert Uytterhoeven
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • > This is a no-no for those archs that still use -traditional.
    > > I dunno if this is a problem for you at the moment and the
    > > right fix is anyway to nuke -traditional.
    > >
    > > Sam

    Signed-off-by: Mathieu Desnoyers
    Signed-off-by: Geert Uytterhoeven
    Signed-off-by: Linus Torvalds

    Mathieu Desnoyers
     
  • Allow no CPU/platform type for allnoconfig
    - Provide a dummy value for FPSTATESIZE if no CPU type was selected
    - Provide a dummy value for NR_IRQS if no platform type was selected
    - Warn the user if no CPU or platform type was selected

    Note: you still cannot build an allnoconfig kernel, as CONFIG_SWAP=n doesn't
    build and we cannot easily fix that
    (http://groups.google.com/group/linux.kernel/browse_thread/thread/d430c78b07e1827b)

    Signed-off-by: Geert Uytterhoeven
    Signed-off-by: Linus Torvalds

    Geert Uytterhoeven
     
  • This patch includes page.h header into linker script that
    allow us to use PAGE_SIZE macro instead of numeric constant

    Signed-off-by: Cyrill Gorcunov
    Signed-off-by: Geert Uytterhoeven
    Signed-off-by: Linus Torvalds

    Cyrill Gorcunov
     
  • This patch removes CVS keywords that weren't updated for a long time
    from comments.

    Signed-off-by: Adrian Bunk
    Signed-off-by: Geert Uytterhoeven
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     

15 Jul, 2008

1 commit


03 Jul, 2008

1 commit


21 Jun, 2008

1 commit


07 Jun, 2008

1 commit


22 May, 2008

1 commit

  • Whether we sidestep it in init/main.c or not, such situations
    will arise again; compiler does generate calls of strcat()
    on optimizations, so we really ought to have an out-of-line
    version...

    Signed-off-by: Al Viro
    Signed-off-by: Linus Torvalds

    Al Viro
     

20 May, 2008

1 commit

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6:
    [PATCH] return to old errno choice in mkdir() et.al.
    [Patch] fs/binfmt_elf.c: fix wrong return values
    [PATCH] get rid of leak in compat_execve()
    [Patch] fs/binfmt_elf.c: fix a wrong free
    [PATCH] avoid multiplication overflows and signedness issues for max_fds
    [PATCH] dup_fd() part 4 - race fix
    [PATCH] dup_fd() - part 3
    [PATCH] dup_fd() part 2
    [PATCH] dup_fd() fixes, part 1
    [PATCH] take init_files to fs/file.c

    Linus Torvalds
     

19 May, 2008

8 commits


17 May, 2008

1 commit


06 May, 2008

2 commits

  • Remove the rest of the old mac_esp driver. Also ditch the rest of the
    machw mechanism, it needs to be replaced by a fake openfirmware tree.

    Signed-off-by: Finn Thain
    Signed-off-by: Geert Uytterhoeven
    Signed-off-by: Linus Torvalds

    Finn Thain
     
  • Fix 68040 bus fault handling, so the standard kernel exception handling
    can be used for i/o probing.

    Contrary to normal access faults there is nothing to fix, but at least
    we have to disable writebacks to avoid recursive faults.

    Signed-off-by: Roman Zippel
    Signed-off-by: Geert Uytterhoeven
    Signed-off-by: Linus Torvalds

    Roman Zippel
     

04 May, 2008

1 commit

  • This replaces the duplicated arch-specific versions of "sys_pipe()" with
    one unified implementation. This removes almost 250 lines of duplicated
    code.

    It's marked __weak, so that *if* an architecture wants to override the
    default implementation it can do so by simply having its own replacement
    version, since many architectures use alternate calling conventions for
    the 'pipe()' system call for legacy reasons (ie traditional UNIX
    implementations often return the two file descriptors in registers)

    I still haven't changed the cris version even though Linus says the BKL
    isn't needed. The arch maintainer can easily do it if there are really
    no obstacles.

    Signed-off-by: Ulrich Drepper
    Signed-off-by: Linus Torvalds

    Ulrich Drepper
     

29 Apr, 2008

4 commits


28 Apr, 2008

1 commit