Skip to content
  1. Aug 06, 2009
    • Hartley Sweeten's avatar
      ARM: 5639/1: arm: clkdev.c should include <linux/clk.h> · c0c60c4b
      Hartley Sweeten authored
      
      
      <linux/clk.h> should be included to get the base API prototypes.
      
      This fixes the following sparse warnings:
      
        arch/arm/common/clkdev.c:65:12:
          warning: symbol 'clk_get_sys' was not declared. Should it be static?
      
        arch/arm/common/clkdev.c:79:12:
          warning: symbol 'clk_get' was not declared. Should it be static?
      
        arch/arm/common/clkdev.c:87:6:
          warning: symbol 'clk_put' was not declared. Should it be static?
      
      Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
      Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
      c0c60c4b
    • Hartley Sweeten's avatar
      ARM: 5638/1: arch/arm/kernel/signal.c: use correct address space for CRUNCH · 65a5053b
      Hartley Sweeten authored
      
      
      preserve_crunch_context() calls __copy_to_user() which expects the
      destination address to be in __user space.  setup_sigframe() properly
      passes the destination address.
      
      restore_crunch_context() calls __copy_from_user() which expects the
      source address to be in __user space.  restore_sigframe() properly
      passes the source address.
      
      This fixes {preserve/restore}_crunch_context() to accept the
      address as __user space and resolves the following sparse warnings:
      
        arch/arm/kernel/signal.c:146:31:
           warning: incorrect type in argument 1 (different address spaces)
              expected void [noderef] <asn:1>*to
              got struct crunch_sigframe *frame
      
        arch/arm/kernel/signal.c:156:38:
           warning: incorrect type in argument 2 (different address spaces)
              expected void const [noderef] <asn:1>*from
              got struct crunch_sigframe *frame
      
        arch/arm/kernel/signal.c:250:48:
           warning: incorrect type in argument 1 (different address spaces)
              expected struct crunch_sigframe *frame
              got struct crunch_sigframe [noderef] <asn:1>*<noident>
      
        arch/arm/kernel/signal.c:365:49:
           warning: incorrect type in argument 1 (different address spaces)
              expected struct crunch_sigframe *frame
              got struct crunch_sigframe [noderef] <asn:1>*<noident>
      
      Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
      Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
      65a5053b
    • Andrew Victor's avatar
      ARM: 5637/1: [KS8695] Don't reference CLOCK_TICK_RATE in drivers · 0a51810a
      Andrew Victor authored
      
      
      Stop referencing CLOCK_TICK_RATE in the KS8695 drivers, rather refer
      to a KS8695_CLOCK_RATE.
      Issue pointed out by Russell King on arm-linux-kernel mailing list.
      
      Signed-off-by: default avatarAndrew Victor <linux@maxim.org.za>
      Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
      0a51810a
  2. Aug 04, 2009
  3. Jul 31, 2009
    • Ramax Lo's avatar
      ARM: S3C64XX: serial: Fix section mismatch warning · 909db802
      Ramax Lo authored
      
      
      Rename the structure to avoid the following warning:
      
      WARNING: vmlinux.o(.data+0x11ef4): Section mismatch in reference from the variable
      s3c6400_serial_drv to the function .devexit.text:s3c24xx_serial_remove()
      The variable s3c6400_serial_drv references
      the function __devexit s3c24xx_serial_remove()
      If the reference is valid then annotate the
      variable with __exit* (see linux/init.h) or name the variable:
      *driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
      
      Signed-off-by: default avatarRamax Lo <ramaxlo@gmail.com>
      Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
      909db802
    • Ramax Lo's avatar
      ARM: S3C24XX: serial: Fix section mismatch warnings · 8fe70a5f
      Ramax Lo authored
      
      
      During kernel build process, the following warning was found:
      
      WARNING: drivers/serial/built-in.o(.data+0x304): Section mismatch in reference from
      the variable s3c2440_serial_drv to the function .devexit.text:s3c24xx_serial_remove()
      The variable s3c2440_serial_drv references the function __devexit s3c24xx_serial_remove()
      If the reference is valid then annotate the variable with
      __exit* (see linux/init.h) or name the variable:
      *driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
      
      The same warning happened for s3c241x platform. We rename variables to avoid
      these warnings. These changes also apply to s3c2400 & s3c24a0 for consistency.
      
      Signed-off-by: default avatarRamax Lo <ramaxlo@gmail.com>
      Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
      8fe70a5f
    • Peter Korsgaard's avatar
      ARM: S3C: PWM fix for low duty cycle · 165f5f64
      Peter Korsgaard authored
      
      
      The pwm hardware only checks the compare register after a decrement,
      so the pin never toggles if tcmp = tcnt.
      
      This happens when a very low duty cycle is requested. Fix it by always
      ensuring that tcmp < tcnt.
      
      Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
      Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
      165f5f64
  4. Jul 30, 2009
  5. Jul 29, 2009