Joakim Zhang
e08d6d42b6
net: fec: fix build error for ARCH m68k
...
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
make.cross ARCH=m68k m5272c3_defconfig
make.cross ARCH=m68k
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);
| ^~~~~~
This patch adds register definition for M5272 platform to pass build.
Fixes: b82f8c3f1409 ("net: fec: add eee mode tx lpi support")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-08-09 10:59:46 +01:00
..
2021-07-05 14:08:24 -07:00
2021-07-30 20:26:38 +02:00
2021-07-30 10:56:47 -07:00
2021-08-08 12:58:42 +01:00
2021-07-21 17:28:42 +02:00
2021-07-30 11:08:12 -07:00
2021-07-05 14:08:24 -07:00
2021-08-05 15:08:47 -07:00
2021-06-30 15:34:19 -06:00
2021-07-27 20:11:45 +01:00
2021-08-03 09:26:09 -07:00
2021-07-01 13:26:16 -07:00
2021-07-05 14:01:53 -07:00
2021-06-13 17:00:18 +01:00
2021-07-13 11:53:07 -05:00
2021-06-30 14:56:51 +02:00
2021-07-10 09:22:44 -07:00
2021-06-17 17:37:18 -07:00
2021-06-29 10:53:48 -07:00
2021-06-24 10:37:35 +09:00
2021-07-14 11:05:55 -05:00
2021-07-13 15:15:17 +02:00
2021-07-15 11:59:59 -07:00
2021-07-05 13:42:16 -07:00
2021-07-05 13:42:16 -07:00
2021-07-25 10:04:27 -07:00
2021-06-24 15:45:11 +02:00
2021-08-02 17:17:27 +02:00
2021-07-29 17:20:29 +10:00
2021-07-29 12:38:32 +02:00
2021-07-19 09:26:31 +00:00
2021-07-05 13:42:16 -07:00
2021-07-05 13:42:16 -07:00
2021-07-20 22:32:01 +02:00
2021-07-10 11:53:06 -07:00
2021-07-05 14:01:53 -07:00
2021-07-31 09:14:46 -07:00
2021-07-09 10:19:13 -07:00
2021-06-22 22:03:25 +02:00
2021-07-15 13:57:31 -07:00
2021-07-05 14:08:24 -07:00
2021-07-09 15:35:13 +02:00
2021-07-05 14:08:24 -07:00
2021-07-03 11:57:42 -07:00
2021-06-26 12:06:48 -05:00
2021-06-24 15:56:25 +02:00
2021-06-30 18:19:39 -07:00
2021-08-03 09:33:05 -07:00
2021-06-16 17:36:30 -07:00
2021-06-30 12:12:56 -07:00
2021-06-22 23:00:01 -04:00
2021-07-05 13:51:41 -07:00
2021-07-20 22:28:56 +02:00
2021-07-22 09:51:38 -07:00
2021-07-12 11:15:28 -05:00
2021-08-09 10:59:46 +01:00
2021-07-31 09:14:46 -07:00
2021-07-04 11:55:13 -07:00
2021-07-24 12:57:06 -07:00
2021-07-05 13:42:16 -07:00
2021-07-03 10:54:08 -07:00
2021-06-18 09:00:55 +05:30
2021-07-01 11:06:04 -07:00
2021-07-13 13:59:12 -05:00
2021-07-23 08:08:54 +02:00
2021-06-17 19:45:24 +01:00
2021-07-05 14:16:22 -07:00
2021-07-01 16:57:14 -07:00
2021-07-28 12:05:33 +02:00
2021-07-05 13:42:16 -07:00
2021-07-13 14:50:47 -05:00
2021-08-09 10:21:40 +01:00
2021-07-08 16:09:30 +02:00
2021-07-21 12:37:49 -07:00
2021-07-07 10:50:03 -07:00
2021-07-10 09:46:20 -07:00
2021-06-18 13:13:40 -07:00
2021-07-10 16:19:10 -07:00
2021-08-07 09:44:02 +01:00
2021-08-04 12:41:30 -07:00
2021-06-24 15:46:34 +02:00
2021-07-10 09:46:20 -07:00
2021-07-05 13:42:16 -07:00
2021-07-21 12:41:41 -07:00
2021-06-25 10:02:05 +02:00
2021-06-15 13:11:56 +03:00
2021-08-09 10:21:40 +01:00
2021-07-20 23:18:22 -04:00
2021-06-28 20:03:38 -07:00
2021-07-10 11:43:25 -07:00
2021-07-05 14:16:22 -07:00
2021-07-27 20:11:45 +01:00
2021-07-23 10:09:27 -07:00
2021-07-08 07:49:02 -04:00
2021-07-03 11:49:33 -07:00
2021-07-08 07:49:01 -04:00
2021-07-16 11:14:54 -07:00
2021-06-24 15:48:27 +02:00
2021-07-09 11:06:29 -07:00
2021-07-07 12:57:46 -07:00
2021-07-07 11:07:13 -07:00
2021-06-16 08:53:58 -06:00
2021-06-29 11:21:35 -07:00