1. 07 8月, 2014 1 次提交
  2. 07 5月, 2014 1 次提交
    • T
      pwm: lpss: Fix const qualifier and sparse warnings · 89c0339e
      Thierry Reding 提交于
      Fixes the following warnings reported by the 0-DAY kernel build testing
      backend:
      
         drivers/pwm/pwm-lpss.c: In function 'pwm_lpss_probe_pci':
      >> drivers/pwm/pwm-lpss.c:192:2: warning: passing argument 3 of 'pwm_lpss_probe' discards 'const' qualifier from pointer target type [enabled by default]
           lpwm = pwm_lpss_probe(&pdev->dev, &pdev->resource[0], info);
           ^
         drivers/pwm/pwm-lpss.c:130:30: note: expected 'struct pwm_lpss_boardinfo *' but argument is of type 'const struct pwm_lpss_boardinfo *'
          static struct pwm_lpss_chip *pwm_lpss_probe(struct device *dev,
                                       ^
      >> drivers/pwm/pwm-lpss.c:143:28: sparse: incorrect type in return expression (different address spaces)
         drivers/pwm/pwm-lpss.c:143:28:    expected struct pwm_lpss_chip *
         drivers/pwm/pwm-lpss.c:143:28:    got void [noderef] <asn:2>*regs
      >> drivers/pwm/pwm-lpss.c:192:63: sparse: incorrect type in argument 3 (different modifiers)
         drivers/pwm/pwm-lpss.c:192:63:    expected struct pwm_lpss_boardinfo *info
         drivers/pwm/pwm-lpss.c:192:63:    got struct pwm_lpss_boardinfo const *[assigned] info
         drivers/pwm/pwm-lpss.c: In function 'pwm_lpss_probe_pci':
         drivers/pwm/pwm-lpss.c:192:2: warning: passing argument 3 of 'pwm_lpss_probe' discards 'const' qualifier from pointer target type [enabled by default]
           lpwm = pwm_lpss_probe(&pdev->dev, &pdev->resource[0], info);
           ^
         drivers/pwm/pwm-lpss.c:130:30: note: expected 'struct pwm_lpss_boardinfo *' but argument is of type 'const struct pwm_lpss_boardinfo *'
          static struct pwm_lpss_chip *pwm_lpss_probe(struct device *dev,
                                       ^
      Reported-by: Nkbuild test robot <fengguang.wu@intel.com>
      Signed-off-by: NThierry Reding <thierry.reding@gmail.com>
      89c0339e
  3. 28 4月, 2014 1 次提交
  4. 01 4月, 2014 1 次提交