1. 31 Aug, 2003 40 commits
    • Andrew Morton's avatar
      [PATCH] large dev_t 12/12 oops fix · 2181ea2e
      Andrew Morton authored
      From: viro@parcelfarce.linux.theplanet.co.uk
      
      On Wed, Aug 27, 2003 at 01:46:37AM -0700, Andrew Morton wrote:
      >
      > LILO seems to be oopsing in HDIO_GETGEO ioctl for some reason, in
      > generic_ide_ioctl().
      >
      > I'm not sure quite why though.  Could one of your patches affected this
      > area?
      
      The last one (fix for hd_struct handling).  The fix follows:
      2181ea2e
    • Andrew Morton's avatar
      [PATCH] remove size_t-based printk warnings · 605102e5
      Andrew Morton authored
      From: "Randy.Dunlap" <rddunlap@osdl.org>
      
      This patch removes warnings on non-matching parameter types to printk
      and incorrect function types (n_hdlc).
      605102e5
    • Andrew Morton's avatar
      [PATCH] add context switch counters · a776ac8d
      Andrew Morton authored
      From: Peter Chubb <peterc@gelato.unsw.edu.au>
      
      Currently, the context switch counters reported by getrusage() are
      always zero.  The appended patch adds fields to struct task_struct to
      count context switches, and adds code to do the counting.
      
      The patch adds 4 longs to struct task struct, and a single addition to
      the fast path in schedule().
      a776ac8d
    • Andrew Morton's avatar
      [PATCH] acpi pci_link fix · 88907397
      Andrew Morton authored
      From: Christophe Saout <christophe@saout.de>
      
      - acpi_pci_link_get_irq() returns 0 on error, not -ENODEV.
      
      - Fix mpparse.c tpyo.
      88907397
    • Andrew Morton's avatar
      [PATCH] jbd: remove uninformative printk · 5e8ab613
      Andrew Morton authored
      This printk doesn't impart any information.
      5e8ab613
    • Andrew Morton's avatar
      [PATCH] do_no_page() rss accounting fix · e0f0d9ef
      Andrew Morton authored
      From: Jaroslav Kysela <perex@suse.cz>
      
      The do_no_page() function in mm/memory.c does accounting for reserved pages
      (++mm->rss), but in zap_pte_range() we don't decrement rss if the page was
      reserved.
      
      So don't account for PageReserved pages in the rss.  (Maybe it would be
      better to fix zap_pte_range in the opposite direction..)
      e0f0d9ef
    • Andrew Morton's avatar
      [PATCH] Fix bluetooth compile warnings · 23d77265
      Andrew Morton authored
      23d77265
    • Andrew Morton's avatar
      [PATCH] knfsd nfs4 warning fixes · 371781cb
      Andrew Morton authored
      371781cb
    • Andrew Morton's avatar
      [PATCH] kill CONFIG_KCORE_AOUT · e23a1220
      Andrew Morton authored
      From: Adrian Bunk <bunk@fs.tum.de>
      
      Remove CONFIG_KCORE_AOUT: the ability to present /proc/kcore in a.out
      format.
      
      I've checked with various arch maintainers.  It won't be missed.
      e23a1220
    • Andrew Morton's avatar
      [PATCH] Fix build with CONFIG_KCORE_AOUT · 09952a58
      Andrew Morton authored
      We get a linkage error with CONFIG_KCORE_AOUT because there is no
      implementation of kclist_add() and kclist_del().
      
      Also fix a warning in the a.out version of read_kcore().
      
      Maybe we should just remove kcore a.out support.  m68knommu and h8300 are
      setting CONFIG_KCORE_AOUT in their defconfigs though.
      09952a58
    • Andrew Morton's avatar
      [PATCH] Add more bad_inode operations · 22cfa91b
      Andrew Morton authored
      From: <ffrederick@prov-liege.be>
      
      Flesh out the bad_inode file and inode operations tables with new
      additions.
      22cfa91b
    • Andrew Morton's avatar
      [PATCH] Fix typo in #ifdef for ext2 xattr support · b2d627ee
      Andrew Morton authored
      From: Stephen Smalley <sds@epoch.ncsc.mil>
      
      This patch corrects a typo in an ifdef that enables xattr operations for
      special files in the ext2 code; otherwise, extended attributes cannot be
      obtained or set on such inodes.
      b2d627ee
    • Andrew Morton's avatar
      [PATCH] Rework SELinux binprm hooks · 081bb1e6
      Andrew Morton authored
      From: Stephen Smalley <sds@epoch.ncsc.mil>
      
      This patch reworks the SELinux binprm hook functions to use a security
      structure for the linux_binprm rather than directly stuffing the security
      identifier into the void* security field.  It also performs some cleanup of
      the SELinux binprm hook functions, and one miscellaneous fix.
      081bb1e6
    • Andrew Morton's avatar
      [PATCH] Fix SELinux format specifiers · 2a1c7412
      Andrew Morton authored
      From: Stephen Smalley <sds@epoch.ncsc.mil>, James Morris <jmorris@redhat.com>
      
      This patch corrects several format specifiers in the SELinux security server
      code.
      2a1c7412
    • Andrew Morton's avatar
      [PATCH] Fix SELinux avtab · 696bce21
      Andrew Morton authored
      From: Stephen Smalley <sds@epoch.ncsc.mil>, Arnd Bergmann <arnd@arndb.de>
      
      This patch changes the SELinux avtab to use vmalloc/vfree; the table is too
      large for kmalloc on s390.
      696bce21
    • Andrew Morton's avatar
      [PATCH] Fix selinux_file_fcntl · 4218788b
      Andrew Morton authored
      From: Stephen Smalley <sds@epoch.ncsc.mil>, James Morris <jmorris@redhat.com>
      
      This patch adds the appropriate #if around the F_*64 commands in the
      selinux_file_fcntl hook function.
      4218788b
    • Andrew Morton's avatar
      [PATCH] Fix ext3 htree corruption on big-endian platforms · e2d964e6
      Andrew Morton authored
      From: Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
      
      current bk 2.6.0 corrupts my ext3 filesystems, usually in the RESYNC dir
      during a bk pull.  Checking the recent changes I noticed that the one in
      fs/ext3/namei.c misses an endian conversion.  The attached patch fixes that
      and works fine for me since 2 days now on PPC.
      e2d964e6
    • Andrew Morton's avatar
      [PATCH] visws: fix 2.6.0-test4 breakage · b6029830
      Andrew Morton authored
      From: Andrey Panin <pazke@donpac.ru>
      
      attached trivial patch fixes visws subarch kernel build.  It was broken by
      2.6.0-test4 cpumask_t changes.
      b6029830
    • Andrew Morton's avatar
      [PATCH] reiserfs writepage-versus-truncate fix · c33e05c5
      Andrew Morton authored
      From: Oleg Drokin <green@namesys.com>
      
      The conversion of reiserfs to not return errors from
      writepage-outside-i_size was incorrect.  Fix.
      c33e05c5
    • Andrew Morton's avatar
      [PATCH] parport_pc rmmod oops fix · bc6e6ea4
      Andrew Morton authored
      The `user_specified' variable is used in cleanup_module() and hence cannot be
      dropped from memory after module initialisation.
      bc6e6ea4
    • Andrew Morton's avatar
      [PATCH] do_no_page() fix · cfbb8488
      Andrew Morton authored
      From: David Mosberger <davidm@napali.hpl.hp.com>,
      	"Sharma, Arun" <arun.sharma@intel.com>
      
      The truncate race fix assumed that a non-zero vma->vm_ops->nopage implies a
      non-zero vma->vm_file.
      
      The ia64 x86 emulation code breaks this assumption, so teach do_no_page() to
      handle it.
      cfbb8488
    • Andrew Morton's avatar
      [PATCH] ni5010.c: remove cli/sti · ba869a99
      Andrew Morton authored
      From: Vinay K Nallamothu <vinay-rc@naturesoft.net>
      
      drivers/net/ni5010.c:
      This patch replaces cli/sti with spinlocks. Compiles fine though
      untested.
      ba869a99
    • Andrew Morton's avatar
      [PATCH] abi doc update · 70e98dff
      Andrew Morton authored
      From: <ffrederick@prov-liege.be>
      
      Update the abi sysctl documentation.
      70e98dff
    • Andrew Morton's avatar
      [PATCH] vm_enough_memory microoptimisation · f2c52c43
      Andrew Morton authored
      From: <ffrederick@prov-liege.be>
      
      The expected case is (sysctl_overcommit_memory == 0), so put that first.
      f2c52c43
    • Andrew Morton's avatar
      [PATCH] Kobject doc addition · b1e412a2
      Andrew Morton authored
      From: <ffrederick@prov-liege.be>
      
      Here's an _important_ kobject doc patch.
      b1e412a2
    • Andrew Morton's avatar
      [PATCH] Fix permissions on /proc/kallsyms · 05628932
      Andrew Morton authored
      From: Rusty Russell <rusty@rustcorp.com.au>
      
      Change the permissions on /proc/kallsyms.  As David M-T points out,
      it's nice for analysis tools not to need root.  Place
      cond_resched() to avoid starvation problems on non-preempt.
      05628932
    • Andrew Morton's avatar
      [PATCH] /proc/kallsym caching fix · bbe58736
      Andrew Morton authored
      From: Rusty Russell <rusty@rustcorp.com.au>
      
      Out by one error broke caching of results in /proc/kallsyms, slowing
      reading to a crawl.
      bbe58736
    • Andrew Morton's avatar
      [PATCH] Fix 'pci=noacpi' with buggy ACPI BIOSes · f9b59c80
      Andrew Morton authored
      From: Thomas Schlichter <schlicht@uni-mannheim.de>
      
      Make the `pci=noacpi' command line option work correctly.  It fixes
      interrupt routing probems for (at least 3) people with broken ACPI BIOSes.
      f9b59c80
    • Andrew Morton's avatar
      [PATCH] c99 struct initialiser conversions · 64c7bdeb
      Andrew Morton authored
      From: CaT <cat@zip.com.au>
      
      Convert a whole bunch of struct initialisers into c99 format.
      64c7bdeb
    • Andrew Morton's avatar
      [PATCH] pcnet32 needs unregister_pci · 96153507
      Andrew Morton authored
      From: Domen Puncer <domen@coderock.org>
      
      The problem in pcnet32 is, that it doesn't unregister pci, if there's no
      hardware.
      
      This patch solves the problem.
      96153507
    • Andrew Morton's avatar
      [PATCH] drivers/char/pcxx.c warning fix · 76e409ce
      Andrew Morton authored
      From: "Krishnakumar. R" <krishnakumar@naturesoft.net>
      
      This patch removes the warning:
      
      drivers/char/pcxx.c:124:8: warning: extra tokens at end of #endif directive
      76e409ce
    • Andrew Morton's avatar
      [PATCH] airo CONFIG_PCI=n build fix · d798505b
      Andrew Morton authored
      From: Geert Uytterhoeven <geert@linux-m68k.org>
      
      On Fri, 22 Aug 2003, Linus Torvalds wrote:
      > Javier Achirica:
      >   o [wireless airo] Fix PCI unregister code
      
      This patch causes a regression: if CONFIG_PCI is not set, it doesn't compile
      anymore. Here's a fix. I also killed a dead variable and its corresponding
      warning:
      d798505b
    • Andrew Morton's avatar
      [PATCH] zoran: correct name field breakage · 067a2ed6
      Andrew Morton authored
      From: Ronald Bultje <rbultje@ronald.bitfreak.net>
      
      I suddenly noticed that 2.6.0-test4 seems to have removed the struct
      device->name field, apparently for memory consumption reasons. Linus
      changed this to pci_name((zr)->pci_dev) in my driver, and that's almost
      correct, except that it is the PCI device ID, and I'm not supposed to
      touch it. Also, since it's only 4 bytes, all my device names now show
      like 'DC1' (this should be 'DC10plus') and alike.
      
      The attached patch fixes this by going back to the behaviour that we
      used in 2.4.x: we use a separate name field in our private driver
      struct.
      067a2ed6
    • Andrew Morton's avatar
      [PATCH] zoran: more cleanups · bb4afaab
      Andrew Morton authored
      From: Ronald Bultje <rbultje@ronald.bitfreak.net>
      
      This patch adds some newlines between variable declarations and function
      bodies. This was done on request by Francois Romieu.
      bb4afaab
    • Andrew Morton's avatar
      [PATCH] zoran: cleanups · d9a800f7
      Andrew Morton authored
      From: Ronald Bultje <rbultje@ronald.bitfreak.net>
      
      This patch changes some funky coding style (a.k.a. indent artifact) in
      the function zoran_irq() to a somewhat more conservative coding style.
      It was noticed by Francois Romieu.
      d9a800f7
    • Andrew Morton's avatar
      [PATCH] zoran: add pci_disable_device() call · b564dedd
      Andrew Morton authored
      From: Ronald Bultje <rbultje@ronald.bitfreak.net>
      
      This patch adds pci_disable_device() to the card release function; we
      already used pci_enable_device() in the card detection function.  This was
      noticed by Francois Romieu.
      b564dedd
    • Andrew Morton's avatar
      [PATCH] zoran: add release callback · b8c0b00f
      Andrew Morton authored
      From: Ronald Bultje <rbultje@ronald.bitfreak.net>
      
      This patch adds a release callback which frees the video_device struct.
      This is needed to prevent freeing memory before it's not in use anymore,
      as described in http://lwn.net/Articles/36850/. Without this, the driver
      will give a warning when loaded. It might crash when unloading (see
      article), too. The video4linux patch (by Gerd Knorr) was accepted a week
      (or 2?) ago, but I forgot to adapt my driver to it.
      b8c0b00f
    • Andrew Morton's avatar
      [PATCH] zoran: debug->zr_debug · ef392885
      Andrew Morton authored
      From: Ronald Bultje <rbultje@ronald.bitfreak.net>
      
      This patch renames the debug symbol to zr_debug because debug is already
      defined somewhere else. Without it, it will cause a symbol conflict when
      compiling this driver statically into the kernel. This was noticed by
      several people, including Linus himself.
      ef392885
    • Andrew Morton's avatar
      [PATCH] zoran: memleak fixes · f5ae79e9
      Andrew Morton authored
      From: Ronald Bultje <rbultje@ronald.bitfreak.net>
      
      This patch fixes several memleaks in error cases when the setup of i2c
      client drivers for video encoders/decoders fails. We forgot to free some
      memory in various places. This was noticed by Francois Romieu.
      f5ae79e9
    • Andrew Morton's avatar
      [PATCH] spin_lock_irqrestore() typo fixes · d6f459bc
      Andrew Morton authored
      From: Vinay K Nallamothu <vinay-rc@naturesoft.net>
      
      s/spin_lock_irqrestore/spin_unlock_irqrestore/
      d6f459bc