tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 4ccc9e2db7ac33f450a1ff6ce158a71e5a81ded9 commit: b82f8c3f1409f1c97621e9e4b3a24c627b7651ac [3848/4407] net: fec: add eee mode tx lpi support config: m68k-m5272c3_defconfig (attached as .config) compiler: m68k-linux-gcc (GCC) 10.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 # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=b82f8c3f1409f1c97621e9e4b3a24c627b7651ac git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout b82f8c3f1409f1c97621e9e4b3a24c627b7651ac # save the attached .config to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=m68k SHELL=/bin/bash drivers/net/ethernet/freescale/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from arch/m68k/include/asm/io.h:6, from arch/m68k/include/asm/pgtable_no.h:14, from arch/m68k/include/asm/pgtable.h:3, from include/linux/pgtable.h:6, from include/linux/mm.h:33, from include/linux/pid_namespace.h:7, from include/linux/ptrace.h:10, from drivers/net/ethernet/freescale/fec_main.c:29: drivers/net/ethernet/freescale/fec_main.c: In function 'fec_enet_eee_mode_set': >> drivers/net/ethernet/freescale/fec_main.c:2758:33: error: 'FEC_LPI_SLEEP' undeclared (first use in this function); did you mean 'FEC_ECR_SLEEP'? 2758 | writel(sleep_cycle, fep->hwp + FEC_LPI_SLEEP); | ^~~~~~~~~~~~~ arch/m68k/include/asm/io_no.h:25:66: note: in definition of macro '__raw_writel' 25 | #define __raw_writel(b, addr) (void)((*(__force volatile u32 *) (addr)) = (b)) | ^~~~ drivers/net/ethernet/freescale/fec_main.c:2758:2: note: in expansion of macro 'writel' 2758 | writel(sleep_cycle, fep->hwp + FEC_LPI_SLEEP); | ^~~~~~ drivers/net/ethernet/freescale/fec_main.c:2758:33: note: each undeclared identifier is reported only once for each function it appears in 2758 | writel(sleep_cycle, fep->hwp + FEC_LPI_SLEEP); | ^~~~~~~~~~~~~ arch/m68k/include/asm/io_no.h:25:66: note: in definition of macro '__raw_writel' 25 | #define __raw_writel(b, addr) (void)((*(__force volatile u32 *) (addr)) = (b)) | ^~~~ drivers/net/ethernet/freescale/fec_main.c:2758:2: note: in expansion of macro 'writel' 2758 | writel(sleep_cycle, fep->hwp + FEC_LPI_SLEEP); | ^~~~~~ >> drivers/net/ethernet/freescale/fec_main.c:2759:32: error: 'FEC_LPI_WAKE' undeclared (first use in this function) 2759 | writel(wake_cycle, fep->hwp + FEC_LPI_WAKE); | ^~~~~~~~~~~~ arch/m68k/include/asm/io_no.h:25:66: note: in definition of macro '__raw_writel' 25 | #define __raw_writel(b, addr) (void)((*(__force volatile u32 *) (addr)) = (b)) | ^~~~ drivers/net/ethernet/freescale/fec_main.c:2759:2: note: in expansion of macro 'writel' 2759 | writel(wake_cycle, fep->hwp + FEC_LPI_WAKE); | ^~~~~~ vim +2758 drivers/net/ethernet/freescale/fec_main.c 2734 2735 static int fec_enet_eee_mode_set(struct net_device *ndev, bool enable) 2736 { 2737 struct fec_enet_private *fep = netdev_priv(ndev); 2738 struct ethtool_eee *p = &fep->eee; 2739 unsigned int sleep_cycle, wake_cycle; 2740 int ret = 0; 2741 2742 if (enable) { 2743 ret = phy_init_eee(ndev->phydev, 0); 2744 if (ret) 2745 return ret; 2746 2747 sleep_cycle = fec_enet_us_to_tx_cycle(ndev, p->tx_lpi_timer); 2748 wake_cycle = sleep_cycle; 2749 } else { 2750 sleep_cycle = 0; 2751 wake_cycle = 0; 2752 } 2753 2754 p->tx_lpi_enabled = enable; 2755 p->eee_enabled = enable; 2756 p->eee_active = enable; 2757 > 2758 writel(sleep_cycle, fep->hwp + FEC_LPI_SLEEP); > 2759 writel(wake_cycle, fep->hwp + FEC_LPI_WAKE); 2760 2761 return 0; 2762 } 2763 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org