1. 06 8月, 2009 2 次提交
    • H
      ARM: 5638/1: arch/arm/kernel/signal.c: use correct address space for CRUNCH · 65a5053b
      Hartley Sweeten 提交于
      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: NH Hartley Sweeten <hsweeten@visionengravers.com>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      65a5053b
    • A
      ARM: 5637/1: [KS8695] Don't reference CLOCK_TICK_RATE in drivers · 0a51810a
      Andrew Victor 提交于
      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: NAndrew Victor <linux@maxim.org.za>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      0a51810a
  2. 04 8月, 2009 1 次提交
  3. 31 7月, 2009 3 次提交
    • R
      ARM: S3C64XX: serial: Fix section mismatch warning · 909db802
      Ramax Lo 提交于
      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: NRamax Lo <ramaxlo@gmail.com>
      Signed-off-by: NBen Dooks <ben-linux@fluff.org>
      909db802
    • R
      ARM: S3C24XX: serial: Fix section mismatch warnings · 8fe70a5f
      Ramax Lo 提交于
      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: NRamax Lo <ramaxlo@gmail.com>
      Signed-off-by: NBen Dooks <ben-linux@fluff.org>
      8fe70a5f
    • P
      ARM: S3C: PWM fix for low duty cycle · 165f5f64
      Peter Korsgaard 提交于
      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: NPeter Korsgaard <jacmet@sunsite.dk>
      Signed-off-by: NBen Dooks <ben-linux@fluff.org>
      165f5f64
  4. 30 7月, 2009 17 次提交
  5. 29 7月, 2009 17 次提交