linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* sound/pci/hda/patch_ca0132.c:8214:10: warning: no case matching constant switch condition '0'
@ 2020-11-18  0:04 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-11-18  0:04 UTC (permalink / raw)
  To: Connor McAdams; +Cc: kbuild-all, clang-built-linux, linux-kernel, Takashi Iwai

[-- Attachment #1: Type: text/plain, Size: 2323 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   9c87c9f41245baa3fc4716cf39141439cf405b01
commit: bf2aa9ccc8e598d788132ded9c7e94c6af3a9d1e ALSA: hda/ca0132 - Cleanup ca0132_mmio_init function.
date:   3 months ago
config: arm64-randconfig-r005-20201117 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project ace9653c11c6308401dcda2e8b26bf97e6e66e30)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=bf2aa9ccc8e598d788132ded9c7e94c6af3a9d1e
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout bf2aa9ccc8e598d788132ded9c7e94c6af3a9d1e
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> sound/pci/hda/patch_ca0132.c:8214:10: warning: no case matching constant switch condition '0'
           switch (ca0132_quirk(spec)) {
                   ^~~~~~~~~~~~~~~~~~
   sound/pci/hda/patch_ca0132.c:1076:29: note: expanded from macro 'ca0132_quirk'
   #define ca0132_quirk(spec)              ({ (void)(spec); QUIRK_NONE; })
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   1 warning generated.

vim +/0 +8214 sound/pci/hda/patch_ca0132.c

  8209	
  8210	static void ca0132_mmio_init(struct hda_codec *codec)
  8211	{
  8212		struct ca0132_spec *spec = codec->spec;
  8213	
> 8214		switch (ca0132_quirk(spec)) {
  8215		case QUIRK_R3D:
  8216		case QUIRK_SBZ:
  8217		case QUIRK_ZXR:
  8218			ca0132_mmio_init_sbz(codec);
  8219			break;
  8220		case QUIRK_AE5:
  8221			ca0132_mmio_init_ae5(codec);
  8222			break;
  8223		}
  8224	}
  8225	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 25484 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-11-18  0:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-18  0:04 sound/pci/hda/patch_ca0132.c:8214:10: warning: no case matching constant switch condition '0' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).