lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Wed, 18 Nov 2020 08:04:29 +0800
From:   kernel test robot <lkp@...el.com>
To:     Connor McAdams <conmanx360@...il.com>
Cc:     kbuild-all@...ts.01.org, clang-built-linux@...glegroups.com,
        linux-kernel@...r.kernel.org, Takashi Iwai <tiwai@...e.de>
Subject: sound/pci/hda/patch_ca0132.c:8214:10: warning: no case matching
 constant switch condition '0'

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@...el.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

Download attachment ".config.gz" of type "application/gzip" (25484 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ