[2.3.51pre2] wrong shm_statfs in ipc/shm.c

From: Rui Sousa (rsousa@grad.physics.sunysb.edu)
Date: Fri Mar 10 2000 - 08:19:26 EST


Hi,

In ipc/shm.c we have:

static int shm_statfs (struct super_block *, struct statfs *, int);
....

static struct super_operations shm_sops = {
        ...
        statfs: shm_statfs,
        ...
};

But in include/linux/fs.h

struct super_operations {
     ...
        int (*statfs) (struct super_block *, struct statfs *);
     ...
};

It gives a compiler warning about wrong pointer assignment and
when running a number of applications fail with the following message
in /var/log/messages:

Mar 10 08:16:48 localhost kernel: shmget: shm filesystem not mounted

Rui Sousa

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Mar 15 2000 - 21:00:17 EST