09 Nov, 2005

40 commits

  • Pass down the silent flag to parse_options(). Without this fat gives
    warnings when mounting some non-fat rootfs with options.

    Signed-off-by: Christoph Hellwig
    Acked-by: OGAWA Hirofumi
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Christoph Hellwig
     
  • Remove mtime update in hpfs_file_write, it's done in generic_file_write
    already.

    Signed-off-by: Christoph Hellwig
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Christoph Hellwig
     
  • This patch removes almost all inclusions of linux/version.h. The 3
    #defines are unused in most of the touched files.

    A few drivers use the simple KERNEL_VERSION(a,b,c) macro, which is
    unfortunatly in linux/version.h.

    There are also lots of #ifdef for long obsolete kernels, this was not
    touched. In a few places, the linux/version.h include was move to where
    the LINUX_VERSION_CODE was used.

    quilt vi `find * -type f -name "*.[ch]"|xargs grep -El '(UTS_RELEASE|LINUX_VERSION_CODE|KERNEL_VERSION|linux/version.h)'|grep -Ev '(/(boot|coda|drm)/|~$)'`

    search pattern:
    /UTS_RELEASE\|LINUX_VERSION_CODE\|KERNEL_VERSION\|linux\/\(utsname\|version\).h

    Signed-off-by: Olaf Hering
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Olaf Hering
     
  • Add some more checks during the parsing of .config, so that after parsing
    sym_change_count reflects the correct state whether the .config is correct and
    in sync with the Kconfig or if it needs saving.

    Signed-off-by: Roman Zippel
    Cc: Sam Ravnborg
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Roman Zippel
     
  • Add a few error tokens to the parser to catch common errors and print more
    descriptive error messages.

    Signed-off-by: Roman Zippel
    Cc: Sam Ravnborg
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Roman Zippel
     
  • This simplifies the parser a bit by merging the various symbol types into a
    single token and adds the type to the keyword hash.

    Signed-off-by: Roman Zippel
    Cc: Sam Ravnborg
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Roman Zippel
     
  • Use gperf to generate a hash for the kconfig keywords. This greatly reduces
    the size of the generated scanner and makes it easier to extend kconfig.

    Signed-off-by: Roman Zippel
    Cc: Sam Ravnborg
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Roman Zippel
     
  • Remove the long obsolete zconf.tab.h and fix kconfig make rules to generate
    the correct output files. Setting LKC_GENPARSER will now also update the
    shipped files.

    Signed-off-by: Roman Zippel
    Cc: Sam Ravnborg
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Roman Zippel
     
  • This allows variable arguments in the range option for int and hex config
    symbols.

    Signed-off-by: Roman Zippel
    Cc: Sam Ravnborg
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Roman Zippel
     
  • Allow to force setting of config variables during all{no,mod,yes,random}config
    to a specific value. For that conf first checks the KCONFIG_ALLCONFIG
    environment variable for a file name, otherwise it checks for
    all{no,mod,yes,random}.config and all.config. The file is a normal config
    file, which presets the config variables, but they are still subject to normal
    dependency checks.

    Signed-off-by: Roman Zippel
    Cc: Sam Ravnborg
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Roman Zippel
     
  • The restart check whether new symbols became visible, didn't always work for
    choice symbols. Even if a choice symbol itself isn't changable, the childs
    are. This also requires to update the new status of all choice values, once
    one of them is set.

    Signed-off-by: Roman Zippel
    Cc: Sam Ravnborg
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Roman Zippel
     
  • When doing its recursive dependency check, scripts/kconfig/conf uses the flag
    SYMBOL_CHECK_DONE to avoid rechecking a symbol it has already checked.
    However, that flag is only set at the top level, so if a symbol is first
    encountered as a dependency of another symbol it will be rechecked every time
    it is encountered until it's encountered at the top level.

    This patch adjusts the flag setting so that each symbol will only be checked
    once, regardless of whether it is first encountered at the top level, or while
    recursing down from another symbol. On complex configurations, this vastly
    speeds up scripts/kconfig/conf. The config in the powerpc merge tree is
    particularly bad: this patch reduces the time for 'scripts/kconfig/conf -o
    arch/powerpc/Kconfig' by a factor of 40 on a G5. That's even including the
    time to print the config, so the speedup in the actual checking is more likely
    2 or 3 orders of magnitude.

    Signed-off-by: David Gibson
    Signed-off-by: Roman Zippel
    Cc: Sam Ravnborg
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Gibson
     
  • This patch schedules obsolete OSS drivers (with ALSA drivers that support
    the same hardware) for removal.

    Scheduling the via82cxxx driver for removal was ACK'ed by Jeff Garzik.

    Signed-off-by: Adrian Bunk
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • Evgeny Stambulchik found that doing the following always worked:

    # mount /dev/fd0 /mnt/floppy/
    mount: block device /dev/fd0 is write-protected, mounting read-only
    # mount -o remount,rw /mnt/floppy
    # echo $?
    0

    This is the case because the block device /dev/fd0 is writeable but the
    floppy disk is marked protected. A fix is to simply have floppy_open mark
    the underlying gendisk policy according to reality (since the VFS doesn't
    provide a way for do_remount_sb to inquire as to the current device
    status).

    Signed-off-by: Jon Masters
    Cc: Al Viro
    Cc: Christoph Hellwig
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jon Masters
     
  • "extern inline" -> "static inline"

    Signed-off-by: Adrian Bunk
    Cc: Martin Schwidefsky
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • This patch makes only the functions in swsusp.c call functions in snapshot.c
    and not both ways.  It also moves the check for available swap out of
    swsusp_suspend() which is necessary for separating the swap-handling functions
    in swsusp from the core code.

    Signed-off-by: Rafael J. Wysocki
    Cc: Pavel Machek
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rafael J. Wysocki
     
  • This patch simplifies the relocation of the page backup list (aka pagedir)
    during resume.

    Signed-off-by: Rafael J. Wysocki
    Cc: Pavel Machek
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rafael J. Wysocki
     
  • The changes made by this patch are necessary for the pagedir relocation
    simplification in the next patch.  Additionally, these changes allow us to
    drop check_pagedir() and make get_safe_page() be a one-line wrapper around
    alloc_image_page() (get_safe_page() goes to snapshot.c, because
    alloc_image_page() is static and it does not make sense to export it).

    Signed-off-by: Rafael J. Wysocki
    Cc: Pavel Machek
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rafael J. Wysocki
     
  • Fixes e500 build and cleans up traps.c by moving perf_irq extern to
    pmc.h.

    Signed-off-by: Matt Porter
    Cc: Paul Mackerras
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Matt Porter
     
  • MPC834x uses the gianfar network driver which now uses the new phylib. We
    need to update the platform code to create a gianfar platform MDIO bus and
    pass the right intializations to the gianfar driver to make things work
    again.

    Signed-off-by: Kumar Gala
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kumar Gala
     
  • A non-broken udev would autoload also the drivers for devices on the
    pseries vio bus, like ibmveth, ibmvscsic and hvsc. This is similar to pci,
    usb and ieee1394:

    /lib/modules/`uname -r`/modules.alias
    alias vio:TvscsiSIBM,v-scsi* ibmvscsic
    alias vio:TnetworkSIBM,l-lan* ibmveth
    alias vio:Tserial-serverShvterm2* hvcs

    /events/debug.00004.pci.add.1394:MODALIAS='pci:v00001014d00000188sv00000000sd00000000bc06sc04i0f'
    /events/debug.00005.pci.add.1509:MODALIAS='pci:v00008086d00001229sv00001014sd000001FFbc02sc00i00'
    /events/debug.00026.vio.add.1519:MODALIAS='vio:TserialShvterm1'
    /events/debug.00027.vio.add.1446:MODALIAS='vio:TvscsiSIBM,v-scsi'
    /events/debug.00028.vio.add.1451:MODALIAS='vio:TnetworkSIBM,l-lan'

    modprobe -v vio:TnetworkSIBM,l-lan
    insmod /lib/modules/2.6.14-20051030_vio-ppc64/kernel/drivers/net/ibmveth.ko

    Signed-off-by: Olaf Hering
    Cc: Benjamin Herrenschmidt
    Cc: Paul Mackerras
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Olaf Hering
     
  • Add missing include file to fix STx GP3 build.

    Signed-off-by: Matt Porter
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Matt Porter
     
  • Fixes mismerged Makefile that prevented the ppc85xx rapidio support from being
    built.

    Signed-off-by: Matt Porter
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Matt Porter
     
  • This patch extends the selinuxfs context interface to allow return the
    canonical form of the context to userspace.

    Signed-off-by: Stephen Smalley
    Signed-off-by: James Morris
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Stephen Smalley
     
  • This patch disables the setting of SELinux xattrs on files created in
    filesystems labeled via mountpoint labeling (mounted with the context=
    option). selinux_inode_setxattr already prevents explicit setxattr from
    userspace on such filesystems, so this provides consistent behavior for
    file creation.

    Signed-off-by: Stephen Smalley
    Signed-off-by: James Morris
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Stephen Smalley
     
  • This patch enables files created on a MLS-enabled SELinux system to be
    accessible on a non-MLS SELinux system, by skipping the MLS component of
    the security context in the non-MLS case.

    Signed-off-by: Stephen Smalley
    Signed-off-by: James Morris
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Stephen Smalley
     
  • Fix the PCIGART increment and add a cpu_to_le32 for ppc (untested)

    Paulus was unsure if we need to cpu_to_le32 but the old code was definitely
    wrong, so make it consistent and let the PPC guys figure it out later.

    Signed-off-by: Dave Airlie
    Cc: Paul Mackerras
    Cc: Dave Jones
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dave Airlie
     
  • If ACPI sleep is not configured, but someone still wants to run swsusp,
    he'd get oops in enter_state. This is regression since 2.6.14 and this
    fixes it.

    Signed-off-by: Pavel Machek
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Pavel Machek
     
  • Input: fix 'uniq' reporting in hotplug handler

    Signed-off-by: Dmitry Torokhov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dmitry Torokhov
     
  • drivers/mtd/onenand/onenand_base.c: In function `onenand_wait':
    drivers/mtd/onenand/onenand_base.c:293: error: `jiffies' undeclared (first use in this function)
    drivers/mtd/onenand/onenand_base.c:293: error: (Each undeclared identifier is reported only once
    drivers/mtd/onenand/onenand_base.c:293: error: for each function it appears in.)
    drivers/mtd/onenand/onenand_base.c:293: error: implicit declaration of function `msecs_to_jiffies'
    drivers/mtd/onenand/onenand_base.c:294: error: implicit declaration of function `time_before'
    drivers/mtd/onenand/onenand_base.c:301: error: implicit declaration of function `cond_resched'
    drivers/mtd/onenand/onenand_base.c: In function `onenand_get_device':
    drivers/mtd/onenand/onenand_base.c:522: error: implicit declaration of function `set_current_state'
    drivers/mtd/onenand/onenand_base.c:522: error: `TASK_UNINTERRUPTIBLE' undeclared (first use in this function)
    drivers/mtd/onenand/onenand_base.c:525: error: implicit declaration of function `schedule'
    drivers/mtd/onenand/onenand_base.c: In function `onenand_release_device':
    drivers/mtd/onenand/onenand_base.c:545: error: `TASK_UNINTERRUPTIBLE' undeclared (first use in this function)
    drivers/mtd/onenand/onenand_base.c:545: error: `TASK_INTERRUPTIBLE' undeclared (first use in this function)

    Cc: Thomas Gleixner
    Cc: David Woodhouse
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • drivers/mtd/rfd_ftl.c: In function `find_free_block':
    drivers/mtd/rfd_ftl.c:528: error: `jiffies' undeclared (first use in this function)
    drivers/mtd/rfd_ftl.c:528: error: (Each undeclared identifier is reported only once
    drivers/mtd/rfd_ftl.c:528: error: for each function it appears in.)

    Cc: Thomas Gleixner
    Cc: David Woodhouse
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • sound/drivers/vx/vx_hwdep.c: In function `free_fw':
    sound/drivers/vx/vx_hwdep.c:144: error: implicit declaration of function `vfree'
    sound/drivers/vx/vx_hwdep.c: In function `vx_hwdep_dsp_load':
    sound/drivers/vx/vx_hwdep.c:163: error: implicit declaration of function `vmalloc'

    Cc: Jaroslav Kysela
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • On a large SMP box we get a lot of softlockup thread XX started lines.

    Signed-off-by: Anton Blanchard
    Acked-by: Ingo Molnar
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Anton Blanchard
     
  • When calling target drivers to set frequency, we take cpucontrol lock.
    When we modified the code to accomodate CPU hotplug, there was an attempt
    to take a double lock of cpucontrol leading to a deadlock. Since the
    current thread context is already holding the cpucontrol lock, we dont need
    to make another attempt to acquire it.

    Now we leave a trace in current->flags indicating current thread already is
    under cpucontrol lock held, so we dont attempt to do this another time.

    Thanks to Andrew Morton for the beating:-)

    From: Brice Goglin

    Build fix

    (akpm: this patch is still unpleasant. Ashok continues to look for a cleaner
    solution, doesn't he? ;))

    Signed-off-by: Ashok Raj
    Signed-off-by: Brice Goglin
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ashok Raj
     
  • You could open the /proc/sys/net/ipv4/conf// file, then
    wait for interface to go away, try to grab as much memory as possible in
    hope to hit the (kfreed) ctl_table. Then fill it with pointers to your
    function. Then do read from file you've opened and if you are lucky,
    you'll get it called as ->proc_handler() in kernel mode.

    So this is at least an Oops and possibly more. It does depend on an
    interface going away though, so less of a security risk than it would
    otherwise be.

    Signed-off-by: Greg Kroah-Hartman
    Signed-off-by: Linus Torvalds

    Al Viro
     
  • Linus Torvalds
     
  • Linus Torvalds
     
  • Update the support for the 16550 present on most IOC3 configurations to use
    the current API.

    Signed-off-by: Ralf Baechle
    Signed-off-by: Russell King

    Ralf Baechle
     
  • Russell King
     
  • Patch from Nicolas Pitre

    Make it completely deterministic and leave nothing to chance
    (even if it had at worst 0.001% probability of failing).

    Signed-off-by: Nicolas Pitre
    Signed-off-by: Russell King

    Nicolas Pitre