llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* Re: [RFC PATCH v7 6/8] ptp_ocp: implement DPLL ops
       [not found] <20230428002009.2948020-7-vadfed@meta.com>
@ 2023-04-28  6:36 ` kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-04-28  6:36 UTC (permalink / raw)
  To: Vadim Fedorenko; +Cc: llvm, oe-kbuild-all

Hi Vadim,

[This is a private test report for your RFC patch.]
kernel test robot noticed the following build warnings:

[auto build test WARNING on v6.3]
[cannot apply to tnguy-next-queue/dev-queue linus/master next-20230427]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Vadim-Fedorenko/dpll-spec-Add-Netlink-spec-in-YAML/20230428-082340
base:   457391b0380335d5e9a5babdec90ac53928b23b4
patch link:    https://lore.kernel.org/r/20230428002009.2948020-7-vadfed%40meta.com
patch subject: [RFC PATCH v7 6/8] ptp_ocp: implement DPLL ops
config: x86_64-randconfig-a005 (https://download.01.org/0day-ci/archive/20230428/202304281438.QAdSihGx-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
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
        # https://github.com/intel-lab-lkp/linux/commit/45d9112b4633e7cea8984cb09cc5f55203a8ec32
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Vadim-Fedorenko/dpll-spec-Add-Netlink-spec-in-YAML/20230428-082340
        git checkout 45d9112b4633e7cea8984cb09cc5f55203a8ec32
        # 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=x86_64 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/dpll/ drivers/ptp/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202304281438.QAdSihGx-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/dpll/dpll_core.c:296:1: warning: no previous prototype for function 'dpll_xa_ref_dpll_find' [-Wmissing-prototypes]
   dpll_xa_ref_dpll_find(struct xarray *xa_refs, const struct dpll_device *dpll)
   ^
   drivers/dpll/dpll_core.c:295:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   struct dpll_pin_ref *
   ^
   static 
   1 warning generated.
--
>> drivers/dpll/dpll_netlink.c:969:13: warning: no previous prototype for function 'dpll_netlink_fini' [-Wmissing-prototypes]
   void __exit dpll_netlink_fini(void)
               ^
   drivers/dpll/dpll_netlink.c:969:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void __exit dpll_netlink_fini(void)
   ^
   static 
   1 warning generated.
--
>> drivers/ptp/ptp_ocp.c:4314:37: warning: variable 'val' is uninitialized when used here [-Wuninitialized]
                           return ptp_ocp_sma_store_val(bp, val, sma->mode, sma_nr);
                                                            ^~~
   drivers/ptp/ptp_ocp.c:4306:9: note: initialize the variable 'val' to silence this warning
           int val, i;
                  ^
                   = 0
   1 warning generated.


vim +/val +4314 drivers/ptp/ptp_ocp.c

  4295	
  4296	static int ptp_ocp_dpll_frequency_set(const struct dpll_pin *pin,
  4297					      void *pin_priv,
  4298					      const struct dpll_device *dpll,
  4299					      void *dpll_priv, u64 frequency,
  4300					      struct netlink_ext_ack *extack)
  4301	{
  4302		struct ptp_ocp_sma_connector *sma = pin_priv;
  4303		struct ptp_ocp *bp = dpll_priv;
  4304		const struct ocp_selector *tbl;
  4305		int sma_nr = (sma - bp->sma);
  4306		int val, i;
  4307	
  4308		if (sma->fixed_fcn)
  4309			return -EOPNOTSUPP;
  4310	
  4311		tbl = bp->sma_op->tbl[sma->mode];
  4312		for (i = 0; tbl[i].name; i++)
  4313			if (tbl[i].frequency == frequency)
> 4314				return ptp_ocp_sma_store_val(bp, val, sma->mode, sma_nr);
  4315		return -EINVAL;
  4316	}
  4317	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

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

only message in thread, other threads:[~2023-04-28  6:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20230428002009.2948020-7-vadfed@meta.com>
2023-04-28  6:36 ` [RFC PATCH v7 6/8] ptp_ocp: implement DPLL ops 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).