[alsa-devel] [sound:topic/gpd-win-jack-fix 1/4] sound/soc//codecs/rt5645.c:3252:4: error: break statement not within loop or switch

kbuild test robot fengguang.wu at intel.com
Wed Apr 19 13:52:20 CEST 2017


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git topic/gpd-win-jack-fix
head:   ba696ca0c6864a74842e0534cf5a26c38b55172e
commit: 867babbf447f6c5ad188b7245f63e96f1905ff00 [1/4] ASoC: rt5645: read jd1_1 status for jd detection
config: arm-multi_v7_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 867babbf447f6c5ad188b7245f63e96f1905ff00
        # save the attached .config to linux build tree
        make.cross ARCH=arm 

Note: the sound/topic/gpd-win-jack-fix HEAD ba696ca0c6864a74842e0534cf5a26c38b55172e builds fine.
      It only hurts bisectibility.

All errors (new ones prefixed by >>):

   sound/soc//codecs/rt5645.c: In function 'rt5645_jack_detect_work':
>> sound/soc//codecs/rt5645.c:3252:4: error: break statement not within loop or switch
       break;
       ^~~~~

vim +3252 sound/soc//codecs/rt5645.c

6e747d53 Bard Liao       2015-04-28  3236  		snd_soc_jack_report(rt5645->hp_jack,
6e747d53 Bard Liao       2015-04-28  3237  				    report, SND_JACK_HEADPHONE);
6e747d53 Bard Liao       2015-04-28  3238  		snd_soc_jack_report(rt5645->mic_jack,
6e747d53 Bard Liao       2015-04-28  3239  				    report, SND_JACK_MICROPHONE);
f312bc59 Nicolas Boichat 2015-07-14  3240  		return;
867babbf Bard Liao       2017-03-20  3241  	default: /* read rt5645 jd1_1 status */
867babbf Bard Liao       2017-03-20  3242  		val = snd_soc_read(rt5645->codec, RT5645_INT_IRQ_ST) & 0x1000;
6e747d53 Bard Liao       2015-04-28  3243  		break;
6e747d53 Bard Liao       2015-04-28  3244  
6e747d53 Bard Liao       2015-04-28  3245  	}
6e747d53 Bard Liao       2015-04-28  3246  
867babbf Bard Liao       2017-03-20  3247  	if (!val) {
6e747d53 Bard Liao       2015-04-28  3248  		/* jack in */
6e747d53 Bard Liao       2015-04-28  3249  		if (rt5645->jack_type == 0) {
6e747d53 Bard Liao       2015-04-28  3250  			report = rt5645_jack_detect(rt5645->codec, 1);
6e747d53 Bard Liao       2015-04-28  3251  			/* for push button and jack out */
6e747d53 Bard Liao       2015-04-28 @3252  			break;
6e747d53 Bard Liao       2015-04-28  3253  		}
6e747d53 Bard Liao       2015-04-28  3254  		btn_type = 0;
6e747d53 Bard Liao       2015-04-28  3255  		if (snd_soc_read(rt5645->codec, RT5645_INT_IRQ_ST) & 0x4) {
6e747d53 Bard Liao       2015-04-28  3256  			/* button pressed */
6e747d53 Bard Liao       2015-04-28  3257  			report = SND_JACK_HEADSET;
6e747d53 Bard Liao       2015-04-28  3258  			btn_type = rt5645_button_detect(rt5645->codec);
6e747d53 Bard Liao       2015-04-28  3259  			/* rt5650 can report three kinds of button behavior,
6e747d53 Bard Liao       2015-04-28  3260  			   one click, double click and hold. However,

:::::: The code at line 3252 was first introduced by commit
:::::: 6e747d5311fc67b5fe7e2d7d242329c1bdff3318 ASoC: rt5645: Adds push button support for rt5650

:::::: TO: Bard Liao <bardliao at realtek.com>
:::::: CC: Mark Brown <broonie at kernel.org>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 40593 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20170419/22ccf42c/attachment-0001.bin>


More information about the Alsa-devel mailing list