Commit 8e1b379f authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Fix weird placement of inline

From: Jesper Juhl <juhl-lkml@dif.dk>

I'm compiling 2.6.1-rc1-mm1 with "-W -Wall" to look for potential problems
and minor stuff to clean up.

One of the things that enabling the extra warnings turn up is errors about
the placement of the inline keyword.
parent b0973709
...@@ -174,7 +174,7 @@ phys_efi_get_time(efi_time_t *tm, efi_time_cap_t *tc) ...@@ -174,7 +174,7 @@ phys_efi_get_time(efi_time_t *tm, efi_time_cap_t *tc)
return status; return status;
} }
int inline efi_set_rtc_mmss(unsigned long nowtime) inline int efi_set_rtc_mmss(unsigned long nowtime)
{ {
int real_seconds, real_minutes; int real_seconds, real_minutes;
efi_status_t status; efi_status_t status;
...@@ -207,7 +207,7 @@ int inline efi_set_rtc_mmss(unsigned long nowtime) ...@@ -207,7 +207,7 @@ int inline efi_set_rtc_mmss(unsigned long nowtime)
* services have been remapped, therefore, we'll need to call in physical * services have been remapped, therefore, we'll need to call in physical
* mode. Note, this call isn't used later, so mark it __init. * mode. Note, this call isn't used later, so mark it __init.
*/ */
unsigned long inline __init efi_get_time(void) inline unsigned long __init efi_get_time(void)
{ {
efi_status_t status; efi_status_t status;
efi_time_t eft; efi_time_t eft;
......
...@@ -297,8 +297,8 @@ extern u64 efi_mem_attributes (unsigned long phys_addr); ...@@ -297,8 +297,8 @@ extern u64 efi_mem_attributes (unsigned long phys_addr);
extern void efi_initialize_iomem_resources(struct resource *code_resource, extern void efi_initialize_iomem_resources(struct resource *code_resource,
struct resource *data_resource); struct resource *data_resource);
extern efi_status_t phys_efi_get_time(efi_time_t *tm, efi_time_cap_t *tc); extern efi_status_t phys_efi_get_time(efi_time_t *tm, efi_time_cap_t *tc);
extern unsigned long inline __init efi_get_time(void); extern inline unsigned long __init efi_get_time(void);
extern int inline __init efi_set_rtc_mmss(unsigned long nowtime); extern inline int __init efi_set_rtc_mmss(unsigned long nowtime);
extern struct efi_memory_map memmap; extern struct efi_memory_map memmap;
#ifdef CONFIG_EFI #ifdef CONFIG_EFI
......
...@@ -574,7 +574,7 @@ static struct k_itimer * lock_timer(timer_t timer_id, unsigned long *flags) ...@@ -574,7 +574,7 @@ static struct k_itimer * lock_timer(timer_t timer_id, unsigned long *flags)
* it is the same as a requeue pending timer WRT to what we should * it is the same as a requeue pending timer WRT to what we should
* report. * report.
*/ */
void inline inline void
do_timer_gettime(struct k_itimer *timr, struct itimerspec *cur_setting) do_timer_gettime(struct k_itimer *timr, struct itimerspec *cur_setting)
{ {
unsigned long expires; unsigned long expires;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment