Messages in this thread | | | Date | Sat, 6 Aug 2022 09:17:33 +0800 | From | kernel test robot <> | Subject | drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.h:159:5: warning: no previous prototype for 'mlxsw_sp_ptp_txhdr_construct' |
| |
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 6614a3c3164a5df2b54abb0b3559f51041cf705b commit: 24157bc69f45e8340af5ed72422afe8a248e0153 mlxsw: Send PTP packets as data packets to overcome a limitation date: 8 days ago config: csky-randconfig-c033-20220805 (https://download.01.org/0day-ci/archive/20220806/202208060935.1nNlUNZG-lkp@intel.com/config) compiler: csky-linux-gcc (GCC) 12.1.0 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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=24157bc69f45e8340af5ed72422afe8a248e0153 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 24157bc69f45e8340af5ed72422afe8a248e0153 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=csky SHELL=/bin/bash drivers/net/
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 drivers/net/ethernet/mellanox/mlxsw/spectrum.c:46: >> drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.h:159:5: warning: no previous prototype for 'mlxsw_sp_ptp_txhdr_construct' [-Wmissing-prototypes] 159 | int mlxsw_sp_ptp_txhdr_construct(struct mlxsw_core *mlxsw_core, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.h:187:5: warning: no previous prototype for 'mlxsw_sp2_ptp_txhdr_construct' [-Wmissing-prototypes] 187 | int mlxsw_sp2_ptp_txhdr_construct(struct mlxsw_core *mlxsw_core, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/mlxsw_sp_ptp_txhdr_construct +159 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.h
158 > 159 int mlxsw_sp_ptp_txhdr_construct(struct mlxsw_core *mlxsw_core, 160 struct mlxsw_sp_port *mlxsw_sp_port, 161 struct sk_buff *skb, 162 const struct mlxsw_tx_info *tx_info) 163 { 164 return -EOPNOTSUPP; 165 } 166 167 static inline struct mlxsw_sp_ptp_clock * 168 mlxsw_sp2_ptp_clock_init(struct mlxsw_sp *mlxsw_sp, struct device *dev) 169 { 170 return NULL; 171 } 172 173 static inline void mlxsw_sp2_ptp_clock_fini(struct mlxsw_sp_ptp_clock *clock) 174 { 175 } 176 177 static inline struct mlxsw_sp_ptp_state * 178 mlxsw_sp2_ptp_init(struct mlxsw_sp *mlxsw_sp) 179 { 180 return NULL; 181 } 182 183 static inline void mlxsw_sp2_ptp_fini(struct mlxsw_sp_ptp_state *ptp_state) 184 { 185 } 186 > 187 int mlxsw_sp2_ptp_txhdr_construct(struct mlxsw_core *mlxsw_core, 188 struct mlxsw_sp_port *mlxsw_sp_port, 189 struct sk_buff *skb, 190 const struct mlxsw_tx_info *tx_info) 191 { 192 return -EOPNOTSUPP; 193 } 194 #endif 195
-- 0-DAY CI Kernel Test Service https://01.org/lkp
| |