diff --git a/arch/arm/mach-omap/include/mach/sys_info.h b/arch/arm/mach-omap/include/mach/sys_info.h index fbac9b5..e36f49d 100644 --- a/arch/arm/mach-omap/include/mach/sys_info.h +++ b/arch/arm/mach-omap/include/mach/sys_info.h @@ -90,7 +90,7 @@ u32 get_cpu_rev(void); u32 get_sdr_cs_size(u32 offset); u32 get_sdr_cs1_base(void); -inline u32 get_sysboot_value(void); +u32 get_sysboot_value(void); u32 get_boot_type(void); u32 get_device_type(void); diff --git a/arch/arm/mach-omap/omap3_generic.c b/arch/arm/mach-omap/omap3_generic.c index 5c29fea..5327bad 100644 --- a/arch/arm/mach-omap/omap3_generic.c +++ b/arch/arm/mach-omap/omap3_generic.c @@ -200,7 +200,7 @@ * * @return - Return the value of SYSBOOT. */ -inline u32 get_sysboot_value(void) +u32 get_sysboot_value(void) { return (0x0000003F & readl(OMAP3_CONTROL_REG(STATUS))); } diff --git a/commands/ubiformat.c b/commands/ubiformat.c index 8516e11..f9c50b7 100644 --- a/commands/ubiformat.c +++ b/commands/ubiformat.c @@ -503,9 +503,8 @@ write_size, eb); if (errno != EIO) { - if (!args.subpage_size != mtd->min_io_size) - normsg("may be sub-page size is " - "incorrect?"); + if (args.subpage_size != mtd->min_io_size) + normsg("may be sub-page size is incorrect?"); goto out_free; } diff --git a/include/linux/barebox-wrapper.h b/include/linux/barebox-wrapper.h index 3859185..5fe7971 100644 --- a/include/linux/barebox-wrapper.h +++ b/include/linux/barebox-wrapper.h @@ -39,8 +39,8 @@ #define spin_lock_init(...) #define spin_lock(...) #define spin_unlock(...) -static inline void spin_lock_irqsave(spinlock_t *lock, unsigned long flags) {} -static inline void spin_unlock_irqrestore(spinlock_t *lock, unsigned long flags) {} +#define spin_lock_irqsave(lock, flags) do { flags = 0; } while (0) +#define spin_unlock_irqrestore(lock, flags) do { flags = flags; } while (0) #define mutex_init(...) #define mutex_lock(...)