Skip to content

Commit 4d284ca

Browse files
heicarstMartin Schwidefsky
authored andcommitted
[S390] Avoid excessive inlining.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
1 parent 162e006 commit 4d284ca

46 files changed

Lines changed: 278 additions & 354 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎arch/s390/kernel/binfmt_elf32.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ MODULE_AUTHOR("Gerhard Tonn <ton@de.ibm.com>");
192192

193193
#undef cputime_to_timeval
194194
#define cputime_to_timeval cputime_to_compat_timeval
195-
static __inline__ void
195+
static inline void
196196
cputime_to_compat_timeval(const cputime_t cputime, struct compat_timeval *value)
197197
{
198198
value->tv_usec = cputime % 1000000;

‎arch/s390/kernel/module.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ void module_free(struct module *mod, void *module_region)
5959
table entries. */
6060
}
6161

62-
static inline void
62+
static void
6363
check_rela(Elf_Rela *rela, struct module *me)
6464
{
6565
struct mod_arch_syminfo *info;
@@ -182,7 +182,7 @@ apply_relocate(Elf_Shdr *sechdrs, const char *strtab, unsigned int symindex,
182182
return -ENOEXEC;
183183
}
184184

185-
static inline int
185+
static int
186186
apply_rela(Elf_Rela *rela, Elf_Addr base, Elf_Sym *symtab,
187187
struct module *me)
188188
{

‎arch/s390/kernel/setup.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ char vmhalt_cmd[128] = "";
129129
char vmpoff_cmd[128] = "";
130130
static char vmpanic_cmd[128] = "";
131131

132-
static inline void strncpy_skip_quote(char *dst, char *src, int n)
132+
static void strncpy_skip_quote(char *dst, char *src, int n)
133133
{
134134
int sx, dx;
135135

@@ -396,8 +396,8 @@ early_param("ipldelay", early_parse_ipldelay);
396396
unsigned int switch_amode = 0;
397397
EXPORT_SYMBOL_GPL(switch_amode);
398398

399-
static inline void set_amode_and_uaccess(unsigned long user_amode,
400-
unsigned long user32_amode)
399+
static void set_amode_and_uaccess(unsigned long user_amode,
400+
unsigned long user32_amode)
401401
{
402402
psw_user_bits = PSW_BASE_BITS | PSW_MASK_DAT | user_amode |
403403
PSW_MASK_IO | PSW_MASK_EXT | PSW_MASK_MCHECK |

‎arch/s390/kernel/smp.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ int smp_call_function_on(void (*func) (void *info), void *info,
194194
}
195195
EXPORT_SYMBOL(smp_call_function_on);
196196

197-
static inline void do_send_stop(void)
197+
static void do_send_stop(void)
198198
{
199199
int cpu, rc;
200200

@@ -208,7 +208,7 @@ static inline void do_send_stop(void)
208208
}
209209
}
210210

211-
static inline void do_store_status(void)
211+
static void do_store_status(void)
212212
{
213213
int cpu, rc;
214214

@@ -224,7 +224,7 @@ static inline void do_store_status(void)
224224
}
225225
}
226226

227-
static inline void do_wait_for_stop(void)
227+
static void do_wait_for_stop(void)
228228
{
229229
int cpu;
230230

@@ -534,7 +534,7 @@ smp_put_cpu(int cpu)
534534
spin_unlock_irqrestore(&smp_reserve_lock, flags);
535535
}
536536

537-
static inline int
537+
static int
538538
cpu_stopped(int cpu)
539539
{
540540
__u32 status;

‎arch/s390/kernel/stacktrace.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
#include <linux/stacktrace.h>
1212
#include <linux/kallsyms.h>
1313

14-
static inline unsigned long save_context_stack(struct stack_trace *trace,
15-
unsigned int *skip,
16-
unsigned long sp,
17-
unsigned long low,
18-
unsigned long high)
14+
static unsigned long save_context_stack(struct stack_trace *trace,
15+
unsigned int *skip,
16+
unsigned long sp,
17+
unsigned long low,
18+
unsigned long high)
1919
{
2020
struct stack_frame *sf;
2121
struct pt_regs *regs;

‎arch/s390/kernel/time.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ int sysctl_hz_timer = 1;
166166
* Stop the HZ tick on the current CPU.
167167
* Only cpu_idle may call this function.
168168
*/
169-
static inline void stop_hz_timer(void)
169+
static void stop_hz_timer(void)
170170
{
171171
unsigned long flags;
172172
unsigned long seq, next;
@@ -210,7 +210,7 @@ static inline void stop_hz_timer(void)
210210
* Start the HZ tick on the current CPU.
211211
* Only cpu_idle may call this function.
212212
*/
213-
static inline void start_hz_timer(void)
213+
static void start_hz_timer(void)
214214
{
215215
BUG_ON(!in_interrupt());
216216

‎arch/s390/lib/uaccess_pt.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
#include <asm/futex.h>
1616
#include "uaccess.h"
1717

18-
static inline int __handle_fault(struct mm_struct *mm, unsigned long address,
19-
int write_access)
18+
static int __handle_fault(struct mm_struct *mm, unsigned long address,
19+
int write_access)
2020
{
2121
struct vm_area_struct *vma;
2222
int ret = -EFAULT;
@@ -81,8 +81,8 @@ static inline int __handle_fault(struct mm_struct *mm, unsigned long address,
8181
return ret;
8282
}
8383

84-
static inline size_t __user_copy_pt(unsigned long uaddr, void *kptr,
85-
size_t n, int write_user)
84+
static size_t __user_copy_pt(unsigned long uaddr, void *kptr,
85+
size_t n, int write_user)
8686
{
8787
struct mm_struct *mm = current->mm;
8888
unsigned long offset, pfn, done, size;
@@ -139,7 +139,7 @@ static inline size_t __user_copy_pt(unsigned long uaddr, void *kptr,
139139
* Do DAT for user address by page table walk, return kernel address.
140140
* This function needs to be called with current->mm->page_table_lock held.
141141
*/
142-
static inline unsigned long __dat_user_addr(unsigned long uaddr)
142+
static unsigned long __dat_user_addr(unsigned long uaddr)
143143
{
144144
struct mm_struct *mm = current->mm;
145145
unsigned long pfn, ret;

‎arch/s390/mm/cmm.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ cmm_set_timeout(long nr, long seconds)
245245
cmm_set_timer();
246246
}
247247

248-
static inline int
248+
static int
249249
cmm_skip_blanks(char *cp, char **endp)
250250
{
251251
char *str;

‎arch/s390/mm/extmem.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ static char *segtype_string[] = { "SW", "EW", "SR", "ER", "SN", "EN", "SC",
9191
* Create the 8 bytes, ebcdic VM segment name from
9292
* an ascii name.
9393
*/
94-
static void inline
94+
static void
9595
dcss_mkname(char *name, char *dcss_name)
9696
{
9797
int i;

‎drivers/s390/block/dasd.c‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ unsigned int dasd_profile_level = DASD_PROFILE_OFF;
483483
/*
484484
* Add profiling information for cqr before execution.
485485
*/
486-
static inline void
486+
static void
487487
dasd_profile_start(struct dasd_device *device, struct dasd_ccw_req * cqr,
488488
struct request *req)
489489
{
@@ -505,7 +505,7 @@ dasd_profile_start(struct dasd_device *device, struct dasd_ccw_req * cqr,
505505
/*
506506
* Add profiling information for cqr after execution.
507507
*/
508-
static inline void
508+
static void
509509
dasd_profile_end(struct dasd_device *device, struct dasd_ccw_req * cqr,
510510
struct request *req)
511511
{
@@ -1102,7 +1102,7 @@ __dasd_process_erp(struct dasd_device *device, struct dasd_ccw_req *cqr)
11021102
/*
11031103
* Process ccw request queue.
11041104
*/
1105-
static inline void
1105+
static void
11061106
__dasd_process_ccw_queue(struct dasd_device * device,
11071107
struct list_head *final_queue)
11081108
{
@@ -1181,7 +1181,7 @@ dasd_end_request_cb(struct dasd_ccw_req * cqr, void *data)
11811181
/*
11821182
* Fetch requests from the block device queue.
11831183
*/
1184-
static inline void
1184+
static void
11851185
__dasd_process_blk_queue(struct dasd_device * device)
11861186
{
11871187
request_queue_t *queue;
@@ -1267,7 +1267,7 @@ __dasd_process_blk_queue(struct dasd_device * device)
12671267
* Take a look at the first request on the ccw queue and check
12681268
* if it reached its expire time. If so, terminate the IO.
12691269
*/
1270-
static inline void
1270+
static void
12711271
__dasd_check_expire(struct dasd_device * device)
12721272
{
12731273
struct dasd_ccw_req *cqr;
@@ -1298,7 +1298,7 @@ __dasd_check_expire(struct dasd_device * device)
12981298
* Take a look at the first request on the ccw queue and check
12991299
* if it needs to be started.
13001300
*/
1301-
static inline void
1301+
static void
13021302
__dasd_start_head(struct dasd_device * device)
13031303
{
13041304
struct dasd_ccw_req *cqr;

0 commit comments

Comments
 (0)