Skip to content

Commit b342398

Browse files
heicarstMartin Schwidefsky
authored andcommitted
[S390] vdso: get rid of redefinition warnings
The CLOCK_* defines in asm-offsets.c are only used for the vdso code however in the meantime they cause other trouble. Just rename them to get permanently rid of this: In file included from /home2/heicarst/linux-2.6/arch/s390/include/asm/asm-offsets.h:1:0, from arch/s390/mm/fault.c:33: include/generated/asm-offsets.h:53:0: warning: "CLOCK_REALTIME" redefined include/linux/time.h:286:0: note: this is the location of the previous definition include/generated/asm-offsets.h:54:0: warning: "CLOCK_MONOTONIC" redefined include/linux/time.h:287:0: note: this is the location of the previous definition Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
1 parent e031724 commit b342398

5 files changed

Lines changed: 13 additions & 13 deletions

File tree

‎arch/s390/kernel/asm-offsets.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ int main(void)
6666
DEFINE(__VDSO_ECTG_BASE, offsetof(struct vdso_per_cpu_data, ectg_timer_base));
6767
DEFINE(__VDSO_ECTG_USER, offsetof(struct vdso_per_cpu_data, ectg_user_time));
6868
/* constants used by the vdso */
69-
DEFINE(CLOCK_REALTIME, CLOCK_REALTIME);
70-
DEFINE(CLOCK_MONOTONIC, CLOCK_MONOTONIC);
71-
DEFINE(CLOCK_REALTIME_RES, MONOTONIC_RES_NSEC);
69+
DEFINE(__CLOCK_REALTIME, CLOCK_REALTIME);
70+
DEFINE(__CLOCK_MONOTONIC, CLOCK_MONOTONIC);
71+
DEFINE(__CLOCK_REALTIME_RES, MONOTONIC_RES_NSEC);
7272
BLANK();
7373
/* constants for SIGP */
7474
DEFINE(__SIGP_STOP, sigp_stop);

‎arch/s390/kernel/vdso32/clock_getres.S‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
.type __kernel_clock_getres,@function
2020
__kernel_clock_getres:
2121
.cfi_startproc
22-
chi %r2,CLOCK_REALTIME
22+
chi %r2,__CLOCK_REALTIME
2323
je 0f
24-
chi %r2,CLOCK_MONOTONIC
24+
chi %r2,__CLOCK_MONOTONIC
2525
jne 3f
2626
0: ltr %r3,%r3
2727
jz 2f /* res == NULL */
@@ -34,6 +34,6 @@ __kernel_clock_getres:
3434
3: lhi %r1,__NR_clock_getres /* fallback to svc */
3535
svc 0
3636
br %r14
37-
4: .long CLOCK_REALTIME_RES
37+
4: .long __CLOCK_REALTIME_RES
3838
.cfi_endproc
3939
.size __kernel_clock_getres,.-__kernel_clock_getres

‎arch/s390/kernel/vdso32/clock_gettime.S‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ __kernel_clock_gettime:
2121
.cfi_startproc
2222
basr %r5,0
2323
0: al %r5,21f-0b(%r5) /* get &_vdso_data */
24-
chi %r2,CLOCK_REALTIME
24+
chi %r2,__CLOCK_REALTIME
2525
je 10f
26-
chi %r2,CLOCK_MONOTONIC
26+
chi %r2,__CLOCK_MONOTONIC
2727
jne 19f
2828

2929
/* CLOCK_MONOTONIC */

‎arch/s390/kernel/vdso64/clock_getres.S‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
.type __kernel_clock_getres,@function
2020
__kernel_clock_getres:
2121
.cfi_startproc
22-
cghi %r2,CLOCK_REALTIME
22+
cghi %r2,__CLOCK_REALTIME
2323
je 0f
24-
cghi %r2,CLOCK_MONOTONIC
24+
cghi %r2,__CLOCK_MONOTONIC
2525
je 0f
2626
cghi %r2,-2 /* CLOCK_THREAD_CPUTIME_ID for this thread */
2727
jne 2f
@@ -39,6 +39,6 @@ __kernel_clock_getres:
3939
2: lghi %r1,__NR_clock_getres /* fallback to svc */
4040
svc 0
4141
br %r14
42-
3: .quad CLOCK_REALTIME_RES
42+
3: .quad __CLOCK_REALTIME_RES
4343
.cfi_endproc
4444
.size __kernel_clock_getres,.-__kernel_clock_getres

‎arch/s390/kernel/vdso64/clock_gettime.S‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
__kernel_clock_gettime:
2121
.cfi_startproc
2222
larl %r5,_vdso_data
23-
cghi %r2,CLOCK_REALTIME
23+
cghi %r2,__CLOCK_REALTIME
2424
je 4f
2525
cghi %r2,-2 /* CLOCK_THREAD_CPUTIME_ID for this thread */
2626
je 9f
27-
cghi %r2,CLOCK_MONOTONIC
27+
cghi %r2,__CLOCK_MONOTONIC
2828
jne 12f
2929

3030
/* CLOCK_MONOTONIC */

0 commit comments

Comments
 (0)