public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [vireshk-pm:opp/linux-next 51/52] drivers/opp/core.c:97:6: warning: no previous prototype for function 'assert_single_clk'
@ 2022-06-10 12:46 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-06-10 12:46 UTC (permalink / raw)
  To: Viresh Kumar; +Cc: llvm, kbuild-all, linux-kernel

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm.git opp/linux-next
head:   76c4db9b37866c60306d39ed982cba56af15ff00
commit: a62471a6205813e478c21edb405d62285ea6be6e [51/52] OPP: Assert clk_count == 1 for single clk helpers
config: arm64-randconfig-r025-20220610 (https://download.01.org/0day-ci/archive/20220610/202206102000.LY9iR2Ek-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 70d35fe1257e429266b83025997b400e9f79110e)
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/vireshk/pm.git/commit/?id=a62471a6205813e478c21edb405d62285ea6be6e
        git remote add vireshk-pm https://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm.git
        git fetch --no-tags vireshk-pm opp/linux-next
        git checkout a62471a6205813e478c21edb405d62285ea6be6e
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/opp/

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

All warnings (new ones prefixed by >>):

>> drivers/opp/core.c:97:6: warning: no previous prototype for function 'assert_single_clk' [-Wmissing-prototypes]
   bool assert_single_clk(struct opp_table *opp_table)
        ^
   drivers/opp/core.c:97:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   bool assert_single_clk(struct opp_table *opp_table)
   ^
   static 
   drivers/opp/core.c:1634:43: warning: variable 'clk_size' set but not used [-Wunused-but-set-variable]
           int supply_count, supply_size, icc_size, clk_size;
                                                    ^
   2 warnings generated.


vim +/assert_single_clk +97 drivers/opp/core.c

    95	
    96	/* Returns true for single clock, false with WARN otherwise */
  > 97	bool assert_single_clk(struct opp_table *opp_table)
    98	{
    99		return !WARN_ON(opp_table->clk_count != 1);
   100	}
   101	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

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

only message in thread, other threads:[~2022-06-10 12:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-10 12:46 [vireshk-pm:opp/linux-next 51/52] drivers/opp/core.c:97:6: warning: no previous prototype for function 'assert_single_clk' 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