mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-11 21:14:07 +08:00
299e6f788e
We need to include linux/io-64-nonatomic-lo-hi.h or readq/writeq won't
be defined when compiling on 32bit architectures:
On i386:
../drivers/reset/reset-starfive-jh7100.c: In function ‘jh7100_reset_update’:
../drivers/reset/reset-starfive-jh7100.c:81:10: error: implicit declaration of function ‘readq’; did you mean ‘readl’? [-Werror=implicit-function-declaration]
value = readq(reg_assert);
^~~~~
../drivers/reset/reset-starfive-jh7100.c:86:2: error: implicit declaration of function ‘writeq’; did you mean ‘writel’? [-Werror=implicit-function-declaration]
writeq(value, reg_assert);
^~~~~~
On m68k:
drivers/reset/reset-starfive-jh7100.c:81:17: error: implicit declaration of function 'readq'; did you mean 'readb'? [-Werror=implicit-function-declaration]
drivers/reset/reset-starfive-jh7100.c:86:9: error: implicit declaration of function 'writeq'; did you mean 'writel'? [-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors
make[3]: *** [scripts/Makefile.build:289: drivers/reset/reset-starfive-jh7100.o] Error 1
make[2]: *** [scripts/Makefile.build:572: drivers/reset] Error 2
make[1]: *** [Makefile:1969: drivers] Error 2
make: *** [Makefile:226: __sub-make] Error 2
Fixes:
|
||
---|---|---|
.. | ||
hisilicon | ||
sti | ||
tegra | ||
core.c | ||
Kconfig | ||
Makefile | ||
reset-a10sr.c | ||
reset-ath79.c | ||
reset-axs10x.c | ||
reset-bcm6345.c | ||
reset-berlin.c | ||
reset-brcmstb-rescal.c | ||
reset-brcmstb.c | ||
reset-hsdk.c | ||
reset-imx7.c | ||
reset-intel-gw.c | ||
reset-k210.c | ||
reset-lantiq.c | ||
reset-lpc18xx.c | ||
reset-meson-audio-arb.c | ||
reset-meson.c | ||
reset-microchip-sparx5.c | ||
reset-npcm.c | ||
reset-oxnas.c | ||
reset-pistachio.c | ||
reset-qcom-aoss.c | ||
reset-qcom-pdc.c | ||
reset-raspberrypi.c | ||
reset-rzg2l-usbphy-ctrl.c | ||
reset-scmi.c | ||
reset-simple.c | ||
reset-socfpga.c | ||
reset-starfive-jh7100.c | ||
reset-sunxi.c | ||
reset-ti-sci.c | ||
reset-ti-syscon.c | ||
reset-uniphier-glue.c | ||
reset-uniphier.c | ||
reset-zynq.c | ||
reset-zynqmp.c |