diff --git a/arch/arc/include/asm/arcregs.h b/arch/arc/include/asm/arcregs.h index 516c14e105b1d90c3702a9382e8185b7a2258316..a9f54f61e0cc7c4acc35d8ee7f8cd5c7b176a7a5 100644 --- a/arch/arc/include/asm/arcregs.h +++ b/arch/arc/include/asm/arcregs.h @@ -109,6 +109,8 @@ #define ARC_AUX_SUBSYS_BUILD 0xF0 #ifndef __ASSEMBLY__ +#include <linux/bitops.h> + /* Accessors for auxiliary registers */ #define read_aux_reg(reg) __builtin_arc_lr(reg) diff --git a/arch/arc/lib/cache.c b/arch/arc/lib/cache.c index 8a1d67870a82d629b7e51fda124ee632ef917145..85651b219cf8eee8f5808f5d33a1f1d673282893 100644 --- a/arch/arc/lib/cache.c +++ b/arch/arc/lib/cache.c @@ -6,6 +6,7 @@ #include <config.h> #include <common.h> #include <cpu_func.h> +#include <linux/bitops.h> #include <linux/compiler.h> #include <linux/kernel.h> #include <linux/log2.h> diff --git a/arch/arc/lib/cpu.c b/arch/arc/lib/cpu.c index f032f3e2f2a6595bce7d2bd135f8b6c72fb2fd35..27b5832a0c9652adab69cabf97d57c034e9e5869 100644 --- a/arch/arc/lib/cpu.c +++ b/arch/arc/lib/cpu.c @@ -9,6 +9,7 @@ #include <vsprintf.h> #include <asm/arcregs.h> #include <asm/cache.h> +#include <linux/bitops.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/arm/cpu/armv7/mpu_v7r.c b/arch/arm/cpu/armv7/mpu_v7r.c index 6deecfdc23899fd7dae955f13bd8c3c466b61d03..57ab640e26331b21dc96abd91d5726663a28757a 100644 --- a/arch/arm/cpu/armv7/mpu_v7r.c +++ b/arch/arm/cpu/armv7/mpu_v7r.c @@ -12,6 +12,7 @@ #include <asm/armv7.h> #include <asm/system.h> #include <asm/barriers.h> +#include <linux/bitops.h> #include <linux/compiler.h> #include <asm/armv7_mpu.h> diff --git a/arch/arm/cpu/armv7m/cache.c b/arch/arm/cpu/armv7m/cache.c index 72fc34db1c6e5b317487376d6c1fa3bfd4c66266..d1aecf6a85cfdfebf48c832f65c0952a971e8860 100644 --- a/arch/arm/cpu/armv7m/cache.c +++ b/arch/arm/cpu/armv7m/cache.c @@ -11,6 +11,7 @@ #include <asm/armv7m.h> #include <asm/cache.h> #include <asm/io.h> +#include <linux/bitops.h> /* Cache maintenance operation registers */ diff --git a/arch/arm/cpu/armv7m/systick-timer.c b/arch/arm/cpu/armv7m/systick-timer.c index dbe1b61977235ce4200be1e76195753750525e4c..d2672fd40cdb9157007b98c3132c72387fe776de 100644 --- a/arch/arm/cpu/armv7m/systick-timer.c +++ b/arch/arm/cpu/armv7m/systick-timer.c @@ -25,6 +25,7 @@ #include <init.h> #include <time.h> #include <asm/io.h> +#include <linux/bitops.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_serdes.c b/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_serdes.c index 3f1da436142a1639a8ee63f66592f9f6f1113750..aa6fd6b28ce1627c7169f1381e31ed22c5d314cc 100644 --- a/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_serdes.c +++ b/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_serdes.c @@ -8,6 +8,7 @@ #include <env.h> #include <log.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/errno.h> #include <asm/arch/fsl_serdes.h> diff --git a/arch/arm/cpu/armv8/generic_timer.c b/arch/arm/cpu/armv8/generic_timer.c index 6fe3ede387b7b28655688e216ccafe3f2abcf58f..e23629ab0bc3eb2c70f09eb996d0f9ac728848e7 100644 --- a/arch/arm/cpu/armv8/generic_timer.c +++ b/arch/arm/cpu/armv8/generic_timer.c @@ -9,6 +9,7 @@ #include <command.h> #include <time.h> #include <asm/system.h> +#include <linux/bitops.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/arm/cpu/armv8/hisilicon/pinmux.c b/arch/arm/cpu/armv8/hisilicon/pinmux.c index 6b6ad0203161562c39efd3ff8afe8e60ceb9dd83..5183e00a44cb14ee635294c89194d0a69280fbc0 100644 --- a/arch/arm/cpu/armv8/hisilicon/pinmux.c +++ b/arch/arm/cpu/armv8/hisilicon/pinmux.c @@ -10,6 +10,7 @@ #include <asm/gpio.h> #include <asm/io.h> #include <asm/arch/pinmux.h> +#include <linux/bitops.h> struct hi6220_pinmux0_regs *pmx0 = (struct hi6220_pinmux0_regs *)HI6220_PINMUX0_BASE; diff --git a/arch/arm/cpu/armv8/s32v234/cpu.c b/arch/arm/cpu/armv8/s32v234/cpu.c index 5394a6697e921141084f01633cc3a33fa65171b4..8ee3adc8058491a4ca1bda0057b1feef0f5a104a 100644 --- a/arch/arm/cpu/armv8/s32v234/cpu.c +++ b/arch/arm/cpu/armv8/s32v234/cpu.c @@ -12,6 +12,7 @@ #include <asm/armv8/mmu.h> #include <asm/io.h> #include <asm/arch/mc_me_regs.h> +#include <linux/bitops.h> #include "cpu.h" u32 cpu_mask(void) diff --git a/arch/arm/include/asm/arch-am33xx/cpu.h b/arch/arm/include/asm/arch-am33xx/cpu.h index 9b819b0a1cd6061c8d37213d29355ea15f1696ea..79081de700b486f43f172d85b536fd3200b6f854 100644 --- a/arch/arm/include/asm/arch-am33xx/cpu.h +++ b/arch/arm/include/asm/arch-am33xx/cpu.h @@ -12,6 +12,7 @@ #if !(defined(__KERNEL_STRICT_NAMES) || defined(__ASSEMBLY__)) #include <asm/types.h> +#include <linux/bitops.h> #endif /* !(__KERNEL_STRICT_NAMES || __ASSEMBLY__) */ #include <asm/arch/hardware.h> diff --git a/arch/arm/include/asm/arch-am33xx/hardware_am43xx.h b/arch/arm/include/asm/arch-am33xx/hardware_am43xx.h index 64809d5deb5b4025c0bc0b42a410296ab18ace3c..0b73ebdbb4da032ac6debedc9dec768bf6ec0760 100644 --- a/arch/arm/include/asm/arch-am33xx/hardware_am43xx.h +++ b/arch/arm/include/asm/arch-am33xx/hardware_am43xx.h @@ -10,6 +10,10 @@ #ifndef __AM43XX_HARDWARE_AM43XX_H #define __AM43XX_HARDWARE_AM43XX_H +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + /* Module base addresses */ /* L3 Fast Configuration Bandwidth Limiter Base Address */ diff --git a/arch/arm/include/asm/arch-fsl-layerscape/config.h b/arch/arm/include/asm/arch-fsl-layerscape/config.h index ddd9390df4c3d414d4e2415af63c0cef254e5131..908d86002794f75dd7d8655521f1b4663224ce25 100644 --- a/arch/arm/include/asm/arch-fsl-layerscape/config.h +++ b/arch/arm/include/asm/arch-fsl-layerscape/config.h @@ -10,6 +10,10 @@ #include <linux/kconfig.h> #include <fsl_ddrc_version.h> +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + #define CONFIG_STANDALONE_LOAD_ADDR 0x80300000 /* diff --git a/arch/arm/include/asm/arch-fsl-layerscape/immap_lsch2.h b/arch/arm/include/asm/arch-fsl-layerscape/immap_lsch2.h index 862ec2e2f1f6880e843d55e574195a9a396dcc3a..c9be0768e34fb1b154ac2ba530518fef20e3320e 100644 --- a/arch/arm/include/asm/arch-fsl-layerscape/immap_lsch2.h +++ b/arch/arm/include/asm/arch-fsl-layerscape/immap_lsch2.h @@ -7,6 +7,9 @@ #define __ARCH_FSL_LSCH2_IMMAP_H__ #include <fsl_immap.h> +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif #define CONFIG_SYS_IMMR 0x01000000 #define CONFIG_SYS_DCSRBAR 0x20000000 diff --git a/arch/arm/include/asm/arch-hi3660/hi3660.h b/arch/arm/include/asm/arch-hi3660/hi3660.h index 3ca0951543b632e7b8a7313290ef085a78fe36ff..882262d13cf4500e62669281ce34f04af7993140 100644 --- a/arch/arm/include/asm/arch-hi3660/hi3660.h +++ b/arch/arm/include/asm/arch-hi3660/hi3660.h @@ -7,6 +7,10 @@ #ifndef __HI3660_H__ #define __HI3660_H__ +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + #define HI3660_UART6_BASE 0xfff32000 #define PMU_REG_BASE 0xfff34000 diff --git a/arch/arm/include/asm/arch-imx8/iomux.h b/arch/arm/include/asm/arch-imx8/iomux.h index bedd01bfd8581a815b94e012a1705f392cce3224..3acef1ea6bad006e5ee468c0b94db90d06111a42 100644 --- a/arch/arm/include/asm/arch-imx8/iomux.h +++ b/arch/arm/include/asm/arch-imx8/iomux.h @@ -6,6 +6,10 @@ #ifndef __ASM_ARCH_IMX8_IOMUX_H__ #define __ASM_ARCH_IMX8_IOMUX_H__ +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + /* * We use 64bits value for iomux settings. * High 32bits are used for padring register value, diff --git a/arch/arm/include/asm/arch-imx8m/clock_imx8mm.h b/arch/arm/include/asm/arch-imx8m/clock_imx8mm.h index 140e8bbabd7b7252cd00884f75c381e6aad5bea7..63b14b9ca58f44808e0da602a39b66c983c4aa34 100644 --- a/arch/arm/include/asm/arch-imx8m/clock_imx8mm.h +++ b/arch/arm/include/asm/arch-imx8m/clock_imx8mm.h @@ -8,6 +8,10 @@ #ifndef _ASM_ARCH_IMX8MM_CLOCK_H #define _ASM_ARCH_IMX8MM_CLOCK_H +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + #define PLL_1443X_RATE(_rate, _m, _p, _s, _k) \ { \ .rate = (_rate), \ diff --git a/arch/arm/include/asm/arch-imx8m/clock_imx8mq.h b/arch/arm/include/asm/arch-imx8m/clock_imx8mq.h index 9dda6ddc8cdf877852de15e78e3952aceccece05..742cbf3bf80d1ce9f4c1c227f2ef624f79c02b16 100644 --- a/arch/arm/include/asm/arch-imx8m/clock_imx8mq.h +++ b/arch/arm/include/asm/arch-imx8m/clock_imx8mq.h @@ -8,6 +8,10 @@ #ifndef _ASM_ARCH_IMX8M_CLOCK_H #define _ASM_ARCH_IMX8M_CLOCK_H +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + enum pll_clocks { ANATOP_ARM_PLL, ANATOP_GPU_PLL, diff --git a/arch/arm/include/asm/arch-meson/axg.h b/arch/arm/include/asm/arch-meson/axg.h index d293f2a8391e57d0da24f4856cc7d7e1bff9f7c9..91c87696e0375087f3e7fa3aa9c24f63b297b2c6 100644 --- a/arch/arm/include/asm/arch-meson/axg.h +++ b/arch/arm/include/asm/arch-meson/axg.h @@ -7,6 +7,10 @@ #ifndef __AXG_H__ #define __AXG_H__ +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + #define AXG_AOBUS_BASE 0xff800000 #define AXG_PERIPHS_BASE 0xff634400 #define AXG_HIU_BASE 0xff63c000 diff --git a/arch/arm/include/asm/arch-meson/g12a.h b/arch/arm/include/asm/arch-meson/g12a.h index b80666786018ae70b6b7bb8bfbde565a2b393ff4..db29cc3a00f2244c0d5481042198ab784d548736 100644 --- a/arch/arm/include/asm/arch-meson/g12a.h +++ b/arch/arm/include/asm/arch-meson/g12a.h @@ -7,6 +7,10 @@ #ifndef __G12A_H__ #define __G12A_H__ +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + #define G12A_AOBUS_BASE 0xff800000 #define G12A_PERIPHS_BASE 0xff634400 #define G12A_HIU_BASE 0xff63c000 diff --git a/arch/arm/include/asm/arch-meson/gx.h b/arch/arm/include/asm/arch-meson/gx.h index b781ba9475ba9b40486b29b420e6a99aabf2233b..743d2e8bb97b807ba7015d139e4bf202dfc80e57 100644 --- a/arch/arm/include/asm/arch-meson/gx.h +++ b/arch/arm/include/asm/arch-meson/gx.h @@ -6,6 +6,10 @@ #ifndef __GX_H__ #define __GX_H__ +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + #define GX_FIRMWARE_MEM_SIZE 0x1000000 #define GX_AOBUS_BASE 0xc8100000 diff --git a/arch/arm/include/asm/arch-meson/sd_emmc.h b/arch/arm/include/asm/arch-meson/sd_emmc.h index e3a72c8b66d4883a7b5729ab821f8a29a394f112..1e9f8cf498b46a9e9fbf165dce41423a988b7a2b 100644 --- a/arch/arm/include/asm/arch-meson/sd_emmc.h +++ b/arch/arm/include/asm/arch-meson/sd_emmc.h @@ -7,6 +7,10 @@ #define __SD_EMMC_H__ #include <mmc.h> +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + #define SDIO_PORT_A 0 #define SDIO_PORT_B 1 diff --git a/arch/arm/include/asm/arch-mx6/imx-regs.h b/arch/arm/include/asm/arch-mx6/imx-regs.h index 5b41a7a4b8b13d696e77907fbcdc7a040aac8816..ccd48e83055cf39730cf39ef375e50fb1c31d419 100644 --- a/arch/arm/include/asm/arch-mx6/imx-regs.h +++ b/arch/arm/include/asm/arch-mx6/imx-regs.h @@ -372,6 +372,7 @@ #include <asm/mach-imx/regs-lcdif.h> #if !(defined(__KERNEL_STRICT_NAMES) || defined(__ASSEMBLY__)) #include <asm/types.h> +#include <linux/bitops.h> /* only for i.MX6SX/UL */ #define WDOG3_BASE_ADDR (((is_mx6ul() || is_mx6ull()) ? \ diff --git a/arch/arm/include/asm/arch-mx7/imx-regs.h b/arch/arm/include/asm/arch-mx7/imx-regs.h index 7b23abbc7ebefe6f121810819b52f1656cadc0ac..95238dcaa84c445869a510d96ce971578cc454b4 100644 --- a/arch/arm/include/asm/arch-mx7/imx-regs.h +++ b/arch/arm/include/asm/arch-mx7/imx-regs.h @@ -225,6 +225,7 @@ #if !(defined(__KERNEL_STRICT_NAMES) || defined(__ASSEMBLY__)) #include <asm/mach-imx/regs-lcdif.h> #include <asm/types.h> +#include <linux/bitops.h> extern void imx_get_mac_from_fuse(int dev_id, unsigned char *mac); diff --git a/arch/arm/include/asm/arch-mx7/mx7-ddr.h b/arch/arm/include/asm/arch-mx7/mx7-ddr.h index 3c0790487e108dadea81fe69b631cc3cf86aec44..37aaee0ad79166fd4d9621222eb5321ab61c87ef 100644 --- a/arch/arm/include/asm/arch-mx7/mx7-ddr.h +++ b/arch/arm/include/asm/arch-mx7/mx7-ddr.h @@ -10,6 +10,10 @@ #ifndef __ASM_ARCH_MX7_DDR_H__ #define __ASM_ARCH_MX7_DDR_H__ +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + /* DDRC Registers (DDRC_IPS_BASE_ADDR) */ struct ddrc { u32 mstr; /* 0x0000 */ diff --git a/arch/arm/include/asm/arch-rockchip/cru.h b/arch/arm/include/asm/arch-rockchip/cru.h index 5cf2aec11a7cbe45f26f21b59198428f39feffc0..5eb17f9d55467fd784e43e4fbfed8ec4a69bdbd8 100644 --- a/arch/arm/include/asm/arch-rockchip/cru.h +++ b/arch/arm/include/asm/arch-rockchip/cru.h @@ -7,6 +7,10 @@ #ifndef _ROCKCHIP_CLOCK_H #define _ROCKCHIP_CLOCK_H +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + #if defined(CONFIG_ROCKCHIP_RK3288) # include <asm/arch-rockchip/cru_rk3288.h> #elif defined(CONFIG_ROCKCHIP_RK3399) diff --git a/arch/arm/include/asm/arch-rockchip/cru_rk3128.h b/arch/arm/include/asm/arch-rockchip/cru_rk3128.h index 40a5ca7390e36d53f75539204aacb8efdb988987..cca812d29e40728dfa8e29b841f4272b95f9e66b 100644 --- a/arch/arm/include/asm/arch-rockchip/cru_rk3128.h +++ b/arch/arm/include/asm/arch-rockchip/cru_rk3128.h @@ -6,6 +6,10 @@ #ifndef _ASM_ARCH_CRU_RK3128_H #define _ASM_ARCH_CRU_RK3128_H +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + #define MHz 1000000 #define OSC_HZ (24 * MHz) diff --git a/arch/arm/include/asm/arch-rockchip/cru_rk3368.h b/arch/arm/include/asm/arch-rockchip/cru_rk3368.h index 714cea85b4b9e4731e20bfc91b383743bc73b795..316c67c62f9d29efe7afe7695130951bea75abc8 100644 --- a/arch/arm/include/asm/arch-rockchip/cru_rk3368.h +++ b/arch/arm/include/asm/arch-rockchip/cru_rk3368.h @@ -6,6 +6,10 @@ #ifndef _ASM_ARCH_CRU_RK3368_H #define _ASM_ARCH_CRU_RK3368_H +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + /* RK3368 clock numbers */ enum rk3368_pll_id { APLLB, diff --git a/arch/arm/include/asm/arch-rockchip/cru_rv1108.h b/arch/arm/include/asm/arch-rockchip/cru_rv1108.h index 1db25afe264b3d1dea821f5b36fb8ebad8922285..0ba5ff6a04f265da9ab46d9aaf6fa865b05aee26 100644 --- a/arch/arm/include/asm/arch-rockchip/cru_rv1108.h +++ b/arch/arm/include/asm/arch-rockchip/cru_rv1108.h @@ -6,6 +6,10 @@ #ifndef _ASM_ARCH_CRU_RV1108_H #define _ASM_ARCH_CRU_RV1108_H +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + #define OSC_HZ (24 * 1000 * 1000) #define APLL_HZ (600 * 1000000) diff --git a/arch/arm/include/asm/arch-rockchip/ddr_rk3368.h b/arch/arm/include/asm/arch-rockchip/ddr_rk3368.h index 82234cf8ad6b4706625c350daadb716932d51d1f..40cdcf4a45a0c1f5b5974aa0471e80275ab1478b 100644 --- a/arch/arm/include/asm/arch-rockchip/ddr_rk3368.h +++ b/arch/arm/include/asm/arch-rockchip/ddr_rk3368.h @@ -6,6 +6,10 @@ #ifndef __ASM_ARCH_DDR_RK3368_H__ #define __ASM_ARCH_DDR_RK3368_H__ +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + /* * The RK3368 DDR PCTL differs from the incarnation in the RK3288 only * in a few details. Most notably, it has an additional field to track diff --git a/arch/arm/include/asm/arch-rockchip/grf_rk3368.h b/arch/arm/include/asm/arch-rockchip/grf_rk3368.h index 45e882b3c96cb7866937832122e0c0cbb9acad8d..0079d20078049816c8e9addee49598da885b29dc 100644 --- a/arch/arm/include/asm/arch-rockchip/grf_rk3368.h +++ b/arch/arm/include/asm/arch-rockchip/grf_rk3368.h @@ -6,6 +6,10 @@ #ifndef _ASM_ARCH_GRF_RK3368_H #define _ASM_ARCH_GRF_RK3368_H +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + struct rk3368_grf { u32 gpio1a_iomux; u32 gpio1b_iomux; diff --git a/arch/arm/include/asm/arch-rockchip/lvds_rk3288.h b/arch/arm/include/asm/arch-rockchip/lvds_rk3288.h index 0f00df6bf5279f042af9d491f6c9ae0a312879d4..fb25504b12bf88d4e29c2d6cbb9e353e3abe7bde 100644 --- a/arch/arm/include/asm/arch-rockchip/lvds_rk3288.h +++ b/arch/arm/include/asm/arch-rockchip/lvds_rk3288.h @@ -6,6 +6,10 @@ #ifndef _ASM_ARCH_LVDS_RK3288_H #define _ASM_ARCH_LVDS_RK3288_H +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + #define RK3288_LVDS_CH0_REG0 0x00 #define RK3288_LVDS_CH0_REG0_LVDS_EN BIT(7) #define RK3288_LVDS_CH0_REG0_TTL_EN BIT(6) diff --git a/arch/arm/include/asm/arch-rockchip/sdram_pctl_px30.h b/arch/arm/include/asm/arch-rockchip/sdram_pctl_px30.h index 97818817389e3448e29c30ac8c472d6f728900dd..3a3657789f6b76c8ecb0edad243bf9fe6baa88ba 100644 --- a/arch/arm/include/asm/arch-rockchip/sdram_pctl_px30.h +++ b/arch/arm/include/asm/arch-rockchip/sdram_pctl_px30.h @@ -7,6 +7,10 @@ #define _ASM_ARCH_SDRAM_PCTL_PX30_H #include <asm/arch-rockchip/sdram_common.h> +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + struct ddr_pctl_regs { u32 pctl[30][2]; }; diff --git a/arch/arm/include/asm/arch-rockchip/sdram_phy_px30.h b/arch/arm/include/asm/arch-rockchip/sdram_phy_px30.h index c75a633c919ebb3147ea78925a4b65c4d1f18653..a033a1853882427df310171037d4dc79391a4a01 100644 --- a/arch/arm/include/asm/arch-rockchip/sdram_phy_px30.h +++ b/arch/arm/include/asm/arch-rockchip/sdram_phy_px30.h @@ -8,6 +8,10 @@ #include <asm/arch-rockchip/sdram_common.h> #include <asm/arch-rockchip/sdram_phy_ron_rtt_px30.h> +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + struct ddr_phy_regs { u32 phy[5][2]; }; diff --git a/arch/arm/include/asm/arch-rockchip/sdram_rk322x.h b/arch/arm/include/asm/arch-rockchip/sdram_rk322x.h index 99942e6aac23945653da556e89e3553b33ed762b..6f6c5c9954fb6a6e0ac4f96d08cd0d3098a8d930 100644 --- a/arch/arm/include/asm/arch-rockchip/sdram_rk322x.h +++ b/arch/arm/include/asm/arch-rockchip/sdram_rk322x.h @@ -5,6 +5,10 @@ #ifndef _ASM_ARCH_SDRAM_RK322X_H #define _ASM_ARCH_SDRAM_RK322X_H +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + struct rk322x_sdram_channel { /* * bit width in address, eg: diff --git a/arch/arm/include/asm/arch-rockchip/sdram_rk3399.h b/arch/arm/include/asm/arch-rockchip/sdram_rk3399.h index 267649fda4cb6fc82b280c024319edc9f8cb568d..c76372ee826a9b29cd017d3053ec11a15a76bf95 100644 --- a/arch/arm/include/asm/arch-rockchip/sdram_rk3399.h +++ b/arch/arm/include/asm/arch-rockchip/sdram_rk3399.h @@ -7,6 +7,9 @@ #define _ASM_ARCH_SDRAM_RK3399_H #include <asm/arch-rockchip/sdram_common.h> #include <asm/arch-rockchip/sdram_msch.h> +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif struct rk3399_ddr_pctl_regs { u32 denali_ctl[332]; diff --git a/arch/arm/include/asm/arch-stih410/sdhci.h b/arch/arm/include/asm/arch-stih410/sdhci.h index 105d3580ef19aeee88904b72b902ec85e7e38855..d5557b89fcbc483fb202f209310ac991faad720c 100644 --- a/arch/arm/include/asm/arch-stih410/sdhci.h +++ b/arch/arm/include/asm/arch-stih410/sdhci.h @@ -7,6 +7,10 @@ #ifndef __STI_SDHCI_H__ #define __STI_SDHCI_H__ +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + #define FLASHSS_MMC_CORE_CONFIG_1 0x400 #define FLASHSS_MMC_CORECFG_TIMEOUT_CLK_UNIT_MHZ BIT(24) #define FLASHSS_MMC_CORECFG_TIMEOUT_CLK_FREQ_MIN BIT(12) diff --git a/arch/arm/include/asm/arch-stm32f4/stm32_pwr.h b/arch/arm/include/asm/arch-stm32f4/stm32_pwr.h index de42996037d4728a229eaea5a825de41ec4513be..8af6de220d8b0aac634ed7e6ede643fb096d2e76 100644 --- a/arch/arm/include/asm/arch-stm32f4/stm32_pwr.h +++ b/arch/arm/include/asm/arch-stm32f4/stm32_pwr.h @@ -5,6 +5,11 @@ */ #ifndef __STM32_PWR_H_ +#define __STM32_PWR_H_ + +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif /* * Offsets of some PWR registers diff --git a/arch/arm/include/asm/arch-stm32f7/stm32_pwr.h b/arch/arm/include/asm/arch-stm32f7/stm32_pwr.h index c93fc5a7e30456af04aa2173359332ee6e399f74..02faaeb663cdb260ab143024dfdc982844a67964 100644 --- a/arch/arm/include/asm/arch-stm32f7/stm32_pwr.h +++ b/arch/arm/include/asm/arch-stm32f7/stm32_pwr.h @@ -5,6 +5,11 @@ */ #ifndef __STM32_PWR_H_ +#define __STM32_PWR_H_ + +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif /* * Offsets of some PWR registers diff --git a/arch/arm/include/asm/arch-stm32f7/syscfg.h b/arch/arm/include/asm/arch-stm32f7/syscfg.h index ce2a952f787b652624f9e32b2adc73df2b121b23..985ae2544deb188d58dac3f8113c925c128dddb5 100644 --- a/arch/arm/include/asm/arch-stm32f7/syscfg.h +++ b/arch/arm/include/asm/arch-stm32f7/syscfg.h @@ -7,6 +7,10 @@ #ifndef _STM32_SYSCFG_H #define _STM32_SYSCFG_H +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + struct stm32_syscfg_regs { u32 memrmp; u32 pmc; diff --git a/arch/arm/include/asm/arch-sunxi/ccu.h b/arch/arm/include/asm/arch-sunxi/ccu.h index 5dd97ab227303d6b340196f9c8681f70616e7507..cac5c5faf05641f775c72288d6dffa1803ec632c 100644 --- a/arch/arm/include/asm/arch-sunxi/ccu.h +++ b/arch/arm/include/asm/arch-sunxi/ccu.h @@ -7,6 +7,10 @@ #ifndef _ASM_ARCH_CCU_H #define _ASM_ARCH_CCU_H +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + /** * enum ccu_flags - ccu clock/reset flags * diff --git a/arch/arm/include/asm/arch-sunxi/clock_sun50i_h6.h b/arch/arm/include/asm/arch-sunxi/clock_sun50i_h6.h index e36937059b6e1d57f21ffb9c69659d1dcf142a67..426069fc69a4f89496c0c5b630443a8d3fa499fe 100644 --- a/arch/arm/include/asm/arch-sunxi/clock_sun50i_h6.h +++ b/arch/arm/include/asm/arch-sunxi/clock_sun50i_h6.h @@ -9,6 +9,10 @@ #ifndef _SUNXI_CLOCK_SUN50I_H6_H #define _SUNXI_CLOCK_SUN50I_H6_H +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + struct sunxi_ccm_reg { u32 pll1_cfg; /* 0x000 pll1 (cpux) control */ u8 reserved_0x004[12]; diff --git a/arch/arm/include/asm/arch-sunxi/clock_sun9i.h b/arch/arm/include/asm/arch-sunxi/clock_sun9i.h index 530e0dd73b54aca3e3f6647a5c69e1b6a0ddc6fc..fe6b8ba273280ef62fcbfc9dabf2230ba57dccd3 100644 --- a/arch/arm/include/asm/arch-sunxi/clock_sun9i.h +++ b/arch/arm/include/asm/arch-sunxi/clock_sun9i.h @@ -8,6 +8,10 @@ #ifndef _SUNXI_CLOCK_SUN9I_H #define _SUNXI_CLOCK_SUN9I_H +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + struct sunxi_ccm_reg { u32 pll1_c0_cfg; /* 0x00 c0cpu# pll configuration */ u32 pll2_c1_cfg; /* 0x04 c1cpu# pll configuration */ diff --git a/arch/arm/include/asm/arch-sunxi/dram_sun50i_h6.h b/arch/arm/include/asm/arch-sunxi/dram_sun50i_h6.h index 49a8a66f7b119e20a6fe1aa10b9976c2cbd1c674..be02655cdd52074f7a29818b6f83da38d1889393 100644 --- a/arch/arm/include/asm/arch-sunxi/dram_sun50i_h6.h +++ b/arch/arm/include/asm/arch-sunxi/dram_sun50i_h6.h @@ -10,6 +10,9 @@ #define _SUNXI_DRAM_SUN50I_H6_H #include <stdbool.h> +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif enum sunxi_dram_type { SUNXI_DRAM_TYPE_DDR3 = 3, diff --git a/arch/arm/include/asm/arch-sunxi/dram_sun6i.h b/arch/arm/include/asm/arch-sunxi/dram_sun6i.h index 929450fc6747f34a078f63607fdbe692bf93a0d6..b66d58cd73b6718275b44af68e631ae2ea5ea367 100644 --- a/arch/arm/include/asm/arch-sunxi/dram_sun6i.h +++ b/arch/arm/include/asm/arch-sunxi/dram_sun6i.h @@ -13,6 +13,10 @@ #ifndef _SUNXI_DRAM_SUN6I_H #define _SUNXI_DRAM_SUN6I_H +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + struct sunxi_mctl_com_reg { u32 cr; /* 0x00 */ u32 ccr; /* 0x04 controller configuration register */ diff --git a/arch/arm/include/asm/arch-sunxi/dram_sun8i_a33.h b/arch/arm/include/asm/arch-sunxi/dram_sun8i_a33.h index 49a6108c19ed36e87f27288eda3edc312ee58ca3..3f65306cc68aee495d2b41253cabefddb5bdc5f4 100644 --- a/arch/arm/include/asm/arch-sunxi/dram_sun8i_a33.h +++ b/arch/arm/include/asm/arch-sunxi/dram_sun8i_a33.h @@ -11,6 +11,10 @@ #ifndef _SUNXI_DRAM_SUN8I_A33_H #define _SUNXI_DRAM_SUN8I_A33_H +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + struct sunxi_mctl_com_reg { u32 cr; /* 0x00 */ u32 ccr; /* 0x04 controller configuration register */ diff --git a/arch/arm/include/asm/arch-sunxi/dram_sun8i_a83t.h b/arch/arm/include/asm/arch-sunxi/dram_sun8i_a83t.h index d4634e55e45f8203f1e24ec275e05a51d06d12bf..2a8799635473aa77d2d30c56ec851b7b5fc9ce7e 100644 --- a/arch/arm/include/asm/arch-sunxi/dram_sun8i_a83t.h +++ b/arch/arm/include/asm/arch-sunxi/dram_sun8i_a83t.h @@ -11,6 +11,10 @@ #ifndef _SUNXI_DRAM_SUN8I_A83T_H #define _SUNXI_DRAM_SUN8I_A83T_H +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + struct sunxi_mctl_com_reg { u32 cr; /* 0x00 */ u32 ccr; /* 0x04 controller configuration register */ diff --git a/arch/arm/include/asm/arch-sunxi/dram_sun9i.h b/arch/arm/include/asm/arch-sunxi/dram_sun9i.h index 603850b9ffd32ed3dbcf88cbee1246be0ac313e3..41df5fe5b6f904d3d35446f14c01049b23377ea6 100644 --- a/arch/arm/include/asm/arch-sunxi/dram_sun9i.h +++ b/arch/arm/include/asm/arch-sunxi/dram_sun9i.h @@ -11,6 +11,10 @@ #ifndef _SUNXI_DRAM_SUN9I_H #define _SUNXI_DRAM_SUN9I_H +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + struct sunxi_mctl_com_reg { u32 cr; /* 0x00 */ u32 ccr; /* 0x04 controller configuration register */ diff --git a/arch/arm/include/asm/arch-sunxi/pwm.h b/arch/arm/include/asm/arch-sunxi/pwm.h index dca283c7a93aacb9b4f33ed558f487312c4b78d4..b89bddd2e898d5f5ac83d72583751b2775f0946d 100644 --- a/arch/arm/include/asm/arch-sunxi/pwm.h +++ b/arch/arm/include/asm/arch-sunxi/pwm.h @@ -6,6 +6,10 @@ #ifndef _SUNXI_PWM_H #define _SUNXI_PWM_H +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + #define SUNXI_PWM_CTRL_REG (SUNXI_PWM_BASE + 0) #define SUNXI_PWM_CH0_PERIOD (SUNXI_PWM_BASE + 4) diff --git a/arch/arm/include/asm/arch-tegra/dc.h b/arch/arm/include/asm/arch-tegra/dc.h index 59347dd3d8153e96a38b67ff26afcf2d07c8a876..6444af2993a033de27285102bc66be9b3b551a39 100644 --- a/arch/arm/include/asm/arch-tegra/dc.h +++ b/arch/arm/include/asm/arch-tegra/dc.h @@ -7,6 +7,10 @@ #ifndef __ASM_ARCH_TEGRA_DC_H #define __ASM_ARCH_TEGRA_DC_H +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + /* Register definitions for the Tegra display controller */ /* CMD register 0x000 ~ 0x43 */ diff --git a/arch/arm/include/asm/arch-tegra/pmc.h b/arch/arm/include/asm/arch-tegra/pmc.h index 1524bf29116433f3ff8e126d338f51acddacc897..e1f5a7381357035264fcc7cf35adbd8507e0ec28 100644 --- a/arch/arm/include/asm/arch-tegra/pmc.h +++ b/arch/arm/include/asm/arch-tegra/pmc.h @@ -7,6 +7,10 @@ #ifndef _PMC_H_ #define _PMC_H_ +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + /* Power Management Controller (APBDEV_PMC_) registers */ struct pmc_ctlr { uint pmc_cntrl; /* _CNTRL_0, offset 00 */ diff --git a/arch/arm/include/asm/arch-tegra124/flow.h b/arch/arm/include/asm/arch-tegra124/flow.h index 62947bf99c84dd38ccd7269fc2ba9e582fc24b17..ebcb22f1cb901862b64a540da0050d4919a131c0 100644 --- a/arch/arm/include/asm/arch-tegra124/flow.h +++ b/arch/arm/include/asm/arch-tegra124/flow.h @@ -7,6 +7,10 @@ #ifndef _TEGRA124_FLOW_H_ #define _TEGRA124_FLOW_H_ +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + struct flow_ctlr { u32 halt_cpu_events; /* offset 0x00 */ u32 halt_cop_events; /* offset 0x04 */ diff --git a/arch/arm/include/asm/arch-vf610/imx-regs.h b/arch/arm/include/asm/arch-vf610/imx-regs.h index 03def8e3c54d7a36f60a41158b411936af04cd52..97211f4b12af4f082ebc667eb11a2812ef6635a5 100644 --- a/arch/arm/include/asm/arch-vf610/imx-regs.h +++ b/arch/arm/include/asm/arch-vf610/imx-regs.h @@ -302,6 +302,7 @@ #if !(defined(__KERNEL_STRICT_NAMES) || defined(__ASSEMBLY__)) #include <asm/types.h> +#include <linux/bitops.h> /* System Reset Controller (SRC) */ struct src { diff --git a/arch/arm/include/asm/armv7_mpu.h b/arch/arm/include/asm/armv7_mpu.h index 8f77ec42a6a752a50aa8be26b57ac767a9e64e4e..16b9d0d1aeb3ad8f8146038910ec72e45e9ba820 100644 --- a/arch/arm/include/asm/armv7_mpu.h +++ b/arch/arm/include/asm/armv7_mpu.h @@ -7,6 +7,10 @@ #ifndef _ASM_ARMV7_MPU_H #define _ASM_ARMV7_MPU_H +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + #ifdef CONFIG_CPU_V7M #define AP_SHIFT 24 #define XN_SHIFT 28 diff --git a/arch/arm/include/asm/bitops.h b/arch/arm/include/asm/bitops.h index b02c454d04c14ae755b38016ad067040be557c0a..fa8548624a049979f4d8895375cfb1a3d090f488 100644 --- a/arch/arm/include/asm/bitops.h +++ b/arch/arm/include/asm/bitops.h @@ -16,9 +16,15 @@ #define __ASM_ARM_BITOPS_H #include <asm-generic/bitops/__ffs.h> +#include <asm-generic/bitops/__fls.h> +#include <asm-generic/bitops/fls.h> +#include <asm-generic/bitops/fls64.h> #ifdef __KERNEL__ +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif #include <asm/proc-armv/system.h> #define smp_mb__before_clear_bit() do { } while (0) @@ -176,8 +182,4 @@ found_middle: #endif /* __KERNEL__ */ -#include <asm-generic/bitops/__fls.h> -#include <asm-generic/bitops/fls.h> -#include <asm-generic/bitops/fls64.h> - #endif /* _ARM_BITOPS_H */ diff --git a/arch/arm/include/asm/gic-v3.h b/arch/arm/include/asm/gic-v3.h index ac6c9e7013404b29eaf0f3477faa0da02c488c87..5131fabec4510daf46f6ceb680ef109b8583d33b 100644 --- a/arch/arm/include/asm/gic-v3.h +++ b/arch/arm/include/asm/gic-v3.h @@ -6,6 +6,10 @@ #ifndef __GIC_V3_H__ #define __GIC_V3_H__ +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + #define GICR_CTLR_ENABLE_LPIS BIT(0) #define GICR_CTLR_RWP BIT(3) diff --git a/arch/arm/include/asm/omap_mmc.h b/arch/arm/include/asm/omap_mmc.h index 6d31cc4422602b6cde942c8490eae434df64d509..7933ad5a867a9048305ad5a9f31ee318f48d8dc8 100644 --- a/arch/arm/include/asm/omap_mmc.h +++ b/arch/arm/include/asm/omap_mmc.h @@ -26,6 +26,9 @@ #define OMAP_MMC_H_ #include <mmc.h> +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif struct hsmmc { #ifndef CONFIG_OMAP34XX diff --git a/arch/arm/include/asm/psci.h b/arch/arm/include/asm/psci.h index ac0ab6253fb2ac457de72f6faf5619d8b6cabad7..67e9234066b03151ecdf41eea0392fbedc4b4eaa 100644 --- a/arch/arm/include/asm/psci.h +++ b/arch/arm/include/asm/psci.h @@ -100,6 +100,7 @@ #ifndef __ASSEMBLY__ #include <asm/types.h> +#include <linux/bitops.h> /* These 3 helper functions assume cpu < CONFIG_ARMV7_PSCI_NR_CPUS */ u32 psci_get_target_pc(int cpu); diff --git a/arch/arm/include/asm/ti-common/keystone_net.h b/arch/arm/include/asm/ti-common/keystone_net.h index bba1048499ba3887e00896c3519f2c7aabca49c9..0852ce80a64198102de277fb23fb024af2f63627 100644 --- a/arch/arm/include/asm/ti-common/keystone_net.h +++ b/arch/arm/include/asm/ti-common/keystone_net.h @@ -11,6 +11,9 @@ #include <asm/io.h> #include <phy.h> +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif /* EMAC */ #ifdef CONFIG_KSNET_NETCP_V1_0 diff --git a/arch/arm/include/asm/ti-common/omap_wdt.h b/arch/arm/include/asm/ti-common/omap_wdt.h index fbc421b6305e1167d67ae889592119d029f20d38..42d7e4c989e281ab280e3f21978d226fb208882a 100644 --- a/arch/arm/include/asm/ti-common/omap_wdt.h +++ b/arch/arm/include/asm/ti-common/omap_wdt.h @@ -10,6 +10,10 @@ #ifndef __OMAP_WDT_H__ #define __OMAP_WDT_H__ +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + /* * Watchdog: * Using the prescaler, the OMAP watchdog could go for many diff --git a/arch/arm/include/asm/ti-common/ti-edma3.h b/arch/arm/include/asm/ti-common/ti-edma3.h index 96c8a31fb831f90c2d3789600101e3c590ffbf62..9abdbc88e40b857b54ecdd19bd7b245fc7cce131 100644 --- a/arch/arm/include/asm/ti-common/ti-edma3.h +++ b/arch/arm/include/asm/ti-common/ti-edma3.h @@ -9,6 +9,9 @@ #ifndef _EDMA3_H_ #define _EDMA3_H_ +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif #include <linux/stddef.h> #define EDMA3_PARSET_NULL_LINK 0xffff diff --git a/arch/arm/lib/gic-v3-its.c b/arch/arm/lib/gic-v3-its.c index 6ee22d2944b5acfd9ed782979ad00775567bd58f..90f37a123cd82beb429142370adff16c2eee21f0 100644 --- a/arch/arm/lib/gic-v3-its.c +++ b/arch/arm/lib/gic-v3-its.c @@ -6,6 +6,7 @@ #include <asm/gic.h> #include <asm/gic-v3.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/sizes.h> static u32 lpi_id_bits; diff --git a/arch/arm/lib/image.c b/arch/arm/lib/image.c index 9cf4a67406ea4b9545a425f1d9d9dbce6d737e69..94590d3049ad197a3fc8193d4ddaa4d3920e3927 100644 --- a/arch/arm/lib/image.c +++ b/arch/arm/lib/image.c @@ -7,6 +7,7 @@ #include <common.h> #include <image.h> #include <mapmem.h> +#include <linux/bitops.h> #include <linux/sizes.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/arm/mach-at91/include/mach/at91_pmc.h b/arch/arm/mach-at91/include/mach/at91_pmc.h index f423afd0ad3ecf289883c25a2d26582b34415e93..2ce99d956c50b39c8f9dfc945fefca6fbab2dc2c 100644 --- a/arch/arm/mach-at91/include/mach/at91_pmc.h +++ b/arch/arm/mach-at91/include/mach/at91_pmc.h @@ -24,6 +24,7 @@ #else #include <asm/types.h> +#include <linux/bitops.h> typedef struct at91_pmc { u32 scer; /* 0x00 System Clock Enable Register */ diff --git a/arch/arm/mach-at91/include/mach/at91_sfr.h b/arch/arm/mach-at91/include/mach/at91_sfr.h index 0300c336dd81c6f90a0a360e91cbebbbaf5ac143..4517df41bce0200c467fa5b8f9344849c800ad87 100644 --- a/arch/arm/mach-at91/include/mach/at91_sfr.h +++ b/arch/arm/mach-at91/include/mach/at91_sfr.h @@ -9,6 +9,7 @@ #ifndef __AT91_SFR_H #define __AT91_SFR_H +#include <linux/bitops.h> struct atmel_sfr { u32 reserved1; /* 0x00 */ union { diff --git a/arch/arm/mach-at91/include/mach/atmel_pio4.h b/arch/arm/mach-at91/include/mach/atmel_pio4.h index 7a03d6d3c73e85370e820f923a3936f93555fbdf..f348b05bc8529f6f1c619fcb2a6e0e02e2a20238 100644 --- a/arch/arm/mach-at91/include/mach/atmel_pio4.h +++ b/arch/arm/mach-at91/include/mach/atmel_pio4.h @@ -9,6 +9,7 @@ #ifndef __ASSEMBLY__ +#include <linux/bitops.h> struct atmel_pio4_port { u32 mskr; /* 0x00 PIO Mask Register */ u32 cfgr; /* 0x04 PIO Configuration Register */ diff --git a/arch/arm/mach-exynos/include/mach/clock.h b/arch/arm/mach-exynos/include/mach/clock.h index e4c706adeac9992dce023f16a4ad67ebb40e8490..9d23c476f923378d5016efe6f68f8e7e0219a1f7 100644 --- a/arch/arm/mach-exynos/include/mach/clock.h +++ b/arch/arm/mach-exynos/include/mach/clock.h @@ -8,6 +8,7 @@ #define __ASM_ARM_ARCH_CLOCK_H_ #ifndef __ASSEMBLY__ +#include <linux/bitops.h> struct exynos4_clock { unsigned char res1[0x4200]; unsigned int src_leftbus; diff --git a/arch/arm/mach-imx/imx8m/clock_imx8mm.c b/arch/arm/mach-imx/imx8m/clock_imx8mm.c index 8ea7f016c2dd8aa7381fe21493bdd2001640ce59..aafe2ed084e18cee5205907e0c9d6db82995a123 100644 --- a/arch/arm/mach-imx/imx8m/clock_imx8mm.c +++ b/arch/arm/mach-imx/imx8m/clock_imx8mm.c @@ -12,6 +12,7 @@ #include <asm/io.h> #include <div64.h> #include <errno.h> +#include <linux/bitops.h> #include <linux/delay.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c index 137b9f3b5981a2731eac938c73c1ba86b038dc8a..1d2c8e6db281a5c19bed552c4a9f545c5d034f68 100644 --- a/arch/arm/mach-imx/imx8m/soc.c +++ b/arch/arm/mach-imx/imx8m/soc.c @@ -22,6 +22,7 @@ #include <fdt_support.h> #include <fsl_wdog.h> #include <imx_sip.h> +#include <linux/bitops.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/arm/mach-imx/imxrt/soc.c b/arch/arm/mach-imx/imxrt/soc.c index 8d5fae9a976b6558ad78883c639960bf18cc0e18..8e7d15160dace60101b09223eb8fdec018f3a99a 100644 --- a/arch/arm/mach-imx/imxrt/soc.c +++ b/arch/arm/mach-imx/imxrt/soc.c @@ -8,6 +8,7 @@ #include <init.h> #include <asm/io.h> #include <asm/armv7_mpu.h> +#include <linux/bitops.h> int arch_cpu_init(void) { diff --git a/arch/arm/mach-imx/mx7ulp/soc.c b/arch/arm/mach-imx/mx7ulp/soc.c index 0936522283e884adb5e26dfa5fbd3e1c2cd3b7d7..8dd6b4d40e778015fe94f11ac2f62417c9b0f93f 100644 --- a/arch/arm/mach-imx/mx7ulp/soc.c +++ b/arch/arm/mach-imx/mx7ulp/soc.c @@ -13,6 +13,7 @@ #include <asm/arch/sys_proto.h> #include <asm/mach-imx/boot_mode.h> #include <asm/mach-imx/hab.h> +#include <linux/bitops.h> #define PMC0_BASE_ADDR 0x410a1000 #define PMC0_CTRL 0x28 diff --git a/arch/arm/mach-k3/include/mach/am6_hardware.h b/arch/arm/mach-k3/include/mach/am6_hardware.h index 6df76315456f923142f7b3f19e9800eaedea1c53..a91ef5f735d5b693bbc05a30abf7446ae94b2046 100644 --- a/arch/arm/mach-k3/include/mach/am6_hardware.h +++ b/arch/arm/mach-k3/include/mach/am6_hardware.h @@ -8,6 +8,9 @@ #define __ASM_ARCH_AM6_HARDWARE_H #include <config.h> +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif #define CTRL_MMR0_BASE 0x00100000 #define CTRLMMR_MAIN_DEVSTAT (CTRL_MMR0_BASE + 0x30) diff --git a/arch/arm/mach-k3/include/mach/j721e_hardware.h b/arch/arm/mach-k3/include/mach/j721e_hardware.h index ead136ed6381955ef6d9b76e77d409bb850c9f60..0deed66eff992be1d4d0c033a7ab0eb3d6b1752d 100644 --- a/arch/arm/mach-k3/include/mach/j721e_hardware.h +++ b/arch/arm/mach-k3/include/mach/j721e_hardware.h @@ -8,6 +8,9 @@ #define __ASM_ARCH_J721E_HARDWARE_H #include <config.h> +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif #define CTRL_MMR0_BASE 0x00100000 #define CTRLMMR_MAIN_DEVSTAT (CTRL_MMR0_BASE + 0x30) diff --git a/arch/arm/mach-k3/include/mach/j721e_spl.h b/arch/arm/mach-k3/include/mach/j721e_spl.h index 475278bd041a752da2629e49409fd6f137ba83cc..959bdd4358e97339844b142513bcd31daeef8ef5 100644 --- a/arch/arm/mach-k3/include/mach/j721e_spl.h +++ b/arch/arm/mach-k3/include/mach/j721e_spl.h @@ -7,6 +7,7 @@ #define _ASM_ARCH_J721E_SPL_H_ /* With BootMode B = 0 */ +#include <linux/bitops.h> #define BOOT_DEVICE_HYPERFLASH 0x00 #define BOOT_DEVICE_OSPI 0x01 #define BOOT_DEVICE_QSPI 0x02 diff --git a/arch/arm/mach-keystone/clock.c b/arch/arm/mach-keystone/clock.c index 3c46824d0b94943231b2685a6ea59d357fb2ee2e..0c59515d2eb7637796099fe6a7aa3a3268dd220a 100644 --- a/arch/arm/mach-keystone/clock.c +++ b/arch/arm/mach-keystone/clock.c @@ -9,6 +9,7 @@ #include <common.h> #include <asm/arch/clock.h> #include <asm/arch/clock_defs.h> +#include <linux/bitops.h> /* DEV and ARM speed definitions as specified in DEVSPEED register */ int __weak speeds[DEVSPEED_NUMSPDS] = { diff --git a/arch/arm/mach-keystone/include/mach/clock_defs.h b/arch/arm/mach-keystone/include/mach/clock_defs.h index 42bd0ac1cd454502481a19b18397e242e8cd5281..336b103dc8c94ba2445c08f5d65f7427347d9868 100644 --- a/arch/arm/mach-keystone/include/mach/clock_defs.h +++ b/arch/arm/mach-keystone/include/mach/clock_defs.h @@ -9,6 +9,9 @@ #define _CLOCK_DEFS_H_ #include <asm/arch/hardware.h> +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif /* PLL Control Registers */ struct pllctl_regs { diff --git a/arch/arm/mach-keystone/include/mach/hardware-k2hk.h b/arch/arm/mach-keystone/include/mach/hardware-k2hk.h index 7793cf126657cf5e262286c8ad7e8ce423a23639..3d078be9919e7d78eeb225f8ea8dbf082e42364a 100644 --- a/arch/arm/mach-keystone/include/mach/hardware-k2hk.h +++ b/arch/arm/mach-keystone/include/mach/hardware-k2hk.h @@ -9,6 +9,10 @@ #ifndef __ASM_ARCH_HARDWARE_K2HK_H #define __ASM_ARCH_HARDWARE_K2HK_H +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + #define KS2_ARM_PLL_EN BIT(13) /* PA SS Registers */ diff --git a/arch/arm/mach-keystone/include/mach/hardware-k2l.h b/arch/arm/mach-keystone/include/mach/hardware-k2l.h index f46a98cfd1c0d0b2e496bd5afe07d32a06859995..0e710a37955ba9c1c3f8412dde4f38aea9677e7a 100644 --- a/arch/arm/mach-keystone/include/mach/hardware-k2l.h +++ b/arch/arm/mach-keystone/include/mach/hardware-k2l.h @@ -9,6 +9,10 @@ #ifndef __ASM_ARCH_HARDWARE_K2L_H #define __ASM_ARCH_HARDWARE_K2L_H +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + #define KS2_ARM_PLL_EN BIT(13) /* PA SS Registers */ diff --git a/arch/arm/mach-keystone/include/mach/hardware.h b/arch/arm/mach-keystone/include/mach/hardware.h index d2234dc88cc9198841567e935ceeda0208ba9967..0c5dc6a7395196d910eec9e99b4e96bf848bfdaa 100644 --- a/arch/arm/mach-keystone/include/mach/hardware.h +++ b/arch/arm/mach-keystone/include/mach/hardware.h @@ -11,6 +11,7 @@ #include <config.h> #ifndef __ASSEMBLY__ +#include <linux/bitops.h> #include <linux/sizes.h> #include <asm/io.h> diff --git a/arch/arm/mach-keystone/include/mach/xhci-keystone.h b/arch/arm/mach-keystone/include/mach/xhci-keystone.h index a05351292c4475fa51a2532455c96f9ee3d362eb..989b0c315809b88f0b3306ace2b1bbec552515a5 100644 --- a/arch/arm/mach-keystone/include/mach/xhci-keystone.h +++ b/arch/arm/mach-keystone/include/mach/xhci-keystone.h @@ -6,6 +6,10 @@ * Texas Instruments Incorporated, <www.ti.com> */ +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + #define USB3_PHY_REF_SSP_EN BIT(29) #define USB3_PHY_OTG_VBUSVLDECTSEL BIT(16) diff --git a/arch/arm/mach-keystone/init.c b/arch/arm/mach-keystone/init.c index d947d40eac8fc0bc3ffaf5fccd4c02b0632a901b..88e8912959fa83f14cd09144498624dc6ce3f910 100644 --- a/arch/arm/mach-keystone/init.c +++ b/arch/arm/mach-keystone/init.c @@ -16,6 +16,7 @@ #include <asm/arch/clock.h> #include <asm/arch/hardware.h> #include <asm/arch/psc_defs.h> +#include <linux/bitops.h> #define MAX_PCI_PORTS 2 enum pci_mode { diff --git a/arch/arm/mach-mediatek/mt7629/init.c b/arch/arm/mach-mediatek/mt7629/init.c index aa9ff2bdba74c59310ccf93606f567a2f5739023..c260413a57a16af5ce5bdff78fedc1ee81ea4fb7 100644 --- a/arch/arm/mach-mediatek/mt7629/init.c +++ b/arch/arm/mach-mediatek/mt7629/init.c @@ -14,6 +14,7 @@ #include <asm/arch/misc.h> #include <asm/sections.h> #include <dm/uclass.h> +#include <linux/bitops.h> #include <linux/io.h> #include <dt-bindings/clock/mt7629-clk.h> diff --git a/arch/arm/mach-meson/board-info.c b/arch/arm/mach-meson/board-info.c index bfae0c36ea13023a8555d0bcd9e402d27e7c96c0..3abb27e03b45ca704b70c57e341eba9dbb2b50a9 100644 --- a/arch/arm/mach-meson/board-info.c +++ b/arch/arm/mach-meson/board-info.c @@ -11,6 +11,7 @@ #include <linux/bitfield.h> #include <regmap.h> #include <syscon.h> +#include <linux/bitops.h> #include <linux/err.h> #define AO_SEC_SD_CFG8 0xe0 diff --git a/arch/arm/mach-meson/sm.c b/arch/arm/mach-meson/sm.c index dd660769e2cc6343c10c7b8a8c7dd1da4ad011fd..ebbb880b71ea8f490b0eaa7ac5474bb843034f8c 100644 --- a/arch/arm/mach-meson/sm.c +++ b/arch/arm/mach-meson/sm.c @@ -12,6 +12,7 @@ #include <asm/arch/sm.h> #include <asm/cache.h> #include <asm/ptrace.h> +#include <linux/bitops.h> #include <linux/err.h> #include <linux/kernel.h> #include <dm.h> diff --git a/arch/arm/mach-mvebu/armada3700/cpu.c b/arch/arm/mach-mvebu/armada3700/cpu.c index d6e84f1e20793c96a48da9b2643234ea8a3c4d8d..e438b4922e148259aeba0f2f2e8e252ded37de58 100644 --- a/arch/arm/mach-mvebu/armada3700/cpu.c +++ b/arch/arm/mach-mvebu/armada3700/cpu.c @@ -9,6 +9,7 @@ #include <dm.h> #include <fdtdec.h> #include <init.h> +#include <linux/bitops.h> #include <linux/libfdt.h> #include <asm/io.h> #include <asm/system.h> diff --git a/arch/arm/mach-mvebu/cpu.c b/arch/arm/mach-mvebu/cpu.c index c56b0aeb7926f600c69f731161ad32c140c5ac2c..3a63dafde4a922a79cb87fa63197861cc3968e55 100644 --- a/arch/arm/mach-mvebu/cpu.c +++ b/arch/arm/mach-mvebu/cpu.c @@ -7,6 +7,7 @@ #include <ahci.h> #include <cpu_func.h> #include <init.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/mbus.h> #include <asm/io.h> diff --git a/arch/arm/mach-mvebu/efuse.c b/arch/arm/mach-mvebu/efuse.c index 304be957033e72c332cbb2cbfd3bbad52d1908ba..c79eee98fe9842551ad972e245f409cf1fdf346e 100644 --- a/arch/arm/mach-mvebu/efuse.c +++ b/arch/arm/mach-mvebu/efuse.c @@ -10,6 +10,7 @@ #include <asm/arch/cpu.h> #include <asm/arch/efuse.h> #include <asm/arch/soc.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/mbus.h> diff --git a/arch/arm/mach-mvebu/include/mach/soc.h b/arch/arm/mach-mvebu/include/mach/soc.h index acb9257c90fe35f140c60dcda386da57a37f63e1..3f3b15aa8ab6a00bb83da88d50b73ae3d57a0605 100644 --- a/arch/arm/mach-mvebu/include/mach/soc.h +++ b/arch/arm/mach-mvebu/include/mach/soc.h @@ -10,6 +10,10 @@ #ifndef _MVEBU_SOC_H #define _MVEBU_SOC_H +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + #define SOC_MV78230_ID 0x7823 #define SOC_MV78260_ID 0x7826 #define SOC_MV78460_ID 0x7846 diff --git a/arch/arm/mach-mvebu/mbus.c b/arch/arm/mach-mvebu/mbus.c index 39bd200c830ce8188837894712fc8ae117038b55..f29abe591109c95f985d2e97a7004c88da3cee34 100644 --- a/arch/arm/mach-mvebu/mbus.c +++ b/arch/arm/mach-mvebu/mbus.c @@ -48,6 +48,7 @@ #include <common.h> #include <malloc.h> +#include <linux/bitops.h> #include <linux/errno.h> #include <asm/io.h> #include <asm/arch/cpu.h> diff --git a/arch/arm/mach-mvebu/serdes/a38x/ctrl_pex.c b/arch/arm/mach-mvebu/serdes/a38x/ctrl_pex.c index af50cbc4f4194dcdc51572911c4581aa1f8a4d0d..adef3331a7c5477be958f2ad4f6da15265b832a2 100644 --- a/arch/arm/mach-mvebu/serdes/a38x/ctrl_pex.c +++ b/arch/arm/mach-mvebu/serdes/a38x/ctrl_pex.c @@ -8,6 +8,7 @@ #include <asm/io.h> #include <asm/arch/cpu.h> #include <asm/arch/soc.h> +#include <linux/bitops.h> #include <linux/delay.h> #include "ctrl_pex.h" diff --git a/arch/arm/mach-mvebu/timer.c b/arch/arm/mach-mvebu/timer.c index 50b78cb07b0bee5cf2b2c07924a465f58a1c693e..43b3ed15d07448b9460b0b264deeac7b5f0a86db 100644 --- a/arch/arm/mach-mvebu/timer.c +++ b/arch/arm/mach-mvebu/timer.c @@ -10,6 +10,7 @@ #include <init.h> #include <asm/io.h> #include <asm/arch/soc.h> +#include <linux/bitops.h> #define TIMER_LOAD_VAL 0xffffffff diff --git a/arch/arm/mach-omap2/abb.c b/arch/arm/mach-omap2/abb.c index 108c93542de3ac001d75acb8c673e21691ea017b..722e6db0566d3f023bc8ad41850d41d820ac2c01 100644 --- a/arch/arm/mach-omap2/abb.c +++ b/arch/arm/mach-omap2/abb.c @@ -13,6 +13,7 @@ #include <asm/arch/clock.h> #include <asm/io.h> #include <asm/arch/sys_proto.h> +#include <linux/bitops.h> __weak s8 abb_setup_ldovbb(u32 fuse, u32 ldovbb) { diff --git a/arch/arm/mach-omap2/am33xx/clock_ti816x.c b/arch/arm/mach-omap2/am33xx/clock_ti816x.c index e9c7b2d99690576653288af028582f1a59df6628..ec4cc753812d8ac48f90271563ae1568533f5176 100644 --- a/arch/arm/mach-omap2/am33xx/clock_ti816x.c +++ b/arch/arm/mach-omap2/am33xx/clock_ti816x.c @@ -27,6 +27,7 @@ #include <asm/arch/clock.h> #include <asm/arch/hardware.h> #include <asm/io.h> +#include <linux/bitops.h> #include <asm/emif.h> diff --git a/arch/arm/mach-omap2/omap5/abb.c b/arch/arm/mach-omap2/omap5/abb.c index 446f99f634914d7224a9a769a2166384c0232abc..2f9f8e65d03e6f11b503f855fc303a0e5cca3ff1 100644 --- a/arch/arm/mach-omap2/omap5/abb.c +++ b/arch/arm/mach-omap2/omap5/abb.c @@ -11,6 +11,7 @@ #include <common.h> #include <asm/omap_common.h> #include <asm/io.h> +#include <linux/bitops.h> /* * Setup LDOVBB for OMAP5. diff --git a/arch/arm/mach-omap2/pipe3-phy.c b/arch/arm/mach-omap2/pipe3-phy.c index 94332b7edec7eba70d343342bb279dbf6b951b5c..35ec81d31468ac6b4eb053c58ba7299ed67d23dd 100644 --- a/arch/arm/mach-omap2/pipe3-phy.c +++ b/arch/arm/mach-omap2/pipe3-phy.c @@ -11,6 +11,7 @@ #include <asm/arch/clock.h> #include <asm/arch/sys_proto.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/errno.h> #include "pipe3-phy.h" diff --git a/arch/arm/mach-rmobile/include/mach/rcar-gen3-base.h b/arch/arm/mach-rmobile/include/mach/rcar-gen3-base.h index ecd02b9be0476815a14f3e5f7259e395de1745ba..5cd8a8c787faf1e963e9bcb189c8664192e8d485 100644 --- a/arch/arm/mach-rmobile/include/mach/rcar-gen3-base.h +++ b/arch/arm/mach-rmobile/include/mach/rcar-gen3-base.h @@ -79,6 +79,7 @@ #ifndef __ASSEMBLY__ #include <asm/types.h> +#include <linux/bitops.h> /* RWDT */ struct rcar_rwdt { diff --git a/arch/arm/mach-rmobile/include/mach/sh_sdhi.h b/arch/arm/mach-rmobile/include/mach/sh_sdhi.h index be9b23374717b672321a11aeb1fd3d3347cfad6e..7741718be14e3f4dc9c0d3bc50842f61e406f233 100644 --- a/arch/arm/mach-rmobile/include/mach/sh_sdhi.h +++ b/arch/arm/mach-rmobile/include/mach/sh_sdhi.h @@ -11,6 +11,7 @@ #ifndef _SH_SDHI_H #define _SH_SDHI_H +#include <linux/bitops.h> #define SDHI_CMD (0x0000 >> 1) #define SDHI_PORTSEL (0x0004 >> 1) #define SDHI_ARG0 (0x0008 >> 1) diff --git a/arch/arm/mach-rockchip/rk3308/rk3308.c b/arch/arm/mach-rockchip/rk3308/rk3308.c index 35a5c7972827ca45b6628ec6800ea0180210b460..8e8214cf7ecb12a50cac9d9aef80e23ce38648fc 100644 --- a/arch/arm/mach-rockchip/rk3308/rk3308.c +++ b/arch/arm/mach-rockchip/rk3308/rk3308.c @@ -10,6 +10,7 @@ #include <asm/arch-rockchip/hardware.h> #include <asm/gpio.h> #include <debug_uart.h> +#include <linux/bitops.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/arm/mach-rockchip/rk3368/rk3368.c b/arch/arm/mach-rockchip/rk3368/rk3368.c index c865afa5f28612b7ea81fd8019b2d0207eaf03c0..1c6d65a588700986e2b705c0468caa2a5245fdd1 100644 --- a/arch/arm/mach-rockchip/rk3368/rk3368.c +++ b/arch/arm/mach-rockchip/rk3368/rk3368.c @@ -14,6 +14,7 @@ #include <asm/arch-rockchip/cru_rk3368.h> #include <asm/arch-rockchip/grf_rk3368.h> #include <asm/arch-rockchip/hardware.h> +#include <linux/bitops.h> #include <linux/delay.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/arm/mach-rockchip/rk3399/rk3399.c b/arch/arm/mach-rockchip/rk3399/rk3399.c index f263f7e8b2f540f878008cbac51250e711d5c1d4..09b0d6ebe81a1eae99f360632a00daf5777d1701 100644 --- a/arch/arm/mach-rockchip/rk3399/rk3399.c +++ b/arch/arm/mach-rockchip/rk3399/rk3399.c @@ -17,6 +17,7 @@ #include <asm/arch-rockchip/gpio.h> #include <asm/arch-rockchip/grf_rk3399.h> #include <asm/arch-rockchip/hardware.h> +#include <linux/bitops.h> #include <power/regulator.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/arm/mach-rockchip/spl.c b/arch/arm/mach-rockchip/spl.c index f5a0ac473b7a18ea9b9422000705ef10dee3986a..ec2f66d18872c71872387d33b7439d8fbf7615f9 100644 --- a/arch/arm/mach-rockchip/spl.c +++ b/arch/arm/mach-rockchip/spl.c @@ -14,6 +14,7 @@ #include <spl.h> #include <asm/arch-rockchip/bootrom.h> #include <asm/io.h> +#include <linux/bitops.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/arm/mach-rockchip/tpl.c b/arch/arm/mach-rockchip/tpl.c index 74f185c87f48a202035b2eee32296e2ed53e84a6..88f80b05a90268e232beb33a43028c848962a24c 100644 --- a/arch/arm/mach-rockchip/tpl.c +++ b/arch/arm/mach-rockchip/tpl.c @@ -14,6 +14,7 @@ #include <version.h> #include <asm/io.h> #include <asm/arch-rockchip/bootrom.h> +#include <linux/bitops.h> #define TIMER_LOAD_COUNT_L 0x00 #define TIMER_LOAD_COUNT_H 0x04 diff --git a/arch/arm/mach-snapdragon/pinctrl-snapdragon.c b/arch/arm/mach-snapdragon/pinctrl-snapdragon.c index 9ba8fdd7293a1b6a31f04b3d28e3d270d3d5f949..442d236255011f8d88d6b641990012221730fe8e 100644 --- a/arch/arm/mach-snapdragon/pinctrl-snapdragon.c +++ b/arch/arm/mach-snapdragon/pinctrl-snapdragon.c @@ -11,6 +11,7 @@ #include <errno.h> #include <asm/io.h> #include <dm/pinctrl.h> +#include <linux/bitops.h> #include "pinctrl-snapdragon.h" struct msm_pinctrl_priv { diff --git a/arch/arm/mach-socfpga/include/mach/clock_manager_arria10.h b/arch/arm/mach-socfpga/include/mach/clock_manager_arria10.h index 8d62d75432ba0eeeb76fa89ff5d74248bf8d9b7d..11ddee5cb643f1e0468300fd48ed36d88b6f88f7 100644 --- a/arch/arm/mach-socfpga/include/mach/clock_manager_arria10.h +++ b/arch/arm/mach-socfpga/include/mach/clock_manager_arria10.h @@ -8,6 +8,8 @@ #ifndef __ASSEMBLY__ +#include <linux/bitops.h> + /* Clock manager group */ #define CLKMGR_A10_CTRL 0x00 #define CLKMGR_A10_INTR 0x04 @@ -64,6 +66,7 @@ int cm_basic_init(const void *blob); #endif +#include <linux/bitops.h> unsigned int cm_get_l4_sp_clk_hz(void); unsigned long cm_get_mpu_clk_hz(void); diff --git a/arch/arm/mach-socfpga/include/mach/clock_manager_gen5.h b/arch/arm/mach-socfpga/include/mach/clock_manager_gen5.h index fc6d2301561273316a00bab2a03fd99299249e44..5c9abe619b90fd295491d1988864389b720e01e2 100644 --- a/arch/arm/mach-socfpga/include/mach/clock_manager_gen5.h +++ b/arch/arm/mach-socfpga/include/mach/clock_manager_gen5.h @@ -8,6 +8,8 @@ #ifndef __ASSEMBLY__ +#include <linux/bitops.h> + struct cm_config { /* main group */ u32 main_vco_base; @@ -109,6 +111,7 @@ int cm_basic_init(const struct cm_config * const cfg); const struct cm_config * const cm_get_default_config(void); #endif /* __ASSEMBLY__ */ +#include <linux/bitops.h> #define LOCKED_MASK \ (CLKMGR_INTER_SDRPLLLOCKED_MASK | \ CLKMGR_INTER_PERPLLLOCKED_MASK | \ diff --git a/arch/arm/mach-socfpga/include/mach/clock_manager_s10.h b/arch/arm/mach-socfpga/include/mach/clock_manager_s10.h index 9d2b3bababe232b867d3e34dbdcb2309150add11..cb7923baef8c25d21cca49b8ff652d40eadd81d8 100644 --- a/arch/arm/mach-socfpga/include/mach/clock_manager_s10.h +++ b/arch/arm/mach-socfpga/include/mach/clock_manager_s10.h @@ -8,6 +8,7 @@ #define _CLOCK_MANAGER_S10_ #include <asm/arch/clock_manager_soc64.h> +#include <linux/bitops.h> /* Clock speed accessors */ unsigned long cm_get_mpu_clk_hz(void); diff --git a/arch/arm/mach-socfpga/include/mach/firewall.h b/arch/arm/mach-socfpga/include/mach/firewall.h index 430341bea14c8fcdd6f865147706fb06ffae9c3d..adab65bc968157191c61b980d54dfa461ba79c5f 100644 --- a/arch/arm/mach-socfpga/include/mach/firewall.h +++ b/arch/arm/mach-socfpga/include/mach/firewall.h @@ -7,6 +7,8 @@ #ifndef _FIREWALL_H_ #define _FIREWALL_H_ +#include <linux/bitops.h> + struct socfpga_firwall_l4_per { u32 nand; /* 0x00 */ u32 nand_data; diff --git a/arch/arm/mach-socfpga/include/mach/fpga_manager_arria10.h b/arch/arm/mach-socfpga/include/mach/fpga_manager_arria10.h index 62249b3695e1d6db617ca76d8984c8ea26023600..048708202cc718799333f86d1d0385210a686a5c 100644 --- a/arch/arm/mach-socfpga/include/mach/fpga_manager_arria10.h +++ b/arch/arm/mach-socfpga/include/mach/fpga_manager_arria10.h @@ -7,6 +7,7 @@ #include <asm/cache.h> #include <altera.h> #include <image.h> +#include <linux/bitops.h> #ifndef _FPGA_MANAGER_ARRIA10_H_ #define _FPGA_MANAGER_ARRIA10_H_ diff --git a/arch/arm/mach-socfpga/include/mach/fpga_manager_gen5.h b/arch/arm/mach-socfpga/include/mach/fpga_manager_gen5.h index c8ec5d4c3c747b84c207833ba08a86412072c31a..e08c0056286f70d9b740aacbb0a1823a3dfb06e5 100644 --- a/arch/arm/mach-socfpga/include/mach/fpga_manager_gen5.h +++ b/arch/arm/mach-socfpga/include/mach/fpga_manager_gen5.h @@ -7,6 +7,7 @@ #ifndef _FPGA_MANAGER_GEN5_H_ #define _FPGA_MANAGER_GEN5_H_ +#include <linux/bitops.h> #define FPGAMGRREGS_STAT_MODE_MASK 0x7 #define FPGAMGRREGS_STAT_MSEL_MASK 0xf8 #define FPGAMGRREGS_STAT_MSEL_LSB 3 diff --git a/arch/arm/mach-socfpga/include/mach/mailbox_s10.h b/arch/arm/mach-socfpga/include/mach/mailbox_s10.h index ae728a5df5f8fa7a4b4885e91c4c4ec7bd9f7625..55707ab9c5875213e603efceaba5bbad273bedf7 100644 --- a/arch/arm/mach-socfpga/include/mach/mailbox_s10.h +++ b/arch/arm/mach-socfpga/include/mach/mailbox_s10.h @@ -8,6 +8,7 @@ #define _MAILBOX_S10_H_ /* user define Uboot ID */ +#include <linux/bitops.h> #define MBOX_CLIENT_ID_UBOOT 0xB #define MBOX_ID_UBOOT 0x1 diff --git a/arch/arm/mach-socfpga/include/mach/reset_manager_arria10.h b/arch/arm/mach-socfpga/include/mach/reset_manager_arria10.h index 22e4eb33de88a99f23ae95f5cb505299eaf6cce9..19507c292dd059e243b8f5313d25d50d61b1224c 100644 --- a/arch/arm/mach-socfpga/include/mach/reset_manager_arria10.h +++ b/arch/arm/mach-socfpga/include/mach/reset_manager_arria10.h @@ -7,6 +7,7 @@ #define _RESET_MANAGER_ARRIA10_H_ #include <dt-bindings/reset/altr,rst-mgr-a10.h> +#include <linux/bitops.h> void socfpga_watchdog_disable(void); void socfpga_reset_deassert_noc_ddr_scheduler(void); diff --git a/arch/arm/mach-socfpga/include/mach/sdram_arria10.h b/arch/arm/mach-socfpga/include/mach/sdram_arria10.h index f2773883fd1a0196aa51cd44ca61cfee28300ccf..ff05994ccc33c0780266d3d16a6f22a24d2efd31 100644 --- a/arch/arm/mach-socfpga/include/mach/sdram_arria10.h +++ b/arch/arm/mach-socfpga/include/mach/sdram_arria10.h @@ -7,6 +7,7 @@ #define _SOCFPGA_SDRAM_ARRIA10_H_ #ifndef __ASSEMBLY__ +#include <linux/bitops.h> int ddr_calibration_sequence(void); struct socfpga_ecc_hmc { diff --git a/arch/arm/mach-socfpga/include/mach/system_manager.h b/arch/arm/mach-socfpga/include/mach/system_manager.h index 6de0a08131778f33517f72bf0d1e6bbd8f8265d6..f8169547172749af9639d8a156d9928698680ed1 100644 --- a/arch/arm/mach-socfpga/include/mach/system_manager.h +++ b/arch/arm/mach-socfpga/include/mach/system_manager.h @@ -94,5 +94,6 @@ phys_addr_t socfpga_get_sysmgr_addr(void); #define SYSMGR_GET_BOOTINFO_BSEL(bsel) \ (((bsel) >> SYSMGR_BOOTINFO_BSEL_SHIFT) & 7) +#include <linux/bitops.h> #endif #endif /* _SYSTEM_MANAGER_H_ */ diff --git a/arch/arm/mach-socfpga/include/mach/system_manager_soc64.h b/arch/arm/mach-socfpga/include/mach/system_manager_soc64.h index 3a6c9515c64b20fcb804e24a3079d935f4f15f2a..c90f63a754c0532ec3986011e7c51e866d1836b1 100644 --- a/arch/arm/mach-socfpga/include/mach/system_manager_soc64.h +++ b/arch/arm/mach-socfpga/include/mach/system_manager_soc64.h @@ -6,6 +6,7 @@ #ifndef _SYSTEM_MANAGER_SOC64_H_ #define _SYSTEM_MANAGER_SOC64_H_ +#include <linux/bitops.h> void sysmgr_pinmux_init(void); void populate_sysmgr_fpgaintf_module(void); void populate_sysmgr_pinmux(void); diff --git a/arch/arm/mach-socfpga/misc_gen5.c b/arch/arm/mach-socfpga/misc_gen5.c index 39acc8cfdb0ada2d87b24efdd94090f134456151..7209e8d6db78d919e357fe3d3136865627849251 100644 --- a/arch/arm/mach-socfpga/misc_gen5.c +++ b/arch/arm/mach-socfpga/misc_gen5.c @@ -10,6 +10,7 @@ #include <env.h> #include <errno.h> #include <fdtdec.h> +#include <linux/bitops.h> #include <linux/libfdt.h> #include <altera.h> #include <miiphy.h> diff --git a/arch/arm/mach-socfpga/reset_manager_gen5.c b/arch/arm/mach-socfpga/reset_manager_gen5.c index 1008a78dc8367dbae022fa779ea2ebccd727cbae..a65860ef021a8b14f8d32a70234b5875bcc554de 100644 --- a/arch/arm/mach-socfpga/reset_manager_gen5.c +++ b/arch/arm/mach-socfpga/reset_manager_gen5.c @@ -9,6 +9,7 @@ #include <asm/arch/fpga_manager.h> #include <asm/arch/reset_manager.h> #include <asm/arch/system_manager.h> +#include <linux/bitops.h> /* Assert or de-assert SoCFPGA reset manager reset. */ void socfpga_per_reset(u32 reset, int set) diff --git a/arch/arm/mach-socfpga/spl_gen5.c b/arch/arm/mach-socfpga/spl_gen5.c index 91bc9df70a54b13ef3aff70ac42478665c49237a..5a7c5ef76d5d097873fa1bc8c7e16e86c099febe 100644 --- a/arch/arm/mach-socfpga/spl_gen5.c +++ b/arch/arm/mach-socfpga/spl_gen5.c @@ -24,6 +24,7 @@ #include <fdtdec.h> #include <watchdog.h> #include <dm/uclass.h> +#include <linux/bitops.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/arm/mach-stm32mp/cpu.c b/arch/arm/mach-stm32mp/cpu.c index 82f94191fa4293a950a4bb2c4c3485f48b38ee0e..472b140321fc125ecf5d1b6e86d05c0ab08f5b26 100644 --- a/arch/arm/mach-stm32mp/cpu.c +++ b/arch/arm/mach-stm32mp/cpu.c @@ -16,6 +16,7 @@ #include <asm/arch/sys_proto.h> #include <dm/device.h> #include <dm/uclass.h> +#include <linux/bitops.h> /* RCC register */ #define RCC_TZCR (STM32_RCC_BASE + 0x00) diff --git a/arch/arm/mach-stm32mp/include/mach/stm32.h b/arch/arm/mach-stm32mp/include/mach/stm32.h index efa5ac335e797eb396c2096cbe0f41f53278c637..5fdb893b0edccb6fd579c6343723d209aba7b0ad 100644 --- a/arch/arm/mach-stm32mp/include/mach/stm32.h +++ b/arch/arm/mach-stm32mp/include/mach/stm32.h @@ -6,6 +6,10 @@ #ifndef _MACH_STM32_H_ #define _MACH_STM32_H_ +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + /* * Peripheral memory map * only address used before device tree parsing diff --git a/arch/arm/mach-stm32mp/psci.c b/arch/arm/mach-stm32mp/psci.c index 19f1acfe232eadc2233318217b7df7c94b42ab39..155aa79cd5ed8bc44b83a7bef4e49d68dbfdf0bb 100644 --- a/arch/arm/mach-stm32mp/psci.c +++ b/arch/arm/mach-stm32mp/psci.c @@ -11,6 +11,7 @@ #include <asm/io.h> #include <asm/psci.h> #include <asm/secure.h> +#include <linux/bitops.h> #define BOOT_API_A7_CORE0_MAGIC_NUMBER 0xCA7FACE0 #define BOOT_API_A7_CORE1_MAGIC_NUMBER 0xCA7FACE1 diff --git a/arch/arm/mach-stm32mp/pwr_regulator.c b/arch/arm/mach-stm32mp/pwr_regulator.c index b52e1e85d5c3af625f0dac1d99c2b59bc2fbfa33..900dee4c38a6cd81e47377480b02fd92edb43cf2 100644 --- a/arch/arm/mach-stm32mp/pwr_regulator.c +++ b/arch/arm/mach-stm32mp/pwr_regulator.c @@ -9,6 +9,7 @@ #include <syscon.h> #include <asm/io.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/err.h> #include <power/pmic.h> #include <power/regulator.h> diff --git a/arch/arm/mach-sunxi/clock_sun6i.c b/arch/arm/mach-sunxi/clock_sun6i.c index b46083e9db91c1184b0627046bef943ceeaedec8..8e84062bd7c6a26973bfdec078e4a14f247c24e4 100644 --- a/arch/arm/mach-sunxi/clock_sun6i.c +++ b/arch/arm/mach-sunxi/clock_sun6i.c @@ -14,6 +14,7 @@ #include <asm/arch/clock.h> #include <asm/arch/prcm.h> #include <asm/arch/sys_proto.h> +#include <linux/bitops.h> #include <linux/delay.h> #ifdef CONFIG_SPL_BUILD diff --git a/arch/arm/mach-sunxi/spl_spi_sunxi.c b/arch/arm/mach-sunxi/spl_spi_sunxi.c index d369df93d4a61663b7b2823b97c8021fc511857f..15e86cbac8f4ab88f71fca6c89feacdbe5b3451d 100644 --- a/arch/arm/mach-sunxi/spl_spi_sunxi.c +++ b/arch/arm/mach-sunxi/spl_spi_sunxi.c @@ -9,6 +9,7 @@ #include <spl.h> #include <asm/gpio.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/libfdt.h> diff --git a/arch/arm/mach-tegra/tegra210/clock.c b/arch/arm/mach-tegra/tegra210/clock.c index 4fe6df48123782d8f7628c0fd67a0dbd518bb11e..ccc64eb77b4d4740898530fcf307cc52835fdefe 100644 --- a/arch/arm/mach-tegra/tegra210/clock.c +++ b/arch/arm/mach-tegra/tegra210/clock.c @@ -19,6 +19,7 @@ #include <asm/arch-tegra/timer.h> #include <div64.h> #include <fdtdec.h> +#include <linux/bitops.h> #include <linux/delay.h> /* diff --git a/arch/arm/mach-uniphier/boot-device/boot-device-pxs3.c b/arch/arm/mach-uniphier/boot-device/boot-device-pxs3.c index 2edf66d5c103d1b12545ef791d2df21fcf20205b..4aee50f5d32e6dfe349cdbd8463bcab5e39eb9d0 100644 --- a/arch/arm/mach-uniphier/boot-device/boot-device-pxs3.c +++ b/arch/arm/mach-uniphier/boot-device/boot-device-pxs3.c @@ -6,6 +6,7 @@ #include <common.h> #include <spl.h> +#include <linux/bitops.h> #include <linux/io.h> #include <linux/kernel.h> diff --git a/arch/arm/mach-uniphier/boot-device/boot-device.c b/arch/arm/mach-uniphier/boot-device/boot-device.c index 43b28f8b86e4844fd8f74b296da91d58b459426d..2fb625535bd6d5a533de8248856ed40fb2399c92 100644 --- a/arch/arm/mach-uniphier/boot-device/boot-device.c +++ b/arch/arm/mach-uniphier/boot-device/boot-device.c @@ -8,6 +8,7 @@ #include <command.h> #include <spl.h> #include <stdio.h> +#include <linux/bitops.h> #include <linux/bug.h> #include <linux/io.h> #include <linux/log2.h> diff --git a/arch/arm/mach-uniphier/dram/ddrphy-regs.h b/arch/arm/mach-uniphier/dram/ddrphy-regs.h index 6a041c500b0b5573c917f457c81ff8d0f6360ef4..8b342921bf8de4d0a3b69d52ef889e7a5b461ac2 100644 --- a/arch/arm/mach-uniphier/dram/ddrphy-regs.h +++ b/arch/arm/mach-uniphier/dram/ddrphy-regs.h @@ -9,6 +9,7 @@ #ifndef ARCH_DDRPHY_REGS_H #define ARCH_DDRPHY_REGS_H +#include <linux/bitops.h> #define PHY_REG_SHIFT 2 #define PHY_RIDR (0x000 << PHY_REG_SHIFT) diff --git a/arch/arm/mach-uniphier/dram/umc-pxs2.c b/arch/arm/mach-uniphier/dram/umc-pxs2.c index 7de6b7fbde94363c65e94bb5419f477a2039fd2e..3f7e5f30ba4bf0189b343a08e5a69fabc5faf6e9 100644 --- a/arch/arm/mach-uniphier/dram/umc-pxs2.c +++ b/arch/arm/mach-uniphier/dram/umc-pxs2.c @@ -9,6 +9,7 @@ #include <init.h> #include <log.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/errno.h> #include <linux/io.h> diff --git a/arch/arm/mach-uniphier/init.h b/arch/arm/mach-uniphier/init.h index 3c77f48853483ff5fc92d935e8a28fa8ce05482d..622303786c54958fe874c88a9dffec94d70b1717 100644 --- a/arch/arm/mach-uniphier/init.h +++ b/arch/arm/mach-uniphier/init.h @@ -7,6 +7,7 @@ #ifndef __MACH_INIT_H #define __MACH_INIT_H +#include <linux/bitops.h> #include <linux/types.h> #define UNIPHIER_MAX_NR_DRAM_CH 3 diff --git a/arch/arm/mach-versal/include/mach/hardware.h b/arch/arm/mach-versal/include/mach/hardware.h index e26beab2e9cde409b1e0ddfab043593a7f45cead..9af5afd3f3f43818f9d7e540a733dc2099acd84f 100644 --- a/arch/arm/mach-versal/include/mach/hardware.h +++ b/arch/arm/mach-versal/include/mach/hardware.h @@ -3,6 +3,10 @@ * Copyright 2016 - 2018 Xilinx, Inc. */ +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + #define VERSAL_CRL_APB_BASEADDR 0xFF5E0000 #define CRL_APB_TIMESTAMP_REF_CTRL_CLKACT_BIT BIT(25) diff --git a/arch/arm/mach-zynqmp/include/mach/hardware.h b/arch/arm/mach-zynqmp/include/mach/hardware.h index a0acfa2ff1ed96ea85f7fa11bfecf4e9e36a8778..c5ba42124b04da2faf5878d142d0f55e02c75895 100644 --- a/arch/arm/mach-zynqmp/include/mach/hardware.h +++ b/arch/arm/mach-zynqmp/include/mach/hardware.h @@ -7,6 +7,10 @@ #ifndef _ASM_ARCH_HARDWARE_H #define _ASM_ARCH_HARDWARE_H +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + #define ZYNQMP_TCM_BASE_ADDR 0xFFE00000 #define ZYNQMP_TCM_SIZE 0x40000 diff --git a/arch/mips/include/asm/cm.h b/arch/mips/include/asm/cm.h index 8f37471f81abc7fe7488e1e91fa29e554e5acbbe..3878171607dc6a1e28687b4704a5086820eaff9c 100644 --- a/arch/mips/include/asm/cm.h +++ b/arch/mips/include/asm/cm.h @@ -39,6 +39,7 @@ #ifndef __ASSEMBLY__ #include <asm/io.h> +#include <linux/bitops.h> static inline void *mips_cm_base(void) { diff --git a/arch/mips/include/asm/mipsregs.h b/arch/mips/include/asm/mipsregs.h index f80311e64e8c58d25e316b66149cec991d5499de..7538e6b2e0bf62c608cdb1a3a74141cbfc42dee2 100644 --- a/arch/mips/include/asm/mipsregs.h +++ b/arch/mips/include/asm/mipsregs.h @@ -27,6 +27,7 @@ #ifdef __ASSEMBLY__ #define _ULCAST_ #else +#include <linux/bitops.h> #define _ULCAST_ (unsigned long) #endif diff --git a/arch/mips/lib/reloc.c b/arch/mips/lib/reloc.c index 1e3cfadd2d7e8588c0314782e37df7b168dec4df..ffc8c7a1b724aeafb7c45da008760bf02a54f6a3 100644 --- a/arch/mips/lib/reloc.c +++ b/arch/mips/lib/reloc.c @@ -31,6 +31,7 @@ #include <init.h> #include <asm/relocs.h> #include <asm/sections.h> +#include <linux/bitops.h> /** * read_uint() - Read an unsigned integer from the buffer diff --git a/arch/mips/mach-ath79/ar933x/ddr.c b/arch/mips/mach-ath79/ar933x/ddr.c index 2cf0b2cb1f9f8a433fdc7ae1e7925488872687b4..09166ecf8f0757e78bfdf535bf79f869a5205dd6 100644 --- a/arch/mips/mach-ath79/ar933x/ddr.c +++ b/arch/mips/mach-ath79/ar933x/ddr.c @@ -8,6 +8,7 @@ #include <asm/io.h> #include <asm/addrspace.h> #include <asm/types.h> +#include <linux/bitops.h> #include <mach/ar71xx_regs.h> #include <mach/ath79.h> diff --git a/arch/mips/mach-ath79/ar934x/clk.c b/arch/mips/mach-ath79/ar934x/clk.c index bb972b3a60466bf0149db597df7560f0d7abecae..9fa2225ed2beb651db53eae771268465e9b6d507 100644 --- a/arch/mips/mach-ath79/ar934x/clk.c +++ b/arch/mips/mach-ath79/ar934x/clk.c @@ -10,6 +10,7 @@ #include <asm/io.h> #include <asm/addrspace.h> #include <asm/types.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <mach/ar71xx_regs.h> #include <mach/ath79.h> diff --git a/arch/mips/mach-ath79/ar934x/ddr.c b/arch/mips/mach-ath79/ar934x/ddr.c index 9c5a6b68ec1a6e58a5fb65efc21fddaa861cf8f8..218f60a96cce2affb697de0474c1dfca69b65c12 100644 --- a/arch/mips/mach-ath79/ar934x/ddr.c +++ b/arch/mips/mach-ath79/ar934x/ddr.c @@ -9,6 +9,7 @@ #include <asm/io.h> #include <asm/addrspace.h> #include <asm/types.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <mach/ar71xx_regs.h> #include <mach/ath79.h> diff --git a/arch/mips/mach-ath79/qca953x/ddr.c b/arch/mips/mach-ath79/qca953x/ddr.c index 3a009bb532b36b421a5166f4cc602dd15b2a9a7c..78f2370e09cec4454ad63f1728fb614968ddb682 100644 --- a/arch/mips/mach-ath79/qca953x/ddr.c +++ b/arch/mips/mach-ath79/qca953x/ddr.c @@ -8,6 +8,7 @@ #include <asm/io.h> #include <asm/addrspace.h> #include <asm/types.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <mach/ar71xx_regs.h> #include <mach/ath79.h> diff --git a/arch/mips/mach-ath79/reset.c b/arch/mips/mach-ath79/reset.c index 62330a65759b7c127cefb42bae8ca52b57795939..6cd5e77fd15ae783c7d42fe4564dd28da9e8524c 100644 --- a/arch/mips/mach-ath79/reset.c +++ b/arch/mips/mach-ath79/reset.c @@ -5,6 +5,7 @@ */ #include <common.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/errno.h> #include <asm/io.h> diff --git a/arch/mips/mach-jz47xx/include/mach/jz4780_dram.h b/arch/mips/mach-jz47xx/include/mach/jz4780_dram.h index 92d431bd041e7ac910b39956e204913b8c7e0fef..61cc1489889ab716c37686b55f3188056df954e2 100644 --- a/arch/mips/mach-jz47xx/include/mach/jz4780_dram.h +++ b/arch/mips/mach-jz47xx/include/mach/jz4780_dram.h @@ -12,6 +12,7 @@ /* * DDR */ +#include <linux/bitops.h> #define DDRC_ST 0x0 #define DDRC_CFG 0x4 #define DDRC_CTRL 0x8 diff --git a/arch/mips/mach-jz47xx/jz4780/gpio.c b/arch/mips/mach-jz47xx/jz4780/gpio.c index cee2328ab1eadf81896feaa9f89f816710c2b704..d4884e7fa9f11657ac190e68925cf5f9aa1267d0 100644 --- a/arch/mips/mach-jz47xx/jz4780/gpio.c +++ b/arch/mips/mach-jz47xx/jz4780/gpio.c @@ -3,6 +3,7 @@ #include <config.h> #include <common.h> #include <asm/io.h> +#include <linux/bitops.h> #include <mach/jz4780.h> int jz47xx_gpio_get_value(unsigned int gpio) diff --git a/arch/mips/mach-jz47xx/jz4780/pll.c b/arch/mips/mach-jz47xx/jz4780/pll.c index 43827d196786be712b2367a707377a3dc239404f..323c634fb32250327ff703c32d0ec3f01305bb37 100644 --- a/arch/mips/mach-jz47xx/jz4780/pll.c +++ b/arch/mips/mach-jz47xx/jz4780/pll.c @@ -9,6 +9,7 @@ #include <config.h> #include <common.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <mach/jz4780.h> diff --git a/arch/mips/mach-jz47xx/jz4780/reset.c b/arch/mips/mach-jz47xx/jz4780/reset.c index 73af34721f27faafaf0d70ce2d04e52fcf998091..bf6addccb5dea44b5fd4db71de1fb164b9b1a455 100644 --- a/arch/mips/mach-jz47xx/jz4780/reset.c +++ b/arch/mips/mach-jz47xx/jz4780/reset.c @@ -9,6 +9,7 @@ #include <config.h> #include <common.h> #include <asm/io.h> +#include <linux/bitops.h> #include <mach/jz4780.h> /* WDT */ diff --git a/arch/mips/mach-jz47xx/jz4780/sdram.c b/arch/mips/mach-jz47xx/jz4780/sdram.c index efbb82f62b05ec050a02fa74e5235279b79d0b70..690f3c5601daf3957e5a3c31a4afc557702fd29f 100644 --- a/arch/mips/mach-jz47xx/jz4780/sdram.c +++ b/arch/mips/mach-jz47xx/jz4780/sdram.c @@ -13,6 +13,7 @@ #include <hang.h> #include <init.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <mach/jz4780.h> #include <mach/jz4780_dram.h> diff --git a/arch/mips/mach-jz47xx/jz4780/timer.c b/arch/mips/mach-jz47xx/jz4780/timer.c index 70db74d3a0c9c1ea7d10a49480d73ad18610ae3d..82bb9e8c3bfafc72ced6d19428e7530fa0bb327f 100644 --- a/arch/mips/mach-jz47xx/jz4780/timer.c +++ b/arch/mips/mach-jz47xx/jz4780/timer.c @@ -14,6 +14,7 @@ #include <time.h> #include <asm/io.h> #include <asm/mipsregs.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <mach/jz4780.h> diff --git a/arch/mips/mach-mscc/cpu.c b/arch/mips/mach-mscc/cpu.c index 8273a0f5aa87707c844f9af3f7843ad6be6d5134..b4ffd44ea441ecad57ceb8e6dc325033c048a3ac 100644 --- a/arch/mips/mach-mscc/cpu.c +++ b/arch/mips/mach-mscc/cpu.c @@ -5,6 +5,7 @@ #include <common.h> #include <init.h> +#include <linux/bitops.h> #include <asm/io.h> #include <asm/types.h> diff --git a/arch/mips/mach-mscc/gpio.c b/arch/mips/mach-mscc/gpio.c index 5e3a53372d971713347a40338e9ffd82c6586988..d6b4c5d7684bfb9427c90f148df1ef9dc21665a6 100644 --- a/arch/mips/mach-mscc/gpio.c +++ b/arch/mips/mach-mscc/gpio.c @@ -5,6 +5,7 @@ #include <common.h> #include <asm/io.h> +#include <linux/bitops.h> void mscc_gpio_set_alternate(int gpio, int mode) { diff --git a/arch/mips/mach-mscc/include/mach/ddr.h b/arch/mips/mach-mscc/include/mach/ddr.h index bf75e52ec3c652a45b9f6d685a703904f9bba579..d52eabbd2b1fe84294d90895bf7b7b4670ee2734 100644 --- a/arch/mips/mach-mscc/include/mach/ddr.h +++ b/arch/mips/mach-mscc/include/mach/ddr.h @@ -9,6 +9,7 @@ #include <asm/cacheops.h> #include <asm/io.h> #include <asm/reboot.h> +#include <linux/bitops.h> #include <mach/common.h> #define MIPS_VCOREIII_MEMORY_DDR3 diff --git a/arch/mips/mach-mscc/include/mach/jr2/jr2_devcpu_gcb.h b/arch/mips/mach-mscc/include/mach/jr2/jr2_devcpu_gcb.h index 4a1228d29f3c2c1f74dcd4b0cec6808f55c99014..8d1d21b9b10fa6bda957f3576b1157eeec442983 100644 --- a/arch/mips/mach-mscc/include/mach/jr2/jr2_devcpu_gcb.h +++ b/arch/mips/mach-mscc/include/mach/jr2/jr2_devcpu_gcb.h @@ -6,6 +6,8 @@ #ifndef _MSCC_JR2_DEVCPU_GCB_H_ #define _MSCC_JR2_DEVCPU_GCB_H_ +#include <linux/bitops.h> + #define PERF_GPR 0x4 #define PERF_SOFT_RST 0x8 diff --git a/arch/mips/mach-mscc/include/mach/jr2/jr2_devcpu_gcb_miim_regs.h b/arch/mips/mach-mscc/include/mach/jr2/jr2_devcpu_gcb_miim_regs.h index 3c84edc18abeb7446b39e8842c33fa68dfacb4bd..e11ad8788fb22d44b048d0cbf36017c22a0310a1 100644 --- a/arch/mips/mach-mscc/include/mach/jr2/jr2_devcpu_gcb_miim_regs.h +++ b/arch/mips/mach-mscc/include/mach/jr2/jr2_devcpu_gcb_miim_regs.h @@ -6,6 +6,8 @@ #ifndef _MSCC_JR2_DEVCPU_GCB_MIIM_REGS_H_ #define _MSCC_JR2_DEVCPU_GCB_MIIM_REGS_H_ +#include <linux/bitops.h> + #define MIIM_MII_STATUS(gi) (0xc8 + (gi * 36)) #define MIIM_MII_CMD(gi) (0xd0 + (gi * 36)) #define MIIM_MII_DATA(gi) (0xd4 + (gi * 36)) diff --git a/arch/mips/mach-mscc/include/mach/jr2/jr2_icpu_cfg.h b/arch/mips/mach-mscc/include/mach/jr2/jr2_icpu_cfg.h index 6e0bbe2746a620520cabc5a5feb9f11134d0c186..151bb3e6d486464d175fee5f44b67b2c620cb657 100644 --- a/arch/mips/mach-mscc/include/mach/jr2/jr2_icpu_cfg.h +++ b/arch/mips/mach-mscc/include/mach/jr2/jr2_icpu_cfg.h @@ -6,6 +6,8 @@ #ifndef _MSCC_JR2_ICPU_CFG_H_ #define _MSCC_JR2_ICPU_CFG_H_ +#include <linux/bitops.h> + #define ICPU_GPR(x) (0x4 * (x)) #define ICPU_GPR_RSZ 0x4 diff --git a/arch/mips/mach-mscc/include/mach/luton/luton_devcpu_gcb.h b/arch/mips/mach-mscc/include/mach/luton/luton_devcpu_gcb.h index a74a68593d27e7fca68938257bedebe14b5855d7..750a8013d1623c82d2951f67058a416811a1db8c 100644 --- a/arch/mips/mach-mscc/include/mach/luton/luton_devcpu_gcb.h +++ b/arch/mips/mach-mscc/include/mach/luton/luton_devcpu_gcb.h @@ -6,6 +6,7 @@ #ifndef _MSCC_OCELOT_DEVCPU_GCB_H_ #define _MSCC_OCELOT_DEVCPU_GCB_H_ +#include <linux/bitops.h> #define PERF_SOFT_RST 0x90 #define PERF_SOFT_RST_SOFT_SWC_RST BIT(1) diff --git a/arch/mips/mach-mscc/include/mach/luton/luton_devcpu_gcb_miim_regs.h b/arch/mips/mach-mscc/include/mach/luton/luton_devcpu_gcb_miim_regs.h index 2303734894cd3c2fd9171a878e3d3b78bef04daa..07c4f9aeb613dceae0496e2823e915c52b7e8c9a 100644 --- a/arch/mips/mach-mscc/include/mach/luton/luton_devcpu_gcb_miim_regs.h +++ b/arch/mips/mach-mscc/include/mach/luton/luton_devcpu_gcb_miim_regs.h @@ -8,6 +8,7 @@ #ifndef _MSCC_LUTON_MIIM_REGS_H_ #define _MSCC_LUTON_MIIM_REGS_H_ +#include <linux/bitops.h> #define MIIM_MII_STATUS(gi) (0xa0 + (gi * 36)) #define MIIM_MII_CMD(gi) (0xa8 + (gi * 36)) #define MIIM_MII_DATA(gi) (0xac + (gi * 36)) diff --git a/arch/mips/mach-mscc/include/mach/luton/luton_icpu_cfg.h b/arch/mips/mach-mscc/include/mach/luton/luton_icpu_cfg.h index 9233f037bb89ce7887fe142b5aadbdd5838f5807..ded7c5fa77af5b8c093ae92b0a6349424df4343e 100644 --- a/arch/mips/mach-mscc/include/mach/luton/luton_icpu_cfg.h +++ b/arch/mips/mach-mscc/include/mach/luton/luton_icpu_cfg.h @@ -6,6 +6,7 @@ #ifndef _MSCC_OCELOT_ICPU_CFG_H_ #define _MSCC_OCELOT_ICPU_CFG_H_ +#include <linux/bitops.h> #define ICPU_GPR(x) (0x4 * (x)) #define ICPU_GPR_RSZ 0x4 diff --git a/arch/mips/mach-mscc/include/mach/ocelot/ocelot_devcpu_gcb.h b/arch/mips/mach-mscc/include/mach/ocelot/ocelot_devcpu_gcb.h index b2a4203644aa7c8c88ee44f4ef6c388750c3686b..5715ec164c85aca079ea7bab0ea56d1704743e6c 100644 --- a/arch/mips/mach-mscc/include/mach/ocelot/ocelot_devcpu_gcb.h +++ b/arch/mips/mach-mscc/include/mach/ocelot/ocelot_devcpu_gcb.h @@ -6,6 +6,7 @@ #ifndef _MSCC_OCELOT_DEVCPU_GCB_H_ #define _MSCC_OCELOT_DEVCPU_GCB_H_ +#include <linux/bitops.h> #define PERF_SOFT_RST 0x8 #define PERF_SOFT_RST_SOFT_NON_CFG_RST BIT(2) diff --git a/arch/mips/mach-mscc/include/mach/ocelot/ocelot_devcpu_gcb_miim_regs.h b/arch/mips/mach-mscc/include/mach/ocelot/ocelot_devcpu_gcb_miim_regs.h index 4ad92214a3b3513ffc6df26f0070bc1c54bf5b8e..50cf073eab6b947ff8785db3999c7f132458d286 100644 --- a/arch/mips/mach-mscc/include/mach/ocelot/ocelot_devcpu_gcb_miim_regs.h +++ b/arch/mips/mach-mscc/include/mach/ocelot/ocelot_devcpu_gcb_miim_regs.h @@ -6,6 +6,7 @@ #ifndef _MSCC_OCELOT_DEVCPU_GCB_MIIM_REGS_H_ #define _MSCC_OCELOT_DEVCPU_GCB_MIIM_REGS_H_ +#include <linux/bitops.h> #define MIIM_MII_STATUS(gi) (0x9c + (gi * 36)) #define MIIM_MII_CMD(gi) (0xa4 + (gi * 36)) #define MIIM_MII_DATA(gi) (0xa8 + (gi * 36)) diff --git a/arch/mips/mach-mscc/include/mach/ocelot/ocelot_icpu_cfg.h b/arch/mips/mach-mscc/include/mach/ocelot/ocelot_icpu_cfg.h index 04cf70bec3419cbf0ad5628598857d501bed60a2..fb10bf2c26e87cf1e45c5858c037d5ab369a5e0f 100644 --- a/arch/mips/mach-mscc/include/mach/ocelot/ocelot_icpu_cfg.h +++ b/arch/mips/mach-mscc/include/mach/ocelot/ocelot_icpu_cfg.h @@ -6,6 +6,7 @@ #ifndef _MSCC_OCELOT_ICPU_CFG_H_ #define _MSCC_OCELOT_ICPU_CFG_H_ +#include <linux/bitops.h> #define ICPU_GPR(x) (0x4 * (x)) #define ICPU_GPR_RSZ 0x4 diff --git a/arch/mips/mach-mscc/include/mach/serval/serval_devcpu_gcb.h b/arch/mips/mach-mscc/include/mach/serval/serval_devcpu_gcb.h index 9b80fdb574b72c5ab1007709686b7fd8f5033820..43d40be716552d18796ecbc8c0a92e9a885a1dca 100644 --- a/arch/mips/mach-mscc/include/mach/serval/serval_devcpu_gcb.h +++ b/arch/mips/mach-mscc/include/mach/serval/serval_devcpu_gcb.h @@ -6,6 +6,7 @@ #ifndef _MSCC_SERVAL_DEVCPU_GCB_H_ #define _MSCC_SERVAL_DEVCPU_GCB_H_ +#include <linux/bitops.h> #define CHIP_ID 0x0 #define PERF_GPR 0x4 diff --git a/arch/mips/mach-mscc/include/mach/serval/serval_devcpu_gcb_miim_regs.h b/arch/mips/mach-mscc/include/mach/serval/serval_devcpu_gcb_miim_regs.h index a3abbc40156fe4810fa24b0bebcdd9213b995f68..e8cb1dcf9a06d9735a207ccc4733f4c90f8229b3 100644 --- a/arch/mips/mach-mscc/include/mach/serval/serval_devcpu_gcb_miim_regs.h +++ b/arch/mips/mach-mscc/include/mach/serval/serval_devcpu_gcb_miim_regs.h @@ -6,6 +6,7 @@ #ifndef _MSCC_SERVAL_DEVCPU_GCB_MIIM_REGS_H_ #define _MSCC_SERVAL_DEVCPU_GCB_MIIM_REGS_H_ +#include <linux/bitops.h> #define MIIM_MII_STATUS(gi) (0x5c + (gi * 36)) #define MIIM_MII_CMD(gi) (0x64 + (gi * 36)) #define MIIM_MII_DATA(gi) (0x68 + (gi * 36)) diff --git a/arch/mips/mach-mscc/include/mach/serval/serval_icpu_cfg.h b/arch/mips/mach-mscc/include/mach/serval/serval_icpu_cfg.h index b8c9d5ca49e5095d61f3e088771ccb58f7bb85f0..4d4151b3d558d92940fdaafea29c8c11836e5864 100644 --- a/arch/mips/mach-mscc/include/mach/serval/serval_icpu_cfg.h +++ b/arch/mips/mach-mscc/include/mach/serval/serval_icpu_cfg.h @@ -6,6 +6,7 @@ #ifndef _MSCC_SERVAL_ICPU_CFG_H_ #define _MSCC_SERVAL_ICPU_CFG_H_ +#include <linux/bitops.h> #define ICPU_GPR(x) (0x4 * (x)) #define ICPU_GPR_RSZ 0x8 diff --git a/arch/mips/mach-mscc/include/mach/servalt/servalt_devcpu_gcb.h b/arch/mips/mach-mscc/include/mach/servalt/servalt_devcpu_gcb.h index 493eaad1df7fdc4e93b4e6ebd12032944070850b..7d6c64f316b6a3d622a4a526e011d04d493b7d6b 100644 --- a/arch/mips/mach-mscc/include/mach/servalt/servalt_devcpu_gcb.h +++ b/arch/mips/mach-mscc/include/mach/servalt/servalt_devcpu_gcb.h @@ -6,6 +6,7 @@ #ifndef _MSCC_SERVALT_DEVCPU_GCB_H_ #define _MSCC_SERVALT_DEVCPU_GCB_H_ +#include <linux/bitops.h> #define PERF_GPR 0x4 #define PERF_SOFT_RST 0x8 diff --git a/arch/mips/mach-mscc/include/mach/servalt/servalt_devcpu_gcb_miim_regs.h b/arch/mips/mach-mscc/include/mach/servalt/servalt_devcpu_gcb_miim_regs.h index 8c67190ecb4a9d1fc7972ec22ade5c658f6977cb..72d7c4d08de38e7cacc0c6710f11924530e6022f 100644 --- a/arch/mips/mach-mscc/include/mach/servalt/servalt_devcpu_gcb_miim_regs.h +++ b/arch/mips/mach-mscc/include/mach/servalt/servalt_devcpu_gcb_miim_regs.h @@ -6,6 +6,7 @@ #ifndef _MSCC_SERVALT_DEVCPU_GCB_MIIM_REGS_H_ #define _MSCC_SERVALT_DEVCPU_GCB_MIIM_REGS_H_ +#include <linux/bitops.h> #define MIIM_MII_STATUS(gi) (0xc4 + (gi * 36)) #define MIIM_MII_CMD(gi) (0xcc + (gi * 36)) #define MIIM_MII_DATA(gi) (0xd0 + (gi * 36)) diff --git a/arch/mips/mach-mscc/include/mach/servalt/servalt_icpu_cfg.h b/arch/mips/mach-mscc/include/mach/servalt/servalt_icpu_cfg.h index 491ead169fe0fddf07fd7e9876172892b0c1a69d..13967f66b0644065c52b656d5b194c55aaa5ceab 100644 --- a/arch/mips/mach-mscc/include/mach/servalt/servalt_icpu_cfg.h +++ b/arch/mips/mach-mscc/include/mach/servalt/servalt_icpu_cfg.h @@ -6,6 +6,7 @@ #ifndef _MSCC_SERVALT_ICPU_CFG_H_ #define _MSCC_SERVALT_ICPU_CFG_H_ +#include <linux/bitops.h> #define ICPU_GPR(x) (0x4 * (x)) #define ICPU_GPR_RSZ 0x8 diff --git a/arch/mips/mach-mscc/include/mach/tlb.h b/arch/mips/mach-mscc/include/mach/tlb.h index fdb554f5518bd059fb4e545c68155406eb5f3446..ebd8ad0dc1a580c3c9dcef9af59c57fa4efc3e37 100644 --- a/arch/mips/mach-mscc/include/mach/tlb.h +++ b/arch/mips/mach-mscc/include/mach/tlb.h @@ -7,6 +7,7 @@ #define __ASM_MACH_TLB_H #include <asm/mipsregs.h> +#include <linux/bitops.h> #include <mach/common.h> #include <linux/sizes.h> diff --git a/arch/mips/mach-mtmips/cpu.c b/arch/mips/mach-mtmips/cpu.c index 9ee5c7fdf6db09dad2b52b3be48877f316775545..2ddf8cb0967e402d4cf3d4462f6d5fb64a6d6255 100644 --- a/arch/mips/mach-mtmips/cpu.c +++ b/arch/mips/mach-mtmips/cpu.c @@ -6,6 +6,7 @@ #include <common.h> #include <init.h> #include <malloc.h> +#include <linux/bitops.h> #include <linux/io.h> #include <linux/sizes.h> diff --git a/arch/nios2/cpu/cpu.c b/arch/nios2/cpu/cpu.c index 756535a0b45df3e068231969eb75d49a4a85d7b7..7f5e731a0f54c6207138f192918281d6f07b6428 100644 --- a/arch/nios2/cpu/cpu.c +++ b/arch/nios2/cpu/cpu.c @@ -13,6 +13,7 @@ #include <init.h> #include <irq_func.h> #include <asm/cache.h> +#include <asm/system.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/powerpc/cpu/mpc83xx/pci.c b/arch/powerpc/cpu/mpc83xx/pci.c index 74f824d2bca425c65817a19e48882bc1c2e1c8cb..f017985ae9241cede77076f617c8a3aa349d3770 100644 --- a/arch/powerpc/cpu/mpc83xx/pci.c +++ b/arch/powerpc/cpu/mpc83xx/pci.c @@ -9,6 +9,7 @@ #include <common.h> #include <init.h> #include <pci.h> +#include <asm/bitops.h> #include <linux/delay.h> #if defined(CONFIG_OF_LIBFDT) diff --git a/arch/powerpc/cpu/mpc83xx/spd_sdram.c b/arch/powerpc/cpu/mpc83xx/spd_sdram.c index c28e4425ee753b6825c0041b31291ddc080df726..aeff007fb0639eff57b93a77bd1552ca75c32e3d 100644 --- a/arch/powerpc/cpu/mpc83xx/spd_sdram.c +++ b/arch/powerpc/cpu/mpc83xx/spd_sdram.c @@ -23,6 +23,7 @@ #include <spd.h> #include <asm/mmu.h> #include <spd_sdram.h> +#include <asm/bitops.h> #include <linux/delay.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/powerpc/cpu/mpc85xx/pci.c b/arch/powerpc/cpu/mpc85xx/pci.c index 1d0213a513cdb5797cb4679d6b1f055f755a9b8f..9a6fc13b73f13f369a54cd9cacc0e72104e3d048 100644 --- a/arch/powerpc/cpu/mpc85xx/pci.c +++ b/arch/powerpc/cpu/mpc85xx/pci.c @@ -9,6 +9,7 @@ * PCI Configuration space access support for MPC85xx PCI Bridge */ #include <common.h> +#include <asm/bitops.h> #include <asm/cpm_85xx.h> #include <pci.h> diff --git a/arch/powerpc/cpu/mpc85xx/tlb.c b/arch/powerpc/cpu/mpc85xx/tlb.c index 808d953c525907beecdbb9f18fd05029c4ffaab2..4465ae7565a45be93f4f0d55a0fbf00d5e455311 100644 --- a/arch/powerpc/cpu/mpc85xx/tlb.c +++ b/arch/powerpc/cpu/mpc85xx/tlb.c @@ -7,6 +7,7 @@ */ #include <common.h> +#include <asm/bitops.h> #include <asm/processor.h> #include <asm/mmu.h> #ifdef CONFIG_ADDR_MAP diff --git a/arch/powerpc/cpu/mpc8xxx/fsl_pamu.c b/arch/powerpc/cpu/mpc8xxx/fsl_pamu.c index 3d00de3181f7b7da3faa5bfe36f67ac8d2dd1c0c..2c378b761588aaa284c5be84577051401b6cdf60 100644 --- a/arch/powerpc/cpu/mpc8xxx/fsl_pamu.c +++ b/arch/powerpc/cpu/mpc8xxx/fsl_pamu.c @@ -7,6 +7,7 @@ #include <common.h> #include <log.h> +#include <linux/bitops.h> #include <linux/log2.h> #include <malloc.h> #include <asm/fsl_pamu.h> diff --git a/arch/powerpc/cpu/mpc8xxx/law.c b/arch/powerpc/cpu/mpc8xxx/law.c index ca9e6aa8eb102cafeb7c44c4bd40c25c6d445e85..e388386ad42e0dc32cb814145bb8e622efbc8276 100644 --- a/arch/powerpc/cpu/mpc8xxx/law.c +++ b/arch/powerpc/cpu/mpc8xxx/law.c @@ -7,6 +7,7 @@ */ #include <common.h> +#include <asm/bitops.h> #include <linux/compiler.h> #include <asm/fsl_law.h> #include <asm/io.h> diff --git a/arch/powerpc/include/asm/mmu.h b/arch/powerpc/include/asm/mmu.h index 82e5f9ffc7c39bcc0d5a85a2a8807834c618eb77..353dc4e8748d38f50c36ded916a11a1adefade60 100644 --- a/arch/powerpc/include/asm/mmu.h +++ b/arch/powerpc/include/asm/mmu.h @@ -7,6 +7,7 @@ #ifndef __ASSEMBLY__ /* Hardware Page Table Entry */ +#include <linux/bitops.h> typedef struct _PTE { #ifdef CONFIG_PPC64BRIDGE unsigned long long vsid:52; diff --git a/arch/powerpc/include/asm/u-boot.h b/arch/powerpc/include/asm/u-boot.h index 1841565d0a854e5ede1a1b3e4ed54f2af2e796f5..19b3c0db5fae5df0a16fceb5226b985d3941dcc2 100644 --- a/arch/powerpc/include/asm/u-boot.h +++ b/arch/powerpc/include/asm/u-boot.h @@ -13,6 +13,8 @@ #ifndef __U_BOOT_H__ #define __U_BOOT_H__ +#include <config.h> + /* For image.h:image_check_target_arch() */ #define IH_ARCH_DEFAULT IH_ARCH_PPC diff --git a/arch/riscv/cpu/cpu.c b/arch/riscv/cpu/cpu.c index 1cebb0322efb9b07249aa44e8115b537c0e89571..5804aa8e737727dc1cada61a6b23f23106518058 100644 --- a/arch/riscv/cpu/cpu.c +++ b/arch/riscv/cpu/cpu.c @@ -10,6 +10,7 @@ #include <log.h> #include <asm/encoding.h> #include <dm/uclass-internal.h> +#include <linux/bitops.h> /* * The variables here must be stored in the data section since they are used diff --git a/arch/riscv/include/asm/encoding.h b/arch/riscv/include/asm/encoding.h index a0695da93643b8c07d8e4b20c3b2d2702f799900..edafad36b38ddb0f4f2a9ffbc66ad17260858f0f 100644 --- a/arch/riscv/include/asm/encoding.h +++ b/arch/riscv/include/asm/encoding.h @@ -8,6 +8,9 @@ #define RISCV_CSR_ENCODING_H #include <asm/csr.h> +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif #if CONFIG_IS_ENABLED(RISCV_SMODE) #define MODE_PREFIX(__suffix) s##__suffix diff --git a/arch/sh/lib/time.c b/arch/sh/lib/time.c index d09f782f5f0c5b705c7acc887ba86c11bc14c4f4..f951544728547d18bad8d204bd984c99e5779aa9 100644 --- a/arch/sh/lib/time.c +++ b/arch/sh/lib/time.c @@ -14,6 +14,7 @@ #include <init.h> #include <asm/processor.h> #include <asm/io.h> +#include <linux/bitops.h> #if defined(CONFIG_CPU_SH4) || defined(CONFIG_ARCH_RMOBILE) #define TSTR 0x4 diff --git a/arch/x86/cpu/apollolake/fsp_s.c b/arch/x86/cpu/apollolake/fsp_s.c index 7d62af9cc0b21c5dc3e5e7afd6f7b788389a1d35..3e303f8f32806a456da318bd37b8f424b7167151 100644 --- a/arch/x86/cpu/apollolake/fsp_s.c +++ b/arch/x86/cpu/apollolake/fsp_s.c @@ -23,6 +23,7 @@ #include <asm/arch/systemagent.h> #include <asm/arch/fsp/fsp_configs.h> #include <asm/arch/fsp/fsp_s_upd.h> +#include <linux/bitops.h> #define PCH_P2SB_E0 0xe0 #define HIDE_BIT BIT(0) diff --git a/arch/x86/cpu/apollolake/pmc.c b/arch/x86/cpu/apollolake/pmc.c index c82cbdca6ada40f8f6af6afe5ff7c25d3ae2319d..192dec7109aa3ece3cf26e9a6b825d9611927db0 100644 --- a/arch/x86/cpu/apollolake/pmc.c +++ b/arch/x86/cpu/apollolake/pmc.c @@ -16,6 +16,7 @@ #include <acpi/acpi_s3.h> #include <asm/io.h> #include <asm/pci.h> +#include <linux/bitops.h> #include <power/acpi_pmc.h> #define GPIO_GPE_CFG 0x1050 diff --git a/arch/x86/cpu/baytrail/valleyview.c b/arch/x86/cpu/baytrail/valleyview.c index f2e48f401feec6d34e444f4183482fd6bdd2dacf..f73738ce5c01bbe07ec0cc599beea8374d2843fe 100644 --- a/arch/x86/cpu/baytrail/valleyview.c +++ b/arch/x86/cpu/baytrail/valleyview.c @@ -11,6 +11,7 @@ #include <asm/mrccache.h> #include <asm/post.h> #include <asm/arch/iomap.h> +#include <linux/bitops.h> /* GPIO SUS */ #define GPIO_SUS_PAD_BASE (IO_BASE_ADDRESS + IO_BASE_OFFSET_GPSSUS) diff --git a/arch/x86/cpu/intel_common/lpc.c b/arch/x86/cpu/intel_common/lpc.c index 2a538cf12e32ee2fa6c017ab578bd0326fa3ef8a..3420f03ccaa241f28feb880a2d4e60bfc1770a4b 100644 --- a/arch/x86/cpu/intel_common/lpc.c +++ b/arch/x86/cpu/intel_common/lpc.c @@ -12,6 +12,7 @@ #include <asm/intel_regs.h> #include <asm/io.h> #include <asm/lpc_common.h> +#include <linux/bitops.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/x86/cpu/intel_common/p2sb.c b/arch/x86/cpu/intel_common/p2sb.c index 860eaf91f3153f8cbc560bc8e70c4c44ef09b89f..ec35d04ae552e1cdabae9f0c21dd024287a7b7fb 100644 --- a/arch/x86/cpu/intel_common/p2sb.c +++ b/arch/x86/cpu/intel_common/p2sb.c @@ -14,6 +14,7 @@ #include <p2sb.h> #include <spl.h> #include <asm/pci.h> +#include <linux/bitops.h> struct p2sb_platdata { #if CONFIG_IS_ENABLED(OF_PLATDATA) diff --git a/arch/x86/cpu/ivybridge/bd82x6x.c b/arch/x86/cpu/ivybridge/bd82x6x.c index d72c0d637a7c20a114093eb9492dfeab6a5daa50..5448f064fcbf0761da5ba445b396c6d7baaf68bb 100644 --- a/arch/x86/cpu/ivybridge/bd82x6x.c +++ b/arch/x86/cpu/ivybridge/bd82x6x.c @@ -18,6 +18,7 @@ #include <asm/arch/model_206ax.h> #include <asm/arch/pch.h> #include <asm/arch/sandybridge.h> +#include <linux/bitops.h> #include <linux/delay.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/x86/include/asm/arch-apollolake/lpc.h b/arch/x86/include/asm/arch-apollolake/lpc.h index 5d2adad3197ef6f20b0a164b7eb9aae215888072..977b7eccd8849f147785ab39963bf262b4e32a4d 100644 --- a/arch/x86/include/asm/arch-apollolake/lpc.h +++ b/arch/x86/include/asm/arch-apollolake/lpc.h @@ -7,6 +7,7 @@ #ifndef _ASM_ARCH_LPC_H #define _ASM_ARCH_LPC_H +#include <linux/bitops.h> #define LPC_SERIRQ_CTL 0x64 #define LPC_SCNT_EN BIT(7) #define LPC_SCNT_MODE BIT(6) diff --git a/arch/x86/include/asm/arch-apollolake/systemagent.h b/arch/x86/include/asm/arch-apollolake/systemagent.h index 206d8903fa55cde6999eea31af26db2955693a92..9e7bd62751a727eed5c2ccc4f929502a57082ced 100644 --- a/arch/x86/include/asm/arch-apollolake/systemagent.h +++ b/arch/x86/include/asm/arch-apollolake/systemagent.h @@ -8,6 +8,7 @@ #define _ASM_ARCH_SYSTEMAGENT_H /* Device 0:0.0 PCI configuration space */ +#include <linux/bitops.h> #define MCHBAR 0x48 /* RAPL Package Power Limit register under MCHBAR */ diff --git a/arch/x86/include/asm/arch-broadwell/adsp.h b/arch/x86/include/asm/arch-broadwell/adsp.h index eb825ce1c06796f15e2efecfb953ef25026eea16..a5a1f73bf4835d91d637afd9c7e7b89edd6e5b00 100644 --- a/arch/x86/include/asm/arch-broadwell/adsp.h +++ b/arch/x86/include/asm/arch-broadwell/adsp.h @@ -10,6 +10,7 @@ #ifndef __ASM_ARCH_BROADWELL_ADSP_H #define __ASM_ARCH_BROADWELL_ADSP_H +#include <linux/bitops.h> #define ADSP_PCI_IRQ 23 #define ADSP_ACPI_IRQ 3 #define ADSP_ACPI_IRQEN BIT(3) diff --git a/arch/x86/include/asm/arch-broadwell/serialio.h b/arch/x86/include/asm/arch-broadwell/serialio.h index 5e98eaf53fd6239cc8053d8311f583a50bdf84f7..ff09278b9626682258959055e9c89714f1d9884d 100644 --- a/arch/x86/include/asm/arch-broadwell/serialio.h +++ b/arch/x86/include/asm/arch-broadwell/serialio.h @@ -9,6 +9,7 @@ #define __ARCH_BROADWELL_SERIALIO_H_ /* Serial IO IOBP Registers */ +#include <linux/bitops.h> #define SIO_IOBP_PORTCTRL0 0xcb000000 /* SDIO D23:F0 */ #define SIO_IOBP_PORTCTRL0_ACPI_IRQ_EN BIT(5) #define SIO_IOBP_PORTCTRL0_PCI_CONF_DIS BIT(4) diff --git a/arch/x86/include/asm/atomic.h b/arch/x86/include/asm/atomic.h index 806f7873819ed5d1593dfc0fa65a2392ba079467..4ca0f79bffbf751ea9c7dfef40fc1988d9138b04 100644 --- a/arch/x86/include/asm/atomic.h +++ b/arch/x86/include/asm/atomic.h @@ -1,6 +1,7 @@ #ifndef _ASM_X86_ATOMIC_H #define _ASM_X86_ATOMIC_H +#include <linux/bitops.h> #include <linux/compiler.h> #include <linux/types.h> #include <asm/processor.h> diff --git a/arch/x86/include/asm/fast_spi.h b/arch/x86/include/asm/fast_spi.h index 6894298526efc58b6e1d91f806769cca52ccd906..47c1da80d770a2668592cb28d93e46f0f942a93e 100644 --- a/arch/x86/include/asm/fast_spi.h +++ b/arch/x86/include/asm/fast_spi.h @@ -7,6 +7,7 @@ #define ASM_FAST_SPI_H /* Register offsets from the MMIO region base (PCI_BASE_ADDRESS_0) */ +#include <linux/bitops.h> struct fast_spi_regs { u32 bfp; u32 hsfsts_ctl; diff --git a/arch/x86/include/asm/intel_pinctrl.h b/arch/x86/include/asm/intel_pinctrl.h index 72fd9246cbd1da85b372db9a0d016082c862e819..e2524b089d4c67e4302f6dd60af9a1399e6b4c42 100644 --- a/arch/x86/include/asm/intel_pinctrl.h +++ b/arch/x86/include/asm/intel_pinctrl.h @@ -10,6 +10,7 @@ #define __ASM_INTEL_PINCTRL_H #include <dm/pinctrl.h> +#include <linux/bitops.h> /** * struct pad_config - config for a pad diff --git a/arch/x86/include/asm/msr-index.h b/arch/x86/include/asm/msr-index.h index 246c14f815b7fb3f193fd984436aeba8f5006814..94e6b18e21cd9c8f65b6a1555566cc01a79d10de 100644 --- a/arch/x86/include/asm/msr-index.h +++ b/arch/x86/include/asm/msr-index.h @@ -9,6 +9,10 @@ #ifndef _ASM_X86_MSR_INDEX_H #define _ASM_X86_MSR_INDEX_H +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + /* CPU model specific register (MSR) numbers */ /* x86-64 specific MSRs */ diff --git a/arch/x86/lib/scu.c b/arch/x86/lib/scu.c index 41e673923617aac4c570196130ca28a78cc2f75e..d29d701631d27095f437e49d15ec1c8b88514dfa 100644 --- a/arch/x86/lib/scu.c +++ b/arch/x86/lib/scu.c @@ -15,6 +15,7 @@ #include <syscon.h> #include <asm/cpu.h> #include <asm/scu.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/errno.h> #include <linux/io.h> diff --git a/board/CZ.NIC/turris_mox/mox_sp.c b/board/CZ.NIC/turris_mox/mox_sp.c index 8139345ff21b83a91f8f389483587a359e9a25f9..cc57b9f095f705b2f106639137caff79f1aab5fe 100644 --- a/board/CZ.NIC/turris_mox/mox_sp.c +++ b/board/CZ.NIC/turris_mox/mox_sp.c @@ -6,6 +6,7 @@ #include <common.h> #include <asm/arch/soc.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/delay.h> #define RWTM_BASE (MVEBU_REGISTER(0xb0000)) diff --git a/board/CZ.NIC/turris_omnia/turris_omnia.c b/board/CZ.NIC/turris_omnia/turris_omnia.c index 25759e09ecfc3c332478e6984d562b631b7dd887..2da878d3648b6cc89016d067a846f2cad4b9b71d 100644 --- a/board/CZ.NIC/turris_omnia/turris_omnia.c +++ b/board/CZ.NIC/turris_omnia/turris_omnia.c @@ -21,6 +21,7 @@ #include <dm/uclass.h> #include <fdt_support.h> #include <time.h> +#include <linux/bitops.h> #include <u-boot/crc.h> # include <atsha204a-i2c.h> diff --git a/board/Marvell/db-88f6281-bp/db-88f6281-bp.c b/board/Marvell/db-88f6281-bp/db-88f6281-bp.c index a6f1167e390c775b7ee92cd747925369f2c3b975..62027bd6385e957a6d07a1ec6221febd5b342a1d 100644 --- a/board/Marvell/db-88f6281-bp/db-88f6281-bp.c +++ b/board/Marvell/db-88f6281-bp/db-88f6281-bp.c @@ -3,6 +3,7 @@ #include <common.h> #include <init.h> #include <net.h> +#include <linux/bitops.h> #include <linux/io.h> #include <miiphy.h> #include <netdev.h> diff --git a/board/Marvell/db-88f6720/db-88f6720.c b/board/Marvell/db-88f6720/db-88f6720.c index ba0a944b9a0ee70d383be25a8d831e649d5704af..e9897b3976ff94635c84e636d1a835acabee9d7d 100644 --- a/board/Marvell/db-88f6720/db-88f6720.c +++ b/board/Marvell/db-88f6720/db-88f6720.c @@ -11,6 +11,7 @@ #include <asm/io.h> #include <asm/arch/cpu.h> #include <asm/arch/soc.h> +#include <linux/bitops.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/board/Marvell/db-88f6820-amc/db-88f6820-amc.c b/board/Marvell/db-88f6820-amc/db-88f6820-amc.c index f225f467bf509994ab39a7eef1185b6d5269ad14..60ce940e1dd6415635c5fb78b89170e70a9ee839 100644 --- a/board/Marvell/db-88f6820-amc/db-88f6820-amc.c +++ b/board/Marvell/db-88f6820-amc/db-88f6820-amc.c @@ -12,6 +12,7 @@ #include <asm/io.h> #include <asm/arch/cpu.h> #include <asm/arch/soc.h> +#include <linux/bitops.h> #include "../drivers/ddr/marvell/a38x/ddr3_init.h" #include <../serdes/a38x/high_speed_env_spec.h> diff --git a/board/Marvell/db-88f6820-gp/db-88f6820-gp.c b/board/Marvell/db-88f6820-gp/db-88f6820-gp.c index 53a80c949bce8ec6109271cfbfd95398aeb365f9..08a3c1cc80e00c6784000dc88ea1f4a0ff841b83 100644 --- a/board/Marvell/db-88f6820-gp/db-88f6820-gp.c +++ b/board/Marvell/db-88f6820-gp/db-88f6820-gp.c @@ -12,6 +12,7 @@ #include <asm/io.h> #include <asm/arch/cpu.h> #include <asm/arch/soc.h> +#include <linux/bitops.h> #include "../drivers/ddr/marvell/a38x/ddr3_init.h" #include <../serdes/a38x/high_speed_env_spec.h> diff --git a/board/Marvell/db-mv784mp-gp/db-mv784mp-gp.c b/board/Marvell/db-mv784mp-gp/db-mv784mp-gp.c index cb653578446fa6292455d3cc8b452c528fa3024c..63bb771ab3c978fa3036d2136aa2c31c63a8ec5c 100644 --- a/board/Marvell/db-mv784mp-gp/db-mv784mp-gp.c +++ b/board/Marvell/db-mv784mp-gp/db-mv784mp-gp.c @@ -11,6 +11,7 @@ #include <asm/io.h> #include <asm/arch/cpu.h> #include <asm/arch/soc.h> +#include <linux/bitops.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/board/Marvell/db-xc3-24g4xg/db-xc3-24g4xg.c b/board/Marvell/db-xc3-24g4xg/db-xc3-24g4xg.c index 1153b188e7e4bd948328a875f0cde834115fa919..5f12a27002f0027af6e750d6ecc6aef35e2e5515 100644 --- a/board/Marvell/db-xc3-24g4xg/db-xc3-24g4xg.c +++ b/board/Marvell/db-xc3-24g4xg/db-xc3-24g4xg.c @@ -7,6 +7,7 @@ #include <i2c.h> #include <init.h> #include <asm/gpio.h> +#include <linux/bitops.h> #include <linux/mbus.h> #include <linux/io.h> #include <asm/arch/cpu.h> diff --git a/board/Synology/ds414/ds414.c b/board/Synology/ds414/ds414.c index deb530fe78f9e4c5e612a0651e6b9bce592f1a35..632205164ebfe66688353ffebab6f30e3e04cd1d 100644 --- a/board/Synology/ds414/ds414.c +++ b/board/Synology/ds414/ds414.c @@ -10,6 +10,7 @@ #include <asm/io.h> #include <asm/arch/cpu.h> #include <asm/arch/soc.h> +#include <linux/bitops.h> #include <linux/mbus.h> #include "../drivers/ddr/marvell/axp/ddr3_hw_training.h" diff --git a/board/alliedtelesis/SBx81LIFKW/sbx81lifkw.c b/board/alliedtelesis/SBx81LIFKW/sbx81lifkw.c index 982cb157b768d7b85e7d11cf3eff3047536ba016..668484b71b6a2c13ffceece4495682756de9a451 100644 --- a/board/alliedtelesis/SBx81LIFKW/sbx81lifkw.c +++ b/board/alliedtelesis/SBx81LIFKW/sbx81lifkw.c @@ -7,6 +7,7 @@ #include <common.h> #include <init.h> #include <net.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/io.h> #include <miiphy.h> diff --git a/board/alliedtelesis/SBx81LIFXCAT/sbx81lifxcat.c b/board/alliedtelesis/SBx81LIFXCAT/sbx81lifxcat.c index 5c9124fbb4ad251bc03172e6ce17377f0457dcc1..e4bf507cc3f096871c2b93fb53c1b712285e166d 100644 --- a/board/alliedtelesis/SBx81LIFXCAT/sbx81lifxcat.c +++ b/board/alliedtelesis/SBx81LIFXCAT/sbx81lifxcat.c @@ -10,6 +10,7 @@ #include <net.h> #include <netdev.h> #include <led.h> +#include <linux/bitops.h> #include <linux/io.h> #include <asm/arch/cpu.h> #include <asm/arch/soc.h> diff --git a/board/alliedtelesis/x530/x530.c b/board/alliedtelesis/x530/x530.c index 1a6dec04a32eb6d0e934cdd4af29d3bbb00d37d0..c7438aeaf1488bc2a46b6796c6244b848921a41b 100644 --- a/board/alliedtelesis/x530/x530.c +++ b/board/alliedtelesis/x530/x530.c @@ -11,6 +11,7 @@ #include <init.h> #include <wdt.h> #include <asm/gpio.h> +#include <linux/bitops.h> #include <linux/mbus.h> #include <linux/io.h> #include <asm/arch/cpu.h> diff --git a/board/cortina/presidio-asic/presidio.c b/board/cortina/presidio-asic/presidio.c index 427151c8dfb56c2c534a8814e4f282981ba661af..3c132f127179cd0bb765951f25b9d2b108cc597b 100644 --- a/board/cortina/presidio-asic/presidio.c +++ b/board/cortina/presidio-asic/presidio.c @@ -9,6 +9,7 @@ #include <errno.h> #include <netdev.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/compiler.h> #include <configs/presidio_asic.h> #include <linux/psci.h> diff --git a/board/dhelectronics/dh_stm32mp1/board.c b/board/dhelectronics/dh_stm32mp1/board.c index c7d316eab494e7e165938674730dde91df0dfa8e..26e827bc3849acbf9b0cf3af56865d699a48c9a2 100644 --- a/board/dhelectronics/dh_stm32mp1/board.c +++ b/board/dhelectronics/dh_stm32mp1/board.c @@ -32,6 +32,7 @@ #include <mtd_node.h> #include <netdev.h> #include <phy.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <power/regulator.h> #include <remoteproc.h> diff --git a/board/firefly/firefly-rk3308/roc_cc_rk3308.c b/board/firefly/firefly-rk3308/roc_cc_rk3308.c index 5f0a6594b679ae6a6673f674f415dd064057d56d..28dcc2a6903af649938ce2db4ace2adc28e6f483 100644 --- a/board/firefly/firefly-rk3308/roc_cc_rk3308.c +++ b/board/firefly/firefly-rk3308/roc_cc_rk3308.c @@ -8,6 +8,7 @@ #include <asm/io.h> #include <asm/arch/grf_rk3308.h> #include <asm/arch-rockchip/hardware.h> +#include <linux/bitops.h> #if defined(CONFIG_DEBUG_UART) #define GRF_BASE 0xff000000 diff --git a/board/freescale/imx8mq_evk/imx8mq_evk.c b/board/freescale/imx8mq_evk/imx8mq_evk.c index b2f464abb1a1a1598e790182219f5405e357e2e9..ae3be5785c9fcc6db969a78044c931c3f501706e 100644 --- a/board/freescale/imx8mq_evk/imx8mq_evk.c +++ b/board/freescale/imx8mq_evk/imx8mq_evk.c @@ -21,6 +21,7 @@ #include <asm/mach-imx/mxc_i2c.h> #include <asm/arch/clock.h> #include <spl.h> +#include <linux/bitops.h> #include <power/pmic.h> #include <power/pfuze100_pmic.h> #include "../common/pfuze.h" diff --git a/board/freescale/lx2160a/lx2160a.c b/board/freescale/lx2160a/lx2160a.c index fba068c82484e003b2af47a2db3175e0db68da5b..88eb66b03b6989ac3550fc4b55a5f27f4dbf7a1d 100644 --- a/board/freescale/lx2160a/lx2160a.c +++ b/board/freescale/lx2160a/lx2160a.c @@ -16,6 +16,7 @@ #include <fsl_sec.h> #include <asm/io.h> #include <fdt_support.h> +#include <linux/bitops.h> #include <linux/libfdt.h> #include <fsl-mc/fsl_mc.h> #include <env_internal.h> diff --git a/board/freescale/mpc8349emds/mpc8349emds.c b/board/freescale/mpc8349emds/mpc8349emds.c index 688bffae79cf1883cb69de3d1993b630ba82c183..576f04c1443070208c17f4850426ffeecb1b46e8 100644 --- a/board/freescale/mpc8349emds/mpc8349emds.c +++ b/board/freescale/mpc8349emds/mpc8349emds.c @@ -9,6 +9,7 @@ #include <init.h> #include <ioports.h> #include <mpc83xx.h> +#include <asm/bitops.h> #include <asm/mpc8349_pci.h> #include <i2c.h> #include <spi.h> diff --git a/board/freescale/mpc8349itx/mpc8349itx.c b/board/freescale/mpc8349itx/mpc8349itx.c index 074f3d2928244d5cfa760d680c5b2b79919fde4e..3993d5851509ad12b19acf54b0f337da217565f6 100644 --- a/board/freescale/mpc8349itx/mpc8349itx.c +++ b/board/freescale/mpc8349itx/mpc8349itx.c @@ -17,6 +17,7 @@ #include <pci.h> #endif #include <spd_sdram.h> +#include <asm/bitops.h> #include <asm/mmu.h> #if defined(CONFIG_OF_LIBFDT) #include <linux/libfdt.h> diff --git a/board/freescale/mpc837xemds/mpc837xemds.c b/board/freescale/mpc837xemds/mpc837xemds.c index d53c8618076957f2bbdf0157e1d17e0d47957189..182391ca9cac4414a1c2a04262f28172b1854845 100644 --- a/board/freescale/mpc837xemds/mpc837xemds.c +++ b/board/freescale/mpc837xemds/mpc837xemds.c @@ -9,6 +9,7 @@ #include <i2c.h> #include <init.h> #include <net.h> +#include <asm/bitops.h> #include <asm/io.h> #include <asm/fsl_mpc83xx_serdes.h> #include <spd_sdram.h> diff --git a/board/freescale/mpc837xerdb/mpc837xerdb.c b/board/freescale/mpc837xerdb/mpc837xerdb.c index 3fd2c5e84943e96a11881debe40161df66017cee..94cb93a42d5d203ea73340ff16b7157a5e1fcdb8 100644 --- a/board/freescale/mpc837xerdb/mpc837xerdb.c +++ b/board/freescale/mpc837xerdb/mpc837xerdb.c @@ -10,6 +10,7 @@ #include <hwconfig.h> #include <i2c.h> #include <init.h> +#include <asm/bitops.h> #include <asm/io.h> #include <asm/fsl_mpc83xx_serdes.h> #include <fdt_support.h> diff --git a/board/gdsys/a38x/ihs_phys.c b/board/gdsys/a38x/ihs_phys.c index 2ef3b3ab27045bd4f3e439fad508f6f056f4c297..c23d15092144921411819c34536fc33f0d46d5eb 100644 --- a/board/gdsys/a38x/ihs_phys.c +++ b/board/gdsys/a38x/ihs_phys.c @@ -2,6 +2,7 @@ #include <dm.h> #include <miiphy.h> #include <asm-generic/gpio.h> +#include <linux/bitops.h> #include <linux/delay.h> #include "ihs_phys.h" diff --git a/board/gdsys/common/cmd_ioloop.c b/board/gdsys/common/cmd_ioloop.c index 3b4494c59f50a4708eb3a7f0a8ba53931bf5e48f..3ea2bec8ebd5975273462544a6677d579fe8264e 100644 --- a/board/gdsys/common/cmd_ioloop.c +++ b/board/gdsys/common/cmd_ioloop.c @@ -7,6 +7,7 @@ #include <common.h> #include <command.h> #include <console.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <gdsys_fpga.h> diff --git a/board/gdsys/common/ioep-fpga.c b/board/gdsys/common/ioep-fpga.c index 066222c563ded8dfd8cab08792beb823776fd3ab..7292d7ab5a41095214a3ebe8c745427f5ae6a58f 100644 --- a/board/gdsys/common/ioep-fpga.c +++ b/board/gdsys/common/ioep-fpga.c @@ -9,6 +9,7 @@ #include <common.h> #include <gdsys_fpga.h> +#include <linux/bitops.h> enum pcb_video_type { PCB_DVI_SL, @@ -443,6 +444,7 @@ static int get_features(unsigned int fpga, struct fpga_features *features) return 0; } +#include <linux/bitops.h> #endif bool ioep_fpga_has_osd(unsigned int fpga) diff --git a/board/gdsys/mpc8308/hrcon.c b/board/gdsys/mpc8308/hrcon.c index 90946cc34e317ee16263a689f73100f7065453a0..d206f8f0c56e6033356862c393b257dceb649d72 100644 --- a/board/gdsys/mpc8308/hrcon.c +++ b/board/gdsys/mpc8308/hrcon.c @@ -11,6 +11,7 @@ #include <i2c.h> #include <init.h> #include <spi.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/libfdt.h> #include <fdt_support.h> diff --git a/board/gdsys/mpc8308/strider.c b/board/gdsys/mpc8308/strider.c index 9b82c949b384a1542e35e046a15c91f892eae370..b3af8fec9172bcc2ebd5b11396514366a0f93225 100644 --- a/board/gdsys/mpc8308/strider.c +++ b/board/gdsys/mpc8308/strider.c @@ -11,6 +11,7 @@ #include <i2c.h> #include <init.h> #include <spi.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/libfdt.h> #include <fdt_support.h> diff --git a/board/hisilicon/poplar/poplar.c b/board/hisilicon/poplar/poplar.c index 8e2dd5fa507edacc8756ec764d695d860cb20201..371c3c33fc88647a9f79a82739356daee592dd05 100644 --- a/board/hisilicon/poplar/poplar.c +++ b/board/hisilicon/poplar/poplar.c @@ -13,6 +13,7 @@ #include <dm/platform_data/serial_pl01x.h> #include <asm/arch/hi3798cv200.h> #include <asm/armv8/mmu.h> +#include <linux/bitops.h> #include <linux/delay.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/board/ids/ids8313/ids8313.c b/board/ids/ids8313/ids8313.c index 2065a5a7db8f86030ff022d5298d8b164eb826a6..d0d34012d74fd4b12e4b5dcef008721650a3191e 100644 --- a/board/ids/ids8313/ids8313.c +++ b/board/ids/ids8313/ids8313.c @@ -16,6 +16,7 @@ #include <init.h> #include <mpc83xx.h> #include <spi.h> +#include <asm/bitops.h> #include <linux/delay.h> #include <linux/libfdt.h> diff --git a/board/imgtec/ci20/ci20.c b/board/imgtec/ci20/ci20.c index e87ea0a7adb482c2e5630a5b5aff85ac7868867b..5339b9e9f94f5ac82a4d6f31d85074729dcd704c 100644 --- a/board/imgtec/ci20/ci20.c +++ b/board/imgtec/ci20/ci20.c @@ -13,6 +13,7 @@ #include <netdev.h> #include <asm/io.h> #include <asm/gpio.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <mach/jz4780.h> #include <mach/jz4780_dram.h> diff --git a/board/keymile/common/qrio.c b/board/keymile/common/qrio.c index 0cb33663aaa899a7031a16dd4fee6090c062b8d3..06a4e67881f93e0a0629173a0711e11c9883321b 100644 --- a/board/keymile/common/qrio.c +++ b/board/keymile/common/qrio.c @@ -5,6 +5,7 @@ */ #include <common.h> +#include <linux/bitops.h> #include "common.h" #include "qrio.h" diff --git a/board/menlo/m53menlo/m53menlo.c b/board/menlo/m53menlo/m53menlo.c index 70a13aa17b3d932944ceffae50a4a886300397f7..58a564ac31464ff8a6658c2f134a7dc3dc3b7d22 100644 --- a/board/menlo/m53menlo/m53menlo.c +++ b/board/menlo/m53menlo/m53menlo.c @@ -26,6 +26,7 @@ #include <gzip.h> #include <i2c.h> #include <ipu_pixfmt.h> +#include <linux/bitops.h> #include <linux/errno.h> #include <linux/fb.h> #include <mmc.h> diff --git a/board/mikrotik/crs305-1g-4s/crs305-1g-4s.c b/board/mikrotik/crs305-1g-4s/crs305-1g-4s.c index 4b67a4ba2dde57828686a3d172b5990624797ffa..8b419ef6f7ea36bed012f58ee66bc8121183a5f2 100644 --- a/board/mikrotik/crs305-1g-4s/crs305-1g-4s.c +++ b/board/mikrotik/crs305-1g-4s/crs305-1g-4s.c @@ -7,6 +7,7 @@ #include <i2c.h> #include <init.h> #include <asm/gpio.h> +#include <linux/bitops.h> #include <linux/mbus.h> #include <linux/io.h> #include <asm/arch/cpu.h> diff --git a/board/mscc/common/spi.c b/board/mscc/common/spi.c index 0566fcba5c50c87837493813d21a232276b9dcba..45b9649336dbccc571fe9e5d2b25ddd9d9dea504 100644 --- a/board/mscc/common/spi.c +++ b/board/mscc/common/spi.c @@ -6,6 +6,7 @@ #include <common.h> #include <asm/io.h> #include <spi.h> +#include <linux/bitops.h> void external_cs_manage(struct udevice *dev, bool enable) { diff --git a/board/mscc/jr2/jr2.c b/board/mscc/jr2/jr2.c index f806576b90cd8e0bbf56d8e0d3389c0946dd3ab8..51700f4acffee0967d4a107e389c155e1af8fbcf 100644 --- a/board/mscc/jr2/jr2.c +++ b/board/mscc/jr2/jr2.c @@ -9,6 +9,7 @@ #include <asm/io.h> #include <led.h> #include <miiphy.h> +#include <linux/bitops.h> #include <linux/delay.h> enum { diff --git a/board/mscc/ocelot/ocelot.c b/board/mscc/ocelot/ocelot.c index a5345360fe5d6502d286fdd61355696c15706f74..74e8bfc43147615d5139510833894794e4880846 100644 --- a/board/mscc/ocelot/ocelot.c +++ b/board/mscc/ocelot/ocelot.c @@ -14,6 +14,7 @@ #include <led.h> #include <wait_bit.h> #include <miiphy.h> +#include <linux/bitops.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/board/netgear/dgnd3700v2/dgnd3700v2.c b/board/netgear/dgnd3700v2/dgnd3700v2.c index d9c0200f24d50a4961542ec6e23d939a0d9e2cbc..cfc3529c3488e4254b8cd4500ccd069708e950f2 100644 --- a/board/netgear/dgnd3700v2/dgnd3700v2.c +++ b/board/netgear/dgnd3700v2/dgnd3700v2.c @@ -6,6 +6,7 @@ #include <common.h> #include <init.h> #include <asm/io.h> +#include <linux/bitops.h> #define GPIO_BASE_6362 0x10000080 diff --git a/board/nvidia/p2371-2180/p2371-2180.c b/board/nvidia/p2371-2180/p2371-2180.c index 0a988cb7dda351adba6d6079ea01a5812c087cd5..4aeec473b16e9579d49b73e337d017ec4032f29a 100644 --- a/board/nvidia/p2371-2180/p2371-2180.c +++ b/board/nvidia/p2371-2180/p2371-2180.c @@ -10,6 +10,7 @@ #include <i2c.h> #include <log.h> #include <net.h> +#include <linux/bitops.h> #include <linux/libfdt.h> #include <asm/arch/gpio.h> #include <asm/arch/pinmux.h> diff --git a/board/nvidia/p3450-0000/p3450-0000.c b/board/nvidia/p3450-0000/p3450-0000.c index f4212ab8222f6932691ca396e923962f0b8889a2..45f9bacc712e4552979adfc9708229fd7a2be7ae 100644 --- a/board/nvidia/p3450-0000/p3450-0000.c +++ b/board/nvidia/p3450-0000/p3450-0000.c @@ -8,6 +8,7 @@ #include <common.h> #include <fdtdec.h> #include <i2c.h> +#include <linux/bitops.h> #include <linux/libfdt.h> #include <pca953x.h> #include <asm/arch-tegra/cboot.h> diff --git a/board/phytec/pcm052/pcm052.c b/board/phytec/pcm052/pcm052.c index c40dc052b5e8ca3e852839178ed06da15be87df2..b0c56a29f1f85986e21a1f3b2b7256ede2497e3c 100644 --- a/board/phytec/pcm052/pcm052.c +++ b/board/phytec/pcm052/pcm052.c @@ -17,6 +17,7 @@ #include <env.h> #include <led.h> #include <miiphy.h> +#include <linux/bitops.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/board/phytec/phycore_rk3288/phycore-rk3288.c b/board/phytec/phycore_rk3288/phycore-rk3288.c index ac7c5b0bc53769cd1a30007f3b38d9f1ddc25479..ecc73227a023f15b53a4b6b75c448f4ea6574f4b 100644 --- a/board/phytec/phycore_rk3288/phycore-rk3288.c +++ b/board/phytec/phycore_rk3288/phycore-rk3288.c @@ -16,6 +16,7 @@ #include <i2c.h> #include <i2c_eeprom.h> #include <netdev.h> +#include <linux/bitops.h> #include "som.h" #include <power/regulator.h> #include <power/rk8xx_pmic.h> diff --git a/board/renesas/alt/alt.c b/board/renesas/alt/alt.c index 600a355a6b90b77394fce5cfd7f8c1f2751782e5..279ed48721656b2adc8e5230f6f975043fbedcc8 100644 --- a/board/renesas/alt/alt.c +++ b/board/renesas/alt/alt.c @@ -17,6 +17,7 @@ #include <asm/processor.h> #include <asm/mach-types.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/errno.h> #include <asm/arch/sys_proto.h> diff --git a/board/renesas/alt/alt_spl.c b/board/renesas/alt/alt_spl.c index a9c289447e5f983cccbecf45725cb8e3e92c030e..2de236fc2989fac057c17a03b6335fe129962af8 100644 --- a/board/renesas/alt/alt_spl.c +++ b/board/renesas/alt/alt_spl.c @@ -13,6 +13,7 @@ #include <asm/processor.h> #include <asm/mach-types.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/errno.h> #include <asm/arch/sys_proto.h> #include <asm/gpio.h> diff --git a/board/renesas/blanche/blanche.c b/board/renesas/blanche/blanche.c index 400c166b90b288515e46089450678f614066d5a8..5fa10878d2c4a42f321e528cf526d6907808c7cc 100644 --- a/board/renesas/blanche/blanche.c +++ b/board/renesas/blanche/blanche.c @@ -24,6 +24,7 @@ #include <env.h> #include <hang.h> #include <i2c.h> +#include <linux/bitops.h> #include <linux/errno.h> #include <malloc.h> #include <miiphy.h> diff --git a/board/renesas/draak/draak.c b/board/renesas/draak/draak.c index 5f37a19600de29fd32dd160a0fd38fa2bb4cd038..c8f4b214a2d854414b9251aa890a0f9e68c79e76 100644 --- a/board/renesas/draak/draak.c +++ b/board/renesas/draak/draak.c @@ -17,6 +17,7 @@ #include <asm/processor.h> #include <asm/mach-types.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/errno.h> #include <asm/arch/sys_proto.h> #include <asm/gpio.h> diff --git a/board/renesas/gose/gose.c b/board/renesas/gose/gose.c index 686ad28f65c2cba8fa48d91f756a277e6ac07fe4..c6a93c25e6d2a4af50101e9183d5234d224bda4b 100644 --- a/board/renesas/gose/gose.c +++ b/board/renesas/gose/gose.c @@ -17,6 +17,7 @@ #include <asm/processor.h> #include <asm/mach-types.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/errno.h> #include <asm/arch/sys_proto.h> diff --git a/board/renesas/gose/gose_spl.c b/board/renesas/gose/gose_spl.c index b1b2ceb607b86c247a93baf4558d249fc9de7fb9..624ba5db04e522b298ed4e689df2f35f175989a8 100644 --- a/board/renesas/gose/gose_spl.c +++ b/board/renesas/gose/gose_spl.c @@ -13,6 +13,7 @@ #include <asm/processor.h> #include <asm/mach-types.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/errno.h> #include <asm/arch/sys_proto.h> #include <asm/gpio.h> diff --git a/board/renesas/koelsch/koelsch.c b/board/renesas/koelsch/koelsch.c index 0f21f8d743a176408fe5a134cde8f4896bb4bb2b..1b3acc8fd1f146eb439bf3c276f726d5aa7390b6 100644 --- a/board/renesas/koelsch/koelsch.c +++ b/board/renesas/koelsch/koelsch.c @@ -18,6 +18,7 @@ #include <asm/processor.h> #include <asm/mach-types.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/errno.h> #include <asm/arch/sys_proto.h> diff --git a/board/renesas/koelsch/koelsch_spl.c b/board/renesas/koelsch/koelsch_spl.c index a321678e1b8e87708feb0dcf63909261913f7654..449bbfa7b81acab8b7bca9f4f34a2de7d29ad11e 100644 --- a/board/renesas/koelsch/koelsch_spl.c +++ b/board/renesas/koelsch/koelsch_spl.c @@ -13,6 +13,7 @@ #include <asm/processor.h> #include <asm/mach-types.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/errno.h> #include <asm/arch/sys_proto.h> #include <asm/gpio.h> diff --git a/board/renesas/lager/lager.c b/board/renesas/lager/lager.c index 8a94f21811be020ca9792d9af1a48367fe76626d..36a35a9a9cfbd82e105dd014008f13b1472f3314 100644 --- a/board/renesas/lager/lager.c +++ b/board/renesas/lager/lager.c @@ -20,6 +20,7 @@ #include <asm/processor.h> #include <asm/mach-types.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/errno.h> #include <asm/arch/sys_proto.h> diff --git a/board/renesas/lager/lager_spl.c b/board/renesas/lager/lager_spl.c index ceaf164e780cc4bb06fe9b92d14ff0649cb6c1a1..1ca857c2c3d8172ac88312ae6bcc165548624d68 100644 --- a/board/renesas/lager/lager_spl.c +++ b/board/renesas/lager/lager_spl.c @@ -13,6 +13,7 @@ #include <asm/processor.h> #include <asm/mach-types.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/errno.h> #include <asm/arch/sys_proto.h> #include <asm/gpio.h> diff --git a/board/renesas/porter/porter.c b/board/renesas/porter/porter.c index f311a72391904b54ef0c13762856717adb8c9f94..793e02cb440a0159eb94b029a9172a680bec0e84 100644 --- a/board/renesas/porter/porter.c +++ b/board/renesas/porter/porter.c @@ -18,6 +18,7 @@ #include <asm/processor.h> #include <asm/mach-types.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/errno.h> #include <asm/arch/sys_proto.h> diff --git a/board/renesas/porter/porter_spl.c b/board/renesas/porter/porter_spl.c index 5b1f03cf7d564446a4b9663ddb7de09ebbc7ef1e..f10c6cffc2b874a66b322f8b266b7a3bbd66aa2e 100644 --- a/board/renesas/porter/porter_spl.c +++ b/board/renesas/porter/porter_spl.c @@ -13,6 +13,7 @@ #include <asm/processor.h> #include <asm/mach-types.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/errno.h> #include <asm/arch/sys_proto.h> #include <asm/gpio.h> diff --git a/board/renesas/rcar-common/gen3-spl.c b/board/renesas/rcar-common/gen3-spl.c index e006774edfa63d8ca7fd4f6079706fa94ce694fe..fd6e5054a6d1e8b3539fd4da9f4cee5bf4bab216 100644 --- a/board/renesas/rcar-common/gen3-spl.c +++ b/board/renesas/rcar-common/gen3-spl.c @@ -12,6 +12,7 @@ #include <log.h> #include <asm/io.h> #include <spl.h> +#include <linux/bitops.h> #define RCAR_CNTC_BASE 0xE6080000 #define CNTCR_EN BIT(0) diff --git a/board/renesas/salvator-x/salvator-x.c b/board/renesas/salvator-x/salvator-x.c index ff0409be98fe1be829eceea720b177ef01f0ba3b..947bdaefa8075120aa54b65b21439a2f43fb8f30 100644 --- a/board/renesas/salvator-x/salvator-x.c +++ b/board/renesas/salvator-x/salvator-x.c @@ -18,6 +18,7 @@ #include <asm/processor.h> #include <asm/mach-types.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/errno.h> #include <asm/arch/sys_proto.h> #include <asm/gpio.h> diff --git a/board/renesas/silk/silk.c b/board/renesas/silk/silk.c index fe753a79dac15d139c5264ff859ebc89c3b9f58e..171d06f3175c66b6c4bd5404e229c965f1bc1c8e 100644 --- a/board/renesas/silk/silk.c +++ b/board/renesas/silk/silk.c @@ -18,6 +18,7 @@ #include <asm/processor.h> #include <asm/mach-types.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/errno.h> #include <asm/arch/sys_proto.h> diff --git a/board/renesas/silk/silk_spl.c b/board/renesas/silk/silk_spl.c index 9859977c77a65a3fb625c565ede766e5fa9fa2f3..f10f84a3cce04892e0a7d381fdd9c690f396f855 100644 --- a/board/renesas/silk/silk_spl.c +++ b/board/renesas/silk/silk_spl.c @@ -13,6 +13,7 @@ #include <asm/processor.h> #include <asm/mach-types.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/errno.h> #include <asm/arch/sys_proto.h> #include <asm/gpio.h> diff --git a/board/renesas/stout/stout.c b/board/renesas/stout/stout.c index b32e11a199993e369068009db2309ad4fa8ea8e9..babcce9aa1c3b51951fe9d4eb362735e55a9ad97 100644 --- a/board/renesas/stout/stout.c +++ b/board/renesas/stout/stout.c @@ -19,6 +19,7 @@ #include <asm/processor.h> #include <asm/mach-types.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/errno.h> #include <asm/arch/sys_proto.h> diff --git a/board/renesas/stout/stout_spl.c b/board/renesas/stout/stout_spl.c index a10752de1cf05949f933126034267fa962426264..57c1fabaf3a8631fdca82baa7be69ed58fef6724 100644 --- a/board/renesas/stout/stout_spl.c +++ b/board/renesas/stout/stout_spl.c @@ -13,6 +13,7 @@ #include <asm/processor.h> #include <asm/mach-types.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/errno.h> #include <asm/arch/sys_proto.h> #include <asm/gpio.h> diff --git a/board/renesas/ulcb/ulcb.c b/board/renesas/ulcb/ulcb.c index ebb379a82a08c4bc769a1115085ebe645f64595e..07bc1ec719989903d7166b15bef2a9016f49818f 100644 --- a/board/renesas/ulcb/ulcb.c +++ b/board/renesas/ulcb/ulcb.c @@ -16,6 +16,7 @@ #include <asm/processor.h> #include <asm/mach-types.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/errno.h> #include <asm/arch/sys_proto.h> #include <asm/gpio.h> diff --git a/board/sbc8349/sbc8349.c b/board/sbc8349/sbc8349.c index c84146a6086665c387face990013b17a097cf597..1e3529f3348b668e438d30ea9d6daa17c426f98e 100644 --- a/board/sbc8349/sbc8349.c +++ b/board/sbc8349/sbc8349.c @@ -12,6 +12,7 @@ #include <init.h> #include <ioports.h> #include <mpc83xx.h> +#include <asm/bitops.h> #include <asm/mpc8349_pci.h> #include <i2c.h> #include <spd_sdram.h> diff --git a/board/seeed/linkit-smart-7688/board.c b/board/seeed/linkit-smart-7688/board.c index 492530ec4e9638070e5dc7fafc2d32e4605ee891..bf7c69ea8389311541c8fc5d8c0d2de07b5bd368 100644 --- a/board/seeed/linkit-smart-7688/board.c +++ b/board/seeed/linkit-smart-7688/board.c @@ -6,6 +6,7 @@ #include <common.h> #include <init.h> #include <asm/io.h> +#include <linux/bitops.h> #define MT76XX_GPIO1_MODE 0x10000060 diff --git a/board/softing/vining_2000/vining_2000.c b/board/softing/vining_2000/vining_2000.c index 19fb85f34c2e7e0693fdfc8970a65866426843d6..e5e33dcf15d6413c617ecb052110dbd83a588e27 100644 --- a/board/softing/vining_2000/vining_2000.c +++ b/board/softing/vining_2000/vining_2000.c @@ -19,6 +19,7 @@ #include <asm/io.h> #include <asm/mach-imx/mxc_i2c.h> #include <env.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/sizes.h> #include <common.h> diff --git a/board/solidrun/clearfog/clearfog.c b/board/solidrun/clearfog/clearfog.c index df23c0d8b3334fdbe4098e8f6b0afe90877f08d7..4184754a9a344e552950a8e9152fd6de119ec978 100644 --- a/board/solidrun/clearfog/clearfog.c +++ b/board/solidrun/clearfog/clearfog.c @@ -13,6 +13,7 @@ #include <asm/io.h> #include <asm/arch/cpu.h> #include <asm/arch/soc.h> +#include <linux/bitops.h> #include <linux/delay.h> #include "../common/tlv_data.h" diff --git a/board/st/stm32mp1/board.c b/board/st/stm32mp1/board.c index b0d165028ca5b3232cd157c9008816ac1275348d..c218d37ecce64ab7bb79de0992e071db7ad6004a 100644 --- a/board/st/stm32mp1/board.c +++ b/board/st/stm32mp1/board.c @@ -7,6 +7,7 @@ #include <dm.h> #include <asm/io.h> #include <asm/arch/ddr.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <power/pmic.h> #include <power/stpmic1.h> diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c index 929302cf02973783fb321d609bef215424c5ce75..4553329b250577bd89f1b22942061526f5d18e18 100644 --- a/board/st/stm32mp1/stm32mp1.c +++ b/board/st/stm32mp1/stm32mp1.c @@ -34,6 +34,7 @@ #include <asm/arch/stm32.h> #include <asm/arch/sys_proto.h> #include <jffs2/load_kernel.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/err.h> #include <linux/iopoll.h> diff --git a/board/synopsys/emsdp/emsdp.c b/board/synopsys/emsdp/emsdp.c index c1746b61109f6ce584f6ba31ca12a38ab2a0ea3e..91fa94a638eff3470b938d6cd03501414c246394 100644 --- a/board/synopsys/emsdp/emsdp.c +++ b/board/synopsys/emsdp/emsdp.c @@ -9,6 +9,7 @@ #include <dwmmc.h> #include <init.h> #include <malloc.h> +#include <linux/bitops.h> #include <asm/arcregs.h> diff --git a/board/synopsys/hsdk/clk-lib.h b/board/synopsys/hsdk/clk-lib.h index c1c105a8fd9f3a44aa97c2761b9888a9b5ca83e8..970bcd4a17e7791e6fb52d2ad3c8ca130ec374ea 100644 --- a/board/synopsys/hsdk/clk-lib.h +++ b/board/synopsys/hsdk/clk-lib.h @@ -8,6 +8,7 @@ #define __BOARD_CLK_LIB_H #include <common.h> +#include <linux/bitops.h> enum clk_ctl_ops { CLK_SET = BIT(0), /* set frequency */ diff --git a/board/synopsys/hsdk/hsdk.c b/board/synopsys/hsdk/hsdk.c index a42195427ccad8d0ea45ffd8efdde9359fbcf977..cd11f9dac06b7c9ff7c3f5db202311323a3f3ca1 100644 --- a/board/synopsys/hsdk/hsdk.c +++ b/board/synopsys/hsdk/hsdk.c @@ -14,6 +14,7 @@ #include <irq_func.h> #include <log.h> #include <asm/cache.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/printk.h> #include <linux/kernel.h> diff --git a/board/synopsys/iot_devkit/iot_devkit.c b/board/synopsys/iot_devkit/iot_devkit.c index 05b63e415be784d85cfa73d267181f9b7d5f937f..497ea186d3a808730b0f97efb079c4da1538fcf3 100644 --- a/board/synopsys/iot_devkit/iot_devkit.c +++ b/board/synopsys/iot_devkit/iot_devkit.c @@ -8,6 +8,7 @@ #include <init.h> #include <malloc.h> #include <dwmmc.h> +#include <linux/bitops.h> #include <linux/libfdt.h> #include <fdtdec.h> diff --git a/board/ti/am335x/board.c b/board/ti/am335x/board.c index 474495a005852856c37eae24346df950c0ea46dc..4199bee2e64a539af7e5e9943f501614d6d8822e 100644 --- a/board/ti/am335x/board.c +++ b/board/ti/am335x/board.c @@ -36,6 +36,7 @@ #include <i2c.h> #include <miiphy.h> #include <cpsw.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <power/tps65217.h> #include <power/tps65910.h> diff --git a/board/ti/common/board_detect.h b/board/ti/common/board_detect.h index 5835af5344b0a94489feac0a4c1532a3a06d226a..9f75b5c00446ad50ec55ff3c504e601a904cb84b 100644 --- a/board/ti/common/board_detect.h +++ b/board/ti/common/board_detect.h @@ -9,6 +9,7 @@ #define __BOARD_DETECT_H /* TI EEPROM MAGIC Header identifier */ +#include <linux/bitops.h> #define TI_EEPROM_HEADER_MAGIC 0xEE3355AA #define TI_DEAD_EEPROM_MAGIC 0xADEAD12C diff --git a/board/ti/ks2_evm/board_k2g.c b/board/ti/ks2_evm/board_k2g.c index 450ccc4e0788ec72ac4473544f275e35ec2870e7..ece75326a557abb0ecd1971a19481da0987d3850 100644 --- a/board/ti/ks2_evm/board_k2g.c +++ b/board/ti/ks2_evm/board_k2g.c @@ -18,6 +18,7 @@ #include <fdtdec.h> #include <i2c.h> #include <remoteproc.h> +#include <linux/bitops.h> #include <linux/delay.h> #include "mux-k2g.h" #include "../common/board_detect.h" diff --git a/board/toradex/apalis_imx6/apalis_imx6.c b/board/toradex/apalis_imx6/apalis_imx6.c index f7b79c576eb35894ebb2903cb322b363f992e366..40c71adf51bd52f889642b3e10859b5c7938ad41 100644 --- a/board/toradex/apalis_imx6/apalis_imx6.c +++ b/board/toradex/apalis_imx6/apalis_imx6.c @@ -12,6 +12,7 @@ #include <image.h> #include <init.h> #include <net.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <ahci.h> diff --git a/board/toradex/colibri_imx6/colibri_imx6.c b/board/toradex/colibri_imx6/colibri_imx6.c index bdb4ac6b1129f29a4aad30f783f08413dbd7624d..6522af416a8642189edce1f17eb6db1af4303228 100644 --- a/board/toradex/colibri_imx6/colibri_imx6.c +++ b/board/toradex/colibri_imx6/colibri_imx6.c @@ -12,6 +12,7 @@ #include <env.h> #include <init.h> #include <net.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <asm/arch/clock.h> diff --git a/board/tplink/wdr4300/wdr4300.c b/board/tplink/wdr4300/wdr4300.c index 287132e4fc71e8f326fe9bbb8e6864c8caa089a9..9134d6bf6d435e6fc7ec3699b4d276880e316493 100644 --- a/board/tplink/wdr4300/wdr4300.c +++ b/board/tplink/wdr4300/wdr4300.c @@ -8,6 +8,7 @@ #include <asm/io.h> #include <asm/addrspace.h> #include <asm/types.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <mach/ath79.h> #include <mach/ar71xx_regs.h> diff --git a/board/xilinx/zynq/cmds.c b/board/xilinx/zynq/cmds.c index 10984662b6837784b1e230d7f0762eb7c70bb843..0c46de7599c3898c26b78ef788cd65d0e2dff0d2 100644 --- a/board/xilinx/zynq/cmds.c +++ b/board/xilinx/zynq/cmds.c @@ -10,6 +10,7 @@ #include <asm/arch/hardware.h> #include <asm/arch/sys_proto.h> #include <malloc.h> +#include <linux/bitops.h> #include <u-boot/md5.h> #include <u-boot/rsa.h> #include <u-boot/rsa-mod-exp.h> diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c index 35ffac9735163f848e0c2487391eab15554254ea..cb72914adb3c112238faf8a5c8b9a2677cbe53d6 100644 --- a/board/xilinx/zynqmp/zynqmp.c +++ b/board/xilinx/zynqmp/zynqmp.c @@ -31,6 +31,7 @@ #include <zynqmppl.h> #include <zynqmp_firmware.h> #include <g_dnl.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/sizes.h> #include "../common/board.h" diff --git a/cmd/mem.c b/cmd/mem.c index 4d8825418832b4037914f82be9edad5da3adaf48..9b97f7bf694458e39e31ed981504790c6bf6d986 100644 --- a/cmd/mem.c +++ b/cmd/mem.c @@ -23,6 +23,7 @@ #include <rand.h> #include <watchdog.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/compiler.h> #include <linux/delay.h> diff --git a/cmd/nvedit.c b/cmd/nvedit.c index 3784abcd5906707e79f0c1a4d81c4eb53bd2a5e8..08d49df220a1bf23057eef8bd022cef0d600d424 100644 --- a/cmd/nvedit.c +++ b/cmd/nvedit.c @@ -35,6 +35,7 @@ #include <errno.h> #include <malloc.h> #include <mapmem.h> +#include <linux/bitops.h> #include <u-boot/crc.h> #include <watchdog.h> #include <linux/stddef.h> diff --git a/common/image-cipher.c b/common/image-cipher.c index f50c3d31bd5ef48a35e5347228e846fa7c28dec4..09869f78464402a9c005122e5380b2d543b6dcf6 100644 --- a/common/image-cipher.c +++ b/common/image-cipher.c @@ -10,7 +10,7 @@ #include <common.h> #include <malloc.h> DECLARE_GLOBAL_DATA_PTR; -#endif /* !USE_HOSTCC*/ +#endif /* !USE_HOSdTCC*/ #include <image.h> #include <uboot_aes.h> #include <u-boot/aes.h> diff --git a/drivers/adc/meson-saradc.c b/drivers/adc/meson-saradc.c index 1e1515f6e31aa65d83b32f6386d1b6c48816d851..72b0cc4e5bd14d222a714c838da5a3c3038bf24b 100644 --- a/drivers/adc/meson-saradc.c +++ b/drivers/adc/meson-saradc.c @@ -14,6 +14,7 @@ #include <regmap.h> #include <errno.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/math64.h> #include <linux/bitfield.h> diff --git a/drivers/adc/rockchip-saradc.c b/drivers/adc/rockchip-saradc.c index 850142cce377b5a6ea661e75dd7e7c567c05ea8b..561740f63b5fa5632ca159e3883e38e6ffdbce35 100644 --- a/drivers/adc/rockchip-saradc.c +++ b/drivers/adc/rockchip-saradc.c @@ -11,6 +11,7 @@ #include <dm.h> #include <errno.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/err.h> #define SARADC_CTRL_CHN_MASK GENMASK(2, 0) diff --git a/drivers/adc/stm32-adc-core.c b/drivers/adc/stm32-adc-core.c index 2ca0fb4f108b3df3973f1cfe2a319e735e9a3903..31bbb6f9d68c934dfa57d9681a840372f53ab23e 100644 --- a/drivers/adc/stm32-adc-core.c +++ b/drivers/adc/stm32-adc-core.c @@ -9,6 +9,7 @@ #include <common.h> #include <asm/io.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <power/regulator.h> #include "stm32-adc-core.h" diff --git a/drivers/adc/stm32-adc.c b/drivers/adc/stm32-adc.c index 140ddcee3cff6ce7c02a28933855d5558ed4ce7c..b12f894a9bf55b8303368c64760e787b248ac9fd 100644 --- a/drivers/adc/stm32-adc.c +++ b/drivers/adc/stm32-adc.c @@ -10,6 +10,7 @@ #include <adc.h> #include <asm/io.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/iopoll.h> #include "stm32-adc-core.h" diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index dda3586d7c60441d13111fc3ed8117d3cc2398a6..47cdea1f586a438da39d7bf66b5698d43ef7b910 100644 --- a/drivers/ata/ahci.c +++ b/drivers/ata/ahci.c @@ -12,6 +12,7 @@ #include <blk.h> #include <cpu_func.h> #include <log.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <command.h> diff --git a/drivers/ata/sata_mv.c b/drivers/ata/sata_mv.c index 647d8c72580f8c0759ee610593e9e58a840f7874..b2b5c699ad14910392776bc228e9f678f23ea609 100644 --- a/drivers/ata/sata_mv.c +++ b/drivers/ata/sata_mv.c @@ -44,6 +44,7 @@ #include <libata.h> #include <malloc.h> #include <sata.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/errno.h> #include <asm/io.h> diff --git a/drivers/axi/ihs_axi.c b/drivers/axi/ihs_axi.c index a4aee8b58a4ade4f8e69b31ee462c23432ac1e97..3945511090708ff403f31ad34d20a2b56e9f0481 100644 --- a/drivers/axi/ihs_axi.c +++ b/drivers/axi/ihs_axi.c @@ -12,6 +12,7 @@ #include <dm.h> #include <log.h> #include <regmap.h> +#include <linux/bitops.h> #include <linux/delay.h> /** diff --git a/drivers/cache/cache-v5l2.c b/drivers/cache/cache-v5l2.c index 1373e7c387d8bce94b5d9723d2df3ee0c9d3db39..51c074bfe233c4a5b5e3f20c4596764ed1ff619d 100644 --- a/drivers/cache/cache-v5l2.c +++ b/drivers/cache/cache-v5l2.c @@ -11,6 +11,7 @@ #include <hang.h> #include <asm/io.h> #include <dm/ofnode.h> +#include <linux/bitops.h> struct l2cache { volatile u64 configure; diff --git a/drivers/clk/altera/clk-agilex.c b/drivers/clk/altera/clk-agilex.c index 63153fa6608ddf18dbf20b20920089000e25fcd7..0042958f4c428306302136205f01c9e51221c34c 100644 --- a/drivers/clk/altera/clk-agilex.c +++ b/drivers/clk/altera/clk-agilex.c @@ -11,6 +11,7 @@ #include <dm/lists.h> #include <dm/util.h> #include <dt-bindings/clock/agilex-clock.h> +#include <linux/bitops.h> #include <asm/arch/clock_manager.h> diff --git a/drivers/clk/altera/clk-agilex.h b/drivers/clk/altera/clk-agilex.h index d93328ef299d131a24f056757ad8e8415172a5ff..cd68ebc4387eb1b6fe1d3786e3213ad4044201b6 100644 --- a/drivers/clk/altera/clk-agilex.h +++ b/drivers/clk/altera/clk-agilex.h @@ -6,6 +6,10 @@ #ifndef _CLK_AGILEX_ #define _CLK_AGILEX_ +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + #define CM_REG_READL(plat, reg) \ readl((plat)->regs + (reg)) diff --git a/drivers/clk/altera/clk-arria10.c b/drivers/clk/altera/clk-arria10.c index 694a9427e1fde749cf9619e8c99f5ebe0d9c0f1c..ede0be299dfcbaa2c89f91ab04f1834d9c7d5571 100644 --- a/drivers/clk/altera/clk-arria10.c +++ b/drivers/clk/altera/clk-arria10.c @@ -12,6 +12,7 @@ #include <dm/devres.h> #include <dm/lists.h> #include <dm/util.h> +#include <linux/bitops.h> #include <asm/arch/clock_manager.h> diff --git a/drivers/clk/at91/clk-system.c b/drivers/clk/at91/clk-system.c index f9adef2eaac5843acb1c4cdb278f7c37f6487875..76b1958670d6b331ef6ea26c194ff4038056b4ec 100644 --- a/drivers/clk/at91/clk-system.c +++ b/drivers/clk/at91/clk-system.c @@ -7,6 +7,7 @@ #include <common.h> #include <clk-uclass.h> #include <dm.h> +#include <linux/bitops.h> #include <linux/io.h> #include <mach/at91_pmc.h> #include "pmc.h" diff --git a/drivers/clk/clk-cdce9xx.c b/drivers/clk/clk-cdce9xx.c index f1f76b0a4da8061d1955804a030c2cf6ae7dd6eb..fd47872ab99214a9ad4158588d2985c10c5843dc 100644 --- a/drivers/clk/clk-cdce9xx.c +++ b/drivers/clk/clk-cdce9xx.c @@ -14,6 +14,7 @@ #include <clk-uclass.h> #include <i2c.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #define MAX_NUMBER_OF_PLLS 4 #define MAX_NUMER_OF_OUTPUTS 9 diff --git a/drivers/clk/clk-gate.c b/drivers/clk/clk-gate.c index 6415c2f1b91dfa661ca716a74e479e5dbbdfd95a..23c1f2c4ba9e8c396351472e3cf508595ea59766 100644 --- a/drivers/clk/clk-gate.c +++ b/drivers/clk/clk-gate.c @@ -13,6 +13,7 @@ #include <clk-uclass.h> #include <dm/device.h> #include <dm/devres.h> +#include <linux/bitops.h> #include <linux/clk-provider.h> #include <clk.h> #include "clk.h" diff --git a/drivers/clk/clk-hsdk-cgu.c b/drivers/clk/clk-hsdk-cgu.c index 42844d46056936ee303aacb09fbade951ff8fd2b..3eb93a55fc412ff2dadd5e90b2550d0beccede82 100644 --- a/drivers/clk/clk-hsdk-cgu.c +++ b/drivers/clk/clk-hsdk-cgu.c @@ -14,6 +14,7 @@ #include <div64.h> #include <dm.h> #include <log.h> +#include <linux/bitops.h> #include <linux/bug.h> #include <linux/delay.h> #include <linux/io.h> diff --git a/drivers/clk/clk-mux.c b/drivers/clk/clk-mux.c index b9d2ae6778fc0d82cefb5b0df1316a8c91b19de9..c69cce0565d24b452af4ec2d9a6ca4d9883e17d7 100644 --- a/drivers/clk/clk-mux.c +++ b/drivers/clk/clk-mux.c @@ -27,6 +27,7 @@ #include <clk-uclass.h> #include <dm/device.h> #include <dm/devres.h> +#include <linux/bitops.h> #include <linux/clk-provider.h> #include <clk.h> #include "clk.h" diff --git a/drivers/clk/clk_bcm6345.c b/drivers/clk/clk_bcm6345.c index f01ec9a8598eae16a8df9d43eb7e05ea2b5a1744..b850b9fc069be6fccd19f42587e2381fe13e1343 100644 --- a/drivers/clk/clk_bcm6345.c +++ b/drivers/clk/clk_bcm6345.c @@ -11,6 +11,7 @@ #include <dm.h> #include <errno.h> #include <asm/io.h> +#include <linux/bitops.h> #define MAX_CLKS 32 diff --git a/drivers/clk/clk_boston.c b/drivers/clk/clk_boston.c index 0c49ee0798bc3993b64495cb409490989e2c028e..2318dcf6a45d8122007fd9eb7fba4021314ada49 100644 --- a/drivers/clk/clk_boston.c +++ b/drivers/clk/clk_boston.c @@ -9,6 +9,7 @@ #include <dt-bindings/clock/boston-clock.h> #include <regmap.h> #include <syscon.h> +#include <linux/bitops.h> struct clk_boston { struct regmap *regmap; diff --git a/drivers/clk/clk_pic32.c b/drivers/clk/clk_pic32.c index 7ddff2feaf3ec90b244db949829d7cf38fa267ad..dc46de2a7cf97ff6fce8c6ab406004529978103e 100644 --- a/drivers/clk/clk_pic32.c +++ b/drivers/clk/clk_pic32.c @@ -12,6 +12,7 @@ #include <wait_bit.h> #include <dm/lists.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/bug.h> #include <mach/pic32.h> #include <dt-bindings/clock/microchip,clock.h> diff --git a/drivers/clk/clk_sandbox_ccf.c b/drivers/clk/clk_sandbox_ccf.c index 3543bea70d2b32f5b21920d57b2103a76e22377d..0619d04f0ece2dd666e8afa71c38f83041e573aa 100644 --- a/drivers/clk/clk_sandbox_ccf.c +++ b/drivers/clk/clk_sandbox_ccf.c @@ -13,6 +13,7 @@ #include <asm/clk.h> #include <clk-uclass.h> #include <dm/devres.h> +#include <linux/bitops.h> #include <linux/clk-provider.h> #include <sandbox-clk.h> #include <linux/err.h> diff --git a/drivers/clk/clk_stm32f.c b/drivers/clk/clk_stm32f.c index 6d604cd82c9f2f929b9717a010a5c3c40cbcf721..93722f74ae4df4ebfae76eecdc5dc6610c442592 100644 --- a/drivers/clk/clk_stm32f.c +++ b/drivers/clk/clk_stm32f.c @@ -9,6 +9,7 @@ #include <dm.h> #include <log.h> #include <stm32_rcc.h> +#include <linux/bitops.h> #include <asm/io.h> #include <asm/arch/stm32.h> diff --git a/drivers/clk/clk_stm32h7.c b/drivers/clk/clk_stm32h7.c index f147392fa1a37ae035863c62524a16afe0c88832..5e6abca56fabc25e285524e61992eb8d29dd954a 100644 --- a/drivers/clk/clk_stm32h7.c +++ b/drivers/clk/clk_stm32h7.c @@ -12,6 +12,7 @@ #include <syscon.h> #include <asm/io.h> #include <dm/root.h> +#include <linux/bitops.h> #include <dt-bindings/clock/stm32h7-clks.h> diff --git a/drivers/clk/clk_stm32mp1.c b/drivers/clk/clk_stm32mp1.c index 767edb3bf7c31ca3d780b0b4dc1c470be3c7d1f2..6c5eddbd9a3abeed4ceb3ac41ec0e79ebcd5b995 100644 --- a/drivers/clk/clk_stm32mp1.c +++ b/drivers/clk/clk_stm32mp1.c @@ -14,6 +14,7 @@ #include <syscon.h> #include <time.h> #include <vsprintf.h> +#include <linux/bitops.h> #include <linux/io.h> #include <linux/iopoll.h> #include <dt-bindings/clock/stm32mp1-clks.h> diff --git a/drivers/clk/clk_vexpress_osc.c b/drivers/clk/clk_vexpress_osc.c index ddfc5f6e68a454b4c57ab23c49bafce6ee2f0b96..b48319bba67f85d1676ba76769e67363408edf3b 100644 --- a/drivers/clk/clk_vexpress_osc.c +++ b/drivers/clk/clk_vexpress_osc.c @@ -13,6 +13,7 @@ #include <dm/lists.h> #include <errno.h> #include <misc.h> +#include <linux/bitops.h> #define CLK_FUNCTION BIT(20) diff --git a/drivers/clk/imx/clk-pll14xx.c b/drivers/clk/imx/clk-pll14xx.c index c526fc1cce47a0a701ae3e8103edfebeef81b7de..b0ccb6c8eda5d6a63bc796b6db2f57a8d2f58c26 100644 --- a/drivers/clk/imx/clk-pll14xx.c +++ b/drivers/clk/imx/clk-pll14xx.c @@ -11,6 +11,7 @@ #include <clk-uclass.h> #include <dm/device.h> #include <dm/devres.h> +#include <linux/bitops.h> #include <linux/clk-provider.h> #include <linux/delay.h> #include <linux/err.h> diff --git a/drivers/clk/mediatek/clk-mt7622.c b/drivers/clk/mediatek/clk-mt7622.c index 0a1495a464e7cfa93ed8190e6a32db5a99582037..dc0ba71f1092305931463f9ca780b7e51b005cbc 100644 --- a/drivers/clk/mediatek/clk-mt7622.c +++ b/drivers/clk/mediatek/clk-mt7622.c @@ -12,6 +12,7 @@ #include <asm/arch-mediatek/reset.h> #include <asm/io.h> #include <dt-bindings/clock/mt7622-clk.h> +#include <linux/bitops.h> #include "clk-mtk.h" diff --git a/drivers/clk/mediatek/clk-mt7623.c b/drivers/clk/mediatek/clk-mt7623.c index c44969a0736dcd89fa454173117ff9a96b2fb0ad..a15fb45e8e7ad6c3d7448f6af206c9ad8a6113ed 100644 --- a/drivers/clk/mediatek/clk-mt7623.c +++ b/drivers/clk/mediatek/clk-mt7623.c @@ -12,6 +12,7 @@ #include <asm/arch-mediatek/reset.h> #include <asm/io.h> #include <dt-bindings/clock/mt7623-clk.h> +#include <linux/bitops.h> #include "clk-mtk.h" diff --git a/drivers/clk/mediatek/clk-mt7629.c b/drivers/clk/mediatek/clk-mt7629.c index d68375240304cbd74742c76500f8d68696de6b89..5b2aa5f200ae21766b2c60bf7954671eda3bbd04 100644 --- a/drivers/clk/mediatek/clk-mt7629.c +++ b/drivers/clk/mediatek/clk-mt7629.c @@ -12,6 +12,7 @@ #include <asm/arch-mediatek/reset.h> #include <asm/io.h> #include <dt-bindings/clock/mt7629-clk.h> +#include <linux/bitops.h> #include "clk-mtk.h" diff --git a/drivers/clk/mediatek/clk-mt8512.c b/drivers/clk/mediatek/clk-mt8512.c index cb168f146b8fc655df9d3dfa11005f2f7a45e367..ad254d1cce57512aee0f93de5a5c764fd3acbaea 100644 --- a/drivers/clk/mediatek/clk-mt8512.c +++ b/drivers/clk/mediatek/clk-mt8512.c @@ -10,6 +10,7 @@ #include <dm.h> #include <asm/io.h> #include <dt-bindings/clock/mt8512-clk.h> +#include <linux/bitops.h> #include "clk-mtk.h" diff --git a/drivers/clk/mediatek/clk-mt8516.c b/drivers/clk/mediatek/clk-mt8516.c index 071bf69b19a14715504e62609004055565227c28..cd1db257836003c9f8770c2795dc0db7c6a622b6 100644 --- a/drivers/clk/mediatek/clk-mt8516.c +++ b/drivers/clk/mediatek/clk-mt8516.c @@ -10,6 +10,7 @@ #include <dm.h> #include <asm/io.h> #include <dt-bindings/clock/mt8516-clk.h> +#include <linux/bitops.h> #include "clk-mtk.h" diff --git a/drivers/clk/mediatek/clk-mt8518.c b/drivers/clk/mediatek/clk-mt8518.c index 76f7b3b361e6b2db98dcbd1a4b9d97c7daa7f641..985a0c1de5e258803ba8cf103a8c1deb8c0efc1e 100644 --- a/drivers/clk/mediatek/clk-mt8518.c +++ b/drivers/clk/mediatek/clk-mt8518.c @@ -10,6 +10,7 @@ #include <dm.h> #include <asm/io.h> #include <dt-bindings/clock/mt8518-clk.h> +#include <linux/bitops.h> #include "clk-mtk.h" diff --git a/drivers/clk/mediatek/clk-mtk.c b/drivers/clk/mediatek/clk-mtk.c index 671d4b35c7a36edac3470a73b4501b7d8a3cfdcc..388471b03a90af150ae1515201130e8f3b7d13b9 100644 --- a/drivers/clk/mediatek/clk-mtk.c +++ b/drivers/clk/mediatek/clk-mtk.c @@ -11,6 +11,7 @@ #include <div64.h> #include <dm.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/delay.h> #include "clk-mtk.h" diff --git a/drivers/clk/mediatek/clk-mtk.h b/drivers/clk/mediatek/clk-mtk.h index c7dc980861eb844f2e2e5926e1a9105375d7767f..95a23d14a8e030f074585ad53f86db2766cfe9c1 100644 --- a/drivers/clk/mediatek/clk-mtk.h +++ b/drivers/clk/mediatek/clk-mtk.h @@ -7,6 +7,7 @@ #ifndef __DRV_CLK_MTK_H #define __DRV_CLK_MTK_H +#include <linux/bitops.h> #define CLK_XTAL 0 #define MHZ (1000 * 1000) diff --git a/drivers/clk/meson/axg.c b/drivers/clk/meson/axg.c index d84447260afbd777cd632ff8b9b46defc54f696e..6ef8b418d782f37180e4a347d06cb63e635c49f7 100644 --- a/drivers/clk/meson/axg.c +++ b/drivers/clk/meson/axg.c @@ -15,6 +15,7 @@ #include <syscon.h> #include <div64.h> #include <dt-bindings/clock/axg-clkc.h> +#include <linux/bitops.h> #include "clk_meson.h" #include <linux/err.h> diff --git a/drivers/clk/meson/clk_meson.h b/drivers/clk/meson/clk_meson.h index 7adc55a980377fa959d1212e9739c48b5837bfbd..ef72a416c15145249eb89fa25c5a3d0c0b9b91ff 100644 --- a/drivers/clk/meson/clk_meson.h +++ b/drivers/clk/meson/clk_meson.h @@ -10,6 +10,7 @@ /* Gate Structure */ +#include <linux/bitops.h> struct meson_gate { unsigned int reg; unsigned int bit; diff --git a/drivers/clk/meson/g12a.c b/drivers/clk/meson/g12a.c index c540bb0a1679ad76411a87d138e941281c394df0..bf2f357435ab7a99cfb9f994a7af55ce1cdd5ac9 100644 --- a/drivers/clk/meson/g12a.c +++ b/drivers/clk/meson/g12a.c @@ -15,6 +15,7 @@ #include <syscon.h> #include <div64.h> #include <dt-bindings/clock/g12a-clkc.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/err.h> #include <linux/kernel.h> diff --git a/drivers/clk/meson/gxbb.c b/drivers/clk/meson/gxbb.c index 0ed1d03506cfa733e3de0b96b6fcb8a83ffe0c97..b9353c053eb2c01d310f36a908e1a0a900266d66 100644 --- a/drivers/clk/meson/gxbb.c +++ b/drivers/clk/meson/gxbb.c @@ -15,6 +15,7 @@ #include <regmap.h> #include <syscon.h> #include <dt-bindings/clock/gxbb-clkc.h> +#include <linux/bitops.h> #include "clk_meson.h" #include <linux/err.h> diff --git a/drivers/clk/mpc83xx_clk.c b/drivers/clk/mpc83xx_clk.c index 4c77c8da1a82014aa206d87e71529458b74d73a5..8d96ec767ac6ef13fe4a77fd43826c0c36965572 100644 --- a/drivers/clk/mpc83xx_clk.c +++ b/drivers/clk/mpc83xx_clk.c @@ -14,6 +14,7 @@ #include <dm/lists.h> #include <dt-bindings/clk/mpc83xx-clk.h> #include <asm/arch/soc.h> +#include <linux/bitops.h> #include "mpc83xx_clk.h" diff --git a/drivers/clk/mpc83xx_clk.h b/drivers/clk/mpc83xx_clk.h index 7fb880292045539768f0d050702ffd28fd82a8f1..8a31a4c868f1c0eb0f2ea364563f369120104915 100644 --- a/drivers/clk/mpc83xx_clk.h +++ b/drivers/clk/mpc83xx_clk.h @@ -17,6 +17,7 @@ * @RAT_2_5_TO_1: Ratio 2.5:1 * @RAT_3_TO_1: Ratio 3:1 */ +#include <linux/bitops.h> enum ratio { RAT_UNK, RAT_BYP, diff --git a/drivers/clk/mvebu/armada-37xx-periph.c b/drivers/clk/mvebu/armada-37xx-periph.c index 855f979b4f92bf7d8a7ed764eff9fa3e344fbb0d..223da22c1b637dc27f95306724f11dde3ae60793 100644 --- a/drivers/clk/mvebu/armada-37xx-periph.c +++ b/drivers/clk/mvebu/armada-37xx-periph.c @@ -16,6 +16,7 @@ #include <asm/io.h> #include <asm/arch/cpu.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #define TBG_SEL 0x0 #define DIV_SEL0 0x4 diff --git a/drivers/clk/owl/clk_owl.c b/drivers/clk/owl/clk_owl.c index 11b8da155892556b47e7a656a85b4e6ce99c211a..9715fce162157bbd5c21dd7bb094fde819ba5e0c 100644 --- a/drivers/clk/owl/clk_owl.c +++ b/drivers/clk/owl/clk_owl.c @@ -17,6 +17,7 @@ #include <asm/arch-owl/regs_s700.h> #include <dt-bindings/clock/actions,s700-cmu.h> #endif +#include <linux/bitops.h> #include <linux/delay.h> void owl_clk_init(struct owl_clk_priv *priv) diff --git a/drivers/clk/owl/clk_owl.h b/drivers/clk/owl/clk_owl.h index b8d33624c5f56d390f738f8b5b94823800faf864..cf896bdb98e4d4c87bc6f6cb1e95d3ce0bd0724d 100644 --- a/drivers/clk/owl/clk_owl.h +++ b/drivers/clk/owl/clk_owl.h @@ -11,6 +11,9 @@ #define _OWL_CLK_H_ #include <clk-uclass.h> +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif enum owl_soc { S700, diff --git a/drivers/clk/renesas/clk-rcar-gen3.c b/drivers/clk/renesas/clk-rcar-gen3.c index 8e1af1caa1a8c5ebc1716995adcea48193425a8b..15e38337567370cc72fb43a179e5decedf13770a 100644 --- a/drivers/clk/renesas/clk-rcar-gen3.c +++ b/drivers/clk/renesas/clk-rcar-gen3.c @@ -17,6 +17,7 @@ #include <log.h> #include <wait_bit.h> #include <asm/io.h> +#include <linux/bitops.h> #include <dt-bindings/clock/renesas-cpg-mssr.h> diff --git a/drivers/clk/renesas/r8a7790-cpg-mssr.c b/drivers/clk/renesas/r8a7790-cpg-mssr.c index b62b8753cd4e64e6f9bc0c1de19ad79e14ae3792..7451f53ba39accfb8f2cc16b210ac4f4001ee9f8 100644 --- a/drivers/clk/renesas/r8a7790-cpg-mssr.c +++ b/drivers/clk/renesas/r8a7790-cpg-mssr.c @@ -12,6 +12,7 @@ #include <common.h> #include <clk-uclass.h> #include <dm.h> +#include <linux/bitops.h> #include <dt-bindings/clock/r8a7790-cpg-mssr.h> diff --git a/drivers/clk/renesas/r8a7791-cpg-mssr.c b/drivers/clk/renesas/r8a7791-cpg-mssr.c index e11c02e6e8272bb0bf48dc9a4093b4d81cb017cd..25fd4896094549794fe33175cfe2f5863017cd0d 100644 --- a/drivers/clk/renesas/r8a7791-cpg-mssr.c +++ b/drivers/clk/renesas/r8a7791-cpg-mssr.c @@ -17,6 +17,7 @@ #include <common.h> #include <clk-uclass.h> #include <dm.h> +#include <linux/bitops.h> #include <dt-bindings/clock/r8a7791-cpg-mssr.h> diff --git a/drivers/clk/renesas/r8a7792-cpg-mssr.c b/drivers/clk/renesas/r8a7792-cpg-mssr.c index fb18ee7aedf06625d2f430c954b8821736a49c00..d47ab99e8826b18dca1ef3afe5c8b37fb5cc60c3 100644 --- a/drivers/clk/renesas/r8a7792-cpg-mssr.c +++ b/drivers/clk/renesas/r8a7792-cpg-mssr.c @@ -12,6 +12,7 @@ #include <common.h> #include <clk-uclass.h> #include <dm.h> +#include <linux/bitops.h> #include <dt-bindings/clock/r8a7792-cpg-mssr.h> diff --git a/drivers/clk/renesas/r8a7794-cpg-mssr.c b/drivers/clk/renesas/r8a7794-cpg-mssr.c index b6be1bc0323d41a04617905bf9d14305710cef1f..7093e0d42cb7240125dd7ea4ce918e3e6ebd7737 100644 --- a/drivers/clk/renesas/r8a7794-cpg-mssr.c +++ b/drivers/clk/renesas/r8a7794-cpg-mssr.c @@ -12,6 +12,7 @@ #include <common.h> #include <clk-uclass.h> #include <dm.h> +#include <linux/bitops.h> #include <dt-bindings/clock/r8a7794-cpg-mssr.h> diff --git a/drivers/clk/renesas/r8a7795-cpg-mssr.c b/drivers/clk/renesas/r8a7795-cpg-mssr.c index ab4747ee14be7b73fe615a05fb5e5b46a1d12c3f..dcd96ad0177454370aa8b82c508c5ad954535a1d 100644 --- a/drivers/clk/renesas/r8a7795-cpg-mssr.c +++ b/drivers/clk/renesas/r8a7795-cpg-mssr.c @@ -12,6 +12,7 @@ #include <common.h> #include <clk-uclass.h> #include <dm.h> +#include <linux/bitops.h> #include <dt-bindings/clock/r8a7795-cpg-mssr.h> diff --git a/drivers/clk/renesas/r8a7796-cpg-mssr.c b/drivers/clk/renesas/r8a7796-cpg-mssr.c index 253a9143b7a49d29637620e3f11ce5ff0562acad..89dc141239deb78f8306399932cd715f6204dbaa 100644 --- a/drivers/clk/renesas/r8a7796-cpg-mssr.c +++ b/drivers/clk/renesas/r8a7796-cpg-mssr.c @@ -18,6 +18,7 @@ #include <common.h> #include <clk-uclass.h> #include <dm.h> +#include <linux/bitops.h> #include <dt-bindings/clock/r8a7796-cpg-mssr.h> diff --git a/drivers/clk/renesas/r8a77965-cpg-mssr.c b/drivers/clk/renesas/r8a77965-cpg-mssr.c index bd36ea3b6d8a96b7024ab30229ca528b649abfe9..6ed88295c98b8705739b029059eccfc52a64aab9 100644 --- a/drivers/clk/renesas/r8a77965-cpg-mssr.c +++ b/drivers/clk/renesas/r8a77965-cpg-mssr.c @@ -13,6 +13,7 @@ #include <common.h> #include <clk-uclass.h> #include <dm.h> +#include <linux/bitops.h> #include <dt-bindings/clock/r8a77965-cpg-mssr.h> diff --git a/drivers/clk/renesas/r8a77970-cpg-mssr.c b/drivers/clk/renesas/r8a77970-cpg-mssr.c index 961eb7fb6007b94be09b53a9f2072f28fab980d6..df07120171871630f2e740cbf8a5e11673e87020 100644 --- a/drivers/clk/renesas/r8a77970-cpg-mssr.c +++ b/drivers/clk/renesas/r8a77970-cpg-mssr.c @@ -13,6 +13,7 @@ #include <common.h> #include <clk-uclass.h> #include <dm.h> +#include <linux/bitops.h> #include <dt-bindings/clock/r8a77970-cpg-mssr.h> diff --git a/drivers/clk/renesas/r8a77980-cpg-mssr.c b/drivers/clk/renesas/r8a77980-cpg-mssr.c index c076ac771f22adbb4abf2cba3ec2ac139bb9f8de..c8d7a9469bab03b66cf4cc11535fb4710f3e5ab4 100644 --- a/drivers/clk/renesas/r8a77980-cpg-mssr.c +++ b/drivers/clk/renesas/r8a77980-cpg-mssr.c @@ -13,6 +13,7 @@ #include <common.h> #include <clk-uclass.h> #include <dm.h> +#include <linux/bitops.h> #include <dt-bindings/clock/r8a77980-cpg-mssr.h> diff --git a/drivers/clk/renesas/r8a77990-cpg-mssr.c b/drivers/clk/renesas/r8a77990-cpg-mssr.c index 3168de20f91d61b3adc351e8396e75e3b519975c..357e7b534da9868ea83f7497a99cc5faba942d83 100644 --- a/drivers/clk/renesas/r8a77990-cpg-mssr.c +++ b/drivers/clk/renesas/r8a77990-cpg-mssr.c @@ -13,6 +13,7 @@ #include <common.h> #include <clk-uclass.h> #include <dm.h> +#include <linux/bitops.h> #include <dt-bindings/clock/r8a77990-cpg-mssr.h> diff --git a/drivers/clk/renesas/r8a77995-cpg-mssr.c b/drivers/clk/renesas/r8a77995-cpg-mssr.c index 1c793709822777ba5db3939cf186c0d585c7d978..d62aeba635bb7c45baefa64d13f7caee22c3e0eb 100644 --- a/drivers/clk/renesas/r8a77995-cpg-mssr.c +++ b/drivers/clk/renesas/r8a77995-cpg-mssr.c @@ -13,6 +13,7 @@ #include <common.h> #include <clk-uclass.h> #include <dm.h> +#include <linux/bitops.h> #include <dt-bindings/clock/r8a77995-cpg-mssr.h> diff --git a/drivers/clk/renesas/renesas-cpg-mssr.c b/drivers/clk/renesas/renesas-cpg-mssr.c index 6ad684c10b9f17646093c5c1df651952ea697a9d..7c1222f6c8cea64d9f5e3bacd4ff040125ae4d24 100644 --- a/drivers/clk/renesas/renesas-cpg-mssr.c +++ b/drivers/clk/renesas/renesas-cpg-mssr.c @@ -16,6 +16,7 @@ #include <log.h> #include <wait_bit.h> #include <asm/io.h> +#include <linux/bitops.h> #include <dt-bindings/clock/renesas-cpg-mssr.h> diff --git a/drivers/clk/renesas/renesas-cpg-mssr.h b/drivers/clk/renesas/renesas-cpg-mssr.h index 5b7012d37c633b52f3a83ad70b0cc46c7d6bf19d..b669dec594ffa2d7ac732650d0b3be31fa85b0c5 100644 --- a/drivers/clk/renesas/renesas-cpg-mssr.h +++ b/drivers/clk/renesas/renesas-cpg-mssr.h @@ -13,6 +13,7 @@ #ifndef __DRIVERS_CLK_RENESAS_CPG_MSSR__ #define __DRIVERS_CLK_RENESAS_CPG_MSSR__ +#include <linux/bitops.h> struct cpg_mssr_info { const struct cpg_core_clk *core_clk; unsigned int core_clk_size; diff --git a/drivers/clk/rockchip/clk_px30.c b/drivers/clk/rockchip/clk_px30.c index b5b46e3950448f840fbcc093a06f6b20aabf8764..71916dbf3b11b8fd953facd800ebbea67a2d6297 100644 --- a/drivers/clk/rockchip/clk_px30.c +++ b/drivers/clk/rockchip/clk_px30.c @@ -17,6 +17,7 @@ #include <asm/io.h> #include <dm/lists.h> #include <dt-bindings/clock/px30-cru.h> +#include <linux/bitops.h> #include <linux/delay.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/clk/rockchip/clk_rk322x.c b/drivers/clk/rockchip/clk_rk322x.c index 912e1f6e92e751a8ec38c88a4f98ac8213a304fe..054b2fd349b3cd72181da265bfece8d76913d6c3 100644 --- a/drivers/clk/rockchip/clk_rk322x.c +++ b/drivers/clk/rockchip/clk_rk322x.c @@ -16,6 +16,7 @@ #include <asm/arch-rockchip/hardware.h> #include <dm/lists.h> #include <dt-bindings/clock/rk3228-cru.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/log2.h> #include <linux/stringify.h> diff --git a/drivers/clk/rockchip/clk_rk3288.c b/drivers/clk/rockchip/clk_rk3288.c index 3b199bbb869696aa0d67e6fb1c06d01d39c8b6cd..a1dd642eefe23b8cd5489321154bd98ee6ef8668 100644 --- a/drivers/clk/rockchip/clk_rk3288.c +++ b/drivers/clk/rockchip/clk_rk3288.c @@ -23,6 +23,7 @@ #include <dm/device-internal.h> #include <dm/lists.h> #include <dm/uclass-internal.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/err.h> #include <linux/log2.h> diff --git a/drivers/clk/rockchip/clk_rk3308.c b/drivers/clk/rockchip/clk_rk3308.c index 5889cf862e6da0db0e568c7b4ec995d0b7e94238..d3633b69795fa28cb1acac03c26da0af94448ea0 100644 --- a/drivers/clk/rockchip/clk_rk3308.c +++ b/drivers/clk/rockchip/clk_rk3308.c @@ -17,6 +17,7 @@ #include <asm/arch-rockchip/hardware.h> #include <dm/lists.h> #include <dt-bindings/clock/rk3308-cru.h> +#include <linux/bitops.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/clk/rockchip/clk_rk3328.c b/drivers/clk/rockchip/clk_rk3328.c index 6d692ec8b70723c30a1c2847f771ad7dc7efedb6..02d3b08efa81d70777a97aa5a395ed056c2e1061 100644 --- a/drivers/clk/rockchip/clk_rk3328.c +++ b/drivers/clk/rockchip/clk_rk3328.c @@ -18,6 +18,7 @@ #include <asm/io.h> #include <dm/lists.h> #include <dt-bindings/clock/rk3328-cru.h> +#include <linux/bitops.h> #include <linux/delay.h> struct pll_div { diff --git a/drivers/clk/rockchip/clk_rk3399.c b/drivers/clk/rockchip/clk_rk3399.c index 2c58814b70db43c655e4315a59a499a99e993895..e009f1cf6c13ad9f53e4d2e4b1fcc64b924eea2b 100644 --- a/drivers/clk/rockchip/clk_rk3399.c +++ b/drivers/clk/rockchip/clk_rk3399.c @@ -20,6 +20,7 @@ #include <asm/arch-rockchip/hardware.h> #include <dm/lists.h> #include <dt-bindings/clock/rk3399-cru.h> +#include <linux/bitops.h> #include <linux/delay.h> #if CONFIG_IS_ENABLED(OF_PLATDATA) diff --git a/drivers/clk/sunxi/clk_a10.c b/drivers/clk/sunxi/clk_a10.c index 7a96d1708ea1ede9ce2d0f180d43dd84e0a842d3..67507c5ab1da629356d410bc29db1a63be3f2d8f 100644 --- a/drivers/clk/sunxi/clk_a10.c +++ b/drivers/clk/sunxi/clk_a10.c @@ -11,6 +11,7 @@ #include <asm/arch/ccu.h> #include <dt-bindings/clock/sun4i-a10-ccu.h> #include <dt-bindings/reset/sun4i-a10-ccu.h> +#include <linux/bitops.h> static struct ccu_clk_gate a10_gates[] = { [CLK_AHB_OTG] = GATE(0x060, BIT(0)), diff --git a/drivers/clk/sunxi/clk_a10s.c b/drivers/clk/sunxi/clk_a10s.c index 33d41d47b0f2c299c8cabe9bc805b42435716f80..d11a4b5f038d118c1bf892f711461e134fbe871c 100644 --- a/drivers/clk/sunxi/clk_a10s.c +++ b/drivers/clk/sunxi/clk_a10s.c @@ -11,6 +11,7 @@ #include <asm/arch/ccu.h> #include <dt-bindings/clock/sun5i-ccu.h> #include <dt-bindings/reset/sun5i-ccu.h> +#include <linux/bitops.h> static struct ccu_clk_gate a10s_gates[] = { [CLK_AHB_OTG] = GATE(0x060, BIT(0)), diff --git a/drivers/clk/sunxi/clk_a23.c b/drivers/clk/sunxi/clk_a23.c index c16019215e20a7a7075ef766b9a3b34a25f7b10b..4d562bfe427087139abf08ab129de189ced03902 100644 --- a/drivers/clk/sunxi/clk_a23.c +++ b/drivers/clk/sunxi/clk_a23.c @@ -11,6 +11,7 @@ #include <asm/arch/ccu.h> #include <dt-bindings/clock/sun8i-a23-a33-ccu.h> #include <dt-bindings/reset/sun8i-a23-a33-ccu.h> +#include <linux/bitops.h> static struct ccu_clk_gate a23_gates[] = { [CLK_BUS_MMC0] = GATE(0x060, BIT(8)), diff --git a/drivers/clk/sunxi/clk_a31.c b/drivers/clk/sunxi/clk_a31.c index 4ec3c2ae8929c5449e990a6d7c14b9e7355409f1..4a9454eebe761722aa024849fcbfa62aa71e6fbe 100644 --- a/drivers/clk/sunxi/clk_a31.c +++ b/drivers/clk/sunxi/clk_a31.c @@ -11,6 +11,7 @@ #include <asm/arch/ccu.h> #include <dt-bindings/clock/sun6i-a31-ccu.h> #include <dt-bindings/reset/sun6i-a31-ccu.h> +#include <linux/bitops.h> static struct ccu_clk_gate a31_gates[] = { [CLK_AHB1_MMC0] = GATE(0x060, BIT(8)), diff --git a/drivers/clk/sunxi/clk_a64.c b/drivers/clk/sunxi/clk_a64.c index f94e8aa754a528627aca1264d93b70b08c088a57..d96cb1aac1c9d991abb8bce71fb8955177a7d9e1 100644 --- a/drivers/clk/sunxi/clk_a64.c +++ b/drivers/clk/sunxi/clk_a64.c @@ -11,6 +11,7 @@ #include <asm/arch/ccu.h> #include <dt-bindings/clock/sun50i-a64-ccu.h> #include <dt-bindings/reset/sun50i-a64-ccu.h> +#include <linux/bitops.h> static const struct ccu_clk_gate a64_gates[] = { [CLK_BUS_MMC0] = GATE(0x060, BIT(8)), diff --git a/drivers/clk/sunxi/clk_a80.c b/drivers/clk/sunxi/clk_a80.c index fb76aad528be1155b5a957f85343811c12307c72..80d7407037e553449d1c35ff6593c32cde40e483 100644 --- a/drivers/clk/sunxi/clk_a80.c +++ b/drivers/clk/sunxi/clk_a80.c @@ -11,6 +11,7 @@ #include <asm/arch/ccu.h> #include <dt-bindings/clock/sun9i-a80-ccu.h> #include <dt-bindings/reset/sun9i-a80-ccu.h> +#include <linux/bitops.h> static const struct ccu_clk_gate a80_gates[] = { [CLK_SPI0] = GATE(0x430, BIT(31)), diff --git a/drivers/clk/sunxi/clk_a83t.c b/drivers/clk/sunxi/clk_a83t.c index 2be87a31fd5301f7c6b9e8dd8cabaff3edaa4b56..d6f23ddc77815048c5bc08e30cf180d6c1c3dbb6 100644 --- a/drivers/clk/sunxi/clk_a83t.c +++ b/drivers/clk/sunxi/clk_a83t.c @@ -11,6 +11,7 @@ #include <asm/arch/ccu.h> #include <dt-bindings/clock/sun8i-a83t-ccu.h> #include <dt-bindings/reset/sun8i-a83t-ccu.h> +#include <linux/bitops.h> static struct ccu_clk_gate a83t_gates[] = { [CLK_BUS_MMC0] = GATE(0x060, BIT(8)), diff --git a/drivers/clk/sunxi/clk_h3.c b/drivers/clk/sunxi/clk_h3.c index 6111a13f1c176a53519a1c0ffb5fbe3d74e45c0b..7e844f4ff1688f67b36c02ebf2a7274c9e3f89ed 100644 --- a/drivers/clk/sunxi/clk_h3.c +++ b/drivers/clk/sunxi/clk_h3.c @@ -11,6 +11,7 @@ #include <asm/arch/ccu.h> #include <dt-bindings/clock/sun8i-h3-ccu.h> #include <dt-bindings/reset/sun8i-h3-ccu.h> +#include <linux/bitops.h> static struct ccu_clk_gate h3_gates[] = { [CLK_BUS_MMC0] = GATE(0x060, BIT(8)), diff --git a/drivers/clk/sunxi/clk_h6.c b/drivers/clk/sunxi/clk_h6.c index 105c15d869474c60c168d2ac159a99bae906721c..a1cb8952d39c02768b5511372b214e22fe2a9f3a 100644 --- a/drivers/clk/sunxi/clk_h6.c +++ b/drivers/clk/sunxi/clk_h6.c @@ -11,6 +11,7 @@ #include <asm/arch/ccu.h> #include <dt-bindings/clock/sun50i-h6-ccu.h> #include <dt-bindings/reset/sun50i-h6-ccu.h> +#include <linux/bitops.h> static struct ccu_clk_gate h6_gates[] = { [CLK_BUS_MMC0] = GATE(0x84c, BIT(0)), diff --git a/drivers/clk/sunxi/clk_r40.c b/drivers/clk/sunxi/clk_r40.c index 44abc4f536d2c651fa3c34de20eb95cbff0a5ad0..ac360b2bebd59605b896201d1388e1f419562fee 100644 --- a/drivers/clk/sunxi/clk_r40.c +++ b/drivers/clk/sunxi/clk_r40.c @@ -11,6 +11,7 @@ #include <asm/arch/ccu.h> #include <dt-bindings/clock/sun8i-r40-ccu.h> #include <dt-bindings/reset/sun8i-r40-ccu.h> +#include <linux/bitops.h> static struct ccu_clk_gate r40_gates[] = { [CLK_BUS_MMC0] = GATE(0x060, BIT(8)), diff --git a/drivers/clk/sunxi/clk_sunxi.c b/drivers/clk/sunxi/clk_sunxi.c index 77fba5357f9331f6700b31b1b4d50093118666aa..41934cd826e3d38ccc02bb531d0ab29c1d42acca 100644 --- a/drivers/clk/sunxi/clk_sunxi.c +++ b/drivers/clk/sunxi/clk_sunxi.c @@ -12,6 +12,7 @@ #include <reset.h> #include <asm/io.h> #include <asm/arch/ccu.h> +#include <linux/bitops.h> #include <linux/log2.h> static const struct ccu_clk_gate *priv_to_gate(struct ccu_priv *priv, diff --git a/drivers/clk/sunxi/clk_v3s.c b/drivers/clk/sunxi/clk_v3s.c index 789ac72026ba032394a3c08c447aa065ba10d642..b79446cc4fdf17dde96dcd8064ea8c504f22ef3e 100644 --- a/drivers/clk/sunxi/clk_v3s.c +++ b/drivers/clk/sunxi/clk_v3s.c @@ -11,6 +11,7 @@ #include <asm/arch/ccu.h> #include <dt-bindings/clock/sun8i-v3s-ccu.h> #include <dt-bindings/reset/sun8i-v3s-ccu.h> +#include <linux/bitops.h> static struct ccu_clk_gate v3s_gates[] = { [CLK_BUS_MMC0] = GATE(0x060, BIT(8)), diff --git a/drivers/cpu/bmips_cpu.c b/drivers/cpu/bmips_cpu.c index 613c8360495d331e82cb3d70f0af1580377090f0..2649c5c6e91c7abe8c86071264ba595b88a8cac9 100644 --- a/drivers/cpu/bmips_cpu.c +++ b/drivers/cpu/bmips_cpu.c @@ -13,6 +13,7 @@ #include <errno.h> #include <init.h> #include <asm/io.h> +#include <linux/bitops.h> #define REV_CHIPID_SHIFT 16 #define REV_CHIPID_MASK (0xffff << REV_CHIPID_SHIFT) diff --git a/drivers/cpu/imx8_cpu.c b/drivers/cpu/imx8_cpu.c index 9d1d8d7ab890c2d23cce4e01b731e6c4f55fa441..dddd12d1e400a6e685568597312e3b0e5cffdf74 100644 --- a/drivers/cpu/imx8_cpu.c +++ b/drivers/cpu/imx8_cpu.c @@ -12,6 +12,7 @@ #include <asm/arch/sys_proto.h> #include <asm/arch-imx/cpu.h> #include <asm/armv8/cpu.h> +#include <linux/bitops.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/cpu/mpc83xx_cpu.c b/drivers/cpu/mpc83xx_cpu.c index c1a7a555c6735da728cb915fc4cb4efa7143875d..f8a84bae9d98553d9bb345b18f6a8236b9804272 100644 --- a/drivers/cpu/mpc83xx_cpu.c +++ b/drivers/cpu/mpc83xx_cpu.c @@ -11,6 +11,7 @@ #include <dm.h> #include <log.h> #include <vsprintf.h> +#include <linux/bitops.h> #include "mpc83xx_cpu.h" diff --git a/drivers/cpu/riscv_cpu.c b/drivers/cpu/riscv_cpu.c index 1dc7ee9fdcb2a7235670fc128d04035e67fffd9b..cb04f5638db16b69c9625617456fc7684fe285ab 100644 --- a/drivers/cpu/riscv_cpu.c +++ b/drivers/cpu/riscv_cpu.c @@ -10,6 +10,7 @@ #include <log.h> #include <dm/device-internal.h> #include <dm/lists.h> +#include <linux/bitops.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/ddr/altera/sdram_arria10.c b/drivers/ddr/altera/sdram_arria10.c index 19d5724a6060ee45ecc16759c2f8c91e32f7e70b..3c58f59f3ab69b06e6ae49e9f5ea5c2c91ae3059 100644 --- a/drivers/ddr/altera/sdram_arria10.c +++ b/drivers/ddr/altera/sdram_arria10.c @@ -18,6 +18,7 @@ #include <asm/arch/misc.h> #include <asm/arch/reset_manager.h> #include <asm/arch/sdram.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/kernel.h> diff --git a/drivers/ddr/altera/sdram_gen5.c b/drivers/ddr/altera/sdram_gen5.c index ba588e96af93711a11cf16d81d1c3b2194b11870..1360bd0a3b82a7faa9c614843a726b0c30c424b9 100644 --- a/drivers/ddr/altera/sdram_gen5.c +++ b/drivers/ddr/altera/sdram_gen5.c @@ -15,6 +15,7 @@ #include <asm/arch/reset_manager.h> #include <asm/arch/sdram.h> #include <asm/arch/system_manager.h> +#include <asm/bitops.h> #include <asm/io.h> #include <dm/device_compat.h> diff --git a/drivers/ddr/fsl/ctrl_regs.c b/drivers/ddr/fsl/ctrl_regs.c index ed60b226dfdd16fc5a5b34eec51f86b3ca7ab140..2d3fb1953b85ab07f35f80e9c26b66219163209e 100644 --- a/drivers/ddr/fsl/ctrl_regs.c +++ b/drivers/ddr/fsl/ctrl_regs.c @@ -16,6 +16,7 @@ #include <fsl_ddr.h> #include <fsl_immap.h> #include <log.h> +#include <asm/bitops.h> #include <asm/io.h> #if defined(CONFIG_FSL_LSCH2) || defined(CONFIG_FSL_LSCH3) || \ defined(CONFIG_ARM) diff --git a/drivers/ddr/fsl/ddr1_dimm_params.c b/drivers/ddr/fsl/ddr1_dimm_params.c index ef430ae135876679a797a9364a05d0e4531c3cc9..e5481eaa0ddd78d376d1f8d5e39b6a929d71b862 100644 --- a/drivers/ddr/fsl/ddr1_dimm_params.c +++ b/drivers/ddr/fsl/ddr1_dimm_params.c @@ -6,6 +6,7 @@ #include <common.h> #include <fsl_ddr_sdram.h> #include <log.h> +#include <asm/bitops.h> #include <fsl_ddr.h> diff --git a/drivers/ddr/fsl/ddr2_dimm_params.c b/drivers/ddr/fsl/ddr2_dimm_params.c index 442f72c270924226120521ebff7b0a1bd12d75f4..3b78118a9d823517c35388403ac3099b6071a5d6 100644 --- a/drivers/ddr/fsl/ddr2_dimm_params.c +++ b/drivers/ddr/fsl/ddr2_dimm_params.c @@ -6,6 +6,7 @@ #include <common.h> #include <fsl_ddr_sdram.h> #include <log.h> +#include <asm/bitops.h> #include <fsl_ddr.h> /* diff --git a/drivers/ddr/fsl/interactive.c b/drivers/ddr/fsl/interactive.c index ea8bcbeb5162fe2ae150f863dd218c455c8b0d97..2f76beb2dbe69918a32a09e830a49c62d53aa446 100644 --- a/drivers/ddr/fsl/interactive.c +++ b/drivers/ddr/fsl/interactive.c @@ -16,6 +16,7 @@ #include <command.h> #include <env.h> #include <log.h> +#include <asm/bitops.h> #include <linux/ctype.h> #include <asm/types.h> #include <asm/io.h> diff --git a/drivers/ddr/fsl/lc_common_dimm_params.c b/drivers/ddr/fsl/lc_common_dimm_params.c index 16ff6eeeb95bf2d26e59f301e15c88265ae8bfdf..d299d763db1a5e7808d648bdeea0dacf021bdce8 100644 --- a/drivers/ddr/fsl/lc_common_dimm_params.c +++ b/drivers/ddr/fsl/lc_common_dimm_params.c @@ -7,6 +7,7 @@ #include <common.h> #include <fsl_ddr_sdram.h> #include <log.h> +#include <asm/bitops.h> #include <fsl_ddr.h> diff --git a/drivers/ddr/fsl/main.c b/drivers/ddr/fsl/main.c index 8533b28c258295a944438c1fe471ca812041b7cd..84139b85c33d374dbfeccd6189bd75fe5ce76e86 100644 --- a/drivers/ddr/fsl/main.c +++ b/drivers/ddr/fsl/main.c @@ -16,6 +16,7 @@ #include <fsl_ddr.h> #include <init.h> #include <log.h> +#include <asm/bitops.h> /* * CONFIG_SYS_FSL_DDR_SDRAM_BASE_PHY is the physical address from the view diff --git a/drivers/dma/bcm6348-iudma.c b/drivers/dma/bcm6348-iudma.c index 9e0e82520e75b59afdf467955f12ecdd4f0a8cd7..91172d483c79a9150c0d59ffe0a0d4ad7808f9a4 100644 --- a/drivers/dma/bcm6348-iudma.c +++ b/drivers/dma/bcm6348-iudma.c @@ -26,6 +26,7 @@ #include <net.h> #include <reset.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/delay.h> #define DMA_RX_DESC 6 diff --git a/drivers/dma/lpc32xx_dma.c b/drivers/dma/lpc32xx_dma.c index de963347f11bfa53ecced880909743fea5c5b812..ab58e97bfe27289e34a7a976d89de2a31d4eeae8 100644 --- a/drivers/dma/lpc32xx_dma.c +++ b/drivers/dma/lpc32xx_dma.c @@ -15,6 +15,7 @@ #include <asm/arch/clk.h> #include <asm/arch/sys_proto.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/delay.h> /* DMA controller channel register structure */ diff --git a/drivers/dma/ti/k3-udma-hwdef.h b/drivers/dma/ti/k3-udma-hwdef.h index c88399a815ea9e4ba8e82e14b2aaa3647d784ee3..5d50bbcb0317d76faf729cce03245d8d7b50be7f 100644 --- a/drivers/dma/ti/k3-udma-hwdef.h +++ b/drivers/dma/ti/k3-udma-hwdef.h @@ -12,6 +12,7 @@ #ifndef K3_NAVSS_UDMA_HWDEF_H_ #define K3_NAVSS_UDMA_HWDEF_H_ +#include <linux/bitops.h> #define UDMA_PSIL_DST_THREAD_ID_OFFSET 0x8000 /* Global registers */ diff --git a/drivers/dma/ti/k3-udma.c b/drivers/dma/ti/k3-udma.c index 299e707adcf5e20504b67efd8f7cdbda99153e20..2ce16c8e27f16728a888ae7d1c2d087ee512742a 100644 --- a/drivers/dma/ti/k3-udma.c +++ b/drivers/dma/ti/k3-udma.c @@ -12,6 +12,7 @@ #include <asm/io.h> #include <asm/bitops.h> #include <malloc.h> +#include <linux/bitops.h> #include <linux/dma-mapping.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/firmware/ti_sci.c b/drivers/firmware/ti_sci.c index de9a2eaff58dc096913257d1a31e10c22cf2d663..15f5b0b14cce01e01fd9d269ee93a2ff01b25b39 100644 --- a/drivers/firmware/ti_sci.c +++ b/drivers/firmware/ti_sci.c @@ -16,6 +16,7 @@ #include <dm/device.h> #include <dm/device_compat.h> #include <dm/devres.h> +#include <linux/bitops.h> #include <linux/compat.h> #include <linux/err.h> #include <linux/soc/ti/k3-sec-proxy.h> diff --git a/drivers/firmware/ti_sci.h b/drivers/firmware/ti_sci.h index 24b4d1c7948a7b6ba2a4970d7f68aa3cc95c5cd3..327bb820f3a7f5ba5828b566b4a4434464f74a53 100644 --- a/drivers/firmware/ti_sci.h +++ b/drivers/firmware/ti_sci.h @@ -15,6 +15,7 @@ #define __TI_SCI_H /* Generic Messages */ +#include <linux/bitops.h> #define TI_SCI_MSG_ENABLE_WDT 0x0000 #define TI_SCI_MSG_WAKE_RESET 0x0001 #define TI_SCI_MSG_VERSION 0x0002 diff --git a/drivers/fpga/socfpga_arria10.c b/drivers/fpga/socfpga_arria10.c index e14204633e7a0378c3a10fe8b3ec8d18694909ac..dfd3cbb461028e8d77a228f31db9a2dac7949970 100644 --- a/drivers/fpga/socfpga_arria10.c +++ b/drivers/fpga/socfpga_arria10.c @@ -18,6 +18,7 @@ #include <fs_loader.h> #include <wait_bit.h> #include <watchdog.h> +#include <linux/bitops.h> #include <linux/delay.h> #define CFGWDTH_32 1 diff --git a/drivers/fpga/zynqmppl.c b/drivers/fpga/zynqmppl.c index b995bcc008b13e5585f3ea09f746bb3a67a52386..2ac4e38952125669133ca6823dfb4c49930bc82d 100644 --- a/drivers/fpga/zynqmppl.c +++ b/drivers/fpga/zynqmppl.c @@ -12,6 +12,7 @@ #include <zynqmppl.h> #include <zynqmp_firmware.h> #include <asm/cache.h> +#include <linux/bitops.h> #include <linux/sizes.h> #include <asm/arch/sys_proto.h> #include <memalign.h> diff --git a/drivers/gpio/atmel_pio4.c b/drivers/gpio/atmel_pio4.c index a3f5e7a2e0a0481bc34501cc8ce27854376974a4..455944d547a224476d752a33b9e4e32c1c611515 100644 --- a/drivers/gpio/atmel_pio4.c +++ b/drivers/gpio/atmel_pio4.c @@ -12,6 +12,7 @@ #include <malloc.h> #include <asm/arch/hardware.h> #include <asm/gpio.h> +#include <linux/bitops.h> #include <mach/gpio.h> #include <mach/atmel_pio4.h> diff --git a/drivers/gpio/bcm6345_gpio.c b/drivers/gpio/bcm6345_gpio.c index 71a978cf4077880b18ecef073b166c5e4ef34d84..5da11d988e08718065f63237c485038294cec091 100644 --- a/drivers/gpio/bcm6345_gpio.c +++ b/drivers/gpio/bcm6345_gpio.c @@ -12,6 +12,7 @@ #include <errno.h> #include <asm/gpio.h> #include <asm/io.h> +#include <linux/bitops.h> struct bcm6345_gpio_priv { void __iomem *reg_dirout; diff --git a/drivers/gpio/cortina_gpio.c b/drivers/gpio/cortina_gpio.c index c6266b88cbfb350f50e07bd7d490f9381b8c0727..055907c1a1d3536db5657f1218aad8d59f41bdf2 100644 --- a/drivers/gpio/cortina_gpio.c +++ b/drivers/gpio/cortina_gpio.c @@ -10,6 +10,7 @@ #include <log.h> #include <asm/io.h> #include <asm/gpio.h> +#include <linux/bitops.h> #include <linux/compat.h> #include <linux/compiler.h> diff --git a/drivers/gpio/dwapb_gpio.c b/drivers/gpio/dwapb_gpio.c index 7b50a34b3f9a1193104937970aea67e204014690..e5e35181940ce2a41ad6458dea74c7b668e26503 100644 --- a/drivers/gpio/dwapb_gpio.c +++ b/drivers/gpio/dwapb_gpio.c @@ -19,6 +19,7 @@ #include <dm/root.h> #include <errno.h> #include <reset.h> +#include <linux/bitops.h> #define GPIO_SWPORT_DR(p) (0x00 + (p) * 0xc) #define GPIO_SWPORT_DDR(p) (0x04 + (p) * 0xc) diff --git a/drivers/gpio/gpio-rcar.c b/drivers/gpio/gpio-rcar.c index 9dc4cd6042271263f98c421e6b39268ec8573b4e..c49a041059d24f18ba7cc465c896ecb3a70b8896 100644 --- a/drivers/gpio/gpio-rcar.c +++ b/drivers/gpio/gpio-rcar.c @@ -12,6 +12,7 @@ #include <errno.h> #include <asm/gpio.h> #include <asm/io.h> +#include <linux/bitops.h> #include "../pinctrl/renesas/sh_pfc.h" #define GPIO_IOINTSEL 0x00 /* General IO/Interrupt Switching Register */ diff --git a/drivers/gpio/gpio-rza1.c b/drivers/gpio/gpio-rza1.c index ce2453e2ba6eb13215b5f49042366a3de762cc5b..21a87d645cdbec7af1eca164ddd4f701bf25af9d 100644 --- a/drivers/gpio/gpio-rza1.c +++ b/drivers/gpio/gpio-rza1.c @@ -9,6 +9,7 @@ #include <errno.h> #include <asm/gpio.h> #include <asm/io.h> +#include <linux/bitops.h> #define P(bank) (0x0000 + (bank) * 4) #define PSR(bank) (0x0100 + (bank) * 4) diff --git a/drivers/gpio/hi6220_gpio.c b/drivers/gpio/hi6220_gpio.c index 97a041789171651633320b2956c3b577dfa5ccc4..95de2ae3660d6ce549ce9fcda6c63a912deab0f9 100644 --- a/drivers/gpio/hi6220_gpio.c +++ b/drivers/gpio/hi6220_gpio.c @@ -9,6 +9,7 @@ #include <asm/gpio.h> #include <asm/io.h> #include <errno.h> +#include <linux/bitops.h> static int hi6220_gpio_direction_input(struct udevice *dev, unsigned int gpio) { diff --git a/drivers/gpio/hsdk-creg-gpio.c b/drivers/gpio/hsdk-creg-gpio.c index 8eeb3849c2bb8bcdbf85a14ed2846c95b500c12d..d9df804f6390dfaa6af964a59d62c92273528a66 100644 --- a/drivers/gpio/hsdk-creg-gpio.c +++ b/drivers/gpio/hsdk-creg-gpio.c @@ -15,6 +15,7 @@ #include <common.h> #include <dm.h> #include <errno.h> +#include <linux/bitops.h> #include <linux/printk.h> #define DRV_NAME "gpio_creg" diff --git a/drivers/gpio/mscc_sgpio.c b/drivers/gpio/mscc_sgpio.c index 1bbd212b4fbe056a56442ff4c5b4055bf429ea2c..780d77b2f86e5cb91be225015fb50bd3004db708 100644 --- a/drivers/gpio/mscc_sgpio.c +++ b/drivers/gpio/mscc_sgpio.c @@ -15,6 +15,7 @@ #include <errno.h> #include <clk.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/err.h> #define MSCC_SGPIOS_PER_BANK 32 diff --git a/drivers/gpio/mt7621_gpio.c b/drivers/gpio/mt7621_gpio.c index 54d313d6f1d399376bca55b76cb7dd464cf22de1..612413e17bca7c2006163f8ea6c4c09ec40f47f6 100644 --- a/drivers/gpio/mt7621_gpio.c +++ b/drivers/gpio/mt7621_gpio.c @@ -12,6 +12,7 @@ #include <errno.h> #include <fdtdec.h> #include <malloc.h> +#include <linux/bitops.h> #include <linux/io.h> #include <asm/io.h> #include <asm/gpio.h> diff --git a/drivers/gpio/mvebu_gpio.c b/drivers/gpio/mvebu_gpio.c index e8b1c5965cb4d281af54f707d6cc6b774e924696..770cbf6b607245cb3ab31b8d476a4d92a89ec97b 100644 --- a/drivers/gpio/mvebu_gpio.c +++ b/drivers/gpio/mvebu_gpio.c @@ -8,6 +8,7 @@ #include <asm/gpio.h> #include <asm/io.h> #include <errno.h> +#include <linux/bitops.h> #define MVEBU_GPIOS_PER_BANK 32 diff --git a/drivers/gpio/mxs_gpio.c b/drivers/gpio/mxs_gpio.c index 3094f1c804a47d7c8f2791bd8f14a53f452a761c..815339a1560edc4c2dcb89e2097341f768c2288c 100644 --- a/drivers/gpio/mxs_gpio.c +++ b/drivers/gpio/mxs_gpio.c @@ -9,6 +9,7 @@ #include <common.h> #include <log.h> #include <malloc.h> +#include <linux/bitops.h> #include <linux/errno.h> #include <asm/io.h> #include <asm/arch/iomux.h> diff --git a/drivers/gpio/pca953x_gpio.c b/drivers/gpio/pca953x_gpio.c index d06b834a3bcb41a9249ff13d3c40490e825206fd..fd17d1a591028ccd336297ebe1d0b4d0aefebccb 100644 --- a/drivers/gpio/pca953x_gpio.c +++ b/drivers/gpio/pca953x_gpio.c @@ -28,6 +28,7 @@ #include <asm/io.h> #include <dm/device_compat.h> #include <dt-bindings/gpio/gpio.h> +#include <linux/bitops.h> #define PCA953X_INPUT 0 #define PCA953X_OUTPUT 1 diff --git a/drivers/gpio/pcf8575_gpio.c b/drivers/gpio/pcf8575_gpio.c index 7c790bb64aea0040269f2e74bc7e1ef6d59a478a..1b9a18fe5dc0cf9244aa2b8759e16a7571546826 100644 --- a/drivers/gpio/pcf8575_gpio.c +++ b/drivers/gpio/pcf8575_gpio.c @@ -28,6 +28,7 @@ #include <i2c.h> #include <log.h> #include <asm-generic/gpio.h> +#include <linux/bitops.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/gpio/pic32_gpio.c b/drivers/gpio/pic32_gpio.c index d8789e76078b9bfa8d4b750d75c46e8362fa9741..bb1ad256fac0d6ebf9e01497c4d17a43f68f6e38 100644 --- a/drivers/gpio/pic32_gpio.c +++ b/drivers/gpio/pic32_gpio.c @@ -10,6 +10,7 @@ #include <malloc.h> #include <asm/io.h> #include <asm/gpio.h> +#include <linux/bitops.h> #include <linux/compat.h> #include <mach/pic32.h> diff --git a/drivers/gpio/sh_pfc.c b/drivers/gpio/sh_pfc.c index 00b806e6a656b699bdf8f1ce91fd79b9157ac5c2..0653171af482a3d5a0c100b83f33b84f8d8fa10c 100644 --- a/drivers/gpio/sh_pfc.c +++ b/drivers/gpio/sh_pfc.c @@ -15,6 +15,7 @@ #include <asm/bitops.h> #include <asm/io.h> #include <sh_pfc.h> +#include <linux/bitops.h> #include <linux/bug.h> static struct pinmux_info *gpioc; diff --git a/drivers/gpio/sifive-gpio.c b/drivers/gpio/sifive-gpio.c index 76d5a1d34eef134331052df92e9df9e20c6c6547..24da3b3c230dc7d4a696bef64e10a7dd0d452c0b 100644 --- a/drivers/gpio/sifive-gpio.c +++ b/drivers/gpio/sifive-gpio.c @@ -11,6 +11,7 @@ #include <asm/io.h> #include <errno.h> #include <asm/gpio.h> +#include <linux/bitops.h> static int sifive_gpio_probe(struct udevice *dev) { diff --git a/drivers/gpio/stm32_gpio.c b/drivers/gpio/stm32_gpio.c index 451724e83898f4916247bd4c9ab80d5ecccdae78..4f710b6b6afa096fd1652aff61615216f01c0ad5 100644 --- a/drivers/gpio/stm32_gpio.c +++ b/drivers/gpio/stm32_gpio.c @@ -14,6 +14,7 @@ #include <asm/gpio.h> #include <asm/io.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/errno.h> #include <linux/io.h> diff --git a/drivers/gpio/tegra186_gpio_priv.h b/drivers/gpio/tegra186_gpio_priv.h index ac8df27c467eb55c4af85d486e3b693d0d202817..3e686beedc16cc6c2e956ebe1122c4d4b360252a 100644 --- a/drivers/gpio/tegra186_gpio_priv.h +++ b/drivers/gpio/tegra186_gpio_priv.h @@ -10,6 +10,7 @@ * For each GPIO, there are a set of registers than affect it, all packed * back-to-back. */ +#include <linux/bitops.h> #define TEGRA186_GPIO_ENABLE_CONFIG 0x00 #define TEGRA186_GPIO_ENABLE_CONFIG_ENABLE BIT(0) #define TEGRA186_GPIO_ENABLE_CONFIG_OUT BIT(1) diff --git a/drivers/gpio/zynq_gpio.c b/drivers/gpio/zynq_gpio.c index fe3b2c3b1aa82865832546b99142d0f5cffbe7d2..d0e90b8d633f5cbe642c8602a46a60e2a95a0e5b 100644 --- a/drivers/gpio/zynq_gpio.c +++ b/drivers/gpio/zynq_gpio.c @@ -11,6 +11,7 @@ #include <common.h> #include <asm/gpio.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/errno.h> #include <dm.h> #include <fdtdec.h> diff --git a/drivers/hwspinlock/stm32_hwspinlock.c b/drivers/hwspinlock/stm32_hwspinlock.c index 74afb4aec22b8812e951aecb399c22e5c94903e9..8be585a0c8660935b5695c4dea118e671e66524c 100644 --- a/drivers/hwspinlock/stm32_hwspinlock.c +++ b/drivers/hwspinlock/stm32_hwspinlock.c @@ -9,6 +9,7 @@ #include <hwspinlock.h> #include <malloc.h> #include <asm/io.h> +#include <linux/bitops.h> #define STM32_MUTEX_COREID BIT(8) #define STM32_MUTEX_LOCK_BIT BIT(31) diff --git a/drivers/i2c/at91_i2c.h b/drivers/i2c/at91_i2c.h index 87f02bfaf3f7c8eff521f9778249d479c12573c8..3915af83723e701ad94395867ecabd51edbce980 100644 --- a/drivers/i2c/at91_i2c.h +++ b/drivers/i2c/at91_i2c.h @@ -1,6 +1,7 @@ #ifndef _AT91_I2C_H #define _AT91_I2C_H +#include <linux/bitops.h> #define TWI_CR_START BIT(0) /* Send a Start Condition */ #define TWI_CR_MSEN BIT(2) /* Master Transfer Enable */ #define TWI_CR_STOP BIT(1) /* Send a Stop Condition */ diff --git a/drivers/i2c/designware_i2c.h b/drivers/i2c/designware_i2c.h index 7ee236193daa6b0c62b7cbf5843d5c4236272e5b..dc9a6ccb633c8a7f4b213efd854643ce714482da 100644 --- a/drivers/i2c/designware_i2c.h +++ b/drivers/i2c/designware_i2c.h @@ -10,6 +10,7 @@ #include <clk.h> #include <i2c.h> #include <reset.h> +#include <linux/bitops.h> struct i2c_regs { u32 ic_con; /* 0x00 */ diff --git a/drivers/i2c/i2c-cdns.c b/drivers/i2c/i2c-cdns.c index 402a664876d53999894ed5f36a75b4afe48a1977..024c63c4eaedbb7fa6c5a1797a55b9e35752b8e3 100644 --- a/drivers/i2c/i2c-cdns.c +++ b/drivers/i2c/i2c-cdns.c @@ -10,6 +10,7 @@ #include <common.h> #include <dm.h> #include <log.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/types.h> #include <linux/io.h> diff --git a/drivers/i2c/i2c-versatile.c b/drivers/i2c/i2c-versatile.c index 46eb017ea0de57b43099de8afb0082351a9b2ed5..62831522bd3328dd4c431bed51ab6703cacf8afb 100644 --- a/drivers/i2c/i2c-versatile.c +++ b/drivers/i2c/i2c-versatile.c @@ -11,6 +11,7 @@ #include <i2c.h> #include <asm/io.h> #include <clk.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/io.h> diff --git a/drivers/i2c/ihs_i2c.c b/drivers/i2c/ihs_i2c.c index 296e01b41cbe7db78142d21279c41b236c05b7c3..cec38538da43aeb65e758bb131b3e2b6a8d72f04 100644 --- a/drivers/i2c/ihs_i2c.c +++ b/drivers/i2c/ihs_i2c.c @@ -14,6 +14,7 @@ #endif #include <log.h> #include <asm/unaligned.h> +#include <linux/bitops.h> #include <linux/delay.h> #ifdef CONFIG_DM_I2C diff --git a/drivers/i2c/meson_i2c.c b/drivers/i2c/meson_i2c.c index 0a647b8f73c61aafa0976bacb282beeed20e2b60..e070caf43f2a073bd5e9f4a6f5113873a3ab0b48 100644 --- a/drivers/i2c/meson_i2c.c +++ b/drivers/i2c/meson_i2c.c @@ -8,6 +8,7 @@ #include <clk.h> #include <dm.h> #include <i2c.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/err.h> diff --git a/drivers/i2c/rcar_i2c.c b/drivers/i2c/rcar_i2c.c index 5a902047bc920dd240b5c64091340f6e947edf60..4267bbfa5a961f80ff63f4ecb115ebd841f1b570 100644 --- a/drivers/i2c/rcar_i2c.c +++ b/drivers/i2c/rcar_i2c.c @@ -18,6 +18,7 @@ #include <asm/io.h> #include <wait_bit.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/delay.h> #define RCAR_I2C_ICSCR 0x00 /* slave ctrl */ diff --git a/drivers/i2c/rcar_iic.c b/drivers/i2c/rcar_iic.c index 6b21f6a5326c55618b67043c48ddfcdd55ac5b7a..cad0a623d363ee886a4525a1001904e9ad59e1c3 100644 --- a/drivers/i2c/rcar_iic.c +++ b/drivers/i2c/rcar_iic.c @@ -14,6 +14,7 @@ #include <dm.h> #include <i2c.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/delay.h> struct rcar_iic_priv { diff --git a/drivers/i2c/stm32f7_i2c.c b/drivers/i2c/stm32f7_i2c.c index 18affd08e36c59fb6ff65330541ee158647fea17..ada8f4095eda891bd14fd64a276a5a22687604f9 100644 --- a/drivers/i2c/stm32f7_i2c.c +++ b/drivers/i2c/stm32f7_i2c.c @@ -9,6 +9,7 @@ #include <i2c.h> #include <log.h> #include <reset.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <dm/device.h> diff --git a/drivers/i2c/tegra186_bpmp_i2c.c b/drivers/i2c/tegra186_bpmp_i2c.c index ac41a7f0f83f0fab2dd14749dfee07b4d1c7fc10..37204718ca134ef605698cae62b0a20ca952131c 100644 --- a/drivers/i2c/tegra186_bpmp_i2c.c +++ b/drivers/i2c/tegra186_bpmp_i2c.c @@ -9,6 +9,7 @@ #include <log.h> #include <misc.h> #include <asm/arch-tegra/bpmp_abi.h> +#include <linux/bitops.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/led/led_bcm6858.c b/drivers/led/led_bcm6858.c index 2be4279c08df65c18ae1b72b4166638f4dc1bd37..b415d8b2b40405c55fe96b35de5fc34745c7e513 100644 --- a/drivers/led/led_bcm6858.c +++ b/drivers/led/led_bcm6858.c @@ -14,6 +14,7 @@ #include <log.h> #include <asm/io.h> #include <dm/lists.h> +#include <linux/bitops.h> #define LEDS_MAX 32 #define LEDS_WAIT 100 diff --git a/drivers/mailbox/stm32-ipcc.c b/drivers/mailbox/stm32-ipcc.c index 0778eb52253429fe1d693750396395c153a4aaf3..b8bf356b4ac2045106065bfcad04c9ffdade41be 100644 --- a/drivers/mailbox/stm32-ipcc.c +++ b/drivers/mailbox/stm32-ipcc.c @@ -11,6 +11,7 @@ #include <malloc.h> #include <asm/io.h> #include <dm/device_compat.h> +#include <linux/bitops.h> /* * IPCC has one set of registers per CPU diff --git a/drivers/mailbox/tegra-hsp.c b/drivers/mailbox/tegra-hsp.c index 1d2c9798474b3fced8b405526bc1aa6d6d96b3ea..f82e6d3d16684ebf1077c9e6104f0ea1a1dc0cde 100644 --- a/drivers/mailbox/tegra-hsp.c +++ b/drivers/mailbox/tegra-hsp.c @@ -10,6 +10,7 @@ #include <dm.h> #include <mailbox-uclass.h> #include <dt-bindings/mailbox/tegra186-hsp.h> +#include <linux/bitops.h> #define TEGRA_HSP_INT_DIMENSIONING 0x380 #define TEGRA_HSP_INT_DIMENSIONING_NSI_SHIFT 16 diff --git a/drivers/misc/esm_pmic.c b/drivers/misc/esm_pmic.c index 92c8d68f7c8b513484c0e11a5554189b878c625c..a195dc5eb1da4345eec6f0bc2836b96e1e8fbcac 100644 --- a/drivers/misc/esm_pmic.c +++ b/drivers/misc/esm_pmic.c @@ -12,6 +12,7 @@ #include <errno.h> #include <power/pmic.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #define INT_ESM_REG 0x6c #define INT_ESM_MASK 0x3f diff --git a/drivers/misc/gdsys_ioep.h b/drivers/misc/gdsys_ioep.h index 4d9524b6b63d77fc0a707e983da27409c2e6cd96..f195388edaf84a937df6e748345f671ec9a00010 100644 --- a/drivers/misc/gdsys_ioep.h +++ b/drivers/misc/gdsys_ioep.h @@ -15,6 +15,7 @@ * @bc: Block counter (filled in by FPGA). * @packet_length: Length of the packet's payload bytes. */ +#include <linux/bitops.h> struct io_generic_packet { u16 target_address; u16 source_address; diff --git a/drivers/misc/ihs_fpga.c b/drivers/misc/ihs_fpga.c index 4923c81783dd9749f2f66cf0a00d28258a922ecb..00d34a3adc2be95cbcde01cbf762993a3c77445f 100644 --- a/drivers/misc/ihs_fpga.c +++ b/drivers/misc/ihs_fpga.c @@ -14,6 +14,7 @@ #include <log.h> #include <regmap.h> #include <asm/gpio.h> +#include <linux/bitops.h> #include <linux/delay.h> #include "ihs_fpga.h" diff --git a/drivers/misc/imx8/scu.c b/drivers/misc/imx8/scu.c index babcb09f87688bc467e1e17a97645af877110bf9..ee635eb947104ab5f093b9cca7b7377e21af5967 100644 --- a/drivers/misc/imx8/scu.c +++ b/drivers/misc/imx8/scu.c @@ -13,6 +13,7 @@ #include <dm/root.h> #include <dm/device-internal.h> #include <asm/arch/sci/sci.h> +#include <linux/bitops.h> #include <linux/iopoll.h> #include <misc.h> diff --git a/drivers/misc/jz4780_efuse.c b/drivers/misc/jz4780_efuse.c index bc3dc93af2dfd2555998dea88bee415f311ade2c..1fba3271db6120833dbc71dcb326c5ada860240b 100644 --- a/drivers/misc/jz4780_efuse.c +++ b/drivers/misc/jz4780_efuse.c @@ -10,6 +10,7 @@ #include <asm/io.h> #include <asm/unaligned.h> #include <errno.h> +#include <linux/bitops.h> #include <mach/jz4780.h> #include <wait_bit.h> diff --git a/drivers/misc/k3_avs.c b/drivers/misc/k3_avs.c index d8048e1b70b81761ebb15fa25c473df3b48a453a..408c89315a9f8a30dee1c0538235082df2604612 100644 --- a/drivers/misc/k3_avs.c +++ b/drivers/misc/k3_avs.c @@ -14,6 +14,7 @@ #include <i2c.h> #include <k3-avs.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <power/regulator.h> #define AM6_VTM_DEVINFO(i) (priv->base + 0x100 + 0x20 * (i)) diff --git a/drivers/misc/k3_esm.c b/drivers/misc/k3_esm.c index 8f270f3b5cbf8422171576738703d6e7332c2c40..cc2a23dd66384ddeead88706169b5189a256c655 100644 --- a/drivers/misc/k3_esm.c +++ b/drivers/misc/k3_esm.c @@ -12,6 +12,7 @@ #include <errno.h> #include <asm/io.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #define ESM_SFT_RST 0x0c #define ESM_SFT_RST_KEY 0x0f diff --git a/drivers/misc/mpc83xx_serdes.h b/drivers/misc/mpc83xx_serdes.h index 89ea1dbab73a83f437f4d5446ef820e57b699a04..2a13c5892bf25fe82ee3f548a608168fd743367a 100644 --- a/drivers/misc/mpc83xx_serdes.h +++ b/drivers/misc/mpc83xx_serdes.h @@ -18,6 +18,7 @@ * lane E) field of the SRCSCR0 * @SRDSCR0_TXEQE_SATA: Bitmask to set the TXEQE to the value used for SATA */ +#include <linux/bitops.h> enum srdscr0_mask { SRDSCR0_DPPA = BIT(31 - 16), SRDSCR0_DPPE = BIT(31 - 20), diff --git a/drivers/misc/tegra186_bpmp.c b/drivers/misc/tegra186_bpmp.c index 4077c46a237948f3ad47338d3295e976d5941a6f..18da138507c9db79d2bcf6e34e203c89425a69b1 100644 --- a/drivers/misc/tegra186_bpmp.c +++ b/drivers/misc/tegra186_bpmp.c @@ -14,6 +14,7 @@ #include <misc.h> #include <asm/arch-tegra/bpmp_abi.h> #include <asm/arch-tegra/ivc.h> +#include <linux/bitops.h> #include <linux/err.h> #define BPMP_IVC_FRAME_COUNT 1 diff --git a/drivers/misc/vexpress_config.c b/drivers/misc/vexpress_config.c index 53d7e1d154a367ed1d93c6b0effb9f2d2fbc13a9..02e5b586e2971ac9ba8394e885d1267ccb81767f 100644 --- a/drivers/misc/vexpress_config.c +++ b/drivers/misc/vexpress_config.c @@ -9,6 +9,7 @@ #include <malloc.h> #include <dm/read.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <misc.h> diff --git a/drivers/mmc/am654_sdhci.c b/drivers/mmc/am654_sdhci.c index ca76e1f5595fd193aa82045840aca8af2bfd504c..cbc531dc5351cdb0cbbd9c48235357bd81a7e4c7 100644 --- a/drivers/mmc/am654_sdhci.c +++ b/drivers/mmc/am654_sdhci.c @@ -13,6 +13,7 @@ #include <regmap.h> #include <sdhci.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/err.h> /* CTL_CFG Registers */ diff --git a/drivers/mmc/bcm2835_sdhost.c b/drivers/mmc/bcm2835_sdhost.c index 52bb39a905e4f0da08a7eec3d58301b411780975..c4876e81f8cfdf931c594b274ec1673a040ebec3 100644 --- a/drivers/mmc/bcm2835_sdhost.c +++ b/drivers/mmc/bcm2835_sdhost.c @@ -37,6 +37,7 @@ #include <asm/arch/mbox.h> #include <asm/unaligned.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/bug.h> #include <linux/compat.h> #include <linux/delay.h> diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c index 665eb9aa688147f15d4574f62476640df0bb1582..d5d955846cde964b028b2d1c24153dea13f34543 100644 --- a/drivers/mmc/fsl_esdhc.c +++ b/drivers/mmc/fsl_esdhc.c @@ -24,6 +24,7 @@ #include <asm/io.h> #include <dm.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/delay.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/mmc/fsl_esdhc_imx.c b/drivers/mmc/fsl_esdhc_imx.c index 1d040f608690eaafe7b52c07e2f6c5bfcbbd2e08..588d6a9d7643d41a87c43287a537be135e50376c 100644 --- a/drivers/mmc/fsl_esdhc_imx.c +++ b/drivers/mmc/fsl_esdhc_imx.c @@ -22,6 +22,7 @@ #include <part.h> #include <asm/cache.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/err.h> #include <power/regulator.h> diff --git a/drivers/mmc/ftsdc010_mci.c b/drivers/mmc/ftsdc010_mci.c index 5b8416813bd1c23b82f7beefdf192e45b9c9fa2c..b37523e26f85775e583402201643195164b44660 100644 --- a/drivers/mmc/ftsdc010_mci.c +++ b/drivers/mmc/ftsdc010_mci.c @@ -15,6 +15,7 @@ #include <malloc.h> #include <part.h> #include <mmc.h> +#include <linux/bitops.h> #include <linux/io.h> #include <linux/errno.h> #include <asm/byteorder.h> diff --git a/drivers/mmc/jz_mmc.c b/drivers/mmc/jz_mmc.c index 83ae1e516996c8aef775dced41471d23a23a39ea..d3f1eddf4506e74f9fc4e07b32c93c25fca32009 100644 --- a/drivers/mmc/jz_mmc.c +++ b/drivers/mmc/jz_mmc.c @@ -13,6 +13,7 @@ #include <asm/unaligned.h> #include <errno.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <mach/jz4780.h> #include <wait_bit.h> diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 02494db75a7d796a7779769b3a1ed14998f8c044..620bb930640fc6df2ec41cbd1668504ed7cd98a0 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -16,6 +16,7 @@ #include <errno.h> #include <mmc.h> #include <part.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <power/regulator.h> #include <malloc.h> diff --git a/drivers/mmc/mmc_spi.c b/drivers/mmc/mmc_spi.c index 0b690ecb4bd526a7851d03b638f9ee58266d978c..e76ab54838be9692ca33c86e67822bd5bbd6df12 100644 --- a/drivers/mmc/mmc_spi.c +++ b/drivers/mmc/mmc_spi.c @@ -13,6 +13,7 @@ #include <part.h> #include <mmc.h> #include <stdlib.h> +#include <linux/bitops.h> #include <u-boot/crc.h> #include <linux/crc7.h> #include <asm/byteorder.h> diff --git a/drivers/mmc/mxsmmc.c b/drivers/mmc/mxsmmc.c index ad2c0e000230fd93c51d134ae5f385a975d98bfc..e3c352b44a85e49f6e3ab8e43b52c9a2f24668d1 100644 --- a/drivers/mmc/mxsmmc.c +++ b/drivers/mmc/mxsmmc.c @@ -24,6 +24,7 @@ #include <log.h> #include <malloc.h> #include <mmc.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/errno.h> #include <asm/io.h> diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c index 0c21ec716e4042c38fa5dfb5051327594c528d27..8636cd713a36219038eec6a8d656cc57a03b955c 100644 --- a/drivers/mmc/omap_hsmmc.c +++ b/drivers/mmc/omap_hsmmc.c @@ -50,6 +50,7 @@ #endif #include <dm.h> #include <dm/devres.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/err.h> #include <power/regulator.h> diff --git a/drivers/mmc/renesas-sdhi.c b/drivers/mmc/renesas-sdhi.c index 668222999d569e0b5de4fce9e0bb11080c3b8ccf..d6ea99d2ceead972aaa6185b2e050fd1a8dff1fe 100644 --- a/drivers/mmc/renesas-sdhi.c +++ b/drivers/mmc/renesas-sdhi.c @@ -12,6 +12,7 @@ #include <mmc.h> #include <dm.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/compat.h> #include <linux/delay.h> #include <linux/dma-direction.h> diff --git a/drivers/mmc/sdhci-cadence.c b/drivers/mmc/sdhci-cadence.c index 86408d57f3031ad63029beb10760d0d8f9e47ac6..7b5010b6558953a3a785011ef25430eb94020efd 100644 --- a/drivers/mmc/sdhci-cadence.c +++ b/drivers/mmc/sdhci-cadence.c @@ -8,6 +8,7 @@ #include <dm.h> #include <dm/device_compat.h> #include <linux/bitfield.h> +#include <linux/bitops.h> #include <linux/bug.h> #include <linux/io.h> #include <linux/iopoll.h> diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c index 73142db29a1b44fd72c3e3bceaec48688f3ae973..92cc8434af240a7f9f62acb087644db251514aa9 100644 --- a/drivers/mmc/sdhci.c +++ b/drivers/mmc/sdhci.c @@ -17,6 +17,7 @@ #include <sdhci.h> #include <dm.h> #include <asm/cache.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/dma-mapping.h> #include <phys2bus.h> diff --git a/drivers/mmc/sh_mmcif.c b/drivers/mmc/sh_mmcif.c index 1a01fe5a7396e93ef6747c8710603b790e892f56..2e994d0178d9ff8186294134c38cfbf221e95818 100644 --- a/drivers/mmc/sh_mmcif.c +++ b/drivers/mmc/sh_mmcif.c @@ -15,6 +15,7 @@ #include <dm.h> #include <malloc.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/errno.h> #include <linux/compat.h> diff --git a/drivers/mmc/sh_sdhi.c b/drivers/mmc/sh_sdhi.c index 22a0f78933d89e392dcaa87bc0e3faddb8d11b20..772fe943e4d9496379cedd1089b5e0275dbc167c 100644 --- a/drivers/mmc/sh_sdhi.c +++ b/drivers/mmc/sh_sdhi.c @@ -16,6 +16,7 @@ #include <dm.h> #include <part.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/errno.h> #include <linux/compat.h> diff --git a/drivers/mmc/stm32_sdmmc2.c b/drivers/mmc/stm32_sdmmc2.c index b802316720a5b7ce140d387e9bc4c036e26f1072..6d503562171c377ea7ccea12c330a36466390c9a 100644 --- a/drivers/mmc/stm32_sdmmc2.c +++ b/drivers/mmc/stm32_sdmmc2.c @@ -11,7 +11,9 @@ #include <fdtdec.h> #include <log.h> #include <malloc.h> +#include <asm/bitops.h> #include <asm/cache.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/libfdt.h> #include <mmc.h> diff --git a/drivers/mmc/tegra_mmc.c b/drivers/mmc/tegra_mmc.c index 78838682c7c242354dddb1cc7d0466d528d1e752..cc78a2f2f08e68e50c06da809526e14b3c0280d4 100644 --- a/drivers/mmc/tegra_mmc.c +++ b/drivers/mmc/tegra_mmc.c @@ -15,6 +15,7 @@ #include <asm/gpio.h> #include <asm/io.h> #include <asm/arch-tegra/tegra_mmc.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/err.h> #if defined(CONFIG_TEGRA30) || defined(CONFIG_TEGRA210) diff --git a/drivers/mmc/tmio-common.h b/drivers/mmc/tmio-common.h index 2f671df4bc944f825967916e1841f5ed317fb308..9062300c64f7a7df1da62a54c75628591393aad9 100644 --- a/drivers/mmc/tmio-common.h +++ b/drivers/mmc/tmio-common.h @@ -7,6 +7,7 @@ #ifndef __TMIO_COMMON_H__ #define __TMIO_COMMON_H__ +#include <linux/bitops.h> #define TMIO_SD_CMD 0x000 /* command */ #define TMIO_SD_CMD_NOSTOP BIT(14) /* No automatic CMD12 issue */ #define TMIO_SD_CMD_MULTI BIT(13) /* multiple block transfer */ diff --git a/drivers/mmc/xenon_sdhci.c b/drivers/mmc/xenon_sdhci.c index 7dc600032b8ba83e62fdf049608d9dec7c740748..e765dd384acb33df92868ff134b7b08c9818495f 100644 --- a/drivers/mmc/xenon_sdhci.c +++ b/drivers/mmc/xenon_sdhci.c @@ -17,6 +17,7 @@ #include <common.h> #include <dm.h> #include <fdtdec.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/libfdt.h> #include <malloc.h> diff --git a/drivers/mtd/altera_qspi.c b/drivers/mtd/altera_qspi.c index 6896351995f77bee44435380f532c7463dd73ed7..cd4d32959a0dfbff07bfee46b661a25bb8cf4915 100644 --- a/drivers/mtd/altera_qspi.c +++ b/drivers/mtd/altera_qspi.c @@ -12,6 +12,7 @@ #include <log.h> #include <mtd.h> #include <asm/io.h> +#include <linux/bitops.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c index 97e88b71784ed9f6daef09c14763b802130e1b6a..1a4dec34d93ebb85c5a169408d966b0943393488 100644 --- a/drivers/mtd/mtdcore.c +++ b/drivers/mtd/mtdcore.c @@ -28,6 +28,7 @@ #include <linux/gfp.h> #include <linux/slab.h> #else +#include <linux/bitops.h> #include <linux/bug.h> #include <linux/err.h> #include <ubi_uboot.h> diff --git a/drivers/mtd/nand/bbt.c b/drivers/mtd/nand/bbt.c index 133670cb19983698d511a1d136665024814d9f01..84d60b86521ae41db5ddb23d04ca335a6e4c62a9 100644 --- a/drivers/mtd/nand/bbt.c +++ b/drivers/mtd/nand/bbt.c @@ -11,6 +11,7 @@ #include <common.h> #include <dm/devres.h> +#include <linux/bitops.h> #include <linux/mtd/nand.h> #ifndef __UBOOT__ #include <linux/slab.h> diff --git a/drivers/mtd/nand/core.c b/drivers/mtd/nand/core.c index bc0accf8c66e25ac01988b4be906a7263c4a726f..6fbd24ba7495b2d99301eead36968df1cbcde287 100644 --- a/drivers/mtd/nand/core.c +++ b/drivers/mtd/nand/core.c @@ -14,6 +14,7 @@ #include <linux/compat.h> #include <linux/module.h> #endif +#include <linux/bitops.h> #include <linux/mtd/nand.h> /** diff --git a/drivers/mtd/nand/raw/atmel_nand.c b/drivers/mtd/nand/raw/atmel_nand.c index 4a017ea74dc583d68173a7f42f7e6b628e7e131d..5e95901e275169efe85755547cb7486fd122585c 100644 --- a/drivers/mtd/nand/raw/atmel_nand.c +++ b/drivers/mtd/nand/raw/atmel_nand.c @@ -16,6 +16,7 @@ #include <asm/arch/gpio.h> #include <dm/device_compat.h> #include <dm/devres.h> +#include <linux/bitops.h> #include <linux/bug.h> #include <linux/delay.h> diff --git a/drivers/mtd/nand/raw/brcmnand/bcm63158_nand.c b/drivers/mtd/nand/raw/brcmnand/bcm63158_nand.c index ea7c65a1f6bae43b3e5140710c5cb696381061f1..6313403cd65aa6cfd1a4e53bd494d0f875977fe2 100644 --- a/drivers/mtd/nand/raw/brcmnand/bcm63158_nand.c +++ b/drivers/mtd/nand/raw/brcmnand/bcm63158_nand.c @@ -4,6 +4,7 @@ #include <asm/io.h> #include <memalign.h> #include <nand.h> +#include <linux/bitops.h> #include <linux/err.h> #include <linux/errno.h> #include <linux/io.h> diff --git a/drivers/mtd/nand/raw/brcmnand/bcm6368_nand.c b/drivers/mtd/nand/raw/brcmnand/bcm6368_nand.c index e2f5452c27218c83123608539e8778796e36a016..cd4b24a51a149d13b407d9c62221b8d78a27cef9 100644 --- a/drivers/mtd/nand/raw/brcmnand/bcm6368_nand.c +++ b/drivers/mtd/nand/raw/brcmnand/bcm6368_nand.c @@ -4,6 +4,7 @@ #include <asm/io.h> #include <memalign.h> #include <nand.h> +#include <linux/bitops.h> #include <linux/errno.h> #include <linux/io.h> #include <linux/ioport.h> diff --git a/drivers/mtd/nand/raw/brcmnand/bcm68360_nand.c b/drivers/mtd/nand/raw/brcmnand/bcm68360_nand.c index 0f1a28e4765d044693be6347cfbc5dd9aab66a31..aa042bef15843b03dc4d687c1f65e0bf93bf72cd 100644 --- a/drivers/mtd/nand/raw/brcmnand/bcm68360_nand.c +++ b/drivers/mtd/nand/raw/brcmnand/bcm68360_nand.c @@ -4,6 +4,7 @@ #include <asm/io.h> #include <memalign.h> #include <nand.h> +#include <linux/bitops.h> #include <linux/errno.h> #include <linux/io.h> #include <linux/ioport.h> diff --git a/drivers/mtd/nand/raw/brcmnand/bcm6838_nand.c b/drivers/mtd/nand/raw/brcmnand/bcm6838_nand.c index 3a136155dd92984bd2669c5bb9c9f6571c97af9c..07884550906009d7466568854e46b56bf6bbceeb 100644 --- a/drivers/mtd/nand/raw/brcmnand/bcm6838_nand.c +++ b/drivers/mtd/nand/raw/brcmnand/bcm6838_nand.c @@ -4,6 +4,7 @@ #include <asm/io.h> #include <memalign.h> #include <nand.h> +#include <linux/bitops.h> #include <linux/err.h> #include <linux/errno.h> #include <linux/io.h> diff --git a/drivers/mtd/nand/raw/brcmnand/bcm6858_nand.c b/drivers/mtd/nand/raw/brcmnand/bcm6858_nand.c index 6aca011db252fec9acf85096920c200ad1a0b181..818eae8a7c6cb21464cd0a0029a6087409aba679 100644 --- a/drivers/mtd/nand/raw/brcmnand/bcm6858_nand.c +++ b/drivers/mtd/nand/raw/brcmnand/bcm6858_nand.c @@ -4,6 +4,7 @@ #include <asm/io.h> #include <memalign.h> #include <nand.h> +#include <linux/bitops.h> #include <linux/err.h> #include <linux/errno.h> #include <linux/io.h> diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand.c b/drivers/mtd/nand/raw/brcmnand/brcmnand.c index 5d77d53a09d5358e45e88a7f44e5f126cbdc5c40..48c0ca69de55b8771822e1c313d22ffd7d1c3cd4 100644 --- a/drivers/mtd/nand/raw/brcmnand/brcmnand.c +++ b/drivers/mtd/nand/raw/brcmnand/brcmnand.c @@ -19,6 +19,7 @@ #include <clk.h> #include <dm/device_compat.h> #include <dm/devres.h> +#include <linux/bitops.h> #include <linux/bug.h> #include <linux/err.h> #include <linux/ioport.h> diff --git a/drivers/mtd/nand/raw/denali.c b/drivers/mtd/nand/raw/denali.c index a58d7ce4ab1388b04c538ab7dbb1c8c6f45bb66b..5bae7f1197e56cd0c2f150daa74a3fcc49a4cba6 100644 --- a/drivers/mtd/nand/raw/denali.c +++ b/drivers/mtd/nand/raw/denali.c @@ -14,6 +14,7 @@ #include <dm/device_compat.h> #include <dm/devres.h> #include <linux/bitfield.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/dma-direction.h> #include <linux/dma-mapping.h> diff --git a/drivers/mtd/nand/raw/mxs_nand_spl.c b/drivers/mtd/nand/raw/mxs_nand_spl.c index ffe9860c680a47f7a0a6fdea8122a75efb8775c4..46dc29df3690cb43ef3677ce5df0228a648da9bc 100644 --- a/drivers/mtd/nand/raw/mxs_nand_spl.c +++ b/drivers/mtd/nand/raw/mxs_nand_spl.c @@ -10,6 +10,7 @@ #include <malloc.h> #include <mxs_nand.h> #include <asm/cache.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/err.h> diff --git a/drivers/mtd/nand/raw/nand_base.c b/drivers/mtd/nand/raw/nand_base.c index 26650389f4394da4b2762c4e52b2cc4c4c370a47..698968bc11636e2dafadada2078839a59af8e129 100644 --- a/drivers/mtd/nand/raw/nand_base.c +++ b/drivers/mtd/nand/raw/nand_base.c @@ -36,6 +36,7 @@ #include <malloc.h> #include <watchdog.h> #include <dm/devres.h> +#include <linux/bitops.h> #include <linux/bug.h> #include <linux/delay.h> #include <linux/err.h> diff --git a/drivers/mtd/nand/raw/pxa3xx_nand.c b/drivers/mtd/nand/raw/pxa3xx_nand.c index 244b0fecb7a40611010ace3f439f61ce41c06df6..a30e82166b96e01fe8d6cfeb9539f7db7c105bc0 100644 --- a/drivers/mtd/nand/raw/pxa3xx_nand.c +++ b/drivers/mtd/nand/raw/pxa3xx_nand.c @@ -12,6 +12,7 @@ #include <nand.h> #include <dm/device_compat.h> #include <dm/devres.h> +#include <linux/bitops.h> #include <linux/bug.h> #include <linux/delay.h> #include <linux/err.h> diff --git a/drivers/mtd/nand/raw/stm32_fmc2_nand.c b/drivers/mtd/nand/raw/stm32_fmc2_nand.c index 97188b200cbb58a9ee1bbaf2cf1a98dfc2a15b0e..3306bd8ac94a460e24e395cdc21d45cae5c08e8c 100644 --- a/drivers/mtd/nand/raw/stm32_fmc2_nand.c +++ b/drivers/mtd/nand/raw/stm32_fmc2_nand.c @@ -10,6 +10,7 @@ #include <log.h> #include <nand.h> #include <reset.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/err.h> #include <linux/iopoll.h> diff --git a/drivers/mtd/nand/raw/sunxi_nand.c b/drivers/mtd/nand/raw/sunxi_nand.c index 5331e73c2d1bf0f1e25436471e18a8e649969ef8..004b6f17a510ea97594cc5f97b2b42021487ec1c 100644 --- a/drivers/mtd/nand/raw/sunxi_nand.c +++ b/drivers/mtd/nand/raw/sunxi_nand.c @@ -31,6 +31,7 @@ #include <nand.h> #include <dm/device_compat.h> #include <dm/devres.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/err.h> diff --git a/drivers/mtd/nand/raw/sunxi_nand_spl.c b/drivers/mtd/nand/raw/sunxi_nand_spl.c index 8b2f7ea49156f08a4e34ff258b8f05ac1f9919d8..85d8013b1a6b6279747a5c4639016d31fec02a82 100644 --- a/drivers/mtd/nand/raw/sunxi_nand_spl.c +++ b/drivers/mtd/nand/raw/sunxi_nand_spl.c @@ -9,6 +9,7 @@ #include <common.h> #include <config.h> #include <nand.h> +#include <linux/bitops.h> #include <linux/ctype.h> #include <linux/delay.h> diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c index f76b1239a4af10547b5ec92018ec03c6c938ce52..93371fdde071dd6bfe33536ec443fb63c32f1cf8 100644 --- a/drivers/mtd/nand/spi/core.c +++ b/drivers/mtd/nand/spi/core.c @@ -26,6 +26,7 @@ #include <spi-mem.h> #include <dm/device_compat.h> #include <dm/devres.h> +#include <linux/bitops.h> #include <linux/bug.h> #include <linux/mtd/spinand.h> #endif diff --git a/drivers/mtd/nand/spi/micron.c b/drivers/mtd/nand/spi/micron.c index 687306e33e685ff75c3272e70b9323b44bd43947..04de51cb46673054e4e9fd656c1485ecb6f26025 100644 --- a/drivers/mtd/nand/spi/micron.c +++ b/drivers/mtd/nand/spi/micron.c @@ -11,6 +11,7 @@ #include <linux/device.h> #include <linux/kernel.h> #endif +#include <linux/bitops.h> #include <linux/mtd/spinand.h> #define SPINAND_MFR_MICRON 0x2c diff --git a/drivers/mtd/nand/spi/winbond.c b/drivers/mtd/nand/spi/winbond.c index 6ede98c85d217b2b9d61218b0c073c9344dac8d0..c119486efb7ae326bc9f1169169b6f34279ececd 100644 --- a/drivers/mtd/nand/spi/winbond.c +++ b/drivers/mtd/nand/spi/winbond.c @@ -12,6 +12,7 @@ #include <linux/device.h> #include <linux/kernel.h> #endif +#include <linux/bitops.h> #include <linux/mtd/spinand.h> #define SPINAND_MFR_WINBOND 0xEF diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c index 0580b509f898e13fc629d223e5330a4643222c67..36daef01aec82bb4cc47eba3b3fd8e991e25f955 100644 --- a/drivers/mtd/onenand/onenand_base.c +++ b/drivers/mtd/onenand/onenand_base.c @@ -23,6 +23,7 @@ #include <log.h> #include <watchdog.h> #include <dm/devres.h> +#include <linux/bitops.h> #include <linux/compat.h> #include <linux/mtd/mtd.h> #include "linux/mtd/flashchip.h" diff --git a/drivers/mtd/onenand/onenand_spl.c b/drivers/mtd/onenand/onenand_spl.c index c4983d15d5117ec5772d2b0221674569629cbdda..ab6f1a8be3ee0485cd13d1beb5add3cbf96ebda6 100644 --- a/drivers/mtd/onenand/onenand_spl.c +++ b/drivers/mtd/onenand/onenand_spl.c @@ -9,6 +9,7 @@ #include <common.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/mtd/onenand_regs.h> #include <onenand_uboot.h> diff --git a/drivers/mtd/pic32_flash.c b/drivers/mtd/pic32_flash.c index 1766ba480231b713906f7f61a312e85a803a9aac..a58a2c4b6c319aff10a4e936e93761718fcd0e57 100644 --- a/drivers/mtd/pic32_flash.c +++ b/drivers/mtd/pic32_flash.c @@ -12,6 +12,7 @@ #include <flash.h> #include <init.h> #include <irq_func.h> +#include <linux/bitops.h> #include <mach/pic32.h> #include <wait_bit.h> diff --git a/drivers/mtd/renesas_rpc_hf.c b/drivers/mtd/renesas_rpc_hf.c index fc2aa22d7f3847e6614576a6244b418733f0a157..65320c7ed98064f47b3f82f1c9dc054250e8d9c4 100644 --- a/drivers/mtd/renesas_rpc_hf.c +++ b/drivers/mtd/renesas_rpc_hf.c @@ -19,6 +19,7 @@ #include <flash.h> #include <mtd.h> #include <wait_bit.h> +#include <linux/bitops.h> #include <mtd/cfi_flash.h> #define RPC_CMNCR 0x0000 /* R/W */ diff --git a/drivers/mtd/spi/sf_internal.h b/drivers/mtd/spi/sf_internal.h index 940b2e4c9e0043816ed95975c780cf3034148e90..ce0cf4c428b1ea61e9323d16e6d871a89cd72b54 100644 --- a/drivers/mtd/spi/sf_internal.h +++ b/drivers/mtd/spi/sf_internal.h @@ -9,6 +9,7 @@ #ifndef _SF_INTERNAL_H_ #define _SF_INTERNAL_H_ +#include <linux/bitops.h> #include <linux/types.h> #include <linux/compiler.h> diff --git a/drivers/mtd/spi/spi-nor-core.c b/drivers/mtd/spi/spi-nor-core.c index 76511f5d140c6fee30ddeaf850320c2d4383c343..56b44ebbe8d0649ec8dc952b0c58c995fb4015d3 100644 --- a/drivers/mtd/spi/spi-nor-core.c +++ b/drivers/mtd/spi/spi-nor-core.c @@ -13,6 +13,7 @@ #include <log.h> #include <dm/device_compat.h> #include <dm/devres.h> +#include <linux/bitops.h> #include <linux/err.h> #include <linux/errno.h> #include <linux/log2.h> diff --git a/drivers/mtd/ubispl/ubispl.c b/drivers/mtd/ubispl/ubispl.c index ee2df11522b74f5dba5fb4d0d245ed9dbeef294f..03b31f002b95f4a642c4fec7601330a61344837b 100644 --- a/drivers/mtd/ubispl/ubispl.c +++ b/drivers/mtd/ubispl/ubispl.c @@ -13,6 +13,7 @@ #include <u-boot/crc.h> #include <ubispl.h> +#include <linux/bitops.h> #include <linux/crc32.h> #include "ubispl.h" diff --git a/drivers/net/ag7xxx.c b/drivers/net/ag7xxx.c index 0fe140cf6e608c37e129ff462daf97901a4df38b..3b5d11f956d184fd6ce061b5e37e5d2574bfa412 100644 --- a/drivers/net/ag7xxx.c +++ b/drivers/net/ag7xxx.c @@ -16,6 +16,7 @@ #include <malloc.h> #include <net.h> #include <asm/cache.h> +#include <linux/bitops.h> #include <linux/compiler.h> #include <linux/delay.h> #include <linux/err.h> diff --git a/drivers/net/altera_tse.h b/drivers/net/altera_tse.h index 2b1af8142978d6526989838d5dd50e85d5f93150..79509b80847bb8277af0b41af02af800195334fc 100644 --- a/drivers/net/altera_tse.h +++ b/drivers/net/altera_tse.h @@ -11,6 +11,7 @@ #ifndef _ALTERA_TSE_H_ #define _ALTERA_TSE_H_ +#include <linux/bitops.h> #define __packed_1_ __packed __aligned(1) /* dma type */ diff --git a/drivers/net/bcm-sf2-eth-gmac.c b/drivers/net/bcm-sf2-eth-gmac.c index f57861e87041f5257d31f032d1a11d5ba3a995fe..3caf0f33109bb1e32af1426d3943e30dd37fffbd 100644 --- a/drivers/net/bcm-sf2-eth-gmac.c +++ b/drivers/net/bcm-sf2-eth-gmac.c @@ -19,6 +19,7 @@ #include <asm/io.h> #include <phy.h> #include <linux/delay.h> +#include <linux/bitops.h> #include "bcm-sf2-eth.h" #include "bcm-sf2-eth-gmac.h" diff --git a/drivers/net/bcmgenet.c b/drivers/net/bcmgenet.c index d09f17d9947cfc4886ddf1d94fc96bf29040f140..11b6148ab632283e8fb02499fdddde38873135e1 100644 --- a/drivers/net/bcmgenet.c +++ b/drivers/net/bcmgenet.c @@ -23,6 +23,7 @@ #include <cpu_func.h> #include <dm.h> #include <fdt_support.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/err.h> #include <malloc.h> diff --git a/drivers/net/dc2114x.c b/drivers/net/dc2114x.c index 611a8c4b9e4b5525c7a1f80e063a35ca6c33b35b..c55358ef8396ee568305e2b7bc14d05303a81a90 100644 --- a/drivers/net/dc2114x.c +++ b/drivers/net/dc2114x.c @@ -6,6 +6,7 @@ #include <net.h> #include <netdev.h> #include <pci.h> +#include <linux/bitops.h> #include <linux/delay.h> #define SROM_DLEVEL 0 diff --git a/drivers/net/dwc_eth_qos.c b/drivers/net/dwc_eth_qos.c index 789ac2e818a0a5ebcc00b989bb87caf15f0aa326..3f4437069babb5669936e8d4ec75203ccdb1ede3 100644 --- a/drivers/net/dwc_eth_qos.c +++ b/drivers/net/dwc_eth_qos.c @@ -48,6 +48,7 @@ #include <asm/arch/clock.h> #include <asm/mach-imx/sys_proto.h> #endif +#include <linux/bitops.h> #include <linux/delay.h> /* Core registers */ diff --git a/drivers/net/fsl_enetc.h b/drivers/net/fsl_enetc.h index 48c3005cb3aa5123aff7af3f61036427acc6a173..37e7e858435b8cc77d513770ab63a2cf595a8396 100644 --- a/drivers/net/fsl_enetc.h +++ b/drivers/net/fsl_enetc.h @@ -7,6 +7,7 @@ #ifndef _ENETC_H #define _ENETC_H +#include <linux/bitops.h> #define enetc_dbg(dev, fmt, args...) debug("%s:" fmt, dev->name, ##args) /* PCI function IDs */ diff --git a/drivers/net/ftgmac100.c b/drivers/net/ftgmac100.c index 3322dcf2aabf4f51b4756d785c11d6b575b8cf19..e4d08f2ba0131155beef9837e40f93acd28ce047 100644 --- a/drivers/net/ftgmac100.c +++ b/drivers/net/ftgmac100.c @@ -22,6 +22,7 @@ #include <wait_bit.h> #include <asm/cache.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/io.h> #include <linux/iopoll.h> diff --git a/drivers/net/ftgmac100.h b/drivers/net/ftgmac100.h index 9a789e4d5bee34830de8c0ee765e099c47f4182f..f7874ae68b6eea431bd3a1221edcf608b99eb9e6 100644 --- a/drivers/net/ftgmac100.h +++ b/drivers/net/ftgmac100.h @@ -13,6 +13,7 @@ #define __FTGMAC100_H /* The registers offset table of ftgmac100 */ +#include <linux/bitops.h> struct ftgmac100 { unsigned int isr; /* 0x00 */ unsigned int ier; /* 0x04 */ diff --git a/drivers/net/gmac_rockchip.c b/drivers/net/gmac_rockchip.c index 52a637bd548e706d5c77c6d3854a7eb58f2d9497..8d95ee15ffdd7ad3dac7cb67252224e2faacf5e2 100644 --- a/drivers/net/gmac_rockchip.c +++ b/drivers/net/gmac_rockchip.c @@ -26,6 +26,7 @@ #include <asm/arch-rockchip/grf_rv1108.h> #include <dm/pinctrl.h> #include <dt-bindings/clock/rk3288-cru.h> +#include <linux/bitops.h> #include "designware.h" DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/net/higmacv300.c b/drivers/net/higmacv300.c index 1ec98644c92ca50702072214266a57516f94d8d8..2aae7f4863c02c8f9019880534e154ba818663b6 100644 --- a/drivers/net/higmacv300.c +++ b/drivers/net/higmacv300.c @@ -10,6 +10,7 @@ #include <asm/io.h> #include <common.h> #include <console.h> +#include <linux/bitops.h> #include <linux/bug.h> #include <linux/delay.h> #include <linux/mii.h> diff --git a/drivers/net/mscc_eswitch/jr2_switch.c b/drivers/net/mscc_eswitch/jr2_switch.c index 76823c618e8db64afc8fcb2dad83d5c7dfe0dc5f..1c9a401de81e62a1fcff825ef700e9565864aa22 100644 --- a/drivers/net/mscc_eswitch/jr2_switch.c +++ b/drivers/net/mscc_eswitch/jr2_switch.c @@ -10,6 +10,7 @@ #include <dm/of_access.h> #include <dm/of_addr.h> #include <fdt_support.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/io.h> #include <linux/ioport.h> diff --git a/drivers/net/mscc_eswitch/luton_switch.c b/drivers/net/mscc_eswitch/luton_switch.c index 9d24c005c12d2f3496da07d37124caf614252225..1d46d0e5e1e2eae1d6e5fae5b4c6f5b86fc115fc 100644 --- a/drivers/net/mscc_eswitch/luton_switch.c +++ b/drivers/net/mscc_eswitch/luton_switch.c @@ -10,6 +10,7 @@ #include <dm/of_access.h> #include <dm/of_addr.h> #include <fdt_support.h> +#include <linux/bitops.h> #include <linux/io.h> #include <linux/ioport.h> #include <miiphy.h> diff --git a/drivers/net/mscc_eswitch/mscc_mac_table.c b/drivers/net/mscc_eswitch/mscc_mac_table.c index 833e233aa5a4377b771471ef57cd812c7e1cafdb..25b9cad42c976dd6807550c23ad2771374cfc02f 100644 --- a/drivers/net/mscc_eswitch/mscc_mac_table.c +++ b/drivers/net/mscc_eswitch/mscc_mac_table.c @@ -3,6 +3,7 @@ * Copyright (c) 2018 Microsemi Corporation */ +#include <linux/bitops.h> #include <linux/io.h> #include "mscc_mac_table.h" diff --git a/drivers/net/mscc_eswitch/mscc_miim.c b/drivers/net/mscc_eswitch/mscc_miim.c index d8ee8df47b18b9245826b194fd5c14afcbc426ec..6687787b1a6aa988e44b8b5494b1fc8dabe667b8 100644 --- a/drivers/net/mscc_eswitch/mscc_miim.c +++ b/drivers/net/mscc_eswitch/mscc_miim.c @@ -5,6 +5,7 @@ #include <miiphy.h> #include <wait_bit.h> +#include <linux/bitops.h> #include "mscc_miim.h" #define MIIM_STATUS 0x0 diff --git a/drivers/net/mscc_eswitch/mscc_xfer.c b/drivers/net/mscc_eswitch/mscc_xfer.c index 01eb204db8c9f2d981a98e799a3555291a3ee0f2..6f747464571792b49345cdd4aacfba480c21d98a 100644 --- a/drivers/net/mscc_eswitch/mscc_xfer.c +++ b/drivers/net/mscc_eswitch/mscc_xfer.c @@ -4,6 +4,7 @@ */ #include <log.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/io.h> #include "mscc_xfer.h" diff --git a/drivers/net/mscc_eswitch/ocelot_switch.c b/drivers/net/mscc_eswitch/ocelot_switch.c index cae31e2f6e7ce76fddcd1fc552c636eefe175910..2a48dc6a1905b928bef26ba070cb304192d97992 100644 --- a/drivers/net/mscc_eswitch/ocelot_switch.c +++ b/drivers/net/mscc_eswitch/ocelot_switch.c @@ -11,6 +11,7 @@ #include <dm/of_access.h> #include <dm/of_addr.h> #include <fdt_support.h> +#include <linux/bitops.h> #include <linux/io.h> #include <linux/ioport.h> #include <miiphy.h> diff --git a/drivers/net/mscc_eswitch/serval_switch.c b/drivers/net/mscc_eswitch/serval_switch.c index cf8bf9c8b064806d0b03036962a8b2268161daf0..d8ee1a76989a69882c80519504f1e7c4c59a3e20 100644 --- a/drivers/net/mscc_eswitch/serval_switch.c +++ b/drivers/net/mscc_eswitch/serval_switch.c @@ -11,6 +11,7 @@ #include <dm/of_access.h> #include <dm/of_addr.h> #include <fdt_support.h> +#include <linux/bitops.h> #include <linux/io.h> #include <linux/ioport.h> #include <miiphy.h> diff --git a/drivers/net/mscc_eswitch/servalt_switch.c b/drivers/net/mscc_eswitch/servalt_switch.c index bf95a38354d6b8f933f03f33ca5bbbe78bc0aec9..1cf2273142b7c75263a9de63282167543d06ee43 100644 --- a/drivers/net/mscc_eswitch/servalt_switch.c +++ b/drivers/net/mscc_eswitch/servalt_switch.c @@ -10,6 +10,7 @@ #include <dm/of_access.h> #include <dm/of_addr.h> #include <fdt_support.h> +#include <linux/bitops.h> #include <linux/io.h> #include <linux/ioport.h> #include <miiphy.h> diff --git a/drivers/net/mt7628-eth.c b/drivers/net/mt7628-eth.c index a2e022db3552b6f6a514001882d01d1cf55c63c9..64f1c8c828d7e38580bb8bcd23cc989eb0fffdb7 100644 --- a/drivers/net/mt7628-eth.c +++ b/drivers/net/mt7628-eth.c @@ -25,6 +25,7 @@ #include <asm/cache.h> #include <asm/io.h> #include <linux/bitfield.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/err.h> diff --git a/drivers/net/mtk_eth.h b/drivers/net/mtk_eth.h index f2940c9996fd3b772a7a606786cf1d7e20e59d86..be74ac27eaf021fc28009bcea4e39a876e89d2a7 100644 --- a/drivers/net/mtk_eth.h +++ b/drivers/net/mtk_eth.h @@ -10,6 +10,7 @@ #define _MTK_ETH_H_ /* Frame Engine Register Bases */ +#include <linux/bitops.h> #define PDMA_BASE 0x0800 #define GDMA1_BASE 0x0500 #define GDMA2_BASE 0x1500 diff --git a/drivers/net/mvmdio.c b/drivers/net/mvmdio.c index ec6805e536e9f385809ee78c2118e2ba55e3d863..a8e93e80fc08eb438a0028c274022429d0717799 100644 --- a/drivers/net/mvmdio.c +++ b/drivers/net/mvmdio.c @@ -12,6 +12,7 @@ #include <phy.h> #include <asm/io.h> #include <wait_bit.h> +#include <linux/bitops.h> #define MVMDIO_SMI_DATA_SHIFT 0 #define MVMDIO_SMI_PHY_ADDR_SHIFT 16 diff --git a/drivers/net/mvneta.c b/drivers/net/mvneta.c index f9aef17f7eabf674be060f41282037497d3f5511..092f619bd5cc75f8019b1da2bd53e31b7af48f54 100644 --- a/drivers/net/mvneta.c +++ b/drivers/net/mvneta.c @@ -24,6 +24,7 @@ #include <asm/io.h> #include <dm/device_compat.h> #include <dm/devres.h> +#include <linux/bitops.h> #include <linux/bug.h> #include <linux/delay.h> #include <linux/errno.h> diff --git a/drivers/net/mvpp2.c b/drivers/net/mvpp2.c index ebe67e45ab3f38fdd727bf2e5d1b4099f9728970..19b9375ee27dd51dbdbc51401d11b59e563304e6 100644 --- a/drivers/net/mvpp2.c +++ b/drivers/net/mvpp2.c @@ -26,6 +26,7 @@ #include <config.h> #include <malloc.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/bug.h> #include <linux/delay.h> #include <linux/err.h> diff --git a/drivers/net/pfe_eth/pfe_firmware.c b/drivers/net/pfe_eth/pfe_firmware.c index 0ad8c63d71018a03421a2873e6420bb9ca80f498..0493cfe8724450bd007dc5f25cd246a3fbea827b 100644 --- a/drivers/net/pfe_eth/pfe_firmware.c +++ b/drivers/net/pfe_eth/pfe_firmware.c @@ -13,6 +13,7 @@ #include <image.h> #include <log.h> #include <malloc.h> +#include <linux/bitops.h> #include <net/pfe_eth/pfe_eth.h> #include <net/pfe_eth/pfe_firmware.h> #ifdef CONFIG_CHAIN_OF_TRUST diff --git a/drivers/net/pfe_eth/pfe_hw.c b/drivers/net/pfe_eth/pfe_hw.c index caba8717be14b772e49f97bdae0d656356ced777..722f5c238fa1dc45f7d0c0cdb2b8ef073b198ad7 100644 --- a/drivers/net/pfe_eth/pfe_hw.c +++ b/drivers/net/pfe_eth/pfe_hw.c @@ -4,6 +4,7 @@ * Copyright 2017 NXP */ #include <log.h> +#include <linux/bitops.h> #include <net/pfe_eth/pfe_eth.h> #include <net/pfe_eth/pfe/pfe_hw.h> diff --git a/drivers/net/phy/aquantia.c b/drivers/net/phy/aquantia.c index 8b1cad854073b7c44a96b1126c9640e47b540d7e..68cd3d03fd061e660a5d9433171bd17590d248ac 100644 --- a/drivers/net/phy/aquantia.c +++ b/drivers/net/phy/aquantia.c @@ -11,6 +11,7 @@ #include <log.h> #include <net.h> #include <phy.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <u-boot/crc.h> #include <malloc.h> diff --git a/drivers/net/phy/atheros.c b/drivers/net/phy/atheros.c index 47ff9f8d44c079cefe98557f9d459b96adc2e452..13f7275d17064bd03043d34845afc3ac9e5a66b0 100644 --- a/drivers/net/phy/atheros.c +++ b/drivers/net/phy/atheros.c @@ -10,6 +10,7 @@ #include <phy.h> #include <dm/device_compat.h> #include <linux/bitfield.h> +#include <linux/bitops.h> #include <dt-bindings/net/qca-ar803x.h> #define AR803x_PHY_DEBUG_ADDR_REG 0x1d diff --git a/drivers/net/phy/b53.c b/drivers/net/phy/b53.c index 25dbf215b410bde7f14322ba00839c47c5c97478..21da53c7e5b3c3c6e918c3f76ceb0e56127fff0b 100644 --- a/drivers/net/phy/b53.c +++ b/drivers/net/phy/b53.c @@ -24,6 +24,7 @@ #include <common.h> #include <command.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <errno.h> diff --git a/drivers/net/phy/dp83867.c b/drivers/net/phy/dp83867.c index 6fac0d59563c56e47e9347f1bbba6e6d45d430ca..d435cc1e6c549d76502cb71abd9958bed6f4d386 100644 --- a/drivers/net/phy/dp83867.c +++ b/drivers/net/phy/dp83867.c @@ -7,6 +7,7 @@ #include <log.h> #include <phy.h> #include <dm/devres.h> +#include <linux/bitops.h> #include <linux/compat.h> #include <malloc.h> diff --git a/drivers/net/phy/marvell.c b/drivers/net/phy/marvell.c index be5e3dcaab20fb831e0740e164e739daab5c7262..a62c695c5c846a410dd1ea5bae95b89e02404e12 100644 --- a/drivers/net/phy/marvell.c +++ b/drivers/net/phy/marvell.c @@ -8,6 +8,7 @@ #include <common.h> #include <errno.h> #include <phy.h> +#include <linux/bitops.h> #include <linux/delay.h> #define PHY_AUTONEGOTIATE_TIMEOUT 5000 diff --git a/drivers/net/phy/micrel_ksz8xxx.c b/drivers/net/phy/micrel_ksz8xxx.c index e27fc45a281dbe36eecc6d98212da11aa4034f05..98a0c83e68b13b63ba217b222c60852bcb99584b 100644 --- a/drivers/net/phy/micrel_ksz8xxx.c +++ b/drivers/net/phy/micrel_ksz8xxx.c @@ -12,6 +12,7 @@ #include <fdtdec.h> #include <micrel.h> #include <phy.h> +#include <linux/bitops.h> static struct phy_driver KSZ804_driver = { .name = "Micrel KSZ804", diff --git a/drivers/net/phy/mscc.c b/drivers/net/phy/mscc.c index 9fd5ca7c9fce4292ea05b4206c08b1516847a8df..709979f48c99b246aa752841b24359863790d85a 100644 --- a/drivers/net/phy/mscc.c +++ b/drivers/net/phy/mscc.c @@ -13,6 +13,7 @@ #include <miiphy.h> #include <bitfield.h> #include <time.h> +#include <linux/bitops.h> #include <linux/delay.h> /* Microsemi PHY ID's */ diff --git a/drivers/net/phy/mv88e61xx.c b/drivers/net/phy/mv88e61xx.c index 3f8aa7cd99c80087b8f4c44cfc33208e76031bd9..7eff37b24499d274e3116df3bbef995d23bc7a06 100644 --- a/drivers/net/phy/mv88e61xx.c +++ b/drivers/net/phy/mv88e61xx.c @@ -31,6 +31,7 @@ #include <common.h> #include <log.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <bitfield.h> diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index 6b6497c93a26a58fe3c0c60a18ae43fb3a7d6e2d..cce09c47f9dc18e30a701b1c55c9f327226ec9d4 100644 --- a/drivers/net/phy/phy.c +++ b/drivers/net/phy/phy.c @@ -17,6 +17,7 @@ #include <miiphy.h> #include <phy.h> #include <errno.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/err.h> #include <linux/compiler.h> diff --git a/drivers/net/pic32_eth.h b/drivers/net/pic32_eth.h index 823c565a9b8d870347c9ebc0e52a50e216882b0a..7b873bc7728bea7d6bfcc211f69811a3d0fa65be 100644 --- a/drivers/net/pic32_eth.h +++ b/drivers/net/pic32_eth.h @@ -7,6 +7,7 @@ #ifndef __MICROCHIP_PIC32_ETH_H_ #define __MICROCHIP_PIC32_ETH_H_ +#include <linux/bitops.h> #include <mach/pic32.h> /* Ethernet */ diff --git a/drivers/net/ravb.c b/drivers/net/ravb.c index 3dab91b74b455f65ec268bb9aa68daa7712d473a..393ee9bb816a94283b5d3833bacbf59af5b05b31 100644 --- a/drivers/net/ravb.c +++ b/drivers/net/ravb.c @@ -17,6 +17,7 @@ #include <miiphy.h> #include <malloc.h> #include <asm/cache.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/mii.h> #include <wait_bit.h> diff --git a/drivers/net/rtl8139.c b/drivers/net/rtl8139.c index fd2454b56fa9c32451cc0049ec02a8436559f36f..0daeefa489b1ae154bf82f652001464415cea720 100644 --- a/drivers/net/rtl8139.c +++ b/drivers/net/rtl8139.c @@ -76,6 +76,7 @@ #include <netdev.h> #include <asm/io.h> #include <pci.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/types.h> diff --git a/drivers/net/sni_ave.c b/drivers/net/sni_ave.c index 92b4a656319f9e4b4cfbac5125226bb02144265d..078463568950001ed98cd8a56cae556509b1232f 100644 --- a/drivers/net/sni_ave.c +++ b/drivers/net/sni_ave.c @@ -17,6 +17,7 @@ #include <syscon.h> #include <asm/cache.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/err.h> #include <linux/io.h> diff --git a/drivers/net/sun8i_emac.c b/drivers/net/sun8i_emac.c index 45ac11849509f43e3630a82fc37cc51ea616c7fd..99e24c634828b6966c6ae06e19d5c338865788a7 100644 --- a/drivers/net/sun8i_emac.c +++ b/drivers/net/sun8i_emac.c @@ -21,6 +21,7 @@ #include <dm.h> #include <fdt_support.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/err.h> #include <malloc.h> diff --git a/drivers/net/ti/am65-cpsw-nuss.c b/drivers/net/ti/am65-cpsw-nuss.c index 220b461124dc2312a65bbde3b0fff1537b52dc26..85f3e49c055cc7434c49daf082fa69fadff7b0a2 100644 --- a/drivers/net/ti/am65-cpsw-nuss.c +++ b/drivers/net/ti/am65-cpsw-nuss.c @@ -21,6 +21,7 @@ #include <net.h> #include <phy.h> #include <power-domain.h> +#include <linux/bitops.h> #include <linux/soc/ti/ti-udma.h> #include "cpsw_mdio.h" diff --git a/drivers/net/ti/cpsw.c b/drivers/net/ti/cpsw.c index a927ea03e048bf870d5aee486b51790625acede6..95761fffc0f06f161993ed245d55b4233b9214a9 100644 --- a/drivers/net/ti/cpsw.c +++ b/drivers/net/ti/cpsw.c @@ -16,6 +16,7 @@ #include <netdev.h> #include <cpsw.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/errno.h> #include <asm/gpio.h> #include <asm/io.h> diff --git a/drivers/net/ti/cpsw_mdio.c b/drivers/net/ti/cpsw_mdio.c index e77a2ff0a742f4d6641be367e24ef3f3c73aa79f..f4cb86d10a7463f5cdd8198c4493396dcdcfe728 100644 --- a/drivers/net/ti/cpsw_mdio.c +++ b/drivers/net/ti/cpsw_mdio.c @@ -11,6 +11,7 @@ #include <asm/io.h> #include <miiphy.h> #include <wait_bit.h> +#include <linux/bitops.h> #include <linux/delay.h> struct cpsw_mdio_regs { diff --git a/drivers/net/tsec.c b/drivers/net/tsec.c index 15701ee1474fdebddfdf11d555a783783b04df84..c2e755f2b1e343de5817e207e9dfabe9979df8ac 100644 --- a/drivers/net/tsec.c +++ b/drivers/net/tsec.c @@ -15,6 +15,7 @@ #include <command.h> #include <tsec.h> #include <fsl_mdio.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/errno.h> #include <asm/processor.h> diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index 28cef3b1eafa5c3bb9542c1ceefd2f762b3ed52c..412daf7d58b2f331d85bf3f0002499a4c0a689d6 100644 --- a/drivers/net/zynq_gem.c +++ b/drivers/net/zynq_gem.c @@ -28,6 +28,7 @@ #include <asm/arch/hardware.h> #include <asm/arch/sys_proto.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/err.h> #include <linux/errno.h> diff --git a/drivers/pci/pci-aardvark.c b/drivers/pci/pci-aardvark.c index 158679139bbcee8a9cf6430435c343b869f6427d..711b930d0f9fb4d5018e91b5589f25148ff27602 100644 --- a/drivers/pci/pci-aardvark.c +++ b/drivers/pci/pci-aardvark.c @@ -30,6 +30,7 @@ #include <asm/io.h> #include <asm-generic/gpio.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/ioport.h> diff --git a/drivers/pci/pci-rcar-gen2.c b/drivers/pci/pci-rcar-gen2.c index 014d8704788b3eaa3dc9778e3e89eb16ad5d65f6..e76abc1f84c1a98942b644e4dec9221ed78b0d2e 100644 --- a/drivers/pci/pci-rcar-gen2.c +++ b/drivers/pci/pci-rcar-gen2.c @@ -11,6 +11,7 @@ #include <dm.h> #include <errno.h> #include <pci.h> +#include <linux/bitops.h> /* AHB-PCI Bridge PCI communication registers */ #define RCAR_AHBPCI_PCICOM_OFFSET 0x800 diff --git a/drivers/pci/pci-rcar-gen3.c b/drivers/pci/pci-rcar-gen3.c index 30eff67dca222d6c98e56da9e21dfae68ccfbcde..df7b37a5924b8e07207c54550f85d50ccb990ca2 100644 --- a/drivers/pci/pci-rcar-gen3.c +++ b/drivers/pci/pci-rcar-gen3.c @@ -22,6 +22,7 @@ #include <errno.h> #include <pci.h> #include <wait_bit.h> +#include <linux/bitops.h> #define PCIECAR 0x000010 #define PCIECCTLR 0x000018 diff --git a/drivers/pci/pci_mpc85xx.c b/drivers/pci/pci_mpc85xx.c index 8dff68dbd0e9df1823dd1e5a116c1126cd514af6..6576f53f52a5def81b4895ebc73453fbcc879349 100644 --- a/drivers/pci/pci_mpc85xx.c +++ b/drivers/pci/pci_mpc85xx.c @@ -5,6 +5,7 @@ * */ #include <common.h> +#include <asm/bitops.h> #include <asm/cpm_85xx.h> #include <pci.h> #include <dm.h> diff --git a/drivers/pci/pci_mvebu.c b/drivers/pci/pci_mvebu.c index 8bc04c978d0446ac9df1404bf5ed8b65679b660b..c9afe7515014dfdae4a5bbff3a93672f1d1d3b7d 100644 --- a/drivers/pci/pci_mvebu.c +++ b/drivers/pci/pci_mvebu.c @@ -20,6 +20,7 @@ #include <asm/io.h> #include <asm/arch/cpu.h> #include <asm/arch/soc.h> +#include <linux/bitops.h> #include <linux/errno.h> #include <linux/ioport.h> #include <linux/mbus.h> diff --git a/drivers/pci/pci_sh7751.c b/drivers/pci/pci_sh7751.c index 1f23bbc126e98931d172c0fcd93da8901a5fe045..e110550c71c8a43ca20a307a113b7d061e52bf16 100644 --- a/drivers/pci/pci_sh7751.c +++ b/drivers/pci/pci_sh7751.c @@ -11,6 +11,7 @@ #include <asm/processor.h> #include <asm/io.h> #include <asm/pci.h> +#include <linux/bitops.h> #include <linux/delay.h> /* Register addresses and such */ diff --git a/drivers/pci/pcie_dw_ti.c b/drivers/pci/pcie_dw_ti.c index e49e39e39915ec370b48155ba71907e62a89ddf0..742dd93633e6ebebdc2d223cd1967ccceba8924c 100644 --- a/drivers/pci/pcie_dw_ti.c +++ b/drivers/pci/pcie_dw_ti.c @@ -14,6 +14,7 @@ #include <asm/io.h> #include <asm-generic/gpio.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/err.h> diff --git a/drivers/pci/pcie_intel_fpga.c b/drivers/pci/pcie_intel_fpga.c index 8249c6212ed5c53a1dc86253b6b143f12d463214..aa1903e547ce83d54e225ba74f50113f8a810006 100644 --- a/drivers/pci/pcie_intel_fpga.c +++ b/drivers/pci/pcie_intel_fpga.c @@ -11,6 +11,7 @@ #include <pci.h> #include <asm/io.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/delay.h> #define RP_TX_REG0 0x2000 diff --git a/drivers/pci/pcie_layerscape_gen4.h b/drivers/pci/pcie_layerscape_gen4.h index 27c2d09332c31d7b5ad78af66d6b79d5c0bda038..d298a2b81091b94c4534d1e8ac0940a8893838b7 100644 --- a/drivers/pci/pcie_layerscape_gen4.h +++ b/drivers/pci/pcie_layerscape_gen4.h @@ -10,6 +10,7 @@ #define _PCIE_LAYERSCAPE_GEN4_H_ #include <pci.h> #include <dm.h> +#include <linux/bitops.h> #ifndef CONFIG_SYS_PCI_MEMORY_SIZE #define CONFIG_SYS_PCI_MEMORY_SIZE (4 * 1024 * 1024 * 1024ULL) diff --git a/drivers/pci/pcie_mediatek.c b/drivers/pci/pcie_mediatek.c index c7cd2f5b6926fac30ba0e8b762f3b3d0411adfa0..6e6375cec095a686875ef47d08f55846577a4567 100644 --- a/drivers/pci/pcie_mediatek.c +++ b/drivers/pci/pcie_mediatek.c @@ -17,6 +17,7 @@ #include <reset.h> #include <asm/io.h> #include <dm/devres.h> +#include <linux/bitops.h> #include <linux/iopoll.h> #include <linux/list.h> diff --git a/drivers/pci/pcie_xilinx.c b/drivers/pci/pcie_xilinx.c index 05787ae1448671de899a8ec1d6186da694ac222b..713ad49d0458430c26e83441b03a55616e90930a 100644 --- a/drivers/pci/pcie_xilinx.c +++ b/drivers/pci/pcie_xilinx.c @@ -8,6 +8,7 @@ #include <common.h> #include <dm.h> #include <pci.h> +#include <linux/bitops.h> #include <asm/io.h> diff --git a/drivers/pci_endpoint/pcie-cadence.h b/drivers/pci_endpoint/pcie-cadence.h index 91630d35c3f085c19e8c16c3617ba684c863c0b5..8a659c36aa2493a289601e9f97ac5dcb1655bc8f 100644 --- a/drivers/pci_endpoint/pcie-cadence.h +++ b/drivers/pci_endpoint/pcie-cadence.h @@ -14,6 +14,7 @@ #include <common.h> #include <pci_ep.h> #include <asm/io.h> +#include <linux/bitops.h> /* * Local Management Registers diff --git a/drivers/phy/allwinner/phy-sun4i-usb.c b/drivers/phy/allwinner/phy-sun4i-usb.c index af974cdddb8d1d8f8e2c3707e066e4a5d58d87bd..b4bae22c2cf4f6b8f52f71f55cd970ca3cba9832 100644 --- a/drivers/phy/allwinner/phy-sun4i-usb.c +++ b/drivers/phy/allwinner/phy-sun4i-usb.c @@ -23,6 +23,7 @@ #include <asm/arch/clock.h> #include <asm/arch/cpu.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/err.h> diff --git a/drivers/phy/bcm6318-usbh-phy.c b/drivers/phy/bcm6318-usbh-phy.c index fe0e43d2703bb5cc640ba0c9ac4fcc0f54bc5533..d29344ddb484ec55f472df7c73118c0cb7d0d23a 100644 --- a/drivers/phy/bcm6318-usbh-phy.c +++ b/drivers/phy/bcm6318-usbh-phy.c @@ -17,6 +17,7 @@ #include <reset.h> #include <asm/io.h> #include <dm/device.h> +#include <linux/bitops.h> #include <linux/delay.h> /* USBH Setup register */ diff --git a/drivers/phy/bcm6348-usbh-phy.c b/drivers/phy/bcm6348-usbh-phy.c index a486152da76f1f70f88ce788b2410d0e69c46237..8d28292726ce905d963b3750a791483c662d908f 100644 --- a/drivers/phy/bcm6348-usbh-phy.c +++ b/drivers/phy/bcm6348-usbh-phy.c @@ -16,6 +16,7 @@ #include <reset.h> #include <asm/io.h> #include <dm/device.h> +#include <linux/bitops.h> #define USBH_SETUP_PORT1_EN BIT(0) diff --git a/drivers/phy/bcm6358-usbh-phy.c b/drivers/phy/bcm6358-usbh-phy.c index 13e0e7b6124f19a3b559684e821bd653312fbb12..501b97f3e213f42e367b317019425833251d545c 100644 --- a/drivers/phy/bcm6358-usbh-phy.c +++ b/drivers/phy/bcm6358-usbh-phy.c @@ -15,6 +15,7 @@ #include <reset.h> #include <asm/io.h> #include <dm/device.h> +#include <linux/bitops.h> /* USBH Swap Control register */ #define USBH_SWAP_REG 0x00 diff --git a/drivers/phy/bcm6368-usbh-phy.c b/drivers/phy/bcm6368-usbh-phy.c index 8b918b09f97004c5a3f0d0dbb7304e89bf9989bc..99fdd33499adf92f060bab4bf272664909b4794d 100644 --- a/drivers/phy/bcm6368-usbh-phy.c +++ b/drivers/phy/bcm6368-usbh-phy.c @@ -17,6 +17,7 @@ #include <reset.h> #include <asm/io.h> #include <dm/device.h> +#include <linux/bitops.h> #include <linux/delay.h> /* USBH PLL Control register */ diff --git a/drivers/phy/keystone-usb-phy.c b/drivers/phy/keystone-usb-phy.c index 7624f10a04740bc91b7d1d2557389f2c38d19fa6..9faf50100339311f5a380dd85f2f6fb3ae81f253 100644 --- a/drivers/phy/keystone-usb-phy.c +++ b/drivers/phy/keystone-usb-phy.c @@ -11,6 +11,7 @@ #include <generic-phy.h> #include <asm/io.h> #include <asm/arch/psc_defs.h> +#include <linux/bitops.h> #include <linux/delay.h> /* USB PHY control register offsets */ diff --git a/drivers/phy/meson-gxbb-usb2.c b/drivers/phy/meson-gxbb-usb2.c index 88c2ec69b22ed167c1173c588ef601cae7f1b2e4..d1beebee43e840c2381d80ee9bda96ed48c17525 100644 --- a/drivers/phy/meson-gxbb-usb2.c +++ b/drivers/phy/meson-gxbb-usb2.c @@ -15,6 +15,7 @@ #include <power/regulator.h> #include <regmap.h> #include <reset.h> +#include <linux/bitops.h> #define REG_CONFIG 0x00 #define REG_CONFIG_CLK_EN BIT(0) diff --git a/drivers/phy/msm8916-usbh-phy.c b/drivers/phy/msm8916-usbh-phy.c index 2c90738fca0f1dac640a1165d4d8a60a675cdf41..4efaddd701cc365905911b881d21969716cbfef3 100644 --- a/drivers/phy/msm8916-usbh-phy.c +++ b/drivers/phy/msm8916-usbh-phy.c @@ -6,6 +6,7 @@ #include <common.h> #include <dm.h> #include <generic-phy.h> +#include <linux/bitops.h> #include <usb/ehci-ci.h> #include <usb/ulpi.h> #include <asm/io.h> diff --git a/drivers/phy/omap-usb2-phy.c b/drivers/phy/omap-usb2-phy.c index 160a386801e902cc230e583cb39d074d9f8ed72f..0793b97dd51aa94adfbe44c270553ece1f119e8c 100644 --- a/drivers/phy/omap-usb2-phy.c +++ b/drivers/phy/omap-usb2-phy.c @@ -13,6 +13,7 @@ #include <generic-phy.h> #include <regmap.h> #include <syscon.h> +#include <linux/bitops.h> #include <linux/err.h> #define OMAP_USB2_CALIBRATE_FALSE_DISCONNECT BIT(0) diff --git a/drivers/phy/phy-mtk-tphy.c b/drivers/phy/phy-mtk-tphy.c index 048e2b19e337406143be6b67cedab88ed94e2283..1e65c24356e35bc8cad600b8b20cb5589300bbd0 100644 --- a/drivers/phy/phy-mtk-tphy.c +++ b/drivers/phy/phy-mtk-tphy.c @@ -14,6 +14,7 @@ #include <asm/io.h> #include <dm/device_compat.h> #include <dm/devres.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <dt-bindings/phy/phy.h> diff --git a/drivers/phy/phy-ti-am654.c b/drivers/phy/phy-ti-am654.c index 5220f01558a27f0860433e2ce28ae62cb441eff3..6907c1afb395c1222a729de72d33eb6f0abd647f 100644 --- a/drivers/phy/phy-ti-am654.c +++ b/drivers/phy/phy-ti-am654.c @@ -20,6 +20,7 @@ #include <power-domain.h> #include <regmap.h> #include <syscon.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/err.h> diff --git a/drivers/phy/ti-pipe3-phy.c b/drivers/phy/ti-pipe3-phy.c index d247a98fc42c43344484550f6e4b5b27e63c3e04..3f49851bcaba7b31627ae8ed2fdbbfa6dccef4b6 100644 --- a/drivers/phy/ti-pipe3-phy.c +++ b/drivers/phy/ti-pipe3-phy.c @@ -12,6 +12,7 @@ #include <asm/arch/sys_proto.h> #include <syscon.h> #include <regmap.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/err.h> diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c index c7351f32bb60d60c1644f6795a881db6666e1051..5fdc150295e459e210747235e4369190ccc10c34 100644 --- a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c +++ b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c @@ -11,6 +11,7 @@ #include <dm/pinctrl.h> #include <asm/io.h> #include <asm-generic/gpio.h> +#include <linux/bitops.h> #include "pinctrl-mtk-common.h" diff --git a/drivers/pinctrl/meson/pinctrl-meson-gx-pmx.c b/drivers/pinctrl/meson/pinctrl-meson-gx-pmx.c index adfc9aedcc9e641a94f5e03a0d93d06a52dc4e4b..159f3406a203e59649c13810d561bb15c7cf5c38 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-gx-pmx.c +++ b/drivers/pinctrl/meson/pinctrl-meson-gx-pmx.c @@ -8,6 +8,7 @@ #include <common.h> #include <dm.h> #include <dm/pinctrl.h> +#include <linux/bitops.h> #include <linux/io.h> #include "pinctrl-meson-gx.h" diff --git a/drivers/pinctrl/meson/pinctrl-meson.c b/drivers/pinctrl/meson/pinctrl-meson.c index 18b8eee8839592a7e074a86c774c1bf0a4609507..d4539b02d881ae47a04be0136a2fc555643e2701 100644 --- a/drivers/pinctrl/meson/pinctrl-meson.c +++ b/drivers/pinctrl/meson/pinctrl-meson.c @@ -12,6 +12,7 @@ #include <dm/lists.h> #include <dm/pinctrl.h> #include <fdt_support.h> +#include <linux/bitops.h> #include <linux/err.h> #include <linux/io.h> #include <linux/libfdt.h> diff --git a/drivers/pinctrl/mscc/mscc-common.c b/drivers/pinctrl/mscc/mscc-common.c index 90c54b45c3e345b7d0f3253a328a1a4525e5d7a5..307ed1db8750ccc613b4fa36248570460136d6d5 100644 --- a/drivers/pinctrl/mscc/mscc-common.c +++ b/drivers/pinctrl/mscc/mscc-common.c @@ -21,6 +21,7 @@ #include <dm/root.h> #include <errno.h> #include <fdtdec.h> +#include <linux/bitops.h> #include <linux/io.h> #include "mscc-common.h" diff --git a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c index b9fb46815b952d0462d7c377562d814aab0e8a18..2dee79af17ebaf1cae4424b34ffd381ecf68093a 100644 --- a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c +++ b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c @@ -32,6 +32,7 @@ #include <asm/gpio.h> #include <asm/system.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/libfdt.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/pinctrl/mvebu/pinctrl-mvebu.c b/drivers/pinctrl/mvebu/pinctrl-mvebu.c index 550de384ed51b5ad0d77f68b02f67091883a53d5..2206e958ec7017a94556d8fa3875d96e87deec34 100644 --- a/drivers/pinctrl/mvebu/pinctrl-mvebu.c +++ b/drivers/pinctrl/mvebu/pinctrl-mvebu.c @@ -15,6 +15,7 @@ #include <asm/system.h> #include <asm/io.h> #include <asm/arch-armada8k/soc-info.h> +#include <linux/bitops.h> #include "pinctrl-mvebu.h" #define AP_EMMC_PHY_CTRL_REG 0x100 diff --git a/drivers/pinctrl/nxp/pinctrl-imx.c b/drivers/pinctrl/nxp/pinctrl-imx.c index 474c38a0497601c0aed35f178fbf951f10fa2321..48c7bde375269a066ebc0145c5e64db99210b685 100644 --- a/drivers/pinctrl/nxp/pinctrl-imx.c +++ b/drivers/pinctrl/nxp/pinctrl-imx.c @@ -8,6 +8,7 @@ #include <mapmem.h> #include <dm/device_compat.h> #include <dm/devres.h> +#include <linux/bitops.h> #include <linux/io.h> #include <linux/err.h> #include <dm.h> diff --git a/drivers/pinctrl/pinctrl-at91-pio4.c b/drivers/pinctrl/pinctrl-at91-pio4.c index 0c43686e01cc5895912ac2a399ea19d8b691bfa8..801d14253c10ae771e6f76d53ca9e9d5c26e0f63 100644 --- a/drivers/pinctrl/pinctrl-at91-pio4.c +++ b/drivers/pinctrl/pinctrl-at91-pio4.c @@ -9,6 +9,7 @@ #include <common.h> #include <dm.h> #include <dm/pinctrl.h> +#include <linux/bitops.h> #include <linux/io.h> #include <linux/err.h> #include <mach/atmel_pio4.h> diff --git a/drivers/pinctrl/pinctrl-at91.c b/drivers/pinctrl/pinctrl-at91.c index ff663ab374a2346155bde2f5dc27c650cce612e0..b3fa124cfbf3363977ffed8412c3d9cfd4f6de0b 100644 --- a/drivers/pinctrl/pinctrl-at91.c +++ b/drivers/pinctrl/pinctrl-at91.c @@ -11,6 +11,7 @@ #include <log.h> #include <dm/pinctrl.h> #include <asm/hardware.h> +#include <linux/bitops.h> #include <linux/io.h> #include <linux/err.h> #include <mach/at91_pio.h> diff --git a/drivers/pinctrl/pinctrl-sandbox.c b/drivers/pinctrl/pinctrl-sandbox.c index dcef38ea5b39d28acf97d430d84639423700ba3d..ac0119d1988b3d17d773424b14cc3a9429c5b203 100644 --- a/drivers/pinctrl/pinctrl-sandbox.c +++ b/drivers/pinctrl/pinctrl-sandbox.c @@ -9,6 +9,7 @@ #include <dm.h> #include <log.h> #include <dm/pinctrl.h> +#include <linux/bitops.h> static const char * const sandbox_pins[] = { "SCL", diff --git a/drivers/pinctrl/pinctrl-stmfx.c b/drivers/pinctrl/pinctrl-stmfx.c index 9b6a7fa6bb3ffd8872182c9d683e592defbf793e..a3240ccd5a0f456dc9bb70726a59008740d8a67d 100644 --- a/drivers/pinctrl/pinctrl-stmfx.c +++ b/drivers/pinctrl/pinctrl-stmfx.c @@ -15,6 +15,7 @@ #include <dm/lists.h> #include <dm/pinctrl.h> #include <linux/bitfield.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <power/regulator.h> diff --git a/drivers/pinctrl/pinctrl_pic32.c b/drivers/pinctrl/pinctrl_pic32.c index ce02d28b901f857d17117f12f5dcd8e05b9d86df..911af1297b8af651d79dd14acfde52a6167d80bd 100644 --- a/drivers/pinctrl/pinctrl_pic32.c +++ b/drivers/pinctrl/pinctrl_pic32.c @@ -10,6 +10,7 @@ #include <log.h> #include <asm/io.h> #include <dm/pinctrl.h> +#include <linux/bitops.h> #include <mach/pic32.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/pinctrl/pinctrl_stm32.c b/drivers/pinctrl/pinctrl_stm32.c index 14fcacdbed991c3fbb9549455ded73b99e7a9bb2..fc241fdcdef9d89cc4bbb37b3f867eb7f8a2e868 100644 --- a/drivers/pinctrl/pinctrl_stm32.c +++ b/drivers/pinctrl/pinctrl_stm32.c @@ -9,6 +9,7 @@ #include <dm/device_compat.h> #include <dm/lists.h> #include <dm/pinctrl.h> +#include <linux/bitops.h> #include <linux/err.h> #include <linux/libfdt.h> diff --git a/drivers/pinctrl/renesas/pfc-r7s72100.c b/drivers/pinctrl/renesas/pfc-r7s72100.c index 7e4530d684c724fd4c5230f169d10dc966fb26d8..5055780bf75eb3fb5ccd5edc439f5729e2191771 100644 --- a/drivers/pinctrl/renesas/pfc-r7s72100.c +++ b/drivers/pinctrl/renesas/pfc-r7s72100.c @@ -9,6 +9,7 @@ #include <dm.h> #include <dm/lists.h> #include <dm/pinctrl.h> +#include <linux/bitops.h> #include <linux/io.h> #include <linux/err.h> diff --git a/drivers/pinctrl/renesas/pfc-r8a77990.c b/drivers/pinctrl/renesas/pfc-r8a77990.c index 5313f2f509888cfa618099cf1f57384d4d97235c..de22e49ebef4bcc4930ce9dcc6774a6874ea80a7 100644 --- a/drivers/pinctrl/renesas/pfc-r8a77990.c +++ b/drivers/pinctrl/renesas/pfc-r8a77990.c @@ -15,6 +15,7 @@ #include <dm.h> #include <errno.h> #include <dm/pinctrl.h> +#include <linux/bitops.h> #include <linux/kernel.h> #include "sh_pfc.h" diff --git a/drivers/pinctrl/renesas/pfc.c b/drivers/pinctrl/renesas/pfc.c index efbff49f9baddf08d62ceb400b9e63879b1a21c0..1179afd2e7b266cbfca0fc36ced03ddaf21bac53 100644 --- a/drivers/pinctrl/renesas/pfc.c +++ b/drivers/pinctrl/renesas/pfc.c @@ -17,6 +17,7 @@ #include <dm/device_compat.h> #include <dm/devres.h> #include <dm/pinctrl.h> +#include <linux/bitops.h> #include <linux/bug.h> #include <linux/io.h> #include <linux/sizes.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-px30.c b/drivers/pinctrl/rockchip/pinctrl-px30.c index 20ffd249c78eaad4be5752196e77f15b64f88b22..617721a6264cb48d1b5e3f3608ac565abeb33d9c 100644 --- a/drivers/pinctrl/rockchip/pinctrl-px30.c +++ b/drivers/pinctrl/rockchip/pinctrl-px30.c @@ -9,6 +9,7 @@ #include <dm/pinctrl.h> #include <regmap.h> #include <syscon.h> +#include <linux/bitops.h> #include "pinctrl-rockchip.h" diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3036.c b/drivers/pinctrl/rockchip/pinctrl-rk3036.c index 28c905129ba1aabbdf6d26bd64a99eeb50accc82..d49e3007cea25109ecdbc783e0a5ce1c6510d520 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3036.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3036.c @@ -8,6 +8,7 @@ #include <dm/pinctrl.h> #include <regmap.h> #include <syscon.h> +#include <linux/bitops.h> #include "pinctrl-rockchip.h" diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3128.c b/drivers/pinctrl/rockchip/pinctrl-rk3128.c index 3eb4d952bb5f1a94dc39b707fc0180fe9b8481cd..a175d6c07f1f31ee4d8ffad05d75163a0922395e 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3128.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3128.c @@ -8,6 +8,7 @@ #include <dm/pinctrl.h> #include <regmap.h> #include <syscon.h> +#include <linux/bitops.h> #include "pinctrl-rockchip.h" diff --git a/drivers/pinctrl/rockchip/pinctrl-rk322x.c b/drivers/pinctrl/rockchip/pinctrl-rk322x.c index e082eb6a3235611530c83ad411b66aae5a6d8439..85bc0ef0f31748471707d2073dbcbb975847fc0f 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk322x.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk322x.c @@ -9,6 +9,7 @@ #include <dm/pinctrl.h> #include <regmap.h> #include <syscon.h> +#include <linux/bitops.h> #include "pinctrl-rockchip.h" diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3288.c b/drivers/pinctrl/rockchip/pinctrl-rk3288.c index 2780302585ce3229a924a7ba8a96f36a23fac618..faaa2ce1f705275d73ff5b99810b43deaabbc47a 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3288.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3288.c @@ -8,6 +8,7 @@ #include <log.h> #include <dm/pinctrl.h> #include <regmap.h> +#include <linux/bitops.h> #include "pinctrl-rockchip.h" diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3308.c b/drivers/pinctrl/rockchip/pinctrl-rk3308.c index 0817f7136c4fa3cf640e4c53bbba2523f8fb4b32..db2b10a6906adfb786271b1f5d947fbf91fba650 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3308.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3308.c @@ -9,6 +9,7 @@ #include <dm/pinctrl.h> #include <regmap.h> #include <syscon.h> +#include <linux/bitops.h> #include "pinctrl-rockchip.h" diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3328.c b/drivers/pinctrl/rockchip/pinctrl-rk3328.c index 990f6811e9363a51db86278a99cb27a670a7083b..f9160f26c78e97c7671326cff90f1658e49d4f49 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3328.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3328.c @@ -9,6 +9,7 @@ #include <dm/pinctrl.h> #include <regmap.h> #include <syscon.h> +#include <linux/bitops.h> #include "pinctrl-rockchip.h" diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3399.c b/drivers/pinctrl/rockchip/pinctrl-rk3399.c index 7647d90eb5d66c0812c6f5b12cb07d7edbf7d1ca..d04c1afb090a8dc6db6c1e1d4fcae179e6864e61 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3399.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3399.c @@ -9,6 +9,7 @@ #include <dm/pinctrl.h> #include <regmap.h> #include <syscon.h> +#include <linux/bitops.h> #include "pinctrl-rockchip.h" diff --git a/drivers/pinctrl/rockchip/pinctrl-rockchip-core.c b/drivers/pinctrl/rockchip/pinctrl-rockchip-core.c index 63aebdb612fface47b1db8d44576b91573d7e8fb..ec1cb9b652f3d2b7edb83cdad0c9f0daaf34a744 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rockchip-core.c +++ b/drivers/pinctrl/rockchip/pinctrl-rockchip-core.c @@ -10,6 +10,7 @@ #include <regmap.h> #include <syscon.h> #include <fdtdec.h> +#include <linux/bitops.h> #include <linux/libfdt.h> #include "pinctrl-rockchip.h" diff --git a/drivers/pinctrl/rockchip/pinctrl-rockchip.h b/drivers/pinctrl/rockchip/pinctrl-rockchip.h index 5edc7cbd7421b63db789cbf0929cf5281ffcc877..d969c200826c046e708bde1f8cfe4c8c5f78f3e7 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rockchip.h +++ b/drivers/pinctrl/rockchip/pinctrl-rockchip.h @@ -6,6 +6,7 @@ #ifndef __DRIVERS_PINCTRL_ROCKCHIP_H #define __DRIVERS_PINCTRL_ROCKCHIP_H +#include <linux/bitops.h> #include <linux/types.h> /** diff --git a/drivers/pinctrl/rockchip/pinctrl-rv1108.c b/drivers/pinctrl/rockchip/pinctrl-rv1108.c index 653e40b354b594989169766d054e346d3c30b007..22334329ed4cc60cbad952f35fa36bd0be7e2a60 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rv1108.c +++ b/drivers/pinctrl/rockchip/pinctrl-rv1108.c @@ -9,6 +9,7 @@ #include <dm/pinctrl.h> #include <regmap.h> #include <syscon.h> +#include <linux/bitops.h> #include "pinctrl-rockchip.h" diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-core.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-core.c index 25231c10f9c79174e5799366873941ec7d1d22c2..8545b9d0707885aa831e98ea60d41d78a2f97640 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-core.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-core.c @@ -7,6 +7,7 @@ #include <common.h> #include <dm.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/bug.h> #include <linux/io.h> #include <linux/err.h> diff --git a/drivers/power/domain/bcm6328-power-domain.c b/drivers/power/domain/bcm6328-power-domain.c index a6426bee27f94599df2cbe731ec171b24d690158..a494bfa8c9de71b6ae5f8654ee9d9d046eaddab2 100644 --- a/drivers/power/domain/bcm6328-power-domain.c +++ b/drivers/power/domain/bcm6328-power-domain.c @@ -8,6 +8,7 @@ #include <malloc.h> #include <power-domain-uclass.h> #include <asm/io.h> +#include <linux/bitops.h> #define MAX_DOMAINS 32 diff --git a/drivers/power/domain/meson-ee-pwrc.c b/drivers/power/domain/meson-ee-pwrc.c index b668d94974772a2eb877e429fb98573a68925165..8349a9c15822e70cce7c9bf7c0cd71594aa4db63 100644 --- a/drivers/power/domain/meson-ee-pwrc.c +++ b/drivers/power/domain/meson-ee-pwrc.c @@ -15,6 +15,7 @@ #include <clk.h> #include <dt-bindings/power/meson-g12a-power.h> #include <dt-bindings/power/meson-sm1-power.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/err.h> diff --git a/drivers/power/domain/meson-gx-pwrc-vpu.c b/drivers/power/domain/meson-gx-pwrc-vpu.c index d43383b68ddaec0e4c12e1bebd8f59c9c7fb7483..a41b230448fca23af2b198050c0fb1d26cda29dd 100644 --- a/drivers/power/domain/meson-gx-pwrc-vpu.c +++ b/drivers/power/domain/meson-gx-pwrc-vpu.c @@ -15,6 +15,7 @@ #include <syscon.h> #include <reset.h> #include <clk.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/err.h> diff --git a/drivers/power/domain/mtk-power-domain.c b/drivers/power/domain/mtk-power-domain.c index 3ff7ca1befadada704108779c14a2fe5e28abde3..fae4749012bdc03f907accfd5e3e093378e078ef 100644 --- a/drivers/power/domain/mtk-power-domain.c +++ b/drivers/power/domain/mtk-power-domain.c @@ -13,6 +13,7 @@ #include <syscon.h> #include <asm/io.h> #include <asm/processor.h> +#include <linux/bitops.h> #include <linux/err.h> #include <linux/iopoll.h> diff --git a/drivers/power/domain/tegra186-power-domain.c b/drivers/power/domain/tegra186-power-domain.c index 9cebc7f3f16482bbc7cd8bc5954bd8be00cf2c4d..707735cf85161240847b4702694e0a6dd73ef94a 100644 --- a/drivers/power/domain/tegra186-power-domain.c +++ b/drivers/power/domain/tegra186-power-domain.c @@ -10,6 +10,7 @@ #include <misc.h> #include <power-domain-uclass.h> #include <asm/arch-tegra/bpmp_abi.h> +#include <linux/bitops.h> #define UPDATE BIT(0) #define ON BIT(1) diff --git a/drivers/power/regulator/bd71837.c b/drivers/power/regulator/bd71837.c index 850b533b846540bf0df64c446b15b4da2f0a74eb..931d753e34453e44f38e455100fd34bb1b9113fb 100644 --- a/drivers/power/regulator/bd71837.c +++ b/drivers/power/regulator/bd71837.c @@ -8,6 +8,7 @@ #include <common.h> #include <dm.h> #include <log.h> +#include <linux/bitops.h> #include <power/bd71837.h> #include <power/pmic.h> #include <power/regulator.h> diff --git a/drivers/power/regulator/da9063.c b/drivers/power/regulator/da9063.c index 8990be113eaa980dba0d2d73d54fe6127e773eaf..5055e39cb79708498bc18efca5b62f812a9664ef 100644 --- a/drivers/power/regulator/da9063.c +++ b/drivers/power/regulator/da9063.c @@ -6,6 +6,7 @@ #include <common.h> #include <dm.h> +#include <linux/bitops.h> #include <power/da9063_pmic.h> #include <power/pmic.h> #include <power/regulator.h> diff --git a/drivers/power/regulator/fan53555.c b/drivers/power/regulator/fan53555.c index fa92fd84f9fefa39392304a0e8a41c1db91f0ba5..b407f555fe3dd9e6b88da0aefa12df9ef5d647a9 100644 --- a/drivers/power/regulator/fan53555.c +++ b/drivers/power/regulator/fan53555.c @@ -11,6 +11,7 @@ #include <i2c.h> #include <log.h> #include <asm/gpio.h> +#include <linux/bitops.h> #include <power/fan53555.h> #include <power/pmic.h> #include <power/regulator.h> diff --git a/drivers/power/regulator/stm32-vrefbuf.c b/drivers/power/regulator/stm32-vrefbuf.c index 08a10f05b412f3fdf89faa9dd3872d4cfbc4b097..250773514f5825184560a78cb187ff06f18c73a8 100644 --- a/drivers/power/regulator/stm32-vrefbuf.c +++ b/drivers/power/regulator/stm32-vrefbuf.c @@ -11,6 +11,7 @@ #include <dm.h> #include <asm/io.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/iopoll.h> #include <linux/kernel.h> #include <power/regulator.h> diff --git a/drivers/pwm/rk_pwm.c b/drivers/pwm/rk_pwm.c index 66eb0e72fed325c6ec8fca8af69a558e445b433a..911da1d426146d4a42b3fb92828a42b4ca81ec11 100644 --- a/drivers/pwm/rk_pwm.c +++ b/drivers/pwm/rk_pwm.c @@ -14,6 +14,7 @@ #include <syscon.h> #include <asm/io.h> #include <asm/arch-rockchip/pwm.h> +#include <linux/bitops.h> #include <power/regulator.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/ram/imxrt_sdram.c b/drivers/ram/imxrt_sdram.c index 80fcb7e56ea7ca2f0c1fc29be039dbe0eb05d6d0..765a2141d130d4fc87b3bd7a0ba4288b6c577a44 100644 --- a/drivers/ram/imxrt_sdram.c +++ b/drivers/ram/imxrt_sdram.c @@ -11,6 +11,7 @@ #include <log.h> #include <ram.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/err.h> diff --git a/drivers/ram/k3-am654-ddrss.h b/drivers/ram/k3-am654-ddrss.h index 94a7c91b2b740034e0ce0badc771a08ba1cd7b2c..c87f186291e76938d8806c73384c9470037dab18 100644 --- a/drivers/ram/k3-am654-ddrss.h +++ b/drivers/ram/k3-am654-ddrss.h @@ -11,6 +11,7 @@ #define __K3_AM654_DDRSS_H /* DDRSS subsystem wrapper logic registers */ +#include <linux/bitops.h> #define DDRSS_SS_ID_REV_REG 0x00000000 #define DDRSS_SS_CTL_REG 0x00000004 #define DDRSS_V2H_CTL_REG 0x00000020 diff --git a/drivers/ram/mediatek/ddr3-mt7629.c b/drivers/ram/mediatek/ddr3-mt7629.c index 6b4296d714d961efcd5b3a3871971f5f5711b8fa..b3a68cb07879967afe9c6f73945454709e7baed8 100644 --- a/drivers/ram/mediatek/ddr3-mt7629.c +++ b/drivers/ram/mediatek/ddr3-mt7629.c @@ -12,6 +12,7 @@ #include <dm.h> #include <ram.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/delay.h> /* EMI */ diff --git a/drivers/ram/mpc83xx_sdram.c b/drivers/ram/mpc83xx_sdram.c index e97467029ff0fc37727aee79fba371d09595642b..a226bac2cc34138a24d8c28cacf5b3ac2c890396 100644 --- a/drivers/ram/mpc83xx_sdram.c +++ b/drivers/ram/mpc83xx_sdram.c @@ -9,6 +9,7 @@ #include <init.h> #include <log.h> #include <ram.h> +#include <asm/bitops.h> #include <dt-bindings/memory/mpc83xx-sdram.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/ram/rockchip/dmc-rk3368.c b/drivers/ram/rockchip/dmc-rk3368.c index 31a3c83b0390628a836ee2f8050d36c02314e77a..92457a1fa427c80e2e919dfc099d44d1deb50611 100644 --- a/drivers/ram/rockchip/dmc-rk3368.c +++ b/drivers/ram/rockchip/dmc-rk3368.c @@ -20,6 +20,7 @@ #include <asm/arch-rockchip/ddr_rk3368.h> #include <asm/arch-rockchip/sdram.h> #include <asm/arch-rockchip/sdram_rk3288.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/err.h> diff --git a/drivers/ram/stm32_sdram.c b/drivers/ram/stm32_sdram.c index 1894a60f1a29ec4324684743380e3d213d4ae69a..3fddf4df9615370c739c9eb18549afc063d4bc0d 100644 --- a/drivers/ram/stm32_sdram.c +++ b/drivers/ram/stm32_sdram.c @@ -12,6 +12,7 @@ #include <ram.h> #include <asm/io.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/delay.h> #define MEM_MODE_MASK GENMASK(2, 0) diff --git a/drivers/ram/stm32mp1/stm32mp1_ddr.c b/drivers/ram/stm32mp1/stm32mp1_ddr.c index f523dc8ea2320ebab16ab0f5be269077fb2599ce..bf3a4c97a411dc2513683663e8cfb7a7f3a13e87 100644 --- a/drivers/ram/stm32mp1/stm32mp1_ddr.c +++ b/drivers/ram/stm32mp1/stm32mp1_ddr.c @@ -11,6 +11,7 @@ #include <timer.h> #include <asm/io.h> #include <asm/arch/ddr.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/iopoll.h> #include "stm32mp1_ddr.h" diff --git a/drivers/ram/stm32mp1/stm32mp1_ddr_regs.h b/drivers/ram/stm32mp1/stm32mp1_ddr_regs.h index afd93c518eb597754c8013b82f246b35cc415246..3c8885a965770864ebea9b9bfe2b28f72fcde993 100644 --- a/drivers/ram/stm32mp1/stm32mp1_ddr_regs.h +++ b/drivers/ram/stm32mp1/stm32mp1_ddr_regs.h @@ -7,6 +7,7 @@ #define _RAM_STM32MP1_DDR_REGS_H /* DDR3/LPDDR2/LPDDR3 Controller (DDRCTRL) registers */ +#include <linux/bitops.h> struct stm32mp1_ddrctl { u32 mstr ; /* 0x0 Master*/ u32 stat; /* 0x4 Operating Mode Status*/ diff --git a/drivers/reset/reset-bcm6345.c b/drivers/reset/reset-bcm6345.c index 0511a0c63a3936854040b062b5a52c578af36895..156703e084301b93b26f936e32006e4db445298c 100644 --- a/drivers/reset/reset-bcm6345.c +++ b/drivers/reset/reset-bcm6345.c @@ -13,6 +13,7 @@ #include <malloc.h> #include <reset-uclass.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/delay.h> #define MAX_RESETS 32 diff --git a/drivers/reset/reset-hisilicon.c b/drivers/reset/reset-hisilicon.c index e7bec9cd7c0b31cc68ebc1504b14e3f0315cce64..139bc5d73e0b679c807af2e61c29db5541eeecac 100644 --- a/drivers/reset/reset-hisilicon.c +++ b/drivers/reset/reset-hisilicon.c @@ -10,6 +10,7 @@ #include <dm.h> #include <dt-bindings/reset/ti-syscon.h> #include <reset-uclass.h> +#include <linux/bitops.h> struct hisi_reset_priv { void __iomem *base; diff --git a/drivers/reset/reset-hsdk.c b/drivers/reset/reset-hsdk.c index 149eaef0e91f7f047210608c45414b0b2e0a5f06..0c8f276293db325ba8765cd4cb1f853ad7ed85de 100644 --- a/drivers/reset/reset-hsdk.c +++ b/drivers/reset/reset-hsdk.c @@ -10,6 +10,7 @@ #include <asm/io.h> #include <common.h> #include <dm.h> +#include <linux/bitops.h> #include <linux/iopoll.h> #include <reset-uclass.h> diff --git a/drivers/reset/reset-imx7.c b/drivers/reset/reset-imx7.c index ce7e1c4ed2214fac3162fb87785c1b84acb5b4fa..96916b644ad1a7a7da924a51ed440d48c8514c3f 100644 --- a/drivers/reset/reset-imx7.c +++ b/drivers/reset/reset-imx7.c @@ -11,6 +11,7 @@ #include <dt-bindings/reset/imx7-reset.h> #include <dt-bindings/reset/imx8mq-reset.h> #include <reset-uclass.h> +#include <linux/bitops.h> #include <linux/delay.h> struct imx7_reset_priv { diff --git a/drivers/reset/reset-mediatek.c b/drivers/reset/reset-mediatek.c index 9f2e809aa475ff3002fa8b46d0aea4407703b48b..97d3d5759274a2bcf10d65a4609ac50ffaefe2c2 100644 --- a/drivers/reset/reset-mediatek.c +++ b/drivers/reset/reset-mediatek.c @@ -14,6 +14,7 @@ #include <regmap.h> #include <reset-uclass.h> #include <syscon.h> +#include <linux/bitops.h> #include <linux/err.h> struct mediatek_reset_priv { diff --git a/drivers/reset/reset-meson.c b/drivers/reset/reset-meson.c index 461c0ccb7a0b4f6cde711abf7c4389a373e358d8..4e3327898e226028fa95542acb8921934257c1e6 100644 --- a/drivers/reset/reset-meson.c +++ b/drivers/reset/reset-meson.c @@ -12,6 +12,7 @@ #include <malloc.h> #include <reset-uclass.h> #include <regmap.h> +#include <linux/bitops.h> #define REG_COUNT 8 #define BITS_PER_REG 32 diff --git a/drivers/reset/reset-mtmips.c b/drivers/reset/reset-mtmips.c index a79a4acd67605a02fb3e1eacc51c1931e3a73168..bc20e3335c5caa395e6c7257598dee058561f720 100644 --- a/drivers/reset/reset-mtmips.c +++ b/drivers/reset/reset-mtmips.c @@ -11,6 +11,7 @@ #include <log.h> #include <malloc.h> #include <reset-uclass.h> +#include <linux/bitops.h> #include <linux/io.h> struct mtmips_reset_priv { diff --git a/drivers/reset/reset-rockchip.c b/drivers/reset/reset-rockchip.c index 7c30919215ca65a3882823aaad7121c1d60d91a5..809255565086177e989b4465f6cf7455d854b648 100644 --- a/drivers/reset/reset-rockchip.c +++ b/drivers/reset/reset-rockchip.c @@ -8,6 +8,7 @@ #include <log.h> #include <malloc.h> #include <reset-uclass.h> +#include <linux/bitops.h> #include <linux/io.h> #include <asm/arch-rockchip/hardware.h> #include <dm/lists.h> diff --git a/drivers/reset/reset-sunxi.c b/drivers/reset/reset-sunxi.c index 48c24ed44d8bf876b489ca5f81a77765f5f7fc9c..05f7f599ce306837450e91122d6e1d968aaec5e4 100644 --- a/drivers/reset/reset-sunxi.c +++ b/drivers/reset/reset-sunxi.c @@ -12,6 +12,7 @@ #include <reset-uclass.h> #include <asm/io.h> #include <dm/lists.h> +#include <linux/bitops.h> #include <linux/log2.h> #include <asm/arch/ccu.h> diff --git a/drivers/reset/sti-reset.c b/drivers/reset/sti-reset.c index ab67bc02de87e4c8a3ecd1afc207843354c5f508..ac3a99f9bffd17801bd59fec545fae3e2d721f3f 100644 --- a/drivers/reset/sti-reset.c +++ b/drivers/reset/sti-reset.c @@ -14,6 +14,7 @@ #include <regmap.h> #include <syscon.h> #include <dt-bindings/reset/stih407-resets.h> +#include <linux/bitops.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/reset/stm32-reset.c b/drivers/reset/stm32-reset.c index 47ed140166fa694f436cd04205a037c7914bc37d..64a11cfcfc0a61329c0cf8e0e8d392505f4c7571 100644 --- a/drivers/reset/stm32-reset.c +++ b/drivers/reset/stm32-reset.c @@ -12,6 +12,7 @@ #include <reset-uclass.h> #include <stm32_rcc.h> #include <asm/io.h> +#include <linux/bitops.h> /* reset clear offset for STM32MP RCC */ #define RCC_CL 0x4 diff --git a/drivers/rng/rockchip_rng.c b/drivers/rng/rockchip_rng.c index 47fb140077daf609bfc13f1352d7f1e2839af7d4..c6a834b67c56e17f3eba28eaba328762f5356397 100644 --- a/drivers/rng/rockchip_rng.c +++ b/drivers/rng/rockchip_rng.c @@ -6,6 +6,7 @@ #include <asm/io.h> #include <common.h> #include <dm.h> +#include <linux/bitops.h> #include <linux/iopoll.h> #include <linux/string.h> #include <rng.h> diff --git a/drivers/rng/stm32mp1_rng.c b/drivers/rng/stm32mp1_rng.c index a9a927336be18075a77d978ebf787f8c1d941c9c..7ef7ff9756d4fd5e748c79f11ed90f44068e266e 100644 --- a/drivers/rng/stm32mp1_rng.c +++ b/drivers/rng/stm32mp1_rng.c @@ -9,6 +9,7 @@ #include <log.h> #include <reset.h> #include <rng.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <asm/io.h> diff --git a/drivers/rtc/ds3232.c b/drivers/rtc/ds3232.c index e3b3579c4aad8f8f4f052162572fd0f4f6e0f806..0a30e0eabb4585e44f195f8a51dc1e2d9ec66fd9 100644 --- a/drivers/rtc/ds3232.c +++ b/drivers/rtc/ds3232.c @@ -9,6 +9,7 @@ #include <i2c.h> #include <rtc.h> #include <dm/device_compat.h> +#include <linux/bitops.h> /* * RTC register addresses diff --git a/drivers/rtc/rv3029.c b/drivers/rtc/rv3029.c index 9be58425bfba05e1973edd1155a480bb41caf0b3..3afe5b2fdd678568b847c3606cd925f38d65897a 100644 --- a/drivers/rtc/rv3029.c +++ b/drivers/rtc/rv3029.c @@ -15,6 +15,7 @@ #include <log.h> #include <rtc.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/delay.h> #define RTC_RV3029_PAGE_LEN 7 diff --git a/drivers/rtc/rv8803.c b/drivers/rtc/rv8803.c index 7f56b155fc3fbb949a0f40271dffafe190c3b216..acd50c656483a114c4ed19c8e3148624690ea3be 100644 --- a/drivers/rtc/rv8803.c +++ b/drivers/rtc/rv8803.c @@ -16,6 +16,7 @@ #include <log.h> #include <rtc.h> #include <i2c.h> +#include <linux/bitops.h> /* * RTC register addresses diff --git a/drivers/rtc/rx8010sj.c b/drivers/rtc/rx8010sj.c index 82c5185e2e5e2edb09b1beb8a3b1a454b5c7e43f..d513561b8202547897f6c1955572b0e13531f1e5 100644 --- a/drivers/rtc/rx8010sj.c +++ b/drivers/rtc/rx8010sj.c @@ -21,6 +21,7 @@ #include <dm.h> #include <i2c.h> #include <rtc.h> +#include <linux/bitops.h> /*---------------------------------------------------------------------*/ /* #undef DEBUG_RTC */ diff --git a/drivers/rtc/stm32_rtc.c b/drivers/rtc/stm32_rtc.c index 3e12f57ce0b7ba819f5ce1bb8edd635ee282ba4c..f9db318af1dcea4d231e5d86a4c9d2192818a655 100644 --- a/drivers/rtc/stm32_rtc.c +++ b/drivers/rtc/stm32_rtc.c @@ -9,6 +9,7 @@ #include <rtc.h> #include <asm/io.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/iopoll.h> #define STM32_RTC_TR 0x00 diff --git a/drivers/serial/altera_jtag_uart.c b/drivers/serial/altera_jtag_uart.c index 86c3de4e455d9cf86fe69d34aee400b9c7c59cd9..7a86161a0dfd219d9c58c08cac236b5f64f670b0 100644 --- a/drivers/serial/altera_jtag_uart.c +++ b/drivers/serial/altera_jtag_uart.c @@ -9,6 +9,7 @@ #include <errno.h> #include <serial.h> #include <asm/io.h> +#include <linux/bitops.h> /* data register */ #define ALTERA_JTAG_RVALID BIT(15) /* Read valid */ diff --git a/drivers/serial/altera_uart.c b/drivers/serial/altera_uart.c index 436cf2331df952cc92e0ca0e9486ab96f0401f42..f88a293d56098ba5aba2aa9171b32e4cbd6c7bbd 100644 --- a/drivers/serial/altera_uart.c +++ b/drivers/serial/altera_uart.c @@ -9,6 +9,7 @@ #include <errno.h> #include <serial.h> #include <asm/io.h> +#include <linux/bitops.h> /* status register */ #define ALTERA_UART_TMT BIT(5) /* tx empty */ diff --git a/drivers/serial/serial_ar933x.c b/drivers/serial/serial_ar933x.c index 897ea5d6dc2700f728568edb16c782ea1e21239e..382c3b3d34a3cc6960a784585a907bd59c17f168 100644 --- a/drivers/serial/serial_ar933x.c +++ b/drivers/serial/serial_ar933x.c @@ -13,6 +13,7 @@ #include <asm/addrspace.h> #include <asm/types.h> #include <dm/pinctrl.h> +#include <linux/bitops.h> #include <mach/ar71xx_regs.h> #define AR933X_UART_DATA_REG 0x00 diff --git a/drivers/serial/serial_bcm283x_mu.c b/drivers/serial/serial_bcm283x_mu.c index febb5ceea2a53bcce4342a86e48407400de583f2..0102b10ed25abd2a72150dee82f0c19339bac3b9 100644 --- a/drivers/serial/serial_bcm283x_mu.c +++ b/drivers/serial/serial_bcm283x_mu.c @@ -23,6 +23,7 @@ #include <serial.h> #include <dm/platform_data/serial_bcm283x_mu.h> #include <dm/pinctrl.h> +#include <linux/bitops.h> #include <linux/compiler.h> struct bcm283x_mu_regs { diff --git a/drivers/serial/serial_cortina.c b/drivers/serial/serial_cortina.c index 4f227bfe0ad92f66834f620bf784fabe1698b740..cc20673efeffec6a9aef206e3e94d25771c965a2 100644 --- a/drivers/serial/serial_cortina.c +++ b/drivers/serial/serial_cortina.c @@ -11,6 +11,7 @@ #include <watchdog.h> #include <asm/io.h> #include <serial.h> +#include <linux/bitops.h> #include <linux/compiler.h> /* Register definitions */ diff --git a/drivers/serial/serial_lpuart.c b/drivers/serial/serial_lpuart.c index 9d7ed5e88aaaa9770b494263688875a416ec25bf..0c63c41270eb43172df11e7fe32f3c943a531f7a 100644 --- a/drivers/serial/serial_lpuart.c +++ b/drivers/serial/serial_lpuart.c @@ -13,6 +13,7 @@ #include <asm/io.h> #include <serial.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/compiler.h> #include <asm/arch/imx-regs.h> #include <asm/arch/clock.h> diff --git a/drivers/serial/serial_meson.c b/drivers/serial/serial_meson.c index b3dad77aa28c21b2ae9494549e96366dbc869a3e..439057b1b9afcb20323ec5fac87a9a0304614aba 100644 --- a/drivers/serial/serial_meson.c +++ b/drivers/serial/serial_meson.c @@ -7,6 +7,7 @@ #include <dm.h> #include <errno.h> #include <fdtdec.h> +#include <linux/bitops.h> #include <linux/compiler.h> #include <serial.h> diff --git a/drivers/serial/serial_owl.c b/drivers/serial/serial_owl.c index bb60ca2d9b81b03727ebe2c9d900961e447924e0..2651a45a7f3c312a4c83961a483610df5a161183 100644 --- a/drivers/serial/serial_owl.c +++ b/drivers/serial/serial_owl.c @@ -14,6 +14,7 @@ #include <serial.h> #include <asm/io.h> #include <asm/types.h> +#include <linux/bitops.h> /* UART Registers */ #define OWL_UART_CTL (0x0000) diff --git a/drivers/serial/serial_pic32.c b/drivers/serial/serial_pic32.c index bac506ed79d558037f990e173aacd14551748764..a492063e39c227d55886aa6fee50d2a05cd94653 100644 --- a/drivers/serial/serial_pic32.c +++ b/drivers/serial/serial_pic32.c @@ -9,6 +9,7 @@ #include <malloc.h> #include <serial.h> #include <wait_bit.h> +#include <linux/bitops.h> #include <mach/pic32.h> #include <dt-bindings/clock/microchip,clock.h> diff --git a/drivers/serial/serial_sti_asc.c b/drivers/serial/serial_sti_asc.c index 27d3ec9dbc336c080df1a6b4b32376f459bd2e13..5fbbfac82078debf6ef55b9f38215d8508954082 100644 --- a/drivers/serial/serial_sti_asc.c +++ b/drivers/serial/serial_sti_asc.c @@ -11,6 +11,7 @@ #include <log.h> #include <serial.h> #include <asm/io.h> +#include <linux/bitops.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/serial/serial_stm32.c b/drivers/serial/serial_stm32.c index 5c1cf81ae04c781e50018820970203cb66d7dced..e77b90670a3944ab817b571992fe84653c4e9a9a 100644 --- a/drivers/serial/serial_stm32.c +++ b/drivers/serial/serial_stm32.c @@ -13,6 +13,7 @@ #include <watchdog.h> #include <asm/io.h> #include <asm/arch/stm32.h> +#include <linux/bitops.h> #include <linux/delay.h> #include "serial_stm32.h" #include <dm/device_compat.h> diff --git a/drivers/serial/serial_stm32.h b/drivers/serial/serial_stm32.h index 7b0c53145e8b722cec880625f9a99d652a2dc0a8..57376518880a069033e40afb5f5d8b534d77033d 100644 --- a/drivers/serial/serial_stm32.h +++ b/drivers/serial/serial_stm32.h @@ -7,6 +7,7 @@ #ifndef _SERIAL_STM32_ #define _SERIAL_STM32_ +#include <linux/bitops.h> #define CR1_OFFSET(x) (x ? 0x0c : 0x00) #define CR3_OFFSET(x) (x ? 0x14 : 0x08) #define BRR_OFFSET(x) (x ? 0x08 : 0x0c) diff --git a/drivers/serial/serial_xuartlite.c b/drivers/serial/serial_xuartlite.c index 1be777bd3bb8b7d1bd1144ab9e833c9a6efdc291..f29a9a0b569c549732b3fb7ece637b65f5e92c49 100644 --- a/drivers/serial/serial_xuartlite.c +++ b/drivers/serial/serial_xuartlite.c @@ -11,6 +11,7 @@ #include <common.h> #include <dm.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/compiler.h> #include <serial.h> diff --git a/drivers/serial/serial_zynq.c b/drivers/serial/serial_zynq.c index 5f2dcd6d6b9fc2787d171ff0c7cfd11059f621b1..0e71cada1bbadf4b24a385371d8d7fb22a352c67 100644 --- a/drivers/serial/serial_zynq.c +++ b/drivers/serial/serial_zynq.c @@ -14,6 +14,7 @@ #include <watchdog.h> #include <asm/io.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/compiler.h> #include <serial.h> #include <linux/err.h> diff --git a/drivers/soc/ti/k3-navss-ringacc.c b/drivers/soc/ti/k3-navss-ringacc.c index c3953fdf85590e449ebf2be535cbee1c9d32b147..ecc4b8b5a06f29784edfb62e57dd2b98465413ce 100644 --- a/drivers/soc/ti/k3-navss-ringacc.c +++ b/drivers/soc/ti/k3-navss-ringacc.c @@ -17,6 +17,7 @@ #include <dm/devres.h> #include <dm/read.h> #include <dm/uclass.h> +#include <linux/bitops.h> #include <linux/compat.h> #include <linux/dma-mapping.h> #include <linux/err.h> diff --git a/drivers/soc/ti/keystone_serdes.c b/drivers/soc/ti/keystone_serdes.c index 7907e6f9773edd1fd5ae029cebaf5d832df7d7c4..2ece1a8f64701b02ef865bed66c26c1cf74f79f1 100644 --- a/drivers/soc/ti/keystone_serdes.c +++ b/drivers/soc/ti/keystone_serdes.c @@ -9,6 +9,7 @@ #include <errno.h> #include <common.h> #include <asm/ti-common/keystone_serdes.h> +#include <linux/bitops.h> #define SERDES_CMU_REGS(x) (0x0000 + (0x0c00 * (x))) #define SERDES_LANE_REGS(x) (0x0200 + (0x200 * (x))) diff --git a/drivers/sound/hda_codec.c b/drivers/sound/hda_codec.c index b59c63edb336aefe7ec1d283dc8d900df0bc9a28..4154d2939981a097b856874a7f8931c851e9ceca 100644 --- a/drivers/sound/hda_codec.c +++ b/drivers/sound/hda_codec.c @@ -15,6 +15,7 @@ #include <sound.h> #include <asm/io.h> #include <dt-bindings/sound/azalia.h> +#include <linux/bitops.h> #include <linux/delay.h> /** diff --git a/drivers/sound/ivybridge_sound.c b/drivers/sound/ivybridge_sound.c index f446a140b228a3d3d63fda29f86fd1de3a34d51a..bc3c1e85f8cfb7020132d8d63c6d5e6a9b92080f 100644 --- a/drivers/sound/ivybridge_sound.c +++ b/drivers/sound/ivybridge_sound.c @@ -18,6 +18,7 @@ #include <log.h> #include <pch.h> #include <sound.h> +#include <linux/bitops.h> static int bd82x6x_azalia_probe(struct udevice *dev) { diff --git a/drivers/sound/max98088.h b/drivers/sound/max98088.h index 127d2bda30598ebbf1b32c650a24ccb736440c1b..b1307a7362317a10486f7ff78982772e4e93dbf0 100644 --- a/drivers/sound/max98088.h +++ b/drivers/sound/max98088.h @@ -9,6 +9,7 @@ #define _MAX98088_H /* MAX98088 Registers Definition */ +#include <linux/bitops.h> #define M98088_REG_IRQ_STATUS 0x00 #define M98088_REG_MIC_STATUS 0x01 #define M98088_REG_JACK_STAUS 0x02 diff --git a/drivers/sound/rockchip_i2s.c b/drivers/sound/rockchip_i2s.c index 5e8ed6d89670ef89486c4d7e556a125ca878d326..4e9e68aaac8165f3009dc6f586eb2ae6a297820c 100644 --- a/drivers/sound/rockchip_i2s.c +++ b/drivers/sound/rockchip_i2s.c @@ -13,6 +13,7 @@ #include <log.h> #include <sound.h> #include <asm/io.h> +#include <linux/bitops.h> struct rk_i2s_regs { u32 txcr; /* I2S_TXCR, 0x00 */ diff --git a/drivers/spi/altera_spi.c b/drivers/spi/altera_spi.c index 11d745f53a6c6636c1e4755a4148c0be821aff93..3aa7a40b77e93d87bfc6f292374ecc03ca2c02bf 100644 --- a/drivers/spi/altera_spi.c +++ b/drivers/spi/altera_spi.c @@ -14,6 +14,7 @@ #include <fdtdec.h> #include <spi.h> #include <asm/io.h> +#include <linux/bitops.h> #define ALTERA_SPI_STATUS_RRDY_MSK BIT(7) #define ALTERA_SPI_CONTROL_SSO_MSK BIT(10) diff --git a/drivers/spi/atmel-quadspi.c b/drivers/spi/atmel-quadspi.c index a6c3939db547dc9354e46e46c178411e7cab1892..9320a8be685bf928f77c96c925574ad74da342a8 100644 --- a/drivers/spi/atmel-quadspi.c +++ b/drivers/spi/atmel-quadspi.c @@ -17,6 +17,7 @@ #include <errno.h> #include <fdtdec.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/err.h> #include <linux/io.h> #include <linux/iopoll.h> diff --git a/drivers/spi/atmel_spi.h b/drivers/spi/atmel_spi.h index 76b8556c98aeea16bdc0c5ddf26303b859c4b41a..6167bd164bb0accdd4106ea9dfd11e234f0852fa 100644 --- a/drivers/spi/atmel_spi.h +++ b/drivers/spi/atmel_spi.h @@ -3,6 +3,7 @@ */ /* Register offsets */ +#include <linux/bitops.h> #define ATMEL_SPI_CR 0x0000 #define ATMEL_SPI_MR 0x0004 #define ATMEL_SPI_RDR 0x0008 diff --git a/drivers/spi/bcm63xx_hsspi.c b/drivers/spi/bcm63xx_hsspi.c index afc7be0f01eead4db722d8126f168a82dac99a20..f30a8a42bd459289302ae9b5b2dc8e58aede6dff 100644 --- a/drivers/spi/bcm63xx_hsspi.c +++ b/drivers/spi/bcm63xx_hsspi.c @@ -16,6 +16,7 @@ #include <reset.h> #include <wait_bit.h> #include <asm/io.h> +#include <linux/bitops.h> #define HSSPI_PP 0 diff --git a/drivers/spi/cadence_qspi_apb.c b/drivers/spi/cadence_qspi_apb.c index 63628692997a537238afd867458a817e943ce8d3..f9675f75a40121be76c805833a0aa45895f76221 100644 --- a/drivers/spi/cadence_qspi_apb.c +++ b/drivers/spi/cadence_qspi_apb.c @@ -29,6 +29,7 @@ #include <log.h> #include <asm/io.h> #include <dma.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/errno.h> #include <wait_bit.h> diff --git a/drivers/spi/davinci_spi.c b/drivers/spi/davinci_spi.c index c00a05af7d1b4483989289a36530f250a6ac6b70..97ac97b1a5db4d4608810f07022df9130c3bf1d6 100644 --- a/drivers/spi/davinci_spi.c +++ b/drivers/spi/davinci_spi.c @@ -16,6 +16,7 @@ #include <asm/arch/hardware.h> #include <dm.h> #include <dm/platform_data/spi_davinci.h> +#include <linux/bitops.h> #include <linux/delay.h> /* SPIGCR0 */ diff --git a/drivers/spi/designware_spi.c b/drivers/spi/designware_spi.c index 09044bd137f078d5079df3eeda09f3406f1e4934..c9b14f90292ec2898dce6471385d6ac390b7138a 100644 --- a/drivers/spi/designware_spi.c +++ b/drivers/spi/designware_spi.c @@ -20,6 +20,7 @@ #include <fdtdec.h> #include <reset.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/compat.h> #include <linux/iopoll.h> #include <asm/io.h> diff --git a/drivers/spi/fsl_dspi.c b/drivers/spi/fsl_dspi.c index cb3d44cb0f63f002e6e80548f5753b405753d07a..1cdb2331104a39011bdb973f22711abac9cc2a85 100644 --- a/drivers/spi/fsl_dspi.c +++ b/drivers/spi/fsl_dspi.c @@ -22,6 +22,7 @@ #include <asm/arch/clock.h> #endif #include <fsl_dspi.h> +#include <linux/bitops.h> #include <linux/delay.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/spi/fsl_espi.c b/drivers/spi/fsl_espi.c index ba49839107d6cd8233bd55c25b51679e8c98cde7..50d194f614b1bd6d6f4e0ca4f07c9c1c39f6171e 100644 --- a/drivers/spi/fsl_espi.c +++ b/drivers/spi/fsl_espi.c @@ -8,6 +8,7 @@ #include <common.h> #include <log.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <malloc.h> diff --git a/drivers/spi/fsl_qspi.c b/drivers/spi/fsl_qspi.c index de93cbda67cd194d9b5651d0df5f2c453ead47ee..e715f9838f1ff1dcd362d7ef1a8dfef2866ee246 100644 --- a/drivers/spi/fsl_qspi.c +++ b/drivers/spi/fsl_qspi.c @@ -26,6 +26,7 @@ #include <common.h> #include <log.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/libfdt.h> #include <linux/sizes.h> diff --git a/drivers/spi/ich.c b/drivers/spi/ich.c index 9c42755daed83ecbc821b3323de1e40e4604e7b8..74050628463c1de2622a42c9c9f9bcf81957f9cd 100644 --- a/drivers/spi/ich.c +++ b/drivers/spi/ich.c @@ -25,6 +25,7 @@ #include <asm/fast_spi.h> #include <asm/io.h> #include <asm/mtrr.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/sizes.h> diff --git a/drivers/spi/ich.h b/drivers/spi/ich.h index d7f1ffdf37ddd97c50d5861e3a52acd359c3bd95..23c7827740bb9b33a0d5f8b495c3e733dcaf327a 100644 --- a/drivers/spi/ich.h +++ b/drivers/spi/ich.h @@ -8,6 +8,7 @@ #ifndef _ICH_H_ #define _ICH_H_ +#include <linux/bitops.h> struct ich7_spi_regs { uint16_t spis; uint16_t spic; diff --git a/drivers/spi/meson_spifc.c b/drivers/spi/meson_spifc.c index ad1599557344fd9d37058e261188d5497e61faf4..2cdc0186825d2ac771928977dee3e93e67b223a2 100644 --- a/drivers/spi/meson_spifc.c +++ b/drivers/spi/meson_spifc.c @@ -16,6 +16,7 @@ #include <errno.h> #include <asm/io.h> #include <linux/bitfield.h> +#include <linux/bitops.h> /* register map */ #define REG_CMD 0x00 diff --git a/drivers/spi/mpc8xxx_spi.c b/drivers/spi/mpc8xxx_spi.c index 8491eacb1b14c4230e2473dd5b0e054169425b0a..811b5d44fb272330cb3a3a1cc6c915143748ada1 100644 --- a/drivers/spi/mpc8xxx_spi.c +++ b/drivers/spi/mpc8xxx_spi.c @@ -14,6 +14,7 @@ #include <asm/mpc8xxx_spi.h> #include <asm-generic/gpio.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/delay.h> enum { diff --git a/drivers/spi/mscc_bb_spi.c b/drivers/spi/mscc_bb_spi.c index 37327ec508fcc6f02bb9afaedd4fcc36130846f6..0454410ee9bb5150ac22d273da132c27ca4e98ef 100644 --- a/drivers/spi/mscc_bb_spi.c +++ b/drivers/spi/mscc_bb_spi.c @@ -14,6 +14,7 @@ #include <dm.h> #include <asm/gpio.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/delay.h> struct mscc_bb_priv { diff --git a/drivers/spi/mt7621_spi.c b/drivers/spi/mt7621_spi.c index df9d9da1a9bb920f1c1f2cffce4b31ec9e5ca430..3a0738eb2b72e89c524d4a070a67f20cf1772add 100644 --- a/drivers/spi/mt7621_spi.c +++ b/drivers/spi/mt7621_spi.c @@ -14,6 +14,7 @@ #include <log.h> #include <spi.h> #include <wait_bit.h> +#include <linux/bitops.h> #include <linux/io.h> #define MT7621_RX_FIFO_LEN 32 diff --git a/drivers/spi/mvebu_a3700_spi.c b/drivers/spi/mvebu_a3700_spi.c index 73a3f91efc9702732fafd183b1835d5781c468c5..2302e62be4f246474df050a7a6edf256ca28b383 100644 --- a/drivers/spi/mvebu_a3700_spi.c +++ b/drivers/spi/mvebu_a3700_spi.c @@ -14,6 +14,7 @@ #include <wait_bit.h> #include <asm/io.h> #include <dm/device_compat.h> +#include <linux/bitops.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/spi/mxc_spi.c b/drivers/spi/mxc_spi.c index e35c6f9b4a9fe29b5fb83dd54541005aa80d0dc5..f52ebf4d67c47d3cd83b5b902676f6e110fb496f 100644 --- a/drivers/spi/mxc_spi.c +++ b/drivers/spi/mxc_spi.c @@ -9,6 +9,7 @@ #include <malloc.h> #include <spi.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/errno.h> #include <asm/io.h> diff --git a/drivers/spi/mxs_spi.c b/drivers/spi/mxs_spi.c index 635955e819beff3b69efe7e9b2772dbd70f1d91e..0da4a80d712fa3269250214820d0359211586676 100644 --- a/drivers/spi/mxs_spi.c +++ b/drivers/spi/mxs_spi.c @@ -19,6 +19,7 @@ #include <memalign.h> #include <spi.h> #include <asm/cache.h> +#include <linux/bitops.h> #include <linux/errno.h> #include <asm/io.h> #include <asm/arch/clock.h> diff --git a/drivers/spi/nxp_fspi.c b/drivers/spi/nxp_fspi.c index 22a5c0e3c72e77991196ee6865c251ab9a68678e..c507437f2e7de95b2f5d38d30ea38f526e180345 100644 --- a/drivers/spi/nxp_fspi.c +++ b/drivers/spi/nxp_fspi.c @@ -40,6 +40,7 @@ #include <spi-mem.h> #include <dm.h> #include <clk.h> +#include <linux/bitops.h> #include <linux/kernel.h> #include <linux/sizes.h> #include <linux/iopoll.h> diff --git a/drivers/spi/omap3_spi.c b/drivers/spi/omap3_spi.c index ff4c700645c3c81b3dbb9a4d482f4cc62bbf2712..6a615d1498e3f03994b0f0735bf4d67d74b802d3 100644 --- a/drivers/spi/omap3_spi.c +++ b/drivers/spi/omap3_spi.c @@ -21,6 +21,7 @@ #include <spi.h> #include <malloc.h> #include <asm/io.h> +#include <linux/bitops.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/spi/pic32_spi.c b/drivers/spi/pic32_spi.c index 88dc1444e14ba576d343f9810cdec0135e43581f..52e9eff743c83c2db3362284053a5cf9c4865d1f 100644 --- a/drivers/spi/pic32_spi.c +++ b/drivers/spi/pic32_spi.c @@ -10,6 +10,7 @@ #include <clk.h> #include <dm.h> #include <log.h> +#include <linux/bitops.h> #include <linux/compat.h> #include <malloc.h> #include <spi.h> diff --git a/drivers/spi/renesas_rpc_spi.c b/drivers/spi/renesas_rpc_spi.c index 61ae92d603d597033b0fcb8cf2e90acdc54fcf9e..3ea59b8fb82a4d961032dec9cb4d928d1a9fa7bf 100644 --- a/drivers/spi/renesas_rpc_spi.c +++ b/drivers/spi/renesas_rpc_spi.c @@ -12,6 +12,7 @@ #include <dm/of_access.h> #include <dt-structs.h> #include <errno.h> +#include <linux/bitops.h> #include <linux/bug.h> #include <linux/errno.h> #include <spi.h> diff --git a/drivers/spi/sh_qspi.c b/drivers/spi/sh_qspi.c index 5ae203d8d4f87c734933e934b9871e120f28fa70..2839dd1cebd5be592a4a3ecda6f3ca399235a8ea 100644 --- a/drivers/spi/sh_qspi.c +++ b/drivers/spi/sh_qspi.c @@ -13,6 +13,7 @@ #include <wait_bit.h> #include <asm/arch/rmobile.h> #include <asm/io.h> +#include <linux/bitops.h> /* SH QSPI register bit masks <REG>_<BIT> */ #define SPCR_MSTR 0x08 diff --git a/drivers/spi/soft_spi.c b/drivers/spi/soft_spi.c index e5f9f49caf8235cfdf2f42debfec8134efd3a914..e8d7758da03b998e8bce5e8a50ee597302112418 100644 --- a/drivers/spi/soft_spi.c +++ b/drivers/spi/soft_spi.c @@ -17,6 +17,7 @@ #include <malloc.h> #include <spi.h> #include <asm/gpio.h> +#include <linux/bitops.h> #include <linux/delay.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/spi/spi-sifive.c b/drivers/spi/spi-sifive.c index 4cab0391f7d12cdbee03f64e3c1ae47c13ffed88..0e0ce25abb91a3c38cb8c1280e9a205b4493a14e 100644 --- a/drivers/spi/spi-sifive.c +++ b/drivers/spi/spi-sifive.c @@ -13,6 +13,7 @@ #include <spi-mem.h> #include <wait_bit.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/log2.h> #include <clk.h> diff --git a/drivers/spi/spi-sunxi.c b/drivers/spi/spi-sunxi.c index 85b662bb0adfee7dd84f8dd59833192ac433b0b0..d2dccd67e5bd221c7541903155c8ed60c5049d59 100644 --- a/drivers/spi/spi-sunxi.c +++ b/drivers/spi/spi-sunxi.c @@ -28,6 +28,7 @@ #include <reset.h> #include <wait_bit.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <asm/bitops.h> #include <asm/gpio.h> diff --git a/drivers/spi/stm32_qspi.c b/drivers/spi/stm32_qspi.c index 9fc5f6e00e917666394f8b61f80b11da4af42c8c..001f0703e3cba2be692c47c8fb1deff5c47d7346 100644 --- a/drivers/spi/stm32_qspi.c +++ b/drivers/spi/stm32_qspi.c @@ -13,6 +13,7 @@ #include <reset.h> #include <spi-mem.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/iopoll.h> #include <linux/ioport.h> diff --git a/drivers/spi/stm32_spi.c b/drivers/spi/stm32_spi.c index 8071de09eba2a7e11f921b4f1eb866ef6b32373f..4a0833b6fa949cb00b89af3d6f20b0562086cd93 100644 --- a/drivers/spi/stm32_spi.c +++ b/drivers/spi/stm32_spi.c @@ -13,6 +13,7 @@ #include <reset.h> #include <spi.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <asm/io.h> diff --git a/drivers/spi/tegra114_spi.c b/drivers/spi/tegra114_spi.c index bf02bdb1afe50a45e683ec1900094c0a97b57a56..0e8198c5a022665220c3fe4d69ef48728edbd300 100644 --- a/drivers/spi/tegra114_spi.c +++ b/drivers/spi/tegra114_spi.c @@ -13,6 +13,7 @@ #include <asm/arch/clock.h> #include <asm/arch-tegra/clk_rst.h> #include <spi.h> +#include <linux/bitops.h> #include <linux/delay.h> #include "tegra_spi.h" diff --git a/drivers/spi/tegra20_sflash.c b/drivers/spi/tegra20_sflash.c index 1461f09427721cfa092a4b6688bd8477b2ce5a46..22a0304bfcb5938a676e0a797ca4ebc9a9803ef8 100644 --- a/drivers/spi/tegra20_sflash.c +++ b/drivers/spi/tegra20_sflash.c @@ -17,6 +17,7 @@ #include <asm/arch-tegra/clk_rst.h> #include <spi.h> #include <fdtdec.h> +#include <linux/bitops.h> #include <linux/delay.h> #include "tegra_spi.h" diff --git a/drivers/spi/tegra20_slink.c b/drivers/spi/tegra20_slink.c index dcd09508946c1b3b6e5cf3bacfcf2bca6aab8678..3679cf06a00662b50e38779b9e621a38afbae6d9 100644 --- a/drivers/spi/tegra20_slink.c +++ b/drivers/spi/tegra20_slink.c @@ -14,6 +14,7 @@ #include <asm/arch-tegra/clk_rst.h> #include <spi.h> #include <fdtdec.h> +#include <linux/bitops.h> #include <linux/delay.h> #include "tegra_spi.h" diff --git a/drivers/spi/tegra210_qspi.c b/drivers/spi/tegra210_qspi.c index 96ab6502de1137377f7f06163da1d40900bf1d15..ae16b45dcb47f249dbcc09e353ad5cf7bfb5473f 100644 --- a/drivers/spi/tegra210_qspi.c +++ b/drivers/spi/tegra210_qspi.c @@ -15,6 +15,7 @@ #include <asm/arch-tegra/clk_rst.h> #include <spi.h> #include <fdtdec.h> +#include <linux/bitops.h> #include <linux/delay.h> #include "tegra_spi.h" diff --git a/drivers/spi/ti_qspi.c b/drivers/spi/ti_qspi.c index f25fc363acb963faf68a1a828254984a850dbc86..0db0de8f1bf1aa963a69c712a1be695bc8eeb107 100644 --- a/drivers/spi/ti_qspi.c +++ b/drivers/spi/ti_qspi.c @@ -19,6 +19,7 @@ #include <asm/omap_gpio.h> #include <asm/omap_common.h> #include <asm/ti-common/ti-edma3.h> +#include <linux/bitops.h> #include <linux/err.h> #include <linux/kernel.h> #include <regmap.h> diff --git a/drivers/spi/uniphier_spi.c b/drivers/spi/uniphier_spi.c index 42ed1ba20b02287e38bded9e1063ce4ea4b194eb..114bd8abd7a63cd4353b2fde3e9f739b12b84e6c 100644 --- a/drivers/spi/uniphier_spi.c +++ b/drivers/spi/uniphier_spi.c @@ -11,6 +11,7 @@ #include <time.h> #include <dm/device_compat.h> #include <linux/bitfield.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/io.h> #include <spi.h> diff --git a/drivers/spi/xilinx_spi.c b/drivers/spi/xilinx_spi.c index 4a568cb56d65749f984485da9ff2c30565a3ae01..05768eef721277e310ab33532d684e682e4a1c7b 100644 --- a/drivers/spi/xilinx_spi.c +++ b/drivers/spi/xilinx_spi.c @@ -21,6 +21,7 @@ #include <spi.h> #include <asm/io.h> #include <wait_bit.h> +#include <linux/bitops.h> /* * [0]: http://www.xilinx.com/support/documentation diff --git a/drivers/spi/zynq_qspi.c b/drivers/spi/zynq_qspi.c index 8451f83b706aa61bc92357259ba9207d205ee557..db473da6ea8c1656f55e82f6241c5cddc19498c2 100644 --- a/drivers/spi/zynq_qspi.c +++ b/drivers/spi/zynq_qspi.c @@ -12,6 +12,7 @@ #include <malloc.h> #include <spi.h> #include <asm/io.h> +#include <linux/bitops.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/spi/zynq_spi.c b/drivers/spi/zynq_spi.c index e3bad5532a540162099fc04a2b13a4d6fa6f3e12..3e66b34ebbb331212bc33bc24b2b0a8ca09077ae 100644 --- a/drivers/spi/zynq_spi.c +++ b/drivers/spi/zynq_spi.c @@ -13,6 +13,7 @@ #include <spi.h> #include <time.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/delay.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/spi/zynqmp_gqspi.c b/drivers/spi/zynqmp_gqspi.c index f12c6f766da4c1d082e2070baa06f38fdbf025ce..c3a5b3e3015a326af1d9b44d6407bab381a08f5d 100644 --- a/drivers/spi/zynqmp_gqspi.c +++ b/drivers/spi/zynqmp_gqspi.c @@ -19,6 +19,7 @@ #include <ubi_uboot.h> #include <wait_bit.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/err.h> #define GQSPI_GFIFO_STRT_MODE_MASK BIT(29) diff --git a/drivers/sysreset/sysreset_socfpga.c b/drivers/sysreset/sysreset_socfpga.c index 3390b7bdc2c67b2e54304feac68a0fb3c90586fd..178bcb227ff878862c1f8abe8c1e0b0b94a2d56a 100644 --- a/drivers/sysreset/sysreset_socfpga.c +++ b/drivers/sysreset/sysreset_socfpga.c @@ -10,6 +10,7 @@ #include <sysreset.h> #include <asm/io.h> #include <asm/arch/reset_manager.h> +#include <linux/bitops.h> struct socfpga_sysreset_data { void __iomem *rstmgr_base; diff --git a/drivers/sysreset/sysreset_sti.c b/drivers/sysreset/sysreset_sti.c index 9996716f13d6016ebaa490352f3e7fd56b22d1f3..3482d2a07875049fb13a624031275aebaa01f973 100644 --- a/drivers/sysreset/sysreset_sti.c +++ b/drivers/sysreset/sysreset_sti.c @@ -10,6 +10,7 @@ #include <syscon.h> #include <sysreset.h> #include <asm/io.h> +#include <linux/bitops.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/timer/altera_timer.c b/drivers/timer/altera_timer.c index 6f504f7cc4d28d6c2429364f85d8047ca315f2e0..6ca9501eb173eb46c8337bd9b42c2960adafc456 100644 --- a/drivers/timer/altera_timer.c +++ b/drivers/timer/altera_timer.c @@ -12,6 +12,7 @@ #include <errno.h> #include <timer.h> #include <asm/io.h> +#include <linux/bitops.h> /* control register */ #define ALTERA_TIMER_CONT BIT(1) /* Continuous mode */ diff --git a/drivers/timer/atmel_pit_timer.c b/drivers/timer/atmel_pit_timer.c index 009af2f9298c7c2172c17e68e11c4bf5fc58968e..70511697fef74345b3b64f571a0063c9acaba6ea 100644 --- a/drivers/timer/atmel_pit_timer.c +++ b/drivers/timer/atmel_pit_timer.c @@ -9,6 +9,7 @@ #include <dm.h> #include <timer.h> #include <asm/io.h> +#include <linux/bitops.h> #define AT91_PIT_VALUE 0xfffff #define AT91_PIT_PITEN BIT(24) /* Timer Enabled */ diff --git a/drivers/timer/cadence-ttc.c b/drivers/timer/cadence-ttc.c index f4942a5500ca8d170bdd7f7af8aa74f295609276..e6b6dfe3765c3bec2c96a2662556fe221bb3e550 100644 --- a/drivers/timer/cadence-ttc.c +++ b/drivers/timer/cadence-ttc.c @@ -10,6 +10,7 @@ #include <init.h> #include <timer.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/err.h> #define CNT_CNTRL_RESET BIT(4) diff --git a/drivers/timer/mpc83xx_timer.c b/drivers/timer/mpc83xx_timer.c index 186fe2b45ac9c8decfb65e4c1fb9ed5f173a68ff..ad8bb28e8b39d7989df7b4f4ccb5b9bb7ad9faae 100644 --- a/drivers/timer/mpc83xx_timer.c +++ b/drivers/timer/mpc83xx_timer.c @@ -15,6 +15,7 @@ #include <timer.h> #include <watchdog.h> #include <asm/ptrace.h> +#include <linux/bitops.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/timer/mtk_timer.c b/drivers/timer/mtk_timer.c index e99135e5becded143c518bae58b20da28060f241..69ed521811d2a777d4eae9860b3442b54213d8cd 100644 --- a/drivers/timer/mtk_timer.c +++ b/drivers/timer/mtk_timer.c @@ -11,6 +11,7 @@ #include <dm.h> #include <timer.h> #include <asm/io.h> +#include <linux/bitops.h> #define MTK_GPT4_CTRL 0x40 #define MTK_GPT4_CLK 0x44 diff --git a/drivers/timer/nomadik-mtu-timer.c b/drivers/timer/nomadik-mtu-timer.c index 8648f1f1df90135581a98aea6a0c8b87eb2f6f0e..7ff921385a3305144a1bdf5b3bc3ec60963ff38e 100644 --- a/drivers/timer/nomadik-mtu-timer.c +++ b/drivers/timer/nomadik-mtu-timer.c @@ -16,6 +16,7 @@ #include <dm.h> #include <timer.h> #include <asm/io.h> +#include <linux/bitops.h> #define MTU_NUM_TIMERS 4 diff --git a/drivers/timer/omap-timer.c b/drivers/timer/omap-timer.c index a13fb7116569a0f2addf0a588288cd379eea8ffe..700c349f371631e6a38c47b6f3f3a97cee631a16 100644 --- a/drivers/timer/omap-timer.c +++ b/drivers/timer/omap-timer.c @@ -11,6 +11,7 @@ #include <timer.h> #include <asm/io.h> #include <asm/arch/clock.h> +#include <linux/bitops.h> /* Timer register bits */ #define TCLR_START BIT(0) /* Start=1 */ diff --git a/drivers/timer/ostm_timer.c b/drivers/timer/ostm_timer.c index 48a5055b05e12e65d2154245981edef10f329fc5..bea97159ebe748d80922d16abd118663eb4c64b1 100644 --- a/drivers/timer/ostm_timer.c +++ b/drivers/timer/ostm_timer.c @@ -11,6 +11,7 @@ #include <dm.h> #include <clk.h> #include <timer.h> +#include <linux/bitops.h> #define OSTM_CMP 0x00 #define OSTM_CNT 0x04 diff --git a/drivers/timer/stm32_timer.c b/drivers/timer/stm32_timer.c index 76d99a2b86597416863ae8f7a0ebe79237539154..c57fa3f557044a2823997ce0750887baeeef0d0b 100644 --- a/drivers/timer/stm32_timer.c +++ b/drivers/timer/stm32_timer.c @@ -10,6 +10,7 @@ #include <fdtdec.h> #include <timer.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <asm/io.h> diff --git a/drivers/tpm/tpm2_tis_sandbox.c b/drivers/tpm/tpm2_tis_sandbox.c index 522988795c0822a1300aadcf431e11e0f2f40009..41a15bd49fb1871499598d62e569890e27b162a8 100644 --- a/drivers/tpm/tpm2_tis_sandbox.c +++ b/drivers/tpm/tpm2_tis_sandbox.c @@ -9,6 +9,7 @@ #include <tpm-v2.h> #include <asm/state.h> #include <asm/unaligned.h> +#include <linux/bitops.h> #include <u-boot/crc.h> /* Hierarchies */ diff --git a/drivers/tpm/tpm2_tis_spi.c b/drivers/tpm/tpm2_tis_spi.c index 03918ed6a7435c31b3fce8f8d48a42d9141ae6ca..36016de4a60a6b012582d0714de4621081123fa9 100644 --- a/drivers/tpm/tpm2_tis_spi.c +++ b/drivers/tpm/tpm2_tis_spi.c @@ -19,6 +19,7 @@ #include <log.h> #include <spi.h> #include <tpm-v2.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/errno.h> #include <linux/compiler.h> diff --git a/drivers/ufs/cdns-platform.c b/drivers/ufs/cdns-platform.c index 41ee6a60c9644fb1cc85aa4bf31ff22ae2bbb533..1a7bb7bed8a777803bdbb26f862e3ae7ba82de70 100644 --- a/drivers/ufs/cdns-platform.c +++ b/drivers/ufs/cdns-platform.c @@ -10,6 +10,7 @@ #include <dm.h> #include <ufs.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/err.h> #include "ufs.h" diff --git a/drivers/ufs/ti-j721e-ufs.c b/drivers/ufs/ti-j721e-ufs.c index 4990fba6ebb278d5abfb727e0f6b0366ae3ba2ab..d875269760c187e9da2f73a42a504e7236afda68 100644 --- a/drivers/ufs/ti-j721e-ufs.c +++ b/drivers/ufs/ti-j721e-ufs.c @@ -8,6 +8,7 @@ #include <common.h> #include <dm.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/err.h> #define UFS_SS_CTRL 0x4 diff --git a/drivers/ufs/ufs.c b/drivers/ufs/ufs.c index 136dab5602ee3def9159a576f1d529b61284dfb3..87b4e5fc5605e9ba9a4dadc7381b67228f1375bb 100644 --- a/drivers/ufs/ufs.c +++ b/drivers/ufs/ufs.c @@ -19,6 +19,7 @@ #include <malloc.h> #include <hexdump.h> #include <scsi.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/dma-mapping.h> diff --git a/drivers/usb/cdns3/cdns3-ti.c b/drivers/usb/cdns3/cdns3-ti.c index 652cd5cb17ad9265b76bff036f348473be9eb4e5..cd7b2113ace828b8909cc0d2140a399b89b1b30d 100644 --- a/drivers/usb/cdns3/cdns3-ti.c +++ b/drivers/usb/cdns3/cdns3-ti.c @@ -10,6 +10,7 @@ #include <clk.h> #include <dm.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/io.h> #include <linux/usb/otg.h> #include <malloc.h> diff --git a/drivers/usb/cdns3/drd.h b/drivers/usb/cdns3/drd.h index 815b93f2fb4030d5cdec089cc99334028588ae7e..fffda7b43a49d8f75e6410d4175c4cecbd7e1b38 100644 --- a/drivers/usb/cdns3/drd.h +++ b/drivers/usb/cdns3/drd.h @@ -9,6 +9,7 @@ #ifndef __LINUX_CDNS3_DRD #define __LINUX_CDNS3_DRD +#include <linux/bitops.h> #include <linux/types.h> #include <linux/usb/otg.h> #include "core.h" diff --git a/drivers/usb/cdns3/ep0.c b/drivers/usb/cdns3/ep0.c index 4a6374c49285c042bf0913bb3f42b60eb7a046b1..a08c6945590f292e87f4ff71d2ccc1518ae3df44 100644 --- a/drivers/usb/cdns3/ep0.c +++ b/drivers/usb/cdns3/ep0.c @@ -13,6 +13,7 @@ #include <cpu_func.h> #include <asm/cache.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/usb/composite.h> #include <linux/iopoll.h> diff --git a/drivers/usb/cdns3/gadget.c b/drivers/usb/cdns3/gadget.c index f5b6e5be64f79b2ad12c734ea4f4da5536fd3d92..8f81d17ec8e34f9d44903c1e8b4d1c02483db218 100644 --- a/drivers/usb/cdns3/gadget.c +++ b/drivers/usb/cdns3/gadget.c @@ -59,6 +59,7 @@ #include <dm.h> #include <dm/device_compat.h> #include <dm/devres.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/err.h> #include <linux/usb/gadget.h> diff --git a/drivers/usb/cdns3/gadget.h b/drivers/usb/cdns3/gadget.h index 3d5242b331d030a75cbcb32ab9b63a539e930e33..8803fa48bd39999d48f5f22a328c7f7500a040bc 100644 --- a/drivers/usb/cdns3/gadget.h +++ b/drivers/usb/cdns3/gadget.h @@ -11,6 +11,7 @@ */ #ifndef __LINUX_CDNS3_GADGET #define __LINUX_CDNS3_GADGET +#include <linux/bitops.h> #include <linux/usb/gadget.h> /* diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h index 7f45a9c459794c616fb6c853f9ee2032cf54ae0a..2b4c51a406192f13ccc2c68c7344fc944796a3ce 100644 --- a/drivers/usb/dwc3/core.h +++ b/drivers/usb/dwc3/core.h @@ -17,6 +17,7 @@ #ifndef __DRIVERS_USB_DWC3_CORE_H #define __DRIVERS_USB_DWC3_CORE_H +#include <linux/bitops.h> #include <linux/ioport.h> #include <linux/usb/ch9.h> diff --git a/drivers/usb/dwc3/dwc3-generic.c b/drivers/usb/dwc3/dwc3-generic.c index e172e36852bdf103967ddd837167275240868c70..484e7a7b8c8bf6be176fd4d4d86923aabee73774 100644 --- a/drivers/usb/dwc3/dwc3-generic.c +++ b/drivers/usb/dwc3/dwc3-generic.c @@ -15,6 +15,7 @@ #include <dm/device-internal.h> #include <dm/lists.h> #include <dwc3-uboot.h> +#include <linux/bitops.h> #include <linux/usb/ch9.h> #include <linux/usb/gadget.h> #include <malloc.h> diff --git a/drivers/usb/dwc3/ti_usb_phy.c b/drivers/usb/dwc3/ti_usb_phy.c index ade3a7f85c03f8a3022c24c7a3a75e297264ee48..f8ab06482c9257e2632a2ad9e178c20a3b0992ab 100644 --- a/drivers/usb/dwc3/ti_usb_phy.c +++ b/drivers/usb/dwc3/ti_usb_phy.c @@ -21,6 +21,7 @@ #include <ti-usb-phy-uboot.h> #include <dm/device_compat.h> #include <dm/devres.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/ioport.h> #include <asm/io.h> diff --git a/drivers/usb/eth/lan75xx.c b/drivers/usb/eth/lan75xx.c index 94c6522a411785cd95a8bf7486adbc789fe54494..46b92e8d68bd325e81e6dc36f5aa94c98d01d3ce 100644 --- a/drivers/usb/eth/lan75xx.c +++ b/drivers/usb/eth/lan75xx.c @@ -6,6 +6,7 @@ #include <dm.h> #include <log.h> #include <usb.h> +#include <linux/bitops.h> #include <linux/mii.h> #include "usb_ether.h" #include "lan7x.h" diff --git a/drivers/usb/eth/lan78xx.c b/drivers/usb/eth/lan78xx.c index 1d1b64ef3e2c967b4c553677aeeab9a6c4a37e39..e34ad2603fbb594765db1a0fa5da7b98eb44d651 100644 --- a/drivers/usb/eth/lan78xx.c +++ b/drivers/usb/eth/lan78xx.c @@ -7,6 +7,7 @@ #include <log.h> #include <net.h> #include <usb.h> +#include <linux/bitops.h> #include "usb_ether.h" #include "lan7x.h" diff --git a/drivers/usb/eth/lan7x.h b/drivers/usb/eth/lan7x.h index 35965e9645a10d2baf56a071c06c3f333237a272..f71e8c7268c601da476c442f2bdf7492299f6099 100644 --- a/drivers/usb/eth/lan7x.h +++ b/drivers/usb/eth/lan7x.h @@ -6,6 +6,7 @@ #include <console.h> #include <time.h> #include <watchdog.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/errno.h> diff --git a/drivers/usb/eth/r8152.h b/drivers/usb/eth/r8152.h index b6df535a8324fde1e92ac14d75c9694a242ae0f7..09f1c6178b91335a88d68fa0e5a03694d8f2e179 100644 --- a/drivers/usb/eth/r8152.h +++ b/drivers/usb/eth/r8152.h @@ -7,6 +7,7 @@ #ifndef _RTL8152_ETH_H #define _RTL8152_ETH_H +#include <linux/bitops.h> #define R8152_BASE_NAME "r8152" #define PLA_IDR 0xc000 diff --git a/drivers/usb/eth/r8152_fw.c b/drivers/usb/eth/r8152_fw.c index d564de285f108a79225bd01db5b3f7bcefbc11aa..3ebbd533cc0d791580ecd12a91c46d7edb746bdd 100644 --- a/drivers/usb/eth/r8152_fw.c +++ b/drivers/usb/eth/r8152_fw.c @@ -6,6 +6,7 @@ #include <common.h> #include <dm.h> #include <errno.h> +#include <linux/bitops.h> #include <linux/delay.h> #include "usb_ether.h" #include "r8152.h" diff --git a/drivers/usb/gadget/atmel_usba_udc.c b/drivers/usb/gadget/atmel_usba_udc.c index dffa5117f9c94d391cd5a84680f1d5cb4842b6d7..7d51821497b46987ad4dca3b53705d81b68b4229 100644 --- a/drivers/usb/gadget/atmel_usba_udc.c +++ b/drivers/usb/gadget/atmel_usba_udc.c @@ -8,6 +8,7 @@ */ #include <common.h> +#include <linux/bitops.h> #include <linux/errno.h> #include <asm/gpio.h> #include <asm/hardware.h> diff --git a/drivers/usb/gadget/dwc2_udc_otg_regs.h b/drivers/usb/gadget/dwc2_udc_otg_regs.h index 434db5ba39ad4b1d12b6ebf8776fcdd7fb7f69fa..2eda5c372062291cadc51e214c7045e000462140 100644 --- a/drivers/usb/gadget/dwc2_udc_otg_regs.h +++ b/drivers/usb/gadget/dwc2_udc_otg_regs.h @@ -11,6 +11,7 @@ #define __ASM_ARCH_REGS_USB_OTG_HS_H /* USB2.0 OTG Controller register */ +#include <linux/bitops.h> struct dwc2_usbotg_phy { u32 phypwr; u32 phyclk; diff --git a/drivers/usb/host/ehci.h b/drivers/usb/host/ehci.h index 66c1d61dbf28109f3ed82a9a9387311e6e87c182..8e0755423a9673137e60c0c9a4cb270e4c89dbff 100644 --- a/drivers/usb/host/ehci.h +++ b/drivers/usb/host/ehci.h @@ -298,4 +298,5 @@ extern struct dm_usb_ops ehci_usb_ops; int ehci_setup_phy(struct udevice *dev, struct phy *phy, int index); int ehci_shutdown_phy(struct udevice *dev, struct phy *phy); +#include <linux/bitops.h> #endif /* USB_EHCI_H */ diff --git a/drivers/usb/host/r8a66597.h b/drivers/usb/host/r8a66597.h index b6110d6b3f44deff42f1b3707b6da44c788d4faa..625d4938cceeda36ab66c5f254686b9506d977f7 100644 --- a/drivers/usb/host/r8a66597.h +++ b/drivers/usb/host/r8a66597.h @@ -8,6 +8,7 @@ #ifndef __R8A66597_H__ #define __R8A66597_H__ +#include <linux/bitops.h> #define SYSCFG0 0x00 #define SYSCFG1 0x02 #define SYSSTS0 0x04 diff --git a/drivers/usb/host/xhci-rcar.c b/drivers/usb/host/xhci-rcar.c index b3675bb1db2cc7f3ffb4a3d6783d387f2731514c..4964697f27bc528e0dd41a8bffcba67768313fdd 100644 --- a/drivers/usb/host/xhci-rcar.c +++ b/drivers/usb/host/xhci-rcar.c @@ -14,6 +14,7 @@ #include <usb.h> #include <wait_bit.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <usb/xhci.h> #include "xhci-rcar-r8a779x_usb3_v3.h" diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index 963cc3c3c532175b9e7dcc99b66cf465e8dc8635..ebd29545715b95205f1bfc45a35b002f7ee9b126 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c @@ -29,6 +29,7 @@ #include <watchdog.h> #include <asm/cache.h> #include <asm/unaligned.h> +#include <linux/bitops.h> #include <linux/bug.h> #include <linux/delay.h> #include <linux/errno.h> diff --git a/drivers/usb/musb-new/musb_core.c b/drivers/usb/musb-new/musb_core.c index 8e0e57cae887deefce769c56ce10649188af6ca1..961de99795e91da4555a4bc957aa719b27925058 100644 --- a/drivers/usb/musb-new/musb_core.c +++ b/drivers/usb/musb-new/musb_core.c @@ -81,6 +81,7 @@ #else #include <common.h> #include <usb.h> +#include <linux/bitops.h> #include <linux/bug.h> #include <linux/errno.h> #include <linux/usb/ch9.h> diff --git a/drivers/usb/musb-new/pic32.c b/drivers/usb/musb-new/pic32.c index 66e8e9ce886f7708a2ea84655ec59f99731b5f05..74a841af4603f34d02cdf58ee7999f6ac48541cd 100644 --- a/drivers/usb/musb-new/pic32.c +++ b/drivers/usb/musb-new/pic32.c @@ -11,6 +11,7 @@ #include <common.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/usb/musb.h> #include "linux-compat.h" diff --git a/drivers/usb/musb-new/sunxi.c b/drivers/usb/musb-new/sunxi.c index a29d10d3354575ae6bb0be6450882b16917abd66..53c336fc3f5c6e7af70f58974c5eece71a1736f9 100644 --- a/drivers/usb/musb-new/sunxi.c +++ b/drivers/usb/musb-new/sunxi.c @@ -30,6 +30,7 @@ #include <dm/device_compat.h> #include <dm/lists.h> #include <dm/root.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/usb/musb.h> #include "linux-compat.h" diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index c6d47bef56a94b428fb192fdd90b78577ee2e124..147b2eb929fbd73cc91b2a9423b408a22f013bfb 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c @@ -9,6 +9,7 @@ */ #include <common.h> +#include <linux/bitops.h> #include "musb_core.h" struct musb_regs *musbr; diff --git a/drivers/usb/phy/rockchip_usb2_phy.c b/drivers/usb/phy/rockchip_usb2_phy.c index 6a60523e0f8432a1a0d96b82b9946e5b7a634f42..f1cf9160d5657545dc4375f0cdfd47b5b68a9a3e 100644 --- a/drivers/usb/phy/rockchip_usb2_phy.c +++ b/drivers/usb/phy/rockchip_usb2_phy.c @@ -7,6 +7,7 @@ #include <hang.h> #include <log.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/delay.h> #include "../gadget/dwc2_udc_otg_priv.h" diff --git a/drivers/video/anx98xx-edp.h b/drivers/video/anx98xx-edp.h index 64269c30bd7c8c847cd5a468321e85de230aa0f7..ece36d41eee22c6d3a9c61a95aa42d8fee144630 100644 --- a/drivers/video/anx98xx-edp.h +++ b/drivers/video/anx98xx-edp.h @@ -6,6 +6,7 @@ /* Registers at i2c address 0x38 */ +#include <linux/bitops.h> #define ANX9804_HDCP_CONTROL_0_REG 0x01 #define ANX9804_SYS_CTRL1_REG 0x80 diff --git a/drivers/video/dw_mipi_dsi.c b/drivers/video/dw_mipi_dsi.c index e8a3af7e60839ed62d63611f97ad2c759dabf18f..b7bfbb5e5011bf6302e569b05f487f59ea5096c3 100644 --- a/drivers/video/dw_mipi_dsi.c +++ b/drivers/video/dw_mipi_dsi.c @@ -20,6 +20,7 @@ #include <asm/arch/gpio.h> #include <dm/device-internal.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/iopoll.h> #include <video_bridge.h> diff --git a/drivers/video/meson/meson_dw_hdmi.c b/drivers/video/meson/meson_dw_hdmi.c index 288b906544569965071bad48537784ca1f7ea6a3..7b2ff94eba585bacd949c1318c9ce5ebcedcee8d 100644 --- a/drivers/video/meson/meson_dw_hdmi.c +++ b/drivers/video/meson/meson_dw_hdmi.c @@ -13,6 +13,7 @@ #include <dw_hdmi.h> #include <dm/device-internal.h> #include <dm/uclass-internal.h> +#include <linux/bitops.h> #include <power/regulator.h> #include <clk.h> #include <linux/delay.h> diff --git a/drivers/video/meson/meson_dw_hdmi.h b/drivers/video/meson/meson_dw_hdmi.h index b13beb1f75af74fa8c86627cceb60015d28607b9..d507e59c0642e20327c09a81c62d0ffdd4ecbed2 100644 --- a/drivers/video/meson/meson_dw_hdmi.h +++ b/drivers/video/meson/meson_dw_hdmi.h @@ -24,6 +24,7 @@ * Bit 0 RW sw_reset_core: connects to IP's ~irstz. 1=Apply reset; * 0=Release from reset. Default 1. */ +#include <linux/bitops.h> #define HDMITX_TOP_SW_RESET (0x000) /* diff --git a/drivers/video/meson/meson_plane.c b/drivers/video/meson/meson_plane.c index 8edf451f13f2f9793b2f8f054a5f628903f97357..b367276f23734b0421856491d20443cf43248258 100644 --- a/drivers/video/meson/meson_plane.c +++ b/drivers/video/meson/meson_plane.c @@ -10,6 +10,7 @@ #include <dm.h> #include <asm/io.h> #include <linux/bitfield.h> +#include <linux/bitops.h> #include "meson_vpu.h" diff --git a/drivers/video/meson/meson_registers.h b/drivers/video/meson/meson_registers.h index 39e8ec86395691d602cf1ded9f77d91448830afa..f6a5d1ac8ce0d847a22aedbf9c5954d3fd3f1082 100644 --- a/drivers/video/meson/meson_registers.h +++ b/drivers/video/meson/meson_registers.h @@ -7,6 +7,7 @@ #define __MESON_REGISTERS_H /* Shift all registers by 2 */ +#include <linux/bitops.h> #define _REG(reg) ((reg) << 2) #define writel_bits(mask, val, addr) \ diff --git a/drivers/video/meson/meson_vclk.c b/drivers/video/meson/meson_vclk.c index 3b5b73b7c3beed44068419cd3e3d1c300e365ec1..cd1e69040f75686c62656c7358504b7fcfd56da8 100644 --- a/drivers/video/meson/meson_vclk.c +++ b/drivers/video/meson/meson_vclk.c @@ -9,6 +9,7 @@ #include <common.h> #include <dm.h> #include <edid.h> +#include <linux/bitops.h> #include "meson_vpu.h" #include <log.h> #include <linux/iopoll.h> diff --git a/drivers/video/meson/meson_vpu_init.c b/drivers/video/meson/meson_vpu_init.c index 8408c59eaa103c7caf375eceb90d6c276468f45c..c9808e1c63176a7e2c846ab13bb88ec73760fd0c 100644 --- a/drivers/video/meson/meson_vpu_init.c +++ b/drivers/video/meson/meson_vpu_init.c @@ -11,6 +11,7 @@ #include <common.h> #include <dm.h> #include <asm/io.h> +#include <linux/bitops.h> #include "meson_vpu.h" diff --git a/drivers/video/rockchip/rk_vop.c b/drivers/video/rockchip/rk_vop.c index 45385b175b8b364819db48f7507333dd31f3539f..9032eb430e7f63a2c0661cf4edb7bc6d98c77ed9 100644 --- a/drivers/video/rockchip/rk_vop.c +++ b/drivers/video/rockchip/rk_vop.c @@ -20,6 +20,7 @@ #include <asm/arch-rockchip/vop_rk3288.h> #include <dm/device-internal.h> #include <dm/uclass-internal.h> +#include <linux/bitops.h> #include <linux/err.h> #include <power/regulator.h> #include "rk_vop.h" diff --git a/drivers/video/stm32/stm32_dsi.c b/drivers/video/stm32/stm32_dsi.c index fa4efdb29873d8333b273d5e8e88bb506c2224b3..04796435f117dcf39ca205302087d4421ab6650c 100644 --- a/drivers/video/stm32/stm32_dsi.c +++ b/drivers/video/stm32/stm32_dsi.c @@ -23,6 +23,7 @@ #include <dm/device-internal.h> #include <dm/device_compat.h> #include <dm/lists.h> +#include <linux/bitops.h> #include <linux/iopoll.h> #include <power/regulator.h> diff --git a/drivers/video/stm32/stm32_ltdc.c b/drivers/video/stm32/stm32_ltdc.c index ff48fd7af92dcee4912fe26ab793ef482c6446a0..2f3427a32ee68aae3a39314bfdcca86e8ee140ac 100644 --- a/drivers/video/stm32/stm32_ltdc.c +++ b/drivers/video/stm32/stm32_ltdc.c @@ -18,6 +18,7 @@ #include <asm/arch/gpio.h> #include <dm/device-internal.h> #include <dm/device_compat.h> +#include <linux/bitops.h> struct stm32_ltdc_priv { void __iomem *regs; diff --git a/drivers/video/sunxi/sunxi_de2.c b/drivers/video/sunxi/sunxi_de2.c index adc8a98714f992c271dc3afd2b8efa11eebe5d95..b657e163f06abbeee5b5585c02b63a2876129865 100644 --- a/drivers/video/sunxi/sunxi_de2.c +++ b/drivers/video/sunxi/sunxi_de2.c @@ -21,6 +21,7 @@ #include <asm/arch/display2.h> #include <dm/device-internal.h> #include <dm/uclass-internal.h> +#include <linux/bitops.h> #include "simplefb_common.h" DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/video/sunxi/sunxi_dw_hdmi.c b/drivers/video/sunxi/sunxi_dw_hdmi.c index cf2d6a772be69d38f7048a80363c6105bd7a572b..01d4b7a11c96026a87b3b271cc8ea4cd431945b1 100644 --- a/drivers/video/sunxi/sunxi_dw_hdmi.c +++ b/drivers/video/sunxi/sunxi_dw_hdmi.c @@ -15,6 +15,7 @@ #include <asm/io.h> #include <asm/arch/clock.h> #include <asm/arch/lcdc.h> +#include <linux/bitops.h> #include <linux/delay.h> struct sunxi_dw_hdmi_priv { diff --git a/drivers/video/tda19988.c b/drivers/video/tda19988.c index 4223d5f789bc3747921eaec42e8e24ca7c3cb623..191cda3ce763a40b65d0642b6996ed477bff959a 100644 --- a/drivers/video/tda19988.c +++ b/drivers/video/tda19988.c @@ -9,6 +9,7 @@ #include <dm.h> #include <display.h> #include <i2c.h> +#include <linux/bitops.h> #include <linux/delay.h> /* diff --git a/drivers/virtio/virtio_mmio.h b/drivers/virtio/virtio_mmio.h index b3408828a5926d07d8063e035764c30fdbc348ae..b446674cccef8913df1f6ee4ce24975687b3a11e 100644 --- a/drivers/virtio/virtio_mmio.h +++ b/drivers/virtio/virtio_mmio.h @@ -12,6 +12,7 @@ /* Control registers */ /* Magic value ("virt" string) - Read Only */ +#include <linux/bitops.h> #define VIRTIO_MMIO_MAGIC_VALUE 0x000 /* Virtio device version - Read Only */ diff --git a/drivers/w1/mxc_w1.c b/drivers/w1/mxc_w1.c index 1881a3b1f14ca4978917b8418efca1876392d0c5..5bf08653a90225223c047f3a75d5b64540793b74 100644 --- a/drivers/w1/mxc_w1.c +++ b/drivers/w1/mxc_w1.c @@ -21,6 +21,7 @@ #include <common.h> #include <dm.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <linux/io.h> #include <w1.h> diff --git a/drivers/watchdog/designware_wdt.c b/drivers/watchdog/designware_wdt.c index 1024a04596ff291407d02c5a904a82fbf816fcc1..12f09a7a3920694e6709afb5fbd58aaf8badc503 100644 --- a/drivers/watchdog/designware_wdt.c +++ b/drivers/watchdog/designware_wdt.c @@ -10,6 +10,7 @@ #include <wdt.h> #include <asm/io.h> #include <asm/utils.h> +#include <linux/bitops.h> #define DW_WDT_CR 0x00 #define DW_WDT_TORR 0x04 diff --git a/drivers/watchdog/mt7621_wdt.c b/drivers/watchdog/mt7621_wdt.c index 38866141e4a96f81c63a1ea4b6cf6d27c9a212aa..1cd8866ef8d83317f08747b9a2bf693d687d2942 100644 --- a/drivers/watchdog/mt7621_wdt.c +++ b/drivers/watchdog/mt7621_wdt.c @@ -12,6 +12,7 @@ #include <common.h> #include <dm.h> #include <wdt.h> +#include <linux/bitops.h> #include <linux/io.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/watchdog/mtk_wdt.c b/drivers/watchdog/mtk_wdt.c index b3c597e1d03621b72e95a28582902cc3e81b0971..a636cff354d8594ab06ed2df9293b0606890dc46 100644 --- a/drivers/watchdog/mtk_wdt.c +++ b/drivers/watchdog/mtk_wdt.c @@ -11,6 +11,7 @@ #include <hang.h> #include <wdt.h> #include <asm/io.h> +#include <linux/bitops.h> #define MTK_WDT_MODE 0x00 #define MTK_WDT_LENGTH 0x04 diff --git a/drivers/watchdog/orion_wdt.c b/drivers/watchdog/orion_wdt.c index 581e1f16938158301874b12b3b2081ebbccfe309..d33e2ac3dc19005dd045df17df40e262a47b9d94 100644 --- a/drivers/watchdog/orion_wdt.c +++ b/drivers/watchdog/orion_wdt.c @@ -17,6 +17,7 @@ #include <clk.h> #include <log.h> #include <wdt.h> +#include <linux/bitops.h> #include <linux/kernel.h> #include <asm/io.h> #include <asm/arch/cpu.h> diff --git a/drivers/watchdog/stm32mp_wdt.c b/drivers/watchdog/stm32mp_wdt.c index 2d509a05224f4b48ef516ba64f00c469b35d6f33..2d8bfc09a0d7b3c83a3fe64a9bb5c9c16d74289c 100644 --- a/drivers/watchdog/stm32mp_wdt.c +++ b/drivers/watchdog/stm32mp_wdt.c @@ -10,6 +10,7 @@ #include <syscon.h> #include <wdt.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/iopoll.h> /* IWDG registers */ diff --git a/env/env.c b/env/env.c index 2084538f28f4cfba6510798b01f390723e4bd234..dcc25c030b239944ccea2c05e4ed4a93b1ecdcc7 100644 --- a/env/env.c +++ b/env/env.c @@ -8,6 +8,7 @@ #include <env.h> #include <env_internal.h> #include <log.h> +#include <linux/bitops.h> #include <linux/bug.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/fs/ubifs/lpt_commit.c b/fs/ubifs/lpt_commit.c index 32938a8ffe433d6eda538519a2e2f13e673eebeb..897d0014306c32b6e8427469db50d9ed51fa2fbb 100644 --- a/fs/ubifs/lpt_commit.c +++ b/fs/ubifs/lpt_commit.c @@ -20,6 +20,7 @@ #include <linux/slab.h> #include <linux/random.h> #else +#include <linux/bitops.h> #include <linux/compat.h> #include <linux/err.h> #include "crc16.h" diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c index 2f6b25d33812b943c7240f8d46cfe281e22bd3dc..e3a4c0bca27055791f7f4119b3e4b83d0d96fe1c 100644 --- a/fs/ubifs/super.c +++ b/fs/ubifs/super.c @@ -32,6 +32,7 @@ #include <common.h> #include <malloc.h> #include <memalign.h> +#include <linux/bitops.h> #include <linux/bug.h> #include <linux/log2.h> #include <linux/stat.h> diff --git a/fs/ubifs/tnc.c b/fs/ubifs/tnc.c index 41c7d5666ff07907c00a9805f4640fe8c289c39c..e8b8f168380464ae015f20d328a9b0ab43b3209d 100644 --- a/fs/ubifs/tnc.c +++ b/fs/ubifs/tnc.c @@ -25,6 +25,7 @@ #include <linux/slab.h> #include <u-boot/crc.h> #else +#include <linux/bitops.h> #include <linux/bug.h> #include <linux/compat.h> #include <linux/err.h> diff --git a/include/acpi/acpi_table.h b/include/acpi/acpi_table.h index 3681c5c8ed91039de7fb4a708e026376d39ec9d9..fe9b29f3f82d5d22bb34e09d580b26b7dd559f91 100644 --- a/include/acpi/acpi_table.h +++ b/include/acpi/acpi_table.h @@ -13,6 +13,8 @@ #ifndef __ACPI_TABLE_H__ #define __ACPI_TABLE_H__ +#include <linux/bitops.h> + #define RSDP_SIG "RSD PTR " /* RSDP pointer signature */ #define OEM_ID "U-BOOT" /* U-Boot */ #define OEM_TABLE_ID "U-BOOTBL" /* U-Boot Table */ diff --git a/include/asm-generic/gpio.h b/include/asm-generic/gpio.h index 859f41a0d41bed97f9341c637763f7a9a398453d..e16c2f31d9d2a5895ddd854e03805e5e40752c3a 100644 --- a/include/asm-generic/gpio.h +++ b/include/asm-generic/gpio.h @@ -8,6 +8,7 @@ #define _ASM_GENERIC_GPIO_H_ #include <dm/ofnode.h> +#include <linux/bitops.h> struct ofnode_phandle_args; diff --git a/include/bitfield.h b/include/bitfield.h index 579a69c856dac6affb982e2973a199dd1f31793a..d3ceeedccda681b884f63422d0a49dc4804562c0 100644 --- a/include/bitfield.h +++ b/include/bitfield.h @@ -36,6 +36,7 @@ * tables which describe all bitfields in all registers. */ +#include <linux/bitops.h> #include <linux/types.h> /* Produces a mask of set bits covering a range of a uint value */ diff --git a/include/common.h b/include/common.h index f7c0f5724a33376c341135452d5ce5da29419cf3..f0679ac70544fdf2f89812b8f2c9ff4d8334cf39 100644 --- a/include/common.h +++ b/include/common.h @@ -16,7 +16,6 @@ #include <config.h> #include <errno.h> #include <time.h> -#include <linux/bitops.h> #include <linux/types.h> #include <linux/printk.h> #include <linux/string.h> diff --git a/include/configs/gardena-smart-gateway-at91sam.h b/include/configs/gardena-smart-gateway-at91sam.h index f5ee65cb8a02a90f105b2157893ed326f928f906..78d213624825b63a51ea4e82690060a45cc72378 100644 --- a/include/configs/gardena-smart-gateway-at91sam.h +++ b/include/configs/gardena-smart-gateway-at91sam.h @@ -9,6 +9,10 @@ #ifndef __CONFIG_H__ #define __CONFIG_H__ +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> +#endif + /* ARM asynchronous clock */ #define CONFIG_SYS_AT91_SLOW_CLOCK 32768 #define CONFIG_SYS_AT91_MAIN_CLOCK 12000000 /* 12 MHz crystal */ diff --git a/include/dma.h b/include/dma.h index 5b247b5b0613a22f3b227ae1715f7cfbff0f989c..6ff591977b1445f46d1c80ab74b53c2821417c83 100644 --- a/include/dma.h +++ b/include/dma.h @@ -9,6 +9,7 @@ #ifndef _DMA_H_ #define _DMA_H_ +#include <linux/bitops.h> #include <linux/errno.h> #include <linux/types.h> diff --git a/include/dwc3-sti-glue.h b/include/dwc3-sti-glue.h index e2856f12683603739080492b679fd46ff21d7477..3989a9bb5369d3016e2e1299d6a44c2f60db8d56 100644 --- a/include/dwc3-sti-glue.h +++ b/include/dwc3-sti-glue.h @@ -8,6 +8,7 @@ #define __DWC3_STI_UBOOT_H_ /* glue registers */ +#include <linux/bitops.h> #define CLKRST_CTRL 0x00 #define AUX_CLK_EN BIT(0) #define SW_PIPEW_RESET_N BIT(4) diff --git a/include/dwmmc.h b/include/dwmmc.h index 58110aa3e7183cd43b9ab5fc38386e78e6406d9b..d8a8355a0adaf4fa6606ca4864f109c84d4e2c74 100644 --- a/include/dwmmc.h +++ b/include/dwmmc.h @@ -10,6 +10,7 @@ #include <asm/cache.h> #include <asm/io.h> #include <mmc.h> +#include <linux/bitops.h> #define DWMCI_CTRL 0x000 #define DWMCI_PWREN 0x004 diff --git a/include/faraday/ftpci100.h b/include/faraday/ftpci100.h index b4a43f82e5ec47fa04d2979ebeecd63cb15776a2..8801bd13508d7750baf16428ae647bb8c86f08fb 100644 --- a/include/faraday/ftpci100.h +++ b/include/faraday/ftpci100.h @@ -11,6 +11,7 @@ #define __FTPCI100_H /* AHB Control Registers */ +#include <linux/bitops.h> struct ftpci100_ahbc { unsigned int iosize; /* 0x00 - I/O Space Size Signal */ unsigned int prot; /* 0x04 - AHB Protection */ diff --git a/include/faraday/ftsdc010.h b/include/faraday/ftsdc010.h index d3a359ab75b257e49874db1f550d0dc066108867..30726dab85d31396dfa36bc45c1f48906a8d6465 100644 --- a/include/faraday/ftsdc010.h +++ b/include/faraday/ftsdc010.h @@ -12,6 +12,7 @@ #ifndef __ASSEMBLY__ /* sd controller register */ +#include <linux/bitops.h> struct ftsdc010_mmc { unsigned int cmd; /* 0x00 - command reg */ unsigned int argu; /* 0x04 - argument reg */ diff --git a/include/faraday/ftsdmc021.h b/include/faraday/ftsdmc021.h index 3c979ced27a524b079be3e1c069affdcf000847b..e0e5eb339e10e9f898f3a9eac8efa3f453299ea6 100644 --- a/include/faraday/ftsdmc021.h +++ b/include/faraday/ftsdmc021.h @@ -14,6 +14,7 @@ #define __FTSDMC021_H #ifndef __ASSEMBLY__ +#include <linux/bitops.h> struct ftsdmc021 { unsigned int tp1; /* 0x00 - SDRAM Timing Parameter 1 */ unsigned int tp2; /* 0x04 - SDRAM Timing Parameter 2 */ diff --git a/include/fsl-mc/fsl_mc.h b/include/fsl-mc/fsl_mc.h index a4d7d85fce7d64c85365ed2bdeeb574d8894f934..6cbcd39f125c53bcf82e16dfcc93aeb1c3bc8bc4 100644 --- a/include/fsl-mc/fsl_mc.h +++ b/include/fsl-mc/fsl_mc.h @@ -7,6 +7,7 @@ #define __FSL_MC_H__ #include <common.h> +#include <linux/bitops.h> #define MC_CCSR_BASE_ADDR \ ((struct mc_ccsr_registers __iomem *)0x8340000) diff --git a/include/linux/bitops.h b/include/linux/bitops.h index a07c70fd485804c8544097d6ba52dbef395e96e5..6b509dce58a4fc6ffa1b0e70d938836da8014cb7 100644 --- a/include/linux/bitops.h +++ b/include/linux/bitops.h @@ -1,6 +1,8 @@ #ifndef _LINUX_BITOPS_H #define _LINUX_BITOPS_H +#ifndef USE_HOSTCC + #include <asm/types.h> #include <asm-generic/bitsperlong.h> #include <linux/compiler.h> @@ -216,4 +218,6 @@ static inline void generic_clear_bit(int nr, volatile unsigned long *addr) *p &= ~mask; } +#endif /* !USE_HOSTCC */ + #endif diff --git a/include/linux/soc/ti/k3-navss-ringacc.h b/include/linux/soc/ti/k3-navss-ringacc.h index 487dfe985957959be1c95b1b4f812ac1f91357a2..7b027f8bd4b7fed96d24803153ba1c5e4c43988e 100644 --- a/include/linux/soc/ti/k3-navss-ringacc.h +++ b/include/linux/soc/ti/k3-navss-ringacc.h @@ -9,6 +9,7 @@ #define __SOC_TI_K3_NAVSS_RINGACC_API_H_ #include <dm/ofnode.h> +#include <linux/bitops.h> /** * enum k3_nav_ring_mode - &struct k3_nav_ring_cfg mode diff --git a/include/linux/soc/ti/ti_sci_protocol.h b/include/linux/soc/ti/ti_sci_protocol.h index 8c4863efe19167c019e539b77cf2856bab119e92..eb916ba10194bc51479be53d9665271cf95af4b1 100644 --- a/include/linux/soc/ti/ti_sci_protocol.h +++ b/include/linux/soc/ti/ti_sci_protocol.h @@ -20,6 +20,7 @@ * @firmware_revision: Firmware revision (not usually used). * @firmware_description: Firmware description (not usually used). */ +#include <linux/bitops.h> struct ti_sci_version_info { u8 abi_major; u8 abi_minor; diff --git a/include/mipi_dsi.h b/include/mipi_dsi.h index f4a63b47f33a2add60a91438c90c71710c130174..83c5163cf8e3d7b82f48f23710bcf97811d262ce 100644 --- a/include/mipi_dsi.h +++ b/include/mipi_dsi.h @@ -16,6 +16,7 @@ #define MIPI_DSI_H #include <mipi_display.h> +#include <linux/bitops.h> struct mipi_dsi_host; struct mipi_dsi_device; diff --git a/include/mmc.h b/include/mmc.h index 6a2e9739e00e6f5da69b32da37f2ba44e126e30b..82562193cc489cdfecab3136ef42f9123d041af3 100644 --- a/include/mmc.h +++ b/include/mmc.h @@ -9,6 +9,7 @@ #ifndef _MMC_H_ #define _MMC_H_ +#include <linux/bitops.h> #include <linux/list.h> #include <linux/sizes.h> #include <linux/compiler.h> diff --git a/include/net/pfe_eth/pfe/cbus/class_csr.h b/include/net/pfe_eth/pfe/cbus/class_csr.h index e2fece7aa1745d2176091759f1b2782dbc6329e5..80f1f96b4433a461d09923eaee6cb4f0f3cf1b48 100644 --- a/include/net/pfe_eth/pfe/cbus/class_csr.h +++ b/include/net/pfe_eth/pfe/cbus/class_csr.h @@ -12,6 +12,7 @@ * class_csr - block containing all the classifier control and status register. * Mapped on CBUS and accessible from all PE's and ARM. */ +#include <linux/bitops.h> #define CLASS_VERSION (CLASS_CSR_BASE_ADDR + 0x000) #define CLASS_TX_CTRL (CLASS_CSR_BASE_ADDR + 0x004) #define CLASS_INQ_PKTPTR (CLASS_CSR_BASE_ADDR + 0x010) diff --git a/include/net/pfe_eth/pfe/cbus/emac.h b/include/net/pfe_eth/pfe/cbus/emac.h index 53db8cc08f56ece46f56ae501d79a097c4b3b4cf..5dc21136877093a1fb6f43fcea3ab2cb3f10d6e0 100644 --- a/include/net/pfe_eth/pfe/cbus/emac.h +++ b/include/net/pfe_eth/pfe/cbus/emac.h @@ -7,6 +7,7 @@ #ifndef _EMAC_H_ #define _EMAC_H_ +#include <linux/bitops.h> #define EMAC_IEVENT_REG 0x004 #define EMAC_IMASK_REG 0x008 #define EMAC_R_DES_ACTIVE_REG 0x010 diff --git a/include/net/pfe_eth/pfe/cbus/hif.h b/include/net/pfe_eth/pfe/cbus/hif.h index 36722c5e07145c9dfec0f2ba1811e18c2cdb37d6..aa4951ec0e0de4a1901cc04b0aca63edf694a4eb 100644 --- a/include/net/pfe_eth/pfe/cbus/hif.h +++ b/include/net/pfe_eth/pfe/cbus/hif.h @@ -12,6 +12,7 @@ * hif - PFE hif block control and status register. * Mapped on CBUS and accessible from all PE's and ARM. */ +#include <linux/bitops.h> #define HIF_VERSION (HIF_BASE_ADDR + 0x00) #define HIF_TX_CTRL (HIF_BASE_ADDR + 0x04) #define HIF_TX_CURR_BD_ADDR (HIF_BASE_ADDR + 0x08) diff --git a/include/net/pfe_eth/pfe/cbus/tmu_csr.h b/include/net/pfe_eth/pfe/cbus/tmu_csr.h index 1e1abe26caaa8e6bc29b16092234e54f2afea15c..cfe8f8ce8fc4e2ff7ffe5fc6ee45705ee5b16c55 100644 --- a/include/net/pfe_eth/pfe/cbus/tmu_csr.h +++ b/include/net/pfe_eth/pfe/cbus/tmu_csr.h @@ -7,6 +7,7 @@ #ifndef _TMU_CSR_H_ #define _TMU_CSR_H_ +#include <linux/bitops.h> #define TMU_VERSION (TMU_CSR_BASE_ADDR + 0x000) #define TMU_INQ_WATERMARK (TMU_CSR_BASE_ADDR + 0x004) #define TMU_PHY_INQ_PKTPTR (TMU_CSR_BASE_ADDR + 0x008) diff --git a/include/net/pfe_eth/pfe/pfe_hw.h b/include/net/pfe_eth/pfe/pfe_hw.h index 5da676bf8b64b37ab4a8845f04d782f364463516..c69fc69130cc44e7333d8e44ce4d7558edb2a6b3 100644 --- a/include/net/pfe_eth/pfe/pfe_hw.h +++ b/include/net/pfe_eth/pfe/pfe_hw.h @@ -8,6 +8,7 @@ #define _PFE_H_ #include <elf.h> +#include <linux/bitops.h> #include "cbus.h" #define PFE_RESET_WA diff --git a/include/net/pfe_eth/pfe_eth.h b/include/net/pfe_eth/pfe_eth.h index 68b2e381b96662e6c78a2198570eead54d8ea8cd..116a2b2c1d1f5c60407c8d2cc3477ae27af4235d 100644 --- a/include/net/pfe_eth/pfe_eth.h +++ b/include/net/pfe_eth/pfe_eth.h @@ -7,6 +7,7 @@ #ifndef __PFE_ETH_H__ #define __PFE_ETH_H__ +#include <linux/bitops.h> #include <linux/sizes.h> #include <asm/io.h> #include <miiphy.h> diff --git a/include/pch.h b/include/pch.h index 0b44b66df9f1aaa259f9f06c6d3f5905e421d415..620566819ce3d937691699eb17e615eac74d1599 100644 --- a/include/pch.h +++ b/include/pch.h @@ -7,6 +7,7 @@ #ifndef __pch_h #define __pch_h +#include <linux/bitops.h> #define PCH_RCBA 0xf0 #define BIOS_CTRL_BIOSWE BIT(0) diff --git a/include/power/stpmic1.h b/include/power/stpmic1.h index 1493a677f048e6e8f5a90baa71c61def4b2f5dc8..d3567df326cfb9a212ac01beb0efd391a97cdef4 100644 --- a/include/power/stpmic1.h +++ b/include/power/stpmic1.h @@ -6,6 +6,7 @@ #ifndef __PMIC_STPMIC1_H_ #define __PMIC_STPMIC1_H_ +#include <linux/bitops.h> #define STPMIC1_MAIN_CR 0x10 #define STPMIC1_BUCKS_MRST_CR 0x18 #define STPMIC1_LDOS_MRST_CR 0x1a diff --git a/include/sdhci.h b/include/sdhci.h index 0ef8c2ed62d815d5edde433d81e38525705d393a..94fc3ed56acefb605ec7bc0192a5d2557545a5dd 100644 --- a/include/sdhci.h +++ b/include/sdhci.h @@ -9,6 +9,7 @@ #ifndef __SDHCI_HW_H #define __SDHCI_HW_H +#include <linux/bitops.h> #include <linux/types.h> #include <asm/io.h> #include <mmc.h> diff --git a/include/spi.h b/include/spi.h index 2b4929fc79d8bf44c9a27ef72731ad5c236e7ca8..5cc6d6e0087fa5b00eff5d9489ff4838cf2e0a6a 100644 --- a/include/spi.h +++ b/include/spi.h @@ -10,6 +10,7 @@ #define _SPI_H_ #include <common.h> +#include <linux/bitops.h> /* SPI mode flags */ #define SPI_CPHA BIT(0) /* clock phase */ diff --git a/include/tee.h b/include/tee.h index 02bcd9e703820e0b7a6665969753f6fef29ce6e6..8207d0c02afb304465ff2d1f8fef54b9932fd92d 100644 --- a/include/tee.h +++ b/include/tee.h @@ -6,6 +6,7 @@ #ifndef __TEE_H #define __TEE_H +#include <linux/bitops.h> #define TEE_UUID_LEN 16 #define TEE_GEN_CAP_GP BIT(0) /* GlobalPlatform compliant TEE */ diff --git a/include/tpm-v1.h b/include/tpm-v1.h index 45b7a4831d46a6b8903b6fe59c0e7f4f4cda0821..59ad4aecf42cfdaa37c8c963c74ddd935624cecf 100644 --- a/include/tpm-v1.h +++ b/include/tpm-v1.h @@ -8,6 +8,7 @@ #define __TPM_V1_H #include <tpm-common.h> +#include <linux/bitops.h> /* Useful constants */ enum { diff --git a/include/virtio.h b/include/virtio.h index 46f9efb7321074d81302f55fdc88ea418d73b14e..10a9c073ba1183547054b3cf5ec4bcebc60f85a0 100644 --- a/include/virtio.h +++ b/include/virtio.h @@ -20,6 +20,7 @@ #ifndef __VIRTIO_H__ #define __VIRTIO_H__ +#include <linux/bitops.h> #include <linux/bug.h> #define VIRTIO_ID_NET 1 /* virtio net */ #define VIRTIO_ID_BLOCK 2 /* virtio block */ diff --git a/include/vsc9953.h b/include/vsc9953.h index fe072da5164d012d6b6a509740ca235adea9d514..5d6fc7716c7b23c187c990c5abb1ffad5472764e 100644 --- a/include/vsc9953.h +++ b/include/vsc9953.h @@ -11,6 +11,7 @@ #include <config.h> #include <miiphy.h> #include <asm/types.h> +#include <linux/bitops.h> #define VSC9953_OFFSET (CONFIG_SYS_CCSRBAR_DEFAULT + 0x800000) diff --git a/include/zynqmppl.h b/include/zynqmppl.h index 5214db99fba769b2ae8dbeba111cefacc7f2cced..a0a52ec4c1d355521cc51a30ed446f739f6a001e 100644 --- a/include/zynqmppl.h +++ b/include/zynqmppl.h @@ -8,6 +8,7 @@ #define _ZYNQMPPL_H_ #include <xilinx.h> +#include <linux/bitops.h> #define ZYNQMP_SIP_SVC_CSU_DMA_CHIPID 0xC2000018 #define ZYNQMP_SIP_SVC_PM_FPGA_LOAD 0xC2000016 diff --git a/lib/div64.c b/lib/div64.c index 62933c92c4fb0638101e09fcaf78045c8a07e1dd..779d7521f69fdeab66d92e3dc736004eaefe306e 100644 --- a/lib/div64.c +++ b/lib/div64.c @@ -17,6 +17,7 @@ * or by defining a preprocessor macro in arch/include/asm/div64.h. */ +#include <linux/bitops.h> #include <linux/compat.h> #include <linux/kernel.h> #include <linux/math64.h> diff --git a/lib/efi_loader/efi_variable.c b/lib/efi_loader/efi_variable.c index 85db96bd147b0a6c9551a4b731dbb525a11518d5..fc7ae73978ebe95fee0a34125956fa6aae59ada4 100644 --- a/lib/efi_loader/efi_variable.c +++ b/lib/efi_loader/efi_variable.c @@ -15,6 +15,7 @@ #include <search.h> #include <uuid.h> #include <crypto/pkcs7_parser.h> +#include <linux/bitops.h> #include <linux/compat.h> #include <u-boot/crc.h> diff --git a/lib/tpm-v2.c b/lib/tpm-v2.c index f89592d6e2f33166e31b8e5975ac838e1548577f..5a039f65d139787f68df6e57bc4322f3b1ffddfb 100644 --- a/lib/tpm-v2.c +++ b/lib/tpm-v2.c @@ -8,6 +8,7 @@ #include <dm.h> #include <tpm-common.h> #include <tpm-v2.h> +#include <linux/bitops.h> #include "tpm-utils.h" u32 tpm2_startup(struct udevice *dev, enum tpm2_startup_types mode)