Skip to contentSkip to conversation

avoid unused shm_region warning

PATCH In review Jan Kiszka 2 participants 2 messages Oct 14, 2008

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 avoid unused shm_region warning

---
 linux-user/syscall.c |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
linux-user/syscall.c +5 -5
Index: b/linux-user/syscall.c
===================================================================
@@ -1613,11 +1613,6 @@ static abi_long do_socketcall(int num, a
 
 #define N_SHM_REGIONS	32
 
-static struct shm_region {
-    abi_ulong	start;
-    abi_ulong	size;
-} shm_regions[N_SHM_REGIONS];
-
 struct target_ipc_perm
 {
     abi_long __key;
@@ -2028,6 +2023,11 @@ end:
 }
 
 #ifdef TARGET_NR_ipc
+static struct shm_region {
+    abi_ulong	start;
+    abi_ulong	size;
+} shm_regions[N_SHM_REGIONS];
+
 /* ??? This only works with linear mappings.  */
 /* do_ipc() must return target values and target errnos. */
 static abi_long do_ipc(unsigned int call, int first,
#1 lore raw
Quoted 23 lines · Jan Kiszka
---
 linux-user/syscall.c |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

Index: b/linux-user/syscall.c
===================================================================

linux-user/syscall.c +0 -5
@@ -1613,11 +1613,6 @@ static abi_long do_socketcall(int num, a
 
 #define N_SHM_REGIONS	32
 
-static struct shm_region {
-    abi_ulong	start;
-    abi_ulong	size;
-} shm_regions[N_SHM_REGIONS];
-
 struct target_ipc_perm
 {
     abi_long __key;
@@ -2028,6 +2023,11 @@ end:
 }

linux-user/syscall.c end: · line 2033

Quoted 10 lines
linux-user/syscall.c +5 -0
 
 #ifdef TARGET_NR_ipc
+static struct shm_region {
+    abi_ulong	start;
+    abi_ulong	size;
+} shm_regions[N_SHM_REGIONS];
+
 /* ??? This only works with linear mappings.  */
 /* do_ipc() must return target values and target errnos. */
 static abi_long do_ipc(unsigned int call, int first,

It goes away when my shm-related patches will be merged.

Signature · 3 lines
Regards,  Kirill A. Shutemov
 + Belarus, Minsk
 + ALT Linux Team, http://www.altlinux.com/