1. 11 10月, 2007 2 次提交
  2. 09 10月, 2007 1 次提交
  3. 27 8月, 2007 1 次提交
  4. 22 8月, 2007 1 次提交
  5. 01 8月, 2007 1 次提交
  6. 22 7月, 2007 3 次提交
  7. 20 7月, 2007 1 次提交
    • A
      isdn/sc: compile breakage re check_reset() · e3aded3c
      Alexey Dobriyan 提交于
      There is check_reset() -- global function in drivers/isdn/sc/
      There is check_reset -- variable holding module param in aacraid driver.
      
      On allyesconfig they clash with:
      
        LD      drivers/built-in.o
      drivers/isdn/built-in.o: In function `check_reset':
      : multiple definition of `check_reset'
      drivers/scsi/built-in.o:(.data+0xe458): first defined here
      ld: Warning: size of symbol `check_reset' changed from 4 in drivers/scsi/built-in.o to 219 in drivers/isdn/built-in.o
      ld: Warning: type of symbol `check_reset' changed from 1 to 2 in drivers/isdn/built-in.o
      
      Rename the former.
      Signed-off-by: NAlexey Dobriyan <adobriyan@sw.ru>
      Cc: Karsten Keil <kkeil@suse.de>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      e3aded3c
  8. 19 7月, 2007 1 次提交
    • F
      ISDN HiSax: uninitialized return in hisax_cs_setup · 9ee0be05
      Florin Malita 提交于
      Coverity (1792) spotted a possibly uninitialized return value in case of
      kmalloc() failure:
      
      1116 static int hisax_cs_setup(int cardnr, struct IsdnCard *card,
      1117                           struct IsdnCardState *cs)
      1119         int ret;
      1120
      1121         if (!(cs->rcvbuf = kmalloc(MAX_DFRAME_LEN_L1, GFP_ATOMIC))) {
      1122                 printk(KERN_WARNING "HiSax: No memory for isac rcvbuf\n");
      1123                 ll_unload(cs);
      1124                 goto outf_cs;
      ...
      1165 outf_cs:
      1166         kfree(cs);
      1167         card->cs = NULL;
      1168         return ret;
      
      The straightforward solution would be to just add the missing
      initialization but hardcoding the return value in the out_cs branch
      (only taken on failure) seems to work just as well and it allows killing
      a couple of other lines too.
      Signed-off-by: NFlorin Malita <fmalita@gmail.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      9ee0be05
  9. 18 7月, 2007 17 次提交
  10. 12 7月, 2007 1 次提交
    • A
      PCI: Change all drivers to use pci_device->revision · 44c10138
      Auke Kok 提交于
      Instead of all drivers reading pci config space to get the revision
      ID, they can now use the pci_device->revision member.
      
      This exposes some issues where drivers where reading a word or a dword
      for the revision number, and adding useless error-handling around the
      read. Some drivers even just read it for no purpose of all.
      
      In devices where the revision ID is being copied over and used in what
      appears to be the equivalent of hotpath, I have left the copy code
      and the cached copy as not to influence the driver's performance.
      
      Compile tested with make all{yes,mod}config on x86_64 and i386.
      Signed-off-by: NAuke Kok <auke-jan.h.kok@intel.com>
      Acked-by: NDave Jones <davej@redhat.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      44c10138
  11. 09 6月, 2007 1 次提交
  12. 01 6月, 2007 3 次提交
  13. 24 5月, 2007 3 次提交
    • A
      drivers/isdn/hardware/eicon/message.c warning fixes · d3c8bdfb
      Andrew Morton 提交于
      Squash these:
      
      drivers/isdn/hardware/eicon/message.c: In function 'api_put':
      drivers/isdn/hardware/eicon/message.c:536: warning: cast from pointer to integer of different size
      drivers/isdn/hardware/eicon/message.c: In function 'plci_free_msg_in_queue':
      drivers/isdn/hardware/eicon/message.c:1035: warning: cast to pointer from integer of different size
      drivers/isdn/hardware/eicon/message.c: In function 'data_b3_req':
      drivers/isdn/hardware/eicon/message.c:3121: warning: cast to pointer from integer of different size
      drivers/isdn/hardware/eicon/message.c:3154: warning: cast to pointer from integer of different size
      drivers/isdn/hardware/eicon/message.c: In function 'callback':
      drivers/isdn/hardware/eicon/message.c:4060: warning: cast to pointer from integer of different size
      drivers/isdn/hardware/eicon/message.c: In function 'nl_ind':
      drivers/isdn/hardware/eicon/message.c:7137: warning: cast from pointer to integer of different size
      
      Cc: Karsten Keil <kkeil@suse.de>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      d3c8bdfb
    • A
      capifunc warning fixes · 241be8d9
      Andrew Morton 提交于
      squish these:
      
      drivers/isdn/hardware/eicon/capifunc.c: In function 'TransmitBufferSet':
      drivers/isdn/hardware/eicon/capifunc.c:192: warning: cast to pointer from integer of different size
      drivers/isdn/hardware/eicon/capifunc.c: In function 'TransmitBufferGet':
      drivers/isdn/hardware/eicon/capifunc.c:197: warning: cast from pointer to integer of different size
      drivers/isdn/hardware/eicon/capifunc.c:198: warning: cast from pointer to integer of different size
      drivers/isdn/hardware/eicon/capifunc.c:200: warning: cast from pointer to integer of different size
      drivers/isdn/hardware/eicon/capifunc.c: In function 'TransmitBufferFree':
      drivers/isdn/hardware/eicon/capifunc.c:205: warning: cast from pointer to integer of different size
      drivers/isdn/hardware/eicon/capifunc.c:206: warning: cast from pointer to integer of different size
      drivers/isdn/hardware/eicon/capifunc.c: In function 'sendf':
      drivers/isdn/hardware/eicon/capifunc.c:304: warning: cast to pointer from integer of different size
      drivers/isdn/hardware/eicon/capifunc.c:304: warning: cast to pointer from integer of different size
      drivers/isdn/hardware/eicon/capifunc.c:321: warning: cast to pointer from integer of different size
      
      Cc: Karsten Keil <kkeil@suse.de>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      241be8d9
    • A
      HiSax: fix error checking for hisax_register()] · ae2d990e
      Alan Stern 提交于
      This patch (as875) adds error-checking to the callers of hisax_register().
      It also changes an error pathway in that routine, making it return an error
      code rather than 0.
      
      This fixes Bugzilla #7960.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Acked-by: NKarsten Keil <kkeil@suse.de>
      Cc: Martin Bachem <info@colognechip.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      ae2d990e
  14. 22 5月, 2007 1 次提交
    • A
      Detach sched.h from mm.h · e8edc6e0
      Alexey Dobriyan 提交于
      First thing mm.h does is including sched.h solely for can_do_mlock() inline
      function which has "current" dereference inside. By dealing with can_do_mlock()
      mm.h can be detached from sched.h which is good. See below, why.
      
      This patch
      a) removes unconditional inclusion of sched.h from mm.h
      b) makes can_do_mlock() normal function in mm/mlock.c
      c) exports can_do_mlock() to not break compilation
      d) adds sched.h inclusions back to files that were getting it indirectly.
      e) adds less bloated headers to some files (asm/signal.h, jiffies.h) that were
         getting them indirectly
      
      Net result is:
      a) mm.h users would get less code to open, read, preprocess, parse, ... if
         they don't need sched.h
      b) sched.h stops being dependency for significant number of files:
         on x86_64 allmodconfig touching sched.h results in recompile of 4083 files,
         after patch it's only 3744 (-8.3%).
      
      Cross-compile tested on
      
      	all arm defconfigs, all mips defconfigs, all powerpc defconfigs,
      	alpha alpha-up
      	arm
      	i386 i386-up i386-defconfig i386-allnoconfig
      	ia64 ia64-up
      	m68k
      	mips
      	parisc parisc-up
      	powerpc powerpc-up
      	s390 s390-up
      	sparc sparc-up
      	sparc64 sparc64-up
      	um-x86_64
      	x86_64 x86_64-up x86_64-defconfig x86_64-allnoconfig
      
      as well as my two usual configs.
      Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      e8edc6e0
  15. 10 5月, 2007 1 次提交
  16. 09 5月, 2007 2 次提交