1. 05 Jan, 2003 40 commits
    • Greg Ungerer's avatar
      [PATCH] remove malloc.h from 68328 serial driver · 263cd313
      Greg Ungerer authored
      Remove use of depricated linux/malloc.h from 68360serial driver.
      263cd313
    • William Stinson's avatar
      [PATCH] remove check_region from drivers_isdn_hisax_w6692.c · 22084c7e
      William Stinson authored
        This patch for driver drivers/isdn/hisax/bkm_a8.c for Linux removes
        one call to check_region using request_region instead.
      
        I don't have this hardware so I hope I got it right.  This patch
        removes all references to check_region in this driver.
      
        This is patch number 23 in a series of check_region patches I am doing as
        part of the kernel janitors project.
      22084c7e
    • William Stinson's avatar
      [PATCH] remove check_region from drivers_isdn_hisax_teles0.c · 5b01c0f7
      William Stinson authored
        This patch for isdn/hisax/teles0.c driver for Linux removes one call
        to check_region using request_region instead.
      
        I don't have this hardware so I hope I got it right.  This patch
        removes all references to check_region in this driver.
      
        This is patch number 17 in a series of check_region patches I am doing as
        part of the kernel janitors project.
      5b01c0f7
    • Rusty Russell's avatar
      [PATCH] Fix BUG() decl warning in smp.h for UP · 043bb619
      Rusty Russell authored
      x86 always seems to include asm/page.h, PPC (and presumably others)
      don't.
      043bb619
    • William Stinson's avatar
      [PATCH] remove check_region from drivers_isdn_hisax_enternow_pci.c · b43b48c0
      William Stinson authored
        This patch for drivers/isdn/hisax/enternow_pci.c driver for Linux
        removes one call to check_region using request_region instead.
      
        I don't have this hardware so I hope I got it right.  This patch
        removes all references to check_region in this driver.
      
        This is patch number 19 in a series of check_region patches I am doing as
        part of the kernel janitors project.
      b43b48c0
    • Pablo Menichini's avatar
      73625a30
    • Bob Miller's avatar
      f9cc7a83
    • Geert Uytterhoeven's avatar
      [PATCH] Remove unused prototype for init_modules() · fead9145
      Geert Uytterhoeven authored
        Remove unused prototype for init_modules()
      fead9145
    • Michael Still's avatar
      [PATCH] cli_sti_removal-002 · 6772e076
      Michael Still authored
        This patch has been available fro review on the janitor's mailing list
        for some days without any negative comments (or comments for that
        matter).  This patch recitifies the use of the obsolete cli() and
        sti() calls.
      6772e076
    • William Stinson's avatar
      [PATCH] remove check_region from drivers_isdn_hisax_asuscom.c · 1cb11c4f
      William Stinson authored
        This patch for drivers/isdn/hisax/asuscom.c isdn driver for Linux
        removes one call to check_region using request_region instead
      
        I don't have this hardware so patch is not tested.  This patch removes
        all references to check_region in this driver.
      
        This is patch number 26 in a series of check_region patches I am doing as
        part of the kernel janitors project.
      1cb11c4f
    • Chris Wilson's avatar
      [PATCH] ip27-rtc.c create_proc_read_entry patch · 73ef1072
      Chris Wilson authored
        As part of my work on the Linux Kernel Janitors project, cleaning up on
        functions which call create_proc_*_entry and don't check for an error
        return, I would like to submit my patch to arch/mips64/sgi-ip27/ip27-rtc.c.
      
        This patch adds a printk() if misc_register fails (since that causes the
        driver to fail to load, it should be logged somewhere), and checks that
        create_proc_read_entry returned a valid handle. ENOENT seems to me like a
        good error code to return in this case, although EBUSY is a candidate too.
      73ef1072
    • William Stinson's avatar
      [PATCH] remove check_region calls from drivers_telephony_ixj.c · e3ffd6b0
      William Stinson authored
        This patch for driver drivers/telephony/ixj.c for Linux removes four
        calls to check_region using request_region instead.
      
        I don't have this hardware so I hope I got it right.  This patch
        removes all but one reference to check_region in this driver.
      
        This is patch number 21 in a series of check_region patches I am doing as
        part of the kernel janitors project.
      e3ffd6b0
    • Michael Still's avatar
      [PATCH] xpad_typo · 52d4c98e
      Michael Still authored
      This patch fixes a small typo in the Xbox xpad USB driver config help
      52d4c98e
    • John Bradford's avatar
      [PATCH] Fix two mis-spellings of 'kernel' · 1e6197e2
      John Bradford authored
      1e6197e2
    • William Stinson's avatar
      [PATCH] remove check_region from drivers_isdn_hisax_sedlbauer.c · 4c540864
      William Stinson authored
        This patch for isdn/hisax/sedlbauer.c driver for Linux removes one
        call to check_region using request_region instead.
      
        I don't have this hardware so I hope I got it right.  This patch
        removes all references to check_region in this driver.
      
        This is patch number 16 in a series of check_region patches I am doing as
        part of the kernel janitors project.
      4c540864
    • Chris Wilson's avatar
      [PATCH] Kernel Janitors patch to drivers_macintosh_ans-lcd.c · 5c6e6c72
      Chris Wilson authored
        Working on the Linux Kernel Janitors project, and following up on Mikal
        Still's work there, I'd like to submit a patch for the Macintosh ANS
        LCD driver.
      
        I believe from Mikal's Patches page that his previous patch was rejected
        due to not cleaning up properly. I believe my patch addresses this issue,
        by calling iounmap() to free the IO remapping created by ioremap() earlier
        in the function, if the call to misc_register() fails for any reason.
      
        Unfortunately I don't know how to get this driver to compile on my
        machine, and therefore I can't even check that my patch compiles. If you
        can advise me how to set my machine up to dompile these drivers, then
        please get in touch =) I hope I didn't make any stupid mistakes in this
        patch either.
      5c6e6c72
    • William Stinson's avatar
      [PATCH] remove check_region in drivers_isdn_hisax_mic.c · 367635e2
      William Stinson authored
        This patch for drivers/isdn/hisax/mic.c driver for Linux removes one
        call to check_region using request_region instead.
      
        I don't have this hardware so I hope I got it right.  This patch
        removes all references to check_region in this driver.
      
        This is patch number 18 in a series of check_region patches I am doing as
        part of the kernel janitors project.
      367635e2
    • Thibaut Varene's avatar
      [PATCH] linux-2.5.46: Remove unused static variable · 2731bb57
      Thibaut Varene authored
        I was doing some cleaning in the parisc files, and took a look at some
        arch indep ones btw.
      
        This fixes a warning.
      2731bb57
    • Craig Wilkie's avatar
      [PATCH] Fix errors making Docbook documentation · ff346687
      Craig Wilkie authored
        This modifies the following files: -
      
        Documentation/Docbook/Makefile - Fix dependencies generating parportbook
        which caused tex to choke.
      
        Documentation/Docbook/kernel-api.tmpl - Remove references to source
        files which do not contain kernel-doc comments, which caused "errors" in
        the generated documentation.
      
        include/linux/init.h - fix a trivial function comment to correct the
        generated documentation.
      
        This patch partially addresses one of the issues on the Kernel Janitor
        TODO list -
      
        "someone who knows DocBook, or is willing to learn, should go through
        and clean up Documentation/DocBook to kill all the warnings that occur
        during "make pdfdocs" and generally make the documents look nicer, and
        render smaller PDFs."
      ff346687
    • Chris Wilson's avatar
      [PATCH] misc_register sx.c version 2 · 97dcccc6
      Chris Wilson authored
      97dcccc6
    • Michael Still's avatar
      [PATCH] misc_register-011-002 · ea3e48d7
      Michael Still authored
      ea3e48d7
    • Linus Torvalds's avatar
      Merge bk://are.twiddle.net/mod-2.5 · 2629dee8
      Linus Torvalds authored
      into home.transmeta.com:/home/torvalds/v2.5/linux
      2629dee8
    • Daniel Ritz's avatar
      [PATCH] Stop APM initialization race from oopsing · b587a963
      Daniel Ritz authored
      apm_driver_version() isn't an __init function, but is called from the
      asynchronous APM driver thread (which might run after the init sequence
      has finished).
      
      This trivial fix stops APM from oopsing when compiled as module.
      b587a963
    • Richard Henderson's avatar
      Merge are.twiddle.net:/home/rth/BK/linus-2.5 · ba903e75
      Richard Henderson authored
      into are.twiddle.net:/home/rth/BK/mod-2.5
      ba903e75
    • Rusty Russell's avatar
      [PATCH] /proc/modules change · b0fd930f
      Rusty Russell authored
      This changes /proc/modules to have fixed space-separated format,
      independent of CONFIG options or how many module dependencies there
      are.
      
       Old format: modname modsize [refcount [dep1] [dep2] ...]
      
       New format: modname modsize refcount deps1,[dep2,]...
      
      The module-init-tools have understood this format for over a month now.
      This change allows us to add new fields, ie.  module state, module
      address, etc.
      b0fd930f
    • Rusty Russell's avatar
      [PATCH] Exception table cleanup · af285fc8
      Rusty Russell authored
      This patch combines the common exception table searching functionality
      for various architectures, to avoid unneccessary (and currently buggy)
      duplication, and so that the exception table list and lock can be kept
      private to module.c.
      
      The archs provide "struct exception_table" and "search_extable": the
      generic infrastructure drives the rest.
      af285fc8
    • Rusty Russell's avatar
      [PATCH] MODULE_LICENSE and EXPORT_SYMBOL_GPL support · 3344ea3a
      Rusty Russell authored
      This implements EXPORT_SYMBOL_GPL and MODULE_LICENSE properly (so
      restrictions are enforced).  Also fixes "proprietory" spelling.
      3344ea3a
    • Andries E. Brouwer's avatar
      [PATCH] htmldoc fix · 0dc68d4a
      Andries E. Brouwer authored
      I told someone to do "make htmldocs" and just to be sure
      checked myself. Below two fixes.
      0dc68d4a
    • Andrew Morton's avatar
      [PATCH] Dynamically size the pidhash hash table. · 9a7dad1c
      Andrew Morton authored
      Patch from Bill Irwin.   Prodding from me.
      
      The hashtables in kernel/pid.c are 128 kbytes, which is far too large for
      very small machines.
      
      So we dynamically size them and allocate them from bootmem.  From 16 buckets
      on the very smallest machine up to 4096 buckets (effectively half the current
      size) with one gigabyte of memory or more.
      
      The patch also switches the hashing from a custom hash over to the more
      powerful hash_long().
      9a7dad1c
    • Andrew Morton's avatar
      [PATCH] shrink the amount of vmalloc space reserved for kmap · 148b113a
      Andrew Morton authored
      Patch from Manfred Spraul <manfred@colorfullife.com>
      
      Effectively adds another 24 megabytes of ia32 KVA.
      
      kmap uses a 4 MB (2 MB if PAE is enabled) area for the persistant mappings.
      But PKMAP_BASE is 4GB-32MB, i.e.  around 28 MB are reserved for kmap (4 MB
      for fixmappings).
      
      The attached patch shrink that to 4 MB (+4MB for fixmappings) and adds a test
      to check for an overlap between fixmap and kmap areas.
      148b113a
    • Andrew Morton's avatar
      [PATCH] slab: redzoning cleanup · d06f1e21
      Andrew Morton authored
      slab redzoning errors are very hard to decrypt.
      
      The patch adds a human-readable interpretation to each error and changes it
      to not go BUG() when an error is detected.
      d06f1e21
    • Andrew Morton's avatar
      [PATCH] mempool_resize fix · 6dec67d3
      Andrew Morton authored
      David Brownell noticed this.  mempool_resize() is calling kfree on a rare
      path when it should be calling the pool's free function.
      
      The patch fixes that up, and then disables mempool_resize() compilation - it
      has no callers at present.
      6dec67d3
    • Andrew Morton's avatar
      [PATCH] handle radix_tree_node allocation failures · c3ed96a7
      Andrew Morton authored
      This patch uses the radix_tree_preload() API in add_to_page_cache().
      
      A new gfp_mask argument is added to add_to_page_cache(), which is then passed
      on to radix_tree_preload().   It's pretty simple.
      
      In the case of adding pages to swapcache we're still using GFP_ATOMIC, so
      these addition attempts can still fail.  That's OK, because the error is
      handled and, unlike file pages, it will not cause user applicaton failures.
      This codepath (radix-tree node exhaustion on swapout) was well tested in the
      days when the swapper_space radix tree was fragmented all over the place due
      to unfortunate swp_entry bit layout.
      c3ed96a7
    • Andrew Morton's avatar
      [PATCH] infrastructure for handling radix_tree_node allocation · 9fb6fde9
      Andrew Morton authored
      radix_tree_node_alloc() uses GFP_ATOMIC, under spinlocking.  If the
      allocation fails then userspace sees ENOMEM and application failure occurs.
      
      A single add_to_page_cache() will require up to six radix_tree_nodes on
      32-bit machines, twice this on 64-bit machines (quadruple the worst-case
      storage on 64-bit).
      
      My approach to solving this problem is to create a per-cpu pool of
      preallocated radix_tree_nodes, private to the radix-tree code.
      
      The radix-tree user will call the new radix-tree API function
      radix_tree_preload() to ensure that this pool has sufficient nodes to cover
      the worst-case.  radix_tree_preload() should be called outside locks, with
      GFP_KERNEL so that it can run page reclaim.
      
      If it succeeds, radix_tree_preload() will return with preemption disabled so
      that the per-cpu radix_tree_node pool is protected.  The user must call
      radix_tree_preload_end() to terminate the transaction.
      
      In the common case, the per-cpu pools will never be touched:
      radix_tree_insert() will only dip into the pool if kmem_cache_alloc() fails.
      The pools will remain full at all times.  This is to optimise the fastpath -
      it is just a few instructions.
      
      This patch also removes the now-unneeded radix-tree mempool.  This saves 130
      kbytes of permanently allocated kernel memory.  260k on 64-bit platforms.
      9fb6fde9
    • Andrew Morton's avatar
      [PATCH] handle pte_chain_alloc() failures · aaf2ef19
      Andrew Morton authored
      Update page_add_rmap() callers to allocate their own pte_chain structures,
      and to pass those into page_add_rmap().
      
      The swapoff path has not yet been updated and is still oopsable.  The locking
      there is tricky.
      aaf2ef19
    • Andrew Morton's avatar
      [PATCH] infrastructure for handling pte_chain_alloc() failures · a3a31a5e
      Andrew Morton authored
      The VM allocates pte_chains with GFP_ATOMIC, under deep locking.  If that
      allocation fails, we oops.
      
      My approach to solving this is to require that the caller of page_add_rmap()
      pass in a pte_chain structure for page_add_rmap() to use.  Then, callers can
      arrange to allocate that structure outside locks with GFP_KERNEL.
      
      This patch provides the base infrastructure.
      
      A common case is that page_add_rmap() will in fact not consume the pte_chain,
      because an empty slot was found within one of the page's existing pte_chain
      structures.  So this patch provides for a special one-deep per-cpu pte_chain
      cache to optimise this case of taking just one pte_chain and then immediately
      putting it back.
      
      We end up adding maybe 20-30 instructions to the pagefault path to handle the
      eventuality of pte_chain allocation failures.
      
      Lots of other design ideas were considered.  This is the best I could come up
      with.
      a3a31a5e
    • Andrew Morton's avatar
      [PATCH] copy_page_range: minor cleanup · 4d9ebed4
      Andrew Morton authored
       - Don't evaluate pfn_to_page(pte_pfn(pte)) twice.
      
       - adjust whitespace
      
       - rename inner variable `ptepage' to `page'.  It's more logical, and
         reduces collisions with the shared pagetable patch (which has to rename it
         anyway, because it adds a `ptepage' which really is "the page which holds
         ptes").
      4d9ebed4
    • Andrew Morton's avatar
      [PATCH] 3c59x: 3c920 support · 96688ef6
      Andrew Morton authored
      Patch from Urban Widmark <Urban.Widmark@enlight.net>
      
      Adds support for the 3c920, which appears to be the same as a 3c905C.
      96688ef6
    • Andrew Morton's avatar
      [PATCH] misc fixes · 7dcb98cc
      Andrew Morton authored
       - fix starfire.c printk compile warning (dma_addr_t can be 64 bit) (Martin
         Bligh)
      
       - Remove an ifdef from the scheduler
      7dcb98cc
    • Andrew Morton's avatar
      [PATCH] devfs mount-time readdir fix and cleanup · 07ce6ac0
      Andrew Morton authored
      Patch from Adam J. Richter <adam@yggdrasil.com> and
                 Milton Miller <miltonm@bga.com>
      
      There's some init-time code which is supposed to read a devfs directory by
      expanding the bufer until the whole directory fits.  But the logic is wrong
      and it only works if the whole directory fits into 512 bytes.
      
      So fix that up, and also clean up some coding in there, and rationalise the
      duplicated definition of linux_dirent64.
      07ce6ac0