1. 25 May, 2003 40 commits
    • Greg Ungerer's avatar
      [PATCH] lock xtime struct in m68knommu/ColdFire timers · ba05e30f
      Greg Ungerer authored
      This patch adds appropriate locking around updates of the xtime
      structure for the m68knommu ColdFire architecture timers.
      ba05e30f
    • Greg Ungerer's avatar
      [PATCH] update m68knommu defconfig · a5c45389
      Greg Ungerer authored
      This patch updates the defconfig for the m68knommu architecture.
      a5c45389
    • Greg Ungerer's avatar
      [PATCH] update m68knommu link script with 5282 support · 8a6beaba
      Greg Ungerer authored
      This patch does a couple of things to the m68knommu common linker
      script:
       - adds support for the 5282 ColdFire CPU
       - fixes broken setup for the Dragon Engine board
      8a6beaba
    • Greg Ungerer's avatar
      [PATCH] add dummy VMALLOC_ defines to m68knommu · bbafee46
      Greg Ungerer authored
      Add dummy VMALLOC_START and VMALLOC_END defines to m68knommu architectures.
      Some code in the proc filesystem breaks without them now.
      bbafee46
    • Ben Collins's avatar
      [PATCH] kernel/* strlcpy conversion · 1bd9439b
      Ben Collins authored
      1bd9439b
    • Andries E. Brouwer's avatar
      [PATCH] change get_sb prototype · 2f124a73
      Andries E. Brouwer authored
      (i) The prototypes for free_vfsmnt(), alloc_vfsmnt(), do_kern_mount()
          so far occurred in several individual c files.  Now they are in
          <linux/mount.h>.
      
      (ii) do_kern_mount() has a third argument name that is typically a
           constant.  It is called with "rootfs", "nfsd", type->name,
           "capifs", "usbdevfs", "binfmt_misc" etc.  So, it should have a
           prototype that expresses this:
      
      	do_kern_mount(const char *fstype, int flags, const char *name, void *data);
      
      This makes the ugly cast
      
      -       return do_kern_mount(type->name, 0, (char *)type->name, NULL);
      +       return do_kern_mount(type->name, 0, type->name, NULL);
      
      go away. Now do_kern_mount() calls type->get_sb(), so also get_sb()
      must have a const third argument. That is what the patch below does.
      
      If I am not mistaken, precisely two filesystems do not treat this
      argument as a constant, namely afs and cifs. A separate patch
      gives some cleanup there.
      2f124a73
    • Greg Ungerer's avatar
      [PATCH] fix ColdFire 5407 cache flushing · 4b6243ca
      Greg Ungerer authored
      This fixes some ColdFire 5407 cache bogosity.  Previous code was pushing
      all cache lines and the invalidating all of the cache.  The push should
      be enough, and now with underlying fixes the the cache setup registers
      it is.  Removed the whole invalidate cycle.
      
      Original patch cam from Allessandro Rubini.
      4b6243ca
    • Greg Ungerer's avatar
      [PATCH] fix cache settings for m68knommu 5407 MOTOROLA target · b27a08c3
      Greg Ungerer authored
      Correct the wrong cache setup used on the MOTOROLA 5407 based board.
      Specifically it enables precise exception mode and write buffering.
      
      Original patch from Alessendra Rubini.
      b27a08c3
    • Greg Ungerer's avatar
      [PATCH] fix cache settings for m68knommu 5407 CLEOPATRA target · 21e1374f
      Greg Ungerer authored
      Correct the wrong cache setup used on the CLEOPATRA 5407 based board.
      Specifically it enables precise exception mode and write buffering.
      
      Original patch from Alessendra Rubini.
      21e1374f
    • Linus Torvalds's avatar
      Merge bk://kernel.bkbits.net/jgarzik/net-drivers-2.5 · 81c830a4
      Linus Torvalds authored
      into home.transmeta.com:/home/torvalds/v2.5/linux
      81c830a4
    • Paul Mackerras's avatar
      [PATCH] module refcounts for airport driver · cd8286cf
      Paul Mackerras authored
      This patch takes out the MOD_INC/DEC_USE_COUNT in the airport (Apple
      wireless ethernet) driver.  The driver already does SET_MODULE_OWNER
      on the netdevice, so the MOD_INC/DEC_USE_COUNT are unnecessary and
      just cause warnings.
      cd8286cf
    • Paul Mackerras's avatar
      [PATCH] module owner for ppp_synctty.c · 0e30af1e
      Paul Mackerras authored
      This patch fixes ppp_synctty.c (used for doing PPP over some synchronous
      serial HDLC links) so that it sets the owner field of the tty line
      discipline it exports, rather than using MOD_INC/DEC_USE_COUNT.  This
      is more or less from Stephen Hemminger.
      
      Please apply.
      
      Thanks,
      Paul.
      0e30af1e
    • Scott Feldman's avatar
      [PATCH] full stop/start on ethtool set speed/duplex/autoneg · 4997bf53
      Scott Feldman authored
      * Cleanup ethtool/mii_ioctl sets of speed/duplex/autoneg by
        stop/set/start driver to ensure sets stick.  Must hold
        xmit_lock around stop/start.
      4997bf53
    • Jeff Garzik's avatar
      Merge redhat.com:/garz/repo/linus-2.5 · 3b9fb4e8
      Jeff Garzik authored
      into redhat.com:/garz/repo/net-drivers-2.5
      3b9fb4e8
    • Linus Torvalds's avatar
      Merge bk://kernel.bkbits.net/jgarzik/irda-2.5 · 01166d96
      Linus Torvalds authored
      into home.transmeta.com:/home/torvalds/v2.5/linux
      01166d96
    • Rusty Russell's avatar
      [irda] module refcounts in irlan · df3a5c9f
      Rusty Russell authored
      df3a5c9f
    • Jeff Garzik's avatar
      Merge redhat.com:/garz/repo/linus-2.5 · 4bcb7d97
      Jeff Garzik authored
      into redhat.com:/garz/repo/irda-2.5
      4bcb7d97
    • Benjamin Herrenschmidt's avatar
      [PATCH] drivers/ide/ppc/pmac.c compile fix · e71eb380
      Benjamin Herrenschmidt authored
      This patch fixes the build of drivers/ide/ppc/pmac.c.
      e71eb380
    • Paul Mackerras's avatar
      [PATCH] Fix mac adbhid driver · e575a62b
      Paul Mackerras authored
      e575a62b
    • Ben Collins's avatar
      [PATCH] Fix snd_seq_queue_find_name() · 9ebc87ac
      Ben Collins authored
      While going through sound/ for strncpy replacing, I came across this
      routine:
      
      /* return the (first) queue matching with the specified name */
      queue_t *snd_seq_queue_find_name(char *name)
      {
              int i;
              queue_t *q;
      
              for (i = 0; i < SNDRV_SEQ_MAX_QUEUES; i++) {
                      if ((q = queueptr(i)) != NULL) {
                              if (strncpy(q->name, name, sizeof(q->name)) == 0)
                                      return q;
                              queuefree(q);
                      }
              }
              return NULL;
      }
      
      
      I'm _really_ sure that they meant to use strncmp() here instead.
      
      Like this.
      9ebc87ac
    • Greg Ungerer's avatar
      [PATCH] return valid vma from get_user_pages for non-MMU systems · d0500d3e
      Greg Ungerer authored
      A couple of updates for the non-MMU memory managment code:
      
       - declare the overcommit variables
       - return a real vma pointer from get_user_pages (it is used by some code)
       - correct args to vmap()
      d0500d3e
    • Ben Collins's avatar
      [PATCH] do_mounts.c strlcpy · 2abfb785
      Ben Collins authored
      Use strlcpy in root_dev_setup()
      2abfb785
    • Ben Collins's avatar
      [PATCH] fs/* conversions for strlcpy · 03b9f57b
      Ben Collins authored
      I only converted the cases where it was obvious that the intent was to
      truncate on overflow. Lots of places for maxpath/readlink type stuff I
      left alone.
      03b9f57b
    • Ben Collins's avatar
      [PATCH] sound/* strncpy conversion · 9c07f108
      Ben Collins authored
      This does a lot of cleanup for strncpy->strlcpy, replaces some
      sprintf/snprintf's aswell.  There were only two places where things
      weren't straight forward.  All-in-all a good cleanup though.
      9c07f108
    • Ben Collins's avatar
      a25b982e
    • Linus Torvalds's avatar
      Do a strlcat() to go with the strlcpy(). · faad0c27
      Linus Torvalds authored
      faad0c27
    • Manfred Spraul's avatar
      [PATCH] credits update · dc2f9764
      Manfred Spraul authored
      dc2f9764
    • Sam Ravnborg's avatar
      [PATCH] kbuild: Get more focus on warnings · cea3390c
      Sam Ravnborg authored
      Make the default kernel build less verbose, to make warnings show up
      more clearly.
      cea3390c
    • Andries E. Brouwer's avatar
      [PATCH] namespace.c fix · 4e5405e5
      Andries E. Brouwer authored
      Yet another one in the namespace.c series.
      
      The code in graft_tree() used to be correct, but the code
      
              err = -ENOENT;
              down(&nd->dentry->d_inode->i_sem);
              if (IS_DEADDIR(nd->dentry->d_inode))
                      goto out_unlock;
      
              spin_lock(&dcache_lock);
              if (IS_ROOT(nd->dentry) || !d_unhashed(nd->dentry)) {
      		...
      	}
      	spin_unlock(&dcache_lock);
       out_unlock:
      
      was made incorrect in 2.5.29 when
      
              err = security_sb_check_sb(mnt, nd);
              if (err)
                      goto out_unlock;
      
      was inserted.  It has happened more often that people overlooked
      a preexisting setting of err.
      4e5405e5
    • Andrew Morton's avatar
      [PATCH] use update_mmu_cache() in install_page · cc3f8774
      Andrew Morton authored
      Tell the arch that install_page() has just added a page into the pagetables.
      cc3f8774
    • Andrew Morton's avatar
      [PATCH] tulip warning fix · 3ce6eb89
      Andrew Morton authored
      From: William Lee Irwin III <wli@holomorphy.com>
      
      Silence a printk warning.
      3ce6eb89
    • Andrew Morton's avatar
      [PATCH] ACPI constant overflow fixes · 2de9a741
      Andrew Morton authored
      From: William Lee Irwin III <wli@holomorphy.com>
      
      64-bit ACPI fixes
      2de9a741
    • Andrew Morton's avatar
      [PATCH] arch/i386/kernel/srat.c cast warning fix · 1c9b29ce
      Andrew Morton authored
      From: William Lee Irwin III <wli@holomorphy.com>
      
      Fix "cast to pointer from integer of a different size".
      1c9b29ce
    • Andrew Morton's avatar
      [PATCH] Change mmu_gathers into per-cpu data · 4235488c
      Andrew Morton authored
      From: Martin Hicks <mort@wildopensource.com>
      
      Here is a patch that changes mmu_gathers into a per-cpu resource.  It
      includes the changes for all arches except ia64.  I've sent a separate patch
      to David Mosberger for ia64.
      4235488c
    • Andrew Morton's avatar
      [PATCH] two PNP memory leaks · 0e621015
      Andrew Morton authored
      From: Hollis Blanchard <hollis@austin.ibm.com>
      
      Fix two pnp error-path memory leaks, caught by Stanford memory leak checker
      circa 2.5.48.
      0e621015
    • Andrew Morton's avatar
      [PATCH] fix init/do_mounts_rd.c memory leak · 1f2d5f71
      Andrew Morton authored
      From: Hollis Blanchard <hollis@austin.ibm.com>
      
      Another potential memory leak the Stanford checker caught at 2.5.48: while
      closing and opening floppy disks, buf could be allocated and never freed.
      1f2d5f71
    • Andrew Morton's avatar
      [PATCH] fix drivers/net/ewrk.c memory leak · e03dd6bd
      Andrew Morton authored
      From: Hollis Blanchard <hollis@austin.ibm.com>
      
      Hi, this was caught by the Stanford memory leak checker a while ago
      (2.5.48). If the tmp_stats allocation fails, tmp is not being freed.
      e03dd6bd
    • Andrew Morton's avatar
      [PATCH] Better fix for ia32 subarch circular dependencies · fb8ce055
      Andrew Morton authored
      From: john stultz <johnstul@us.ibm.com>
      
      This is a rework of John's recent change which resolved a circular include
      dependency: a function in mach_apic.h requires hard_smp_processor_id() and
      hard_smp_processor_id() requires macros from mach_apic.h
      
      So this patch (against bk-current) reverts the previous, and fixes the same
      circular dependency in a much cleaner way, by moving a piece of the circular
      chain into its own .h file, rather then removing hard_smp_processor_id() and
      accessing the apic by hand.
      fb8ce055
    • Andrew Morton's avatar
      [PATCH] rd.c: separate queue per disk · cd388069
      Andrew Morton authored
      From: Maneesh Soni <maneesh@in.ibm.com>
      
      Provides a separate request queue for each ramdisk instance.  Without this,
      the kernel oopses when the block later tries to unregister the same set of
      kobject things multiple times.  This makes rd.c consistent with all other
      "disk" devices.
      cd388069
    • Andrew Morton's avatar
      [PATCH] Remove floating point use in cpia.c · 1e7c16a9
      Andrew Morton authored
      From: Duncan Haldane <f.duncan.m.haldane@worldnet.att.net>
      
      Gerd Knorr noticed a small use of floating point math in the cpia driver
      updates for 2.5.x I sent you a while ago, and this is not allowed in the
      kernel.
      
      This was in some code taken essentially verbatim from the Windows cpia
      driver released under the GPL by STM inc.  that had been incorporated in
      the later versions of the cpia drivera sourceforge.
      
      It turns out that the use of floating point was quite inessential, and I've
      reimplemented the couple of lines of code involved in integer arithmetic.
      1e7c16a9