All of lore.kernel.org
 help / color / mirror / Atom feed
* sound/core/jack.c:632:15: warning: variable 'mask_bits' set but not used
@ 2021-06-02 20:01 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-06-02 20:01 UTC (permalink / raw)
  To: Hui Wang
  Cc: kbuild-all, clang-built-linux, linux-kernel, Takashi Iwai,
	Jaroslav Kysela, Kai Vehmanen

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   231bc539066760aaa44d46818c85b14ca2f56d9f
commit: 2d670ea2bd53a9792f453bb5b97cb8ef695988ff ALSA: jack: implement software jack injection via debugfs
date:   4 months ago
config: powerpc64-randconfig-r004-20210601 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d41cb6bb2607fa5c7a9df2b3dab361353657d225)
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 powerpc64 cross compiling tool for clang build
        # apt-get install binutils-powerpc64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2d670ea2bd53a9792f453bb5b97cb8ef695988ff
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 2d670ea2bd53a9792f453bb5b97cb8ef695988ff
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc64 

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 >>):

   In file included from sound/core/jack.c:8:
   In file included from include/linux/input.h:8:
   In file included from include/linux/time.h:6:
   In file included from include/linux/math64.h:7:
   In file included from ./arch/powerpc/include/generated/asm/div64.h:1:
   In file included from include/asm-generic/div64.h:53:
   In file included from include/linux/log2.h:12:
   In file included from include/linux/bitops.h:32:
   In file included from arch/powerpc/include/asm/bitops.h:62:
   arch/powerpc/include/asm/barrier.h:49:9: warning: '__lwsync' macro redefined [-Wmacro-redefined]
   #define __lwsync()      __asm__ __volatile__ (stringify_in_c(LWSYNC) : : :"memory")
           ^
   <built-in>:308:9: note: previous definition is here
   #define __lwsync __builtin_ppc_lwsync
           ^
>> sound/core/jack.c:632:15: warning: variable 'mask_bits' set but not used [-Wunused-but-set-variable]
           unsigned int mask_bits = 0;
                        ^
   2 warnings generated.

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for ATA
   Depends on HAS_IOMEM && BLOCK
   Selected by
   - AKEBONO && PPC_47x
   WARNING: unmet direct dependencies detected for NETDEVICES
   Depends on NET
   Selected by
   - AKEBONO && PPC_47x
   WARNING: unmet direct dependencies detected for ETHERNET
   Depends on NETDEVICES && NET
   Selected by
   - AKEBONO && PPC_47x


vim +/mask_bits +632 sound/core/jack.c

   622	
   623	/**
   624	 * snd_jack_report - Report the current status of a jack
   625	 *
   626	 * @jack:   The jack to report status for
   627	 * @status: The current status of the jack
   628	 */
   629	void snd_jack_report(struct snd_jack *jack, int status)
   630	{
   631		struct snd_jack_kctl *jack_kctl;
 > 632		unsigned int mask_bits = 0;
   633	#ifdef CONFIG_SND_JACK_INPUT_DEV
   634		int i;
   635	#endif
   636	
   637		if (!jack)
   638			return;
   639	
   640		jack->hw_status_cache = status;
   641	
   642		list_for_each_entry(jack_kctl, &jack->kctl_list, list)
   643			if (jack_kctl->sw_inject_enable)
   644				mask_bits |= jack_kctl->mask_bits;
   645			else
   646				snd_kctl_jack_report(jack->card, jack_kctl->kctl,
   647						     status & jack_kctl->mask_bits);
   648	

---
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: 25951 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* sound/core/jack.c:632:15: warning: variable 'mask_bits' set but not used
@ 2021-06-02 20:01 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-06-02 20:01 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   231bc539066760aaa44d46818c85b14ca2f56d9f
commit: 2d670ea2bd53a9792f453bb5b97cb8ef695988ff ALSA: jack: implement software jack injection via debugfs
date:   4 months ago
config: powerpc64-randconfig-r004-20210601 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d41cb6bb2607fa5c7a9df2b3dab361353657d225)
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 powerpc64 cross compiling tool for clang build
        # apt-get install binutils-powerpc64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2d670ea2bd53a9792f453bb5b97cb8ef695988ff
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 2d670ea2bd53a9792f453bb5b97cb8ef695988ff
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc64 

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 >>):

   In file included from sound/core/jack.c:8:
   In file included from include/linux/input.h:8:
   In file included from include/linux/time.h:6:
   In file included from include/linux/math64.h:7:
   In file included from ./arch/powerpc/include/generated/asm/div64.h:1:
   In file included from include/asm-generic/div64.h:53:
   In file included from include/linux/log2.h:12:
   In file included from include/linux/bitops.h:32:
   In file included from arch/powerpc/include/asm/bitops.h:62:
   arch/powerpc/include/asm/barrier.h:49:9: warning: '__lwsync' macro redefined [-Wmacro-redefined]
   #define __lwsync()      __asm__ __volatile__ (stringify_in_c(LWSYNC) : : :"memory")
           ^
   <built-in>:308:9: note: previous definition is here
   #define __lwsync __builtin_ppc_lwsync
           ^
>> sound/core/jack.c:632:15: warning: variable 'mask_bits' set but not used [-Wunused-but-set-variable]
           unsigned int mask_bits = 0;
                        ^
   2 warnings generated.

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for ATA
   Depends on HAS_IOMEM && BLOCK
   Selected by
   - AKEBONO && PPC_47x
   WARNING: unmet direct dependencies detected for NETDEVICES
   Depends on NET
   Selected by
   - AKEBONO && PPC_47x
   WARNING: unmet direct dependencies detected for ETHERNET
   Depends on NETDEVICES && NET
   Selected by
   - AKEBONO && PPC_47x


vim +/mask_bits +632 sound/core/jack.c

   622	
   623	/**
   624	 * snd_jack_report - Report the current status of a jack
   625	 *
   626	 * @jack:   The jack to report status for
   627	 * @status: The current status of the jack
   628	 */
   629	void snd_jack_report(struct snd_jack *jack, int status)
   630	{
   631		struct snd_jack_kctl *jack_kctl;
 > 632		unsigned int mask_bits = 0;
   633	#ifdef CONFIG_SND_JACK_INPUT_DEV
   634		int i;
   635	#endif
   636	
   637		if (!jack)
   638			return;
   639	
   640		jack->hw_status_cache = status;
   641	
   642		list_for_each_entry(jack_kctl, &jack->kctl_list, list)
   643			if (jack_kctl->sw_inject_enable)
   644				mask_bits |= jack_kctl->mask_bits;
   645			else
   646				snd_kctl_jack_report(jack->card, jack_kctl->kctl,
   647						     status & jack_kctl->mask_bits);
   648	

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

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-06-02 20:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-02 20:01 sound/core/jack.c:632:15: warning: variable 'mask_bits' set but not used kernel test robot
2021-06-02 20:01 ` kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.