Commit 41768f5a authored by Alexander Nyberg's avatar Alexander Nyberg Committed by Greg Kroah-Hartman

[PATCH] AoE warning on 64-bit archs

I just accidently built AoE on x86-64 and it emits a warning
due to conversion of types of different size, trivial fix:
Signed-off-by: default avatarAlexander Nyberg <alexn@dsv.su.se>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 6365711d
...@@ -178,13 +178,13 @@ aoechr_rel(struct inode *inode, struct file *filp) ...@@ -178,13 +178,13 @@ aoechr_rel(struct inode *inode, struct file *filp)
static ssize_t static ssize_t
aoechr_read(struct file *filp, char __user *buf, size_t cnt, loff_t *off) aoechr_read(struct file *filp, char __user *buf, size_t cnt, loff_t *off)
{ {
int n; unsigned long n;
char *mp; char *mp;
struct ErrMsg *em; struct ErrMsg *em;
ssize_t len; ssize_t len;
ulong flags; ulong flags;
n = (int) filp->private_data; n = (unsigned long) filp->private_data;
switch (n) { switch (n) {
case MINOR_ERR: case MINOR_ERR:
spin_lock_irqsave(&emsgs_lock, flags); spin_lock_irqsave(&emsgs_lock, flags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment