26 Jul, 2011

40 commits

  • Provide the support for auto calibration of ALS Zone boundaries based on
    min/max ALS input voltage.

    Signed-off-by: Shreshtha Kumar Sahu
    Signed-off-by: Linus Walleij
    Cc: Richard Purdie
    Cc: Lee Jones
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Shreshtha Kumar Sahu
     
  • We call led_classdev_register/led_classdev_unregister in
    create_netxbig_led/delete_netxbig_led, thus make LEDS_NETXBIG depend on
    LEDS_CLASS.

    This patch fixes below build error if LEDS_CLASS is not configured.

    LD .tmp_vmlinux1
    drivers/built-in.o: In function `create_netxbig_led':
    drivers/leds/leds-netxbig.c:350: undefined reference to `led_classdev_register'
    drivers/leds/leds-netxbig.c:361: undefined reference to `led_classdev_unregister'
    drivers/built-in.o: In function `delete_netxbig_led':
    drivers/leds/leds-netxbig.c:313: undefined reference to `led_classdev_unregister'

    Signed-off-by: Axel Lin
    Cc: Richard Purdie
    Acked-by: Simon Guinot
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Axel Lin
     
  • - return -ENOMEM if kzalloc fails, rather than the current -EINVAL

    - fix a memory leak in the case of goto out_unregister_led_cdevs

    Signed-off-by: Axel Lin
    Cc: Richard Purdie
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Axel Lin
     
  • Tag the and remove() function as __devexit respectively.

    Signed-off-by: Linus Walleij
    Cc: Richard Purdie
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Linus Walleij
     
  • clockchips.h was typoed as clockevents.h

    Signed-off-by: Joe Perches
    Cc: Thomas Gleixner
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     
  • Entries that used formats other than "Proper Name "
    were not parsed properly.

    Try to improve the parsing so that the entries in the forms of:
    Proper Name
    and
    Proper Name Commit Name
    are transformed correctly.

    Signed-off-by: Joe Perches
    Reviewed-by: Florian Mickler
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     
  • If CONFIG_IKCONFIG=m but CONFIG_IKCONFIG_PROC=n we get a module that has
    no MODULE_LICENSE definition. Move the MODULE_*() definitions outside the
    CONFIG_IKCONFIG_PROC #ifdef to prevent this configuration from tainting
    the kernel.

    Signed-off-by: Stephen Boyd
    Acked-by: Randy Dunlap
    Acked-by: WANG Cong
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Stephen Boyd
     
  • It is not necessary to share the same notifier.h.

    Signed-off-by: WANG Cong
    Cc: David Miller
    Cc: "Rafael J. Wysocki"
    Cc: Greg KH
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Amerigo Wang
     
  • It is not necessary to share the same notifier.h.

    Signed-off-by: WANG Cong
    Cc: David Miller
    Acked-by: "Rafael J. Wysocki"
    Cc: Greg KH
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Amerigo Wang
     
  • It is not necessary to share the same notifier.h.

    This patch already moves register_reboot_notifier() and
    unregister_reboot_notifier() from kernel/notifier.c to kernel/sys.c.

    [amwang@redhat.com: make allyesconfig succeed on ppc64]
    Signed-off-by: WANG Cong
    Cc: David Miller
    Cc: "Rafael J. Wysocki"
    Cc: Greg KH
    Signed-off-by: WANG Cong
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Amerigo Wang
     
  • It is not necessary to share the same notifier.h.

    Signed-off-by: WANG Cong
    Acked-by: David Miller
    Cc: "Rafael J. Wysocki"
    Cc: Greg KH
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Amerigo Wang
     
  • We presently define all kinds of notifiers in notifier.h. This is not
    necessary at all, since different subsystems use different notifiers, they
    are almost non-related with each other.

    This can also save much build time. Suppose I add a new netdevice event,
    really I don't have to recompile all the source, just network related.
    Without this patch, all the source will be recompiled.

    I move the notify events near to their subsystem notifier registers, so
    that they can be found more easily.

    This patch:

    It is not necessary to share the same notifier.h.

    Signed-off-by: WANG Cong
    Cc: David Miller
    Cc: "Rafael J. Wysocki"
    Cc: Greg KH
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Amerigo Wang
     
  • The FSA9480 is a USB port accessory detector and switch. This patch adds
    support the FSA9480 USB Switch.

    [akpm@linux-foundation.org: make a couple of things static]
    Signed-off-by: Donggeun Kim
    Signed-off-by: Minkyu Kang
    Signed-off-by: Kyungmin Park
    Cc: Greg KH
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Donggeun Kim
     
  • As stated in drivers/mfd/cs5535-mfd.c, the mfd driver exposes the BARs
    which then make the GPIO, MFGPT, ACPI, etc. all visible to the system.

    So the dependencies of the MFGPT stuff have changed, and most people
    expect Kconfig to bring in the necessary dependencies. Without them, the
    module fails to load and most people don't understand why because the
    details of the rewrite aren't captured anywhere most people who know to
    look.

    This dependency needs to be reflected in Kconfig.

    Signed-off-by: Philip A. Prindeville
    Acked-by: Alexandros C. Couloumbis
    Acked-by: Andres Salomon
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Philip A. Prindeville
     
  • Fixes

    WARNING: vmlinux.o(.data+0x15d3ac): Section mismatch in reference from the variable pci_eisa_driver to the function .init.text:pci_eisa_init()
    The variable pci_eisa_driver references the function __init pci_eisa_init()
    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: Arnaud Lacombe
    Cc: Greg KH
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Arnaud Lacombe
     
  • Unexpose to userland the following macros
    - __FUNCTION__
    - NUMA_BUILD
    - COMPACTION_BUILD
    - REBUILD_DUE_TO_FTRACE_MCOUNT_RECORD

    Signed-off-by: Arnaud Lacombe
    Cc: Rusty Russell
    Cc: KOSAKI Motohiro
    Cc: Christoph Lameter
    Cc: Mel Gorman
    Cc: Steven Rostedt
    Acked-by: WANG Cong
    Cc: Michal Marek
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Arnaud Lacombe
     
  • Fix the warning:

    usr/include/linux/kernel.h:65: userspace cannot reference function or variable defined in the kernel

    As Michal noted, BUILD_BUG_ON stuffs should be moved
    under #ifdef __KERNEL__.

    Signed-off-by: WANG Cong
    Cc: Michal Marek
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    WANG Cong
     
  • Resource definitions that just define start, end and flags =
    IORESOURCE_MEM or IORESOURCE_IRQ (with start=end) are quite common. So
    introduce a shortcut for them. For completeness add macros for
    IORESOURCE_DMA and IORESOURCE_IO, too and also make available a set of
    macros to specify named resources of all types which are less common.

    Signed-off-by: Uwe Kleine-König
    Cc: Arnd Bergmann
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Uwe Kleine-König
     
  • devres uses the pointer value as key after it's freed, which is safe but
    triggers spurious use-after-free warnings on some static analysis tools.
    Rearrange code to avoid such warnings.

    Signed-off-by: Maxin B. John
    Reviewed-by: Rolf Eike Beer
    Acked-by: Tejun Heo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Maxin B John
     
  • This header isn't exported to user-space, and even if it was, the
    __KERNEL__ check covers the entire file, so we'd get a useless stub in the
    first place. So punt it.

    Signed-off-by: Mike Frysinger
    Cc: Arnd Bergmann
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mike Frysinger
     
  • Signed-off-by: Rakib Mullick
    Cc: Jeff Garzik
    Cc: David Airlie
    Cc: Tejun Heo
    Cc: Joe Perches
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rakib Mullick
     
  • GCC 4.6's -Wunused-but-set-variable found some dead code.

    Signed-off-by: Richard Weinberger
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Richard Weinberger
     
  • Linux can have pids up to 4*1024*1024. To handle such huge numbers
    pid_buf needs to be larger.

    Reported-by: Geert Uytterhoeven
    Signed-off-by: Richard Weinberger
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Richard Weinberger
     
  • Until now UML had no x86_64 vDSO. So glibc always used the vsyscall page
    for gettimeday() and friends. Calls to gettimeday() returned falsely the
    host time and confused some programs.

    This patch adds a vDSO which turns all __vdso_* calls into a system call
    so that UML can trap them.

    As glibc still uses the vsyscall page for static binaries this patch
    improves the situation only for dynamic binaries.

    Signed-off-by: Richard Weinberger
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Richard Weinberger
     
  • Implement arch_vma_name() and make get_gate_vma(), in_gate_area() and
    in_gate_area_no_mm() a nop.

    We need arch_vma_name() to support vDSO.

    Signed-off-by: Richard Weinberger
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Richard Weinberger
     
  • When UML is unable to reuse the host's vDSO FIXADDR_USER_START is zero.
    To handle this special case correclty we have to implement custom gate
    area helper methods.

    Signed-off-by: Richard Weinberger
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Richard Weinberger
     
  • Reusing the host's vDSO makes only sense on x86_32.

    Signed-off-by: Richard Weinberger
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Richard Weinberger
     
  • When creating the temp file there's a memory and file descriptor leak upon
    error.

    Signed-off-by: Davidlohr Bueso
    Signed-off-by: Richard Weinberger
    Reviewed-by: Vitaliy Ivanov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Davidlohr Bueso
     
  • Do not free memory when you failed to allocate it.

    Signed-off-by: Vitaliy Ivanov
    Signed-off-by: Richard Weinberger
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Vitaliy Ivanov
     
  • Fix this warning:

    arch/um/os-Linux/helper.c: In function `helper_child':
    arch/um/os-Linux/helper.c:38:7: warning: ignoring return value of `write', declared with attribute warn_unused_result

    [richard@nod.at: happens only with -D_FORTIFY_SOURCE=2]
    Signed-off-by: Vitaliy Ivanov
    Signed-off-by: Richard Weinberger
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Vitaliy Ivanov
     
  • Fix this warning:

    arch/um/drivers/cow_user.c: In function `absolutize':
    arch/um/drivers/cow_user.c:189:7: warning: ignoring return value of `chdir', declared with attribute warn_unused_result

    [richard@nod.at: happens only with -D_FORTIFY_SOURCE=2]
    Signed-off-by: Vitaliy Ivanov
    Signed-off-by: Richard Weinberger
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Vitaliy Ivanov
     
  • Perform memory cleanup on exit. On receiving invalid 'pid' we still
    should clean 'output' variable.

    Signed-off-by: Vitaliy Ivanov
    Signed-off-by: Richard Weinberger
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Vitaliy Ivanov
     
  • Commit 0954828fcbf3 ("kconfig: replace KERNELVERSION usage by the
    mainmenu's prompt") made the kernel version disappear from the generated
    .config file when configuring for UML. As UML's Kconfig doesn't have a
    mainmenu, kconfig falls back to the default string "Linux Kernel
    Configuration".

    Add a suitable mainmenu to the main UML Kconfig file to fix this.

    Signed-off-by: Geert Uytterhoeven
    Signed-off-by: Richard Weinberger
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Geert Uytterhoeven
     
  • To make netconsole usable on UML, its ethernet driver needs netpoll
    support.

    Signed-off-by: Richard Weinberger
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Richard Weinberger
     
  • When UML is compiled with _FORTIFY_SOURCE we have to export all _chk()
    functions which are used in modules. For now it's only the case for
    __sprintf_chk().

    Tested-by: Florian Fainelli
    Reported-by: Florian Fainelli
    Signed-off-by: Richard Weinberger
    Acked-by: Vitaliy Ivanov
    Cc: Geert Uytterhoeven
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Richard Weinberger
     
  • Both sys-i386 and sys-x86_64 support now ndelay(). The delay functions
    are based on arch/x86/lib/delay.c.

    Signed-off-by: Richard Weinberger
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Richard Weinberger
     
  • The address limit is already set in flush_old_exec() so this
    set_fs(USER_DS) is redundant.

    Signed-off-by: Mathias Krause
    Cc: Richard Weinberger
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mathias Krause
     
  • There is no need to define VM_{STACK,DATA}_DEFAULT_FLAGS as variable.
    It's also useless to test for TIF_IA32 as 64bit UML has no IA32 emulation.

    Signed-off-by: Richard Weinberger
    Acked-by: Randy Dunlap
    Cc: Michal Hocko
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Richard Weinberger
     
  • The address limit is already set in flush_old_exec() so those calls to
    set_fs(USER_DS) are redundant.

    Signed-off-by: Mathias Krause
    Cc: Jesper Nilsson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mathias Krause
     
  • Fix some harmless warnings such as

    arch/cris/arch-v32/mach-a3/pinmux.c:273: warning: ISO C90 forbids mixed declarations and code:

    Signed-off-by: WANG Cong
    Cc: Mikael Starvik
    Cc: Jesper Nilsson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    WANG Cong