Re: include/linux/framer/framer.h:184:16: warning: no previous prototype for function 'framer_get'

From: Andy Shevchenko
Date: Mon Mar 25 2024 - 09:57:44 EST


On Sun, Mar 24, 2024 at 11:19:28AM +0800, kernel test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: 70293240c5ce675a67bfc48f419b093023b862b3
> commit: 54762918ca856028d33d1d56d017a4d7706c6196 net: wan: fsl_qmc_hdlc: Add framer support
> date: 13 days ago
> config: powerpc-randconfig-003-20240324 (https://download.01.org/0day-ci/archive/20240324/202403241110.hfJqeJRu-lkp@xxxxxxxxx/config)
> compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 23de3862dce582ce91c1aa914467d982cb1a73b4)
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240324/202403241110.hfJqeJRu-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/202403241110.hfJqeJRu-lkp@xxxxxxxxx/
>
> All warnings (new ones prefixed by >>):

> 82c944d05b1a24 Herve Codina 2023-11-28 183
> 82c944d05b1a24 Herve Codina 2023-11-28 @184 struct framer *framer_get(struct device *dev, const char *con_id)
> 82c944d05b1a24 Herve Codina 2023-11-28 185 {
> 82c944d05b1a24 Herve Codina 2023-11-28 186 return ERR_PTR(-ENOSYS);
> 82c944d05b1a24 Herve Codina 2023-11-28 187 }
> 82c944d05b1a24 Herve Codina 2023-11-28 188
> 82c944d05b1a24 Herve Codina 2023-11-28 @189 void framer_put(struct device *dev, struct framer *framer)
> 82c944d05b1a24 Herve Codina 2023-11-28 190 {
> 82c944d05b1a24 Herve Codina 2023-11-28 191 }
> 82c944d05b1a24 Herve Codina 2023-11-28 192

Yeah, stubs in the headers should be static inline.

--
With Best Regards,
Andy Shevchenko