Re: [PATCH v1] ptp: ocp: add Adva timecard support

From: kernel test robot
Date: Sat Dec 23 2023 - 19:58:17 EST


Hi Sagi,

kernel test robot noticed the following build warnings:

[auto build test WARNING on net/main]
[also build test WARNING on net-next/main linus/master v6.7-rc6 next-20231222]
[cannot apply to horms-ipvs/master]
[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/Sagi-Maimon/ptp-ocp-add-Adva-timecard-support/20231222-182253
base: net/main
patch link: https://lore.kernel.org/r/20231221153755.2690-1-maimon.sagi%40gmail.com
patch subject: [PATCH v1] ptp: ocp: add Adva timecard support
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20231224/202312240816.FklJZk9r-lkp@xxxxxxxxx/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231224/202312240816.FklJZk9r-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202312240816.FklJZk9r-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> drivers/ptp/ptp_ocp.c:418:32: warning: tentative definition of variable with internal linkage has incomplete non-array type 'const struct ocp_sma_op' [-Wtentative-definition-incomplete-type]
static const struct ocp_sma_op ocp_adva_sma_op;
^
drivers/ptp/ptp_ocp.c:377:15: note: forward declaration of 'struct ocp_sma_op'
const struct ocp_sma_op *sma_op;
^
1 warning generated.


vim +418 drivers/ptp/ptp_ocp.c

417
> 418 static const struct ocp_sma_op ocp_adva_sma_op;
419

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