diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2006-09-20 09:58:51 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2006-09-20 09:58:51 -0400 |
commit | 39b083fe1c3c7b88939f6fa1b0b96e579f12e96f (patch) | |
tree | b56864fed4a0aa286696cb4e63cbea6d8a962c8a /include/asm-s390 | |
parent | ff6b8ea68f4b7353f88b97024f28127e2148aa00 (diff) |
[S390] empty function defines.
Use do { } while (0) constructs instead of empty defines to avoid
subtle compile bugs.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'include/asm-s390')
-rw-r--r-- | include/asm-s390/dma.h | 2 | ||||
-rw-r--r-- | include/asm-s390/io.h | 2 | ||||
-rw-r--r-- | include/asm-s390/smp.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/include/asm-s390/dma.h b/include/asm-s390/dma.h index 02720c449cd8..7425c6af6cd4 100644 --- a/include/asm-s390/dma.h +++ b/include/asm-s390/dma.h | |||
@@ -11,6 +11,6 @@ | |||
11 | 11 | ||
12 | #define MAX_DMA_ADDRESS 0x80000000 | 12 | #define MAX_DMA_ADDRESS 0x80000000 |
13 | 13 | ||
14 | #define free_dma(x) | 14 | #define free_dma(x) do { } while (0) |
15 | 15 | ||
16 | #endif /* _ASM_DMA_H */ | 16 | #endif /* _ASM_DMA_H */ |
diff --git a/include/asm-s390/io.h b/include/asm-s390/io.h index d4614b35f423..a6cc27e77007 100644 --- a/include/asm-s390/io.h +++ b/include/asm-s390/io.h | |||
@@ -116,7 +116,7 @@ extern void iounmap(void *addr); | |||
116 | #define outb(x,addr) ((void) writeb(x,addr)) | 116 | #define outb(x,addr) ((void) writeb(x,addr)) |
117 | #define outb_p(x,addr) outb(x,addr) | 117 | #define outb_p(x,addr) outb(x,addr) |
118 | 118 | ||
119 | #define mmiowb() | 119 | #define mmiowb() do { } while (0) |
120 | 120 | ||
121 | /* | 121 | /* |
122 | * Convert a physical pointer to a virtual kernel pointer for /dev/mem | 122 | * Convert a physical pointer to a virtual kernel pointer for /dev/mem |
diff --git a/include/asm-s390/smp.h b/include/asm-s390/smp.h index 657646054c5e..9fb02e9779c9 100644 --- a/include/asm-s390/smp.h +++ b/include/asm-s390/smp.h | |||
@@ -104,7 +104,7 @@ smp_call_function_on(void (*func) (void *info), void *info, | |||
104 | #define smp_cpu_not_running(cpu) 1 | 104 | #define smp_cpu_not_running(cpu) 1 |
105 | #define smp_get_cpu(cpu) ({ 0; }) | 105 | #define smp_get_cpu(cpu) ({ 0; }) |
106 | #define smp_put_cpu(cpu) ({ 0; }) | 106 | #define smp_put_cpu(cpu) ({ 0; }) |
107 | #define smp_setup_cpu_possible_map() | 107 | #define smp_setup_cpu_possible_map() do { } while (0) |
108 | #endif | 108 | #endif |
109 | 109 | ||
110 | #endif | 110 | #endif |