From 004f0daffefe2ac56b07ae65054ece71714cf5ad Mon Sep 17 00:00:00 2001 From: rread Date: Thu, 15 Jan 2004 01:06:12 +0000 Subject: [PATCH] put declaration before the code. --- lnet/libcfs/debug.c | 2 +- lustre/portals/libcfs/debug.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lnet/libcfs/debug.c b/lnet/libcfs/debug.c index d563a76..b503cec 100644 --- a/lnet/libcfs/debug.c +++ b/lnet/libcfs/debug.c @@ -686,9 +686,9 @@ __s32 portals_debug_copy_to_user(char *buf, unsigned long len) copied = 0; list_for_each(pos, &my_pages) { unsigned long to_copy; - page = list_entry(pos, struct page, list); void *addr; + page = list_entry(pos, struct page, list); to_copy = min(total - off, PAGE_SIZE); if (to_copy == 0) { off = 0; diff --git a/lustre/portals/libcfs/debug.c b/lustre/portals/libcfs/debug.c index d563a76..b503cec 100644 --- a/lustre/portals/libcfs/debug.c +++ b/lustre/portals/libcfs/debug.c @@ -686,9 +686,9 @@ __s32 portals_debug_copy_to_user(char *buf, unsigned long len) copied = 0; list_for_each(pos, &my_pages) { unsigned long to_copy; - page = list_entry(pos, struct page, list); void *addr; + page = list_entry(pos, struct page, list); to_copy = min(total - off, PAGE_SIZE); if (to_copy == 0) { off = 0; -- 1.8.3.1