Skip to contentSkip to conversation

2.6.0-test1: kernel image compile ok, but modules compile failed

DISCUSSION Xiaoji Liu 2 participants 3 messages Jul 22, 2003

lore
Share & tools
lore

Xiaoji Liu

author
#0 lore raw

Hello,

when i compile kernel 2.6.0-test1
It gave 'parse error' message when compiling file
drivers/mtd/devices/blkmtd.c
(around line 700)

I opened the source file and saw this:

static int blkmtd_write(struct mtd_info *mtd, loff_t to, size_t len,
size_t *retlen, const u_char *buf)
{
mtd_raw_dev_data_t *rawdevice = mtd->priv; int err = 0;
int offset;
int pagenr;
size_t len1 = 0, len2 = 0, len3 = 0;
struct page **pages;
int pagecnt = 0;
char b[BDEVNAME_SIZE];
21 e3
*retlen = 0;
DEBUG(2, "blkmtd: write: dev = `%s' to = %ld len = %d buf = %p\n",
bdevname(rawdevice->binding, b), (long int)to, len, buf);

/* handle readonly and out of range numbers */

Notice there is a line : 21 e3

please give some suggestion
THX

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com

#1 lore raw
Quoted 9 lines · Xiaoji Liu

Hello,

when i compile kernel 2.6.0-test1
It gave 'parse error' message when compiling file
drivers/mtd/devices/blkmtd.c
(around line 700)

I opened the source file and saw this:

Quoted 14 lines

static int blkmtd_write(struct mtd_info *mtd, loff_t to, size_t len,
size_t *retlen, const u_char *buf)
{
mtd_raw_dev_data_t *rawdevice = mtd->priv; int err = 0;
int offset;
int pagenr;
size_t len1 = 0, len2 = 0, len3 = 0;
struct page **pages;
int pagecnt = 0;
char b[BDEVNAME_SIZE];
21 e3
*retlen = 0;

They where added by Andrew by accident, and can safely be deleted. It was part of the "[PATCH] make the bdevname() API sane" that involved several files.

Sam

author
#2 lore raw
Quoted 27 lines · --- Sam Ravnborg
Quoted 10 lines · Xiaoji Liu

Hello,

when i compile kernel 2.6.0-test1
It gave 'parse error' message when compiling file
drivers/mtd/devices/blkmtd.c
(around line 700)

I opened the source file and saw this:

static int blkmtd_write(struct mtd_info *mtd,

loff_t

Quoted 5 lines

to, size_t len,
size_t *retlen, const u_char *buf)
{
mtd_raw_dev_data_t *rawdevice = mtd->priv;
int err = 0;

Quoted 8 lines

int offset;
int pagenr;
size_t len1 = 0, len2 = 0, len3 = 0;
struct page **pages;
int pagecnt = 0;
char b[BDEVNAME_SIZE];
21 e3
*retlen = 0;

Quoted 7 lines

They where added by Andrew by accident, and can safely be deleted.
It was part of the "[PATCH] make the bdevname() API sane"
that involved several files.

Sam

are there any other such problems around? :)

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com