From: Thorsten Kukuk <kukuk@suse.de>
To: Horst von Brand <vonbrand@inf.utfsm.cl>
Cc: Linus Torvalds <torvalds@transmeta.com>,
Kernel Mailing List <linux-kernel@vger.kernel.org>,
sparclinux@vger.kernel.org
Subject: Re: Linux 2.4.15-pre4 - merge with Alan
Date: Tue, 13 Nov 2001 16:21:02 +0100 [thread overview]
Message-ID: <20011113162102.A2305@suse.de> (raw)
In-Reply-To: <torvalds@transmeta.com> <200111131410.fADEA9L8023291@pincoya.inf.utfsm.cl>
In-Reply-To: <200111131410.fADEA9L8023291@pincoya.inf.utfsm.cl>; from vonbrand@inf.utfsm.cl on Tue, Nov 13, 2001 at 11:10:09AM -0300
[-- Attachment #1: Type: text/plain, Size: 1484 bytes --]
On Tue, Nov 13, Horst von Brand wrote:
> On CVS as of today for sparc64 I get:
>
> sparc64-linux-gcc -D__KERNEL__ -I/usr/src/linux-2.4/include -Wall -Wstrict-proto
> types -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -
> m64 -pipe -mno-fpu -mcpu=ultrasparc -mcmodel=medlow -ffixed-g4 -fcall-used-g5 -f
> call-used-g7 -Wno-sign-compare -Wa,--undeclared-regs -c -o ioctl32.o ioctl32.
> c
> ioctl32.c: In function `do_lvm_ioctl':
> ioctl32.c:2636: warning: assignment makes pointer from integer without a cast
> ioctl32.c:2670: structure has no member named `inode'
> ioctl32.c:2711: warning: assignment from incompatible pointer type
> ioctl32.c:2712: structure has no member named `inode'
> ioctl32.c:2719: structure has no member named `inode'
> ioctl32.c:2732: structure has no member named `inode'
> ioctl32.c:2611: warning: `v' might be used uninitialized in this function
> make[1]: *** [ioctl32.o] Error 1
> make[1]: Leaving directory `/usr/src/linux-2.4/arch/sparc64/kernel'
> make: *** [_dir_arch/sparc64/kernel] Error 2
Please try the both attached patches. I'm using them with
2.4.15pre1aa1 (which has the same lvm version as now 2.2.15pre4).
Thorsten
--
Thorsten Kukuk http://www.suse.de/~kukuk/ kukuk@suse.de
SuSE GmbH Deutschherrenstr. 15-19 D-90429 Nuernberg
--------------------------------------------------------------------
Key fingerprint = A368 676B 5E1B 3E46 CFCE 2D97 F8FD 4E23 56C6 FB4B
[-- Attachment #2: 61_sparc64.lvm.diff --]
[-- Type: text/plain, Size: 1829 bytes --]
--- linux/arch/sparc64/kernel/ioctl32.c
+++ linux/arch/sparc64/kernel/ioctl32.c 2001/05/22 10:08:13
@@ -2166,14 +2166,6 @@
} lv_status_bydev_req32_t;
typedef struct {
- uint8_t lv_name[NAME_LEN];
- kdev_t old_dev;
- kdev_t new_dev;
- u32 old_pe;
- u32 new_pe;
-} le_remap_req32_t;
-
-typedef struct {
char pv_name[NAME_LEN];
u32 pv;
} pv_status_req32_t;
@@ -2211,14 +2203,6 @@
char dummy[200];
} lv32_t;
-typedef struct {
- u32 hash[2];
- u32 rsector_org;
- kdev_t rdev_org;
- u32 rsector_new;
- kdev_t rdev_new;
-} lv_block_exception32_t;
-
static void put_lv_t(lv_t *l)
{
if (l->lv_current_pe) vfree(l->lv_current_pe);
@@ -2231,8 +2215,6 @@
int err, i;
u32 ptr1, ptr2;
size_t size;
- lv_block_exception32_t *lbe32;
- lv_block_exception_t *lbe;
lv32_t *ul = (lv32_t *)A(p);
lv_t *l = (lv_t *)kmalloc(sizeof(lv_t), GFP_KERNEL);
if (!l) {
@@ -2260,18 +2242,9 @@
}
if (!err && ptr2) {
size = l->lv_remap_end * sizeof(lv_block_exception_t);
- l->lv_block_exception = lbe = vmalloc(size);
- if (l->lv_block_exception) {
- lbe32 = (lv_block_exception32_t *)A(ptr2);
- memset(lbe, 0, size);
- for (i = 0; i < l->lv_remap_end; i++, lbe++, lbe32++) {
- err |= get_user(lbe->rsector_org, &lbe32->rsector_org);
- err |= __get_user(lbe->rdev_org, &lbe32->rdev_org);
- err |= __get_user(lbe->rsector_new, &lbe32->rsector_new);
- err |= __get_user(lbe->rdev_new, &lbe32->rdev_new);
-
- }
- }
+ l->lv_block_exception = vmalloc(size);
+ if (l->lv_block_exception)
+ err = copy_from_user(l->lv_block_exception, (void *)A(ptr2), size);
}
if (err || (ptr1 && !l->lv_current_pe) || (ptr2 && !l->lv_block_exception)) {
if (!err)
[-- Attachment #3: 61_sparc64.lvm-1.0.1-rc2.diff --]
[-- Type: text/plain, Size: 1837 bytes --]
--- linux/arch/sparc64/kernel/ioctl32.c
+++ linux/arch/sparc64/kernel/ioctl32.c 2001/09/05 11:44:46
@@ -2188,7 +2188,7 @@
uint32_t pe_allocated;
uint32_t pe_stale;
u32 pe;
- u32 inode;
+ u32 bd;
uint8_t pv_uuid[UUID_LEN+1];
} pv32_t;
@@ -2345,6 +2345,7 @@
if (!v) return -ENOMEM;
karg = v;
break;
+ case VG_CREATE_OLD:
case VG_CREATE:
v = kmalloc(sizeof(vg_t), GFP_KERNEL);
if (!v) return -ENOMEM;
@@ -2383,7 +2384,7 @@
}
- v->pv[i]->pe = NULL; v->pv[i]->inode = NULL;
+ v->pv[i]->pe = NULL; v->pv[i]->bd = NULL;
}
}
if (!err) {
@@ -2425,14 +2426,14 @@
u.lv_bydev.lv = get_lv_t(ptr, &err);
if (err) return err;
u.lv_bydev.lv = &p;
- p.pe = NULL; p.inode = NULL;
+ p.pe = NULL; p.bd = NULL;
break;
case VG_EXTEND:
err = copy_from_user(&p, (void *)arg, sizeof(pv32_t) - 8 - UUID_LEN+1);
if (err) return -EFAULT;
err = copy_from_user(p.pv_uuid, ((pv32_t *)arg)->pv_uuid, UUID_LEN+1);
if (err) return -EFAULT;
- p.pe = NULL; p.inode = NULL;
+ p.pe = NULL; p.bd = NULL;
karg = &p;
break;
case PV_CHANGE:
@@ -2445,7 +2446,7 @@
if (cmd == PV_CHANGE) {
err = copy_from_user(&p, (void *)A(ptr), sizeof(pv32_t) - 8 - UUID_LEN+1);
if (err) return -EFAULT;
- p.pe = NULL; p.inode = NULL;
+ p.pe = NULL; p.bd = NULL;
}
break;
}
@@ -2464,6 +2465,7 @@
}
kfree(v);
break;
+ case VG_CREATE_OLD:
case VG_CREATE:
for (i = 0; i < v->pv_max; i++)
if (v->pv[i]) kfree(v->pv[i]);
@@ -4363,6 +4365,7 @@
HANDLE_IOCTL(SONET_GETFRSENSE, do_atm_ioctl)
#if defined(CONFIG_BLK_DEV_LVM) || defined(CONFIG_BLK_DEV_LVM_MODULE)
HANDLE_IOCTL(VG_STATUS, do_lvm_ioctl)
+HANDLE_IOCTL(VG_CREATE_OLD, do_lvm_ioctl)
HANDLE_IOCTL(VG_CREATE, do_lvm_ioctl)
HANDLE_IOCTL(VG_EXTEND, do_lvm_ioctl)
HANDLE_IOCTL(LV_CREATE, do_lvm_ioctl)
next prev parent reply other threads:[~2001-11-13 15:21 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-12 19:01 Linux 2.4.15-pre4 - merge with Alan Linus Torvalds
2001-11-12 19:18 ` Trever L. Adams
2001-11-13 11:14 ` Christoph Rohland
2001-11-12 19:26 ` Matthew Dharm
2001-11-12 20:09 ` Martin Dalecki
2001-11-12 20:42 ` Greg KH
2001-11-12 23:43 ` J . A . Magallon
2001-11-13 1:11 ` Alan Cox
2001-11-12 23:45 ` J . A . Magallon
2001-11-12 23:48 ` J . A . Magallon
2001-11-13 0:14 ` Christoph Hellwig
2001-11-13 0:25 ` J . A . Magallon
2001-11-13 0:42 ` J . A . Magallon
2001-11-13 7:43 ` Christoph Hellwig
2001-11-13 5:17 ` Keith Owens
2001-11-13 10:43 ` David S. Miller
2001-11-13 17:27 ` Chad N. Tindel
2001-11-13 17:58 ` Chad N. Tindel
2001-11-13 5:54 ` Neil Brown
2001-11-13 6:02 ` Jeff Garzik
2001-11-13 9:41 ` Alan Cox
2001-11-13 6:03 ` David S. Miller
2001-11-13 6:16 ` Keith Owens
2001-11-13 6:23 ` David S. Miller
2001-11-13 8:17 ` Jeff Garzik
2001-11-13 6:18 ` Keith Owens
2001-11-13 14:10 ` Horst von Brand
2001-11-13 15:21 ` Thorsten Kukuk [this message]
2001-11-14 4:57 ` David S. Miller
2001-11-14 6:28 ` Thorsten Kukuk
2001-11-14 6:31 ` David S. Miller
2001-11-14 12:59 ` Horst von Brand
2001-11-13 15:37 ` [PATCH] " Russell King
2001-11-15 9:25 ` Problem with Linux 2.4.15-pre4 on an IBM ThinkPad Martin Persson
2001-11-15 11:57 ` Keith Owens
-- strict thread matches above, loose matches on Subject: below --
2001-11-12 21:10 Linux 2.4.15-pre4 - merge with Alan Robert Cantu
2001-11-13 13:20 ` Andrey Savochkin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20011113162102.A2305@suse.de \
--to=kukuk@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=sparclinux@vger.kernel.org \
--cc=torvalds@transmeta.com \
--cc=vonbrand@inf.utfsm.cl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.