[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 07/10] Mark macro arguments as used
From: |
Guillem Jover |
Subject: |
[PATCH 07/10] Mark macro arguments as used |
Date: |
Thu, 17 Dec 2009 14:39:27 +0100 |
* i386/intel/pmap.c [!NCPUS > 1] (INVALIDATE_TLB): Mark `pmap', `s'
and `e' arguments as used.
* i386/intel/pmap.h [!NCPUS > 1] (PMAP_ACTIVATE_KERNEL): Mark `my_cpu'
argument as used.
(PMAP_DEACTIVATE_KERNEL): Likewise.
(PMAP_ACTIVATE_USER): Likewise. Mark `th' argument as used.
(PMAP_DEACTIVATE_USER): Mark `thread' and `cpu' arguments as used.
---
i386/intel/pmap.c | 7 ++++++-
i386/intel/pmap.h | 6 ++++++
2 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/i386/intel/pmap.c b/i386/intel/pmap.c
index c633fd9..df94936 100644
--- a/i386/intel/pmap.c
+++ b/i386/intel/pmap.c
@@ -336,7 +336,12 @@ lock_data_t pmap_system_lock;
flush_tlb(); \
}
#else
-#define INVALIDATE_TLB(pmap, s, e) flush_tlb()
+#define INVALIDATE_TLB(pmap, s, e) { \
+ (void) (pmap); \
+ (void) (s); \
+ (void) (e); \
+ flush_tlb(); \
+}
#endif
diff --git a/i386/intel/pmap.h b/i386/intel/pmap.h
index 7354a0f..537ed9f 100644
--- a/i386/intel/pmap.h
+++ b/i386/intel/pmap.h
@@ -358,15 +358,19 @@ pt_entry_t *pmap_pte(pmap_t pmap, vm_offset_t addr);
*/
#define PMAP_ACTIVATE_KERNEL(my_cpu) {
\
+ (void) (my_cpu); \
kernel_pmap->cpus_using = TRUE; \
}
#define PMAP_DEACTIVATE_KERNEL(my_cpu) {
\
+ (void) (my_cpu); \
kernel_pmap->cpus_using = FALSE; \
}
#define PMAP_ACTIVATE_USER(pmap, th, my_cpu) {
\
register pmap_t tpmap = (pmap); \
+ (void) (th); \
+ (void) (my_cpu); \
\
set_pmap(tpmap); \
if (tpmap != kernel_pmap) { \
@@ -375,6 +379,8 @@ pt_entry_t *pmap_pte(pmap_t pmap, vm_offset_t addr);
}
#define PMAP_DEACTIVATE_USER(pmap, thread, cpu) {
\
+ (void) (thread); \
+ (void) (cpu); \
if ((pmap) != kernel_pmap) \
(pmap)->cpus_using = FALSE; \
}
--
1.6.5.4
- [PATCH 00/10] Warnings cleanup to make way for amd64 porting, Guillem Jover, 2009/12/17
- [PATCH 01/10] Use explicit type int when defining register variables, Guillem Jover, 2009/12/17
- [PATCH 02/10] Match function types with `struct tty' member functions, Guillem Jover, 2009/12/17
- [PATCH 05/10] Interrupt handlers do not return any value, Guillem Jover, 2009/12/17
- [PATCH 08/10] Use `unsigned char *' for byte buffers, Guillem Jover, 2009/12/17
- [PATCH 07/10] Mark macro arguments as used,
Guillem Jover <=
- [PATCH 06/10] Missing `*' in assembler indirect lcall, Guillem Jover, 2009/12/17
- [PATCH 04/10] Use selector definitions from Mach for Linux code, Guillem Jover, 2009/12/17
- [PATCH 03/10] Move linux/dev/include/asm-i386/segment.h to src tree, Guillem Jover, 2009/12/17
- [PATCH 09/10] Add missing function prototypes, Guillem Jover, 2009/12/17
- [PATCH 10/10] Add missing casts, Guillem Jover, 2009/12/17
- Re: [PATCH 00/10] Warnings cleanup to make way for amd64 porting, Samuel Thibault, 2009/12/17