tree:
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-android-linux-4.19.y
head: 95afd2f2a45800fb2c2fb604542f39de072362c6
commit: 76f4d837e0e55a989971bb6c0c2a9909c309b59a [722/9999] net: ethernet: ti: am65-cpsw:
fix sw timestamping for non PTP packets
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.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
git checkout 76f4d837e0e55a989971bb6c0c2a9909c309b59a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/net/ethernet/ti/am65-cpts.c:791:6: warning: no previous prototype for
'am65_cpts_rx_enable' [-Wmissing-prototypes]
791 | void am65_cpts_rx_enable(struct am65_cpts *cpts, bool en)
| ^~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/ti/am65-cpts.c:806:6: warning: no previous prototype for
'am65_cpts_tx_timestamp' [-Wmissing-prototypes]
806 | void am65_cpts_tx_timestamp(struct am65_cpts *cpts, struct sk_buff *skb)
| ^~~~~~~~~~~~~~~~~~~~~~
> drivers/net/ethernet/ti/am65-cpts.c:824:6: warning: no previous
prototype for 'am65_cpts_ask_tx_timestamp' [-Wmissing-prototypes]
824 |
void am65_cpts_ask_tx_timestamp(struct am65_cpts *cpts, struct sk_buff *skb)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/ti/am65-cpts.c:841:5: warning: no previous prototype for
'am65_cpts_phc_index' [-Wmissing-prototypes]
841 | int am65_cpts_phc_index(struct am65_cpts *cpts)
| ^~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/ti/am65-cpts.c:938:19: warning: no previous prototype for
'am65_cpts_create' [-Wmissing-prototypes]
938 | struct am65_cpts *am65_cpts_create(struct device *dev, void __iomem *regs,
| ^~~~~~~~~~~~~~~~
drivers/net/ethernet/ti/am65-cpts.c: In function 'am65_cpts_create':
drivers/net/ethernet/ti/am65-cpts.c:1032:12: warning: cast between incompatible
function types from 'int (*)(struct ptp_clock *)' to 'void (*)(void *)'
[-Wcast-function-type]
1032 | (void(*)(void *))ptp_clock_unregister,
| ^
drivers/net/ethernet/ti/am65-cpts.c:479: warning: Function parameter or member
'cpts' not described in 'am65_cpts_extts_enable_hw'
drivers/net/ethernet/ti/am65-cpts.c:479: warning: Function parameter or member
'index' not described in 'am65_cpts_extts_enable_hw'
drivers/net/ethernet/ti/am65-cpts.c:479: warning: Function parameter or member
'on' not described in 'am65_cpts_extts_enable_hw'
drivers/net/ethernet/ti/am65-cpts.c:519: warning: Function parameter or member
'cpts' not described in 'am65_cpts_perout_enable_hw'
drivers/net/ethernet/ti/am65-cpts.c:519: warning: Function parameter or member
'req' not described in 'am65_cpts_perout_enable_hw'
drivers/net/ethernet/ti/am65-cpts.c:519: warning: Function parameter or member
'on' not described in 'am65_cpts_perout_enable_hw'
vim +/am65_cpts_ask_tx_timestamp +824 drivers/net/ethernet/ti/am65-cpts.c
823
824 void am65_cpts_ask_tx_timestamp(struct am65_cpts *cpts, struct
sk_buff *skb)
825 {
826 struct am65_cpts_skb_cb_data *skb_cb = (void *)skb->cb;
827 unsigned int ptp_class;
828
829 if (!(skb_shinfo(skb)->tx_flags & SKBTX_HW_TSTAMP))
830 return;
831
832 ptp_class = ptp_classify_raw(skb);
833 if (ptp_class == PTP_CLASS_NONE)
834 return;
835
836 skb_shinfo(skb)->tx_flags |= SKBTX_IN_PROGRESS;
837 skb_cb->ptp_class = ptp_class;
838 }
839 EXPORT_SYMBOL_GPL(am65_cpts_ask_tx_timestamp);
840
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org