tree: git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next head: db91b047f7131c7e8fe00ca9e38d14c0c103363f commit: 947d4dc4cd5be5da8e5e82f314d5cfb85a3eb3cc [6/18] Merge remote-tracking branch 'asoc/topic/rt5645' into asoc-next config: i386-randconfig-x009-201528 (attached as .config) reproduce: git checkout 947d4dc4cd5be5da8e5e82f314d5cfb85a3eb3cc # save the attached .config to linux build tree make ARCH=i386
All warnings (new ones prefixed by >>):
sound/soc/codecs/rt5645.c: In function 'rt5645_jack_detect_work':
sound/soc/codecs/rt5645.c:2931:3: warning: 'return' with a value, in function returning void
return -EINVAL; ^
vim +/return +2931 sound/soc/codecs/rt5645.c
6e747d53 Bard Liao 2015-04-28 2915 regmap_update_bits(rt5645->regmap, RT5645_GEN_CTRL1, 6e747d53 Bard Liao 2015-04-28 2916 RT5645_DIG_GATE_CTRL, RT5645_DIG_GATE_CTRL); 6e747d53 Bard Liao 2015-04-28 2917 } 345b0f50 John Lin 2015-05-18 2918 rt5645_irq(0, rt5645); f3fa1bbd Oder Chiou 2014-09-19 2919 f3fa1bbd Oder Chiou 2014-09-19 2920 return 0; f3fa1bbd Oder Chiou 2014-09-19 2921 } f3fa1bbd Oder Chiou 2014-09-19 2922 EXPORT_SYMBOL_GPL(rt5645_set_jack_detect); f3fa1bbd Oder Chiou 2014-09-19 2923 cd6e82b8 Oder Chiou 2014-10-07 2924 static void rt5645_jack_detect_work(struct work_struct *work) cd6e82b8 Oder Chiou 2014-10-07 2925 { cd6e82b8 Oder Chiou 2014-10-07 2926 struct rt5645_priv *rt5645 = cd6e82b8 Oder Chiou 2014-10-07 2927 container_of(work, struct rt5645_priv, jack_detect_work.work); 6e747d53 Bard Liao 2015-04-28 2928 int val, btn_type, gpio_state = 0, report = 0; 6e747d53 Bard Liao 2015-04-28 2929 f2a5ded3 Nicolas Boichat 2015-07-17 2930 if (!rt5645->codec) f2a5ded3 Nicolas Boichat 2015-07-17 @2931 return -EINVAL; f2a5ded3 Nicolas Boichat 2015-07-17 2932 6e747d53 Bard Liao 2015-04-28 2933 switch (rt5645->pdata.jd_mode) { 6e747d53 Bard Liao 2015-04-28 2934 case 0: /* Not using rt5645 JD */ 0b0cefc8 Oder Chiou 2015-06-10 2935 if (rt5645->gpiod_hp_det) { 0b0cefc8 Oder Chiou 2015-06-10 2936 gpio_state = gpiod_get_value(rt5645->gpiod_hp_det); 0b0cefc8 Oder Chiou 2015-06-10 2937 dev_dbg(rt5645->codec->dev, "gpio_state = %d\n", 0b0cefc8 Oder Chiou 2015-06-10 2938 gpio_state); 0b0cefc8 Oder Chiou 2015-06-10 2939 report = rt5645_jack_detect(rt5645->codec, gpio_state);
:::::: The code at line 2931 was first introduced by commit :::::: f2a5ded38592e5936a099ea6535ad5d3addcbc9d ASoC: rt5645: Check if codec is initialized in workqueue handler
:::::: TO: Nicolas Boichat drinkcat@chromium.org :::::: CC: Mark Brown broonie@kernel.org
--- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation