tree:
https://github.com/intel/linux-intel-lts.git 5.10/preempt-rt
head: 92cafac7cc9c1af94b9b5b61e35fbbd39d4f5854
commit: 26a890b883303c93193cca69d5a096f550f93c6d [9797/17820] igc: Add support for DMA
timestamp for non-PTP packets
config: powerpc-randconfig-c003-20211021 (attached as .config)
compiler: clang version 14.0.0 (
https://github.com/llvm/llvm-project
3cea2505fd8d99a9ba0cb625aecfe28a47c4e3f8)
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 powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
#
https://github.com/intel/linux-intel-lts/commit/26a890b883303c93193cca69d...
git remote add intel-lts
https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-lts 5.10/preempt-rt
git checkout 26a890b883303c93193cca69d5a096f550f93c6d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=powerpc
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 >>):
In file included from drivers/net/ethernet/intel/igc/igc_ptp.c:4:
In file included from drivers/net/ethernet/intel/igc/igc.h:7:
In file included from include/linux/kobject.h:19:
In file included from include/linux/list.h:9:
In file included from include/linux/kernel.h:12:
In file included from include/linux/bitops.h:29:
In file included from arch/powerpc/include/asm/bitops.h:62:
arch/powerpc/include/asm/barrier.h:49:9: warning: '__lwsync' macro redefined
[-Wmacro-redefined]
#define __lwsync() __asm__ __volatile__ (stringify_in_c(LWSYNC) : :
:"memory")
^
<built-in>:310:9: note: previous definition is here
#define __lwsync __builtin_ppc_lwsync
^
> drivers/net/ethernet/intel/igc/igc_ptp.c:438:11: warning:
variable 'nsec' set but not used [-Wunused-but-set-variable]
u32
sec, nsec;
^
2 warnings generated.
vim +/nsec +438 drivers/net/ethernet/intel/igc/igc_ptp.c
432
433 static void igc_ptp_dma_time_to_hwtstamp(struct igc_adapter *adapter,
434 struct skb_shared_hwtstamps *hwtstamps,
435 u64 systim)
436 {
437 struct igc_hw *hw = &adapter->hw;
438 u32 sec, nsec;
439
440 /* FIXME: use a workqueue to read these values to avoid
441 * reading these registers in the hot path.
442 */
443 nsec = rd32(IGC_SYSTIML);
444 sec = rd32(IGC_SYSTIMH);
445
446 switch (adapter->hw.mac.type) {
447 case igc_i225:
448 memset(hwtstamps, 0, sizeof(*hwtstamps));
449
450 /* HACK */
451 hwtstamps->hwtstamp = ktime_set(sec, systim & 0xFFFFFFFF);
452 break;
453 default:
454 break;
455 }
456 }
457
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org