* [freescale-fslc:pr/621 12694/20208] include/linux/phy_fixed.h:38:20: warning: no previous prototype for function 'fwnode_fixed_phy_register'
@ 2023-02-05 17:27 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-02-05 17:27 UTC (permalink / raw)
To: Otavio Salvador; +Cc: oe-kbuild-all
Hi Camelia,
FYI, the error/warning still remains.
tree: https://github.com/Freescale/linux-fslc pr/621
head: b9ae52e89c61eed5d446a9693d8bf0f55a5323e7
commit: 9afbdf3713a9cdf15eece57bfc97d8beb62af0ae [12694/20208] net: phy: fixed_phy: add fixed PHY ACPI support
config: mips-buildonly-randconfig-r006-20230205 (https://download.01.org/0day-ci/archive/20230206/202302060130.rtwtk2tE-lkp@intel.com/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 4196ca3278f78c6e19246e54ab0ecb364e37d66a)
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 mips cross compiling tool for clang build
# apt-get install binutils-mipsel-linux-gnu
# https://github.com/Freescale/linux-fslc/commit/9afbdf3713a9cdf15eece57bfc97d8beb62af0ae
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc pr/621
git checkout 9afbdf3713a9cdf15eece57bfc97d8beb62af0ae
# 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=mips olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash arch/mips/ar7/ drivers/clk/imx/ drivers/mailbox/
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 >>):
In file included from arch/mips/ar7/platform.c:22:
>> include/linux/phy_fixed.h:38:20: warning: no previous prototype for function 'fwnode_fixed_phy_register' [-Wmissing-prototypes]
struct phy_device *fwnode_fixed_phy_register(struct fwnode_handle *fwnode_np,
^
include/linux/phy_fixed.h:38:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct phy_device *fwnode_fixed_phy_register(struct fwnode_handle *fwnode_np,
^
static
1 warning generated.
vim +/fwnode_fixed_phy_register +38 include/linux/phy_fixed.h
15
16 #if IS_ENABLED(CONFIG_FIXED_PHY)
17 extern int fixed_phy_change_carrier(struct net_device *dev, bool new_carrier);
18 extern int fixed_phy_add(unsigned int irq, int phy_id,
19 struct fixed_phy_status *status);
20 extern struct phy_device *fixed_phy_register(unsigned int irq,
21 struct fixed_phy_status *status,
22 struct device_node *np);
23
24 extern struct phy_device *
25 fixed_phy_register_with_gpiod(unsigned int irq,
26 struct fixed_phy_status *status,
27 struct gpio_desc *gpiod);
28
29 extern void fixed_phy_unregister(struct phy_device *phydev);
30 extern int fixed_phy_set_link_update(struct phy_device *phydev,
31 int (*link_update)(struct net_device *,
32 struct fixed_phy_status *));
33
34 struct phy_device *fwnode_fixed_phy_register(struct fwnode_handle *fwnode_np,
35 struct fixed_phy_status *status);
36
37 #else
> 38 struct phy_device *fwnode_fixed_phy_register(struct fwnode_handle *fwnode_np,
39 struct fixed_phy_status *status)
40 {
41 return ERR_PTR(-ENODEV);
42 }
43
--
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-02-05 17:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-05 17:27 [freescale-fslc:pr/621 12694/20208] include/linux/phy_fixed.h:38:20: warning: no previous prototype for function 'fwnode_fixed_phy_register' 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.