Hi Miaoqing,

[auto build test WARNING on wireless-drivers-next/master]
[also build test WARNING on v4.5-rc6 next-20160229]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improving the system]

url:    
https://github.com/0day-ci/linux/commits/miaoqing-codeaurora-org/ath9k-GPIO-BT-Coex-bug-fixes/20160301-110235
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers-next.git 
master
config: x86_64-randconfig-x015-201609 (attached as .config)
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   drivers/net/wireless/ath/ath9k/hw.c: In function 'ath9k_hw_gpio_get':
>> drivers/net/wireless/ath/ath9k/hw.c:2785:1: warning: control reaches end of 
>> non-void function [-Wreturn-type]
    }
    ^

vim +2785 drivers/net/wireless/ath/ath9k/hw.c

  2769                          return MS_REG_READ(AR9287, gpio);
  2770                  else if (AR_SREV_9285(ah))
  2771                          return MS_REG_READ(AR9285, gpio);
  2772                  else if (AR_SREV_9280(ah))
  2773                          return MS_REG_READ(AR928X, gpio);
  2774                  else if (AR_DEVID_7010(ah))
  2775                          return REG_READ(ah, AR7010_GPIO_IN) & BIT(gpio);
  2776                  else if (AR_SREV_9300_20_OR_LATER(ah))
  2777                          return REG_READ(ah, AR_GPIO_IN) & BIT(gpio);
  2778                  else
  2779                          return MS_REG_READ(AR, gpio);
  2780          } else if (BIT(gpio) & ah->caps.gpio_requested) {
  2781                  return gpio_get_value(gpio) & BIT(gpio);
  2782          } else {
  2783                  WARN_ON(1);
  2784          }
> 2785  }
  2786  EXPORT_SYMBOL(ath9k_hw_gpio_get);
  2787  
  2788  void ath9k_hw_set_gpio(struct ath_hw *ah, u32 gpio, u32 val)
  2789  {
  2790          WARN_ON(gpio >= ah->caps.num_gpio_pins);
  2791  
  2792          if (AR_DEVID_7010(ah) || AR_SREV_9271(ah))
  2793                  val = !val;

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data

Reply via email to