lkml.org 
[lkml]   [2000]   [Mar]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[2.3.51pre2] wrong shm_statfs in ipc/shm.c
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/

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.054 / U:0.332 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site