Skip to content
Snippets Groups Projects
  1. Nov 12, 2010
    • Dan Carpenter's avatar
      rapidio: use resource_size() · 88cf81fc
      Dan Carpenter authored
      
      The size calculation is done incorrectly here because it should include
      both the start and end (end - start + 1).  It's easiest to just use
      resource_size() which does the right thing.
      
      I was worried there was something non-standard going on because the
      printk() subtracts "end - 1", but the rest of the file uses the normal
      resource size calculations.  This function is only called from
      fsl_rio_setup() in arch/powerpc/sysdev/fsl_rio.c and the calculation
      there is also:
      
      	port->iores.start = law_start;
      	port->iores.end = law_start + law_size - 1;
      
      So I think this is the correct fix.
      
      Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
      Cc: Alexandre Bounine <alexandre.bounine@idt.com>
      Acked-by: default avatarLi Yang <leoli@freescale.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      88cf81fc
  2. Oct 27, 2010
  3. Jun 16, 2010
  4. May 30, 2010
    • Randy Dunlap's avatar
      rapidio: fix new kernel-doc warnings · 97ef6f74
      Randy Dunlap authored
      
      Fix a bunch of new rapidio kernel-doc warnings:
      
      Warning(include/linux/rio.h:123): No description found for parameter 'comp_tag'
      Warning(include/linux/rio.h:123): No description found for parameter 'phys_efptr'
      Warning(include/linux/rio.h:123): No description found for parameter 'em_efptr'
      Warning(include/linux/rio.h:123): No description found for parameter 'pwcback'
      Warning(include/linux/rio.h:247): No description found for parameter 'set_domain'
      Warning(include/linux/rio.h:247): No description found for parameter 'get_domain'
      Warning(drivers/rapidio/rio-scan.c:1133): No description found for parameter 'rdev'
      Warning(drivers/rapidio/rio-scan.c:1133): Excess function parameter 'port' description in 'rio_init_em'
      Warning(drivers/rapidio/rio.c:349): No description found for parameter 'rdev'
      Warning(drivers/rapidio/rio.c:349): Excess function parameter 'mport' description in 'rio_request_inb_pwrite'
      Warning(drivers/rapidio/rio.c:393): No description found for parameter 'port'
      Warning(drivers/rapidio/rio.c:393): No description found for parameter 'local'
      Warning(drivers/rapidio/rio.c:393): No description found for parameter 'destid'
      Warning(drivers/rapidio/rio.c:393): No description found for parameter 'hopcount'
      Warning(drivers/rapidio/rio.c:393): Excess function parameter 'rdev' description in 'rio_mport_get_physefb'
      Warning(drivers/rapidio/rio.c:845): Excess function parameter 'local' description in 'rio_std_route_clr_table'
      
      Signed-off-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
      Cc: Alexandre Bounine <alexandre.bounine@idt.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      97ef6f74
  5. May 27, 2010
  6. May 21, 2010
  7. Jun 15, 2009
  8. May 18, 2009
  9. Apr 07, 2009
  10. Mar 24, 2009
  11. Jan 06, 2009
  12. Dec 15, 2008
  13. Nov 30, 2008
  14. Jul 10, 2008
  15. Apr 29, 2008
  16. Mar 03, 2008
  17. Jan 28, 2008
  18. Jan 23, 2008
    • Kumar Gala's avatar
      [RAPIDIO] Fix compile error and warning · 5febf1cd
      Kumar Gala authored
      
      drivers/rapidio/rio.c: In function 'rio_get_asm':
      drivers/rapidio/rio.c:413: error: implicit declaration of function 'in_interrupt'
      drivers/rapidio/rio.c: In function 'rio_init_mports':
      drivers/rapidio/rio.c:480: warning: format '%8.8lx' expects type 'long unsigned int', but argument 2 has type 'resource_size_t'
      drivers/rapidio/rio.c:480: warning: format '%8.8lx' expects type 'long unsigned int', but argument 3 has type 'resource_size_t'
      
      Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
      5febf1cd
  19. Jul 19, 2007
  20. Jul 11, 2007
    • Zhang Rui's avatar
      sysfs: add parameter "struct bin_attribute *" in .read/.write methods for sysfs binary attributes · 91a69029
      Zhang Rui authored
      
      Well, first of all, I don't want to change so many files either.
      
      What I do:
      Adding a new parameter "struct bin_attribute *" in the
      .read/.write methods for the sysfs binary attributes.
      
      In fact, only the four lines change in fs/sysfs/bin.c and
      include/linux/sysfs.h do the real work.
      But I have to update all the files that use binary attributes
      to make them compatible with the new .read and .write methods.
      I'm not sure if I missed any. :(
      
      Why I do this:
      For a sysfs attribute, we can get a pointer pointing to the
      struct attribute in the .show/.store method,
      while we can't do this for the binary attributes.
      I don't know why this is different, but this does make it not
      so handy to use the binary attributes as the regular ones.
      So I think this patch is reasonable. :)
      
      Who benefits from it:
      The patch that exposes ACPI tables in sysfs
      requires such an improvement.
      All the table binary attributes share the same .read method.
      Parameter "struct bin_attribute *" is used to get
      the table signature and instance number which are used to
      distinguish different ACPI table binary attributes.
      
      Without this parameter, we need to offer different .read methods
      for different ACPI table binary attributes.
      This is impossible as there are various ACPI tables on different
      platforms, and we don't know what they are until they are loaded.
      
      Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      91a69029
Loading