public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Rodrigo Moya <rmoya@tsai.es>
To: MTD List <mtd@infradead.org>
Subject: problems compiling
Date: Wed, 12 Apr 2000 16:16:58 +0200	[thread overview]
Message-ID: <38F4855A.EF47278A@tsai.es> (raw)

[-- Attachment #1: Type: text/plain, Size: 373 bytes --]

hi all!

I've successfully applied the patches to the kernel, but when compiling
I get lots of errors (see attached file). I haven't investigated too
much why are these errors, but the first is about linux/compatmac.h.

I've seen that the patches are for kernel 2.2.14, and I'm with 2.2.12.
Is that a problem? Does the CVS version work with 2.2x kernels?

Cheers

[-- Attachment #2: output --]
[-- Type: application/octet-stream, Size: 2861 bytes --]

gcc -D__KERNEL__ -I/usr/src/linux-2.2.12/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m386 -DCPU=386 -DPMC551_DRAM_BUG  -DEXPORT_SYMTAB -c mtd.c
mtd.c:32: linux/compatmac.h: No such file or directory
mtd.c:80: warning: type defaults to `int' in declaration of `DECLARE_MUTEX'
mtd.c:80: warning: parameter names (without types) in function declaration
mtd.c: In function `mtd_open':
mtd.c:147: warning: implicit declaration of function `DEBUG'
mtd.c:158: `mtd_table_mutex' undeclared (first use in this function)
mtd.c:158: (Each undeclared identifier is reported only once
mtd.c:158: for each function it appears in.)
mtd.c: In function `mtd_ioctl':
mtd.c:349: `x' undeclared (first use in this function)
mtd.c:349: `y' undeclared (first use in this function)
mtd.c:349: warning: left-hand operand of comma expression has no effect
mtd.c:349: parse error before `struct'
mtd.c:348: warning: unused variable `waitq'
mtd.c:349: `wait' undeclared (first use in this function)
mtd.c:349: warning: left-hand operand of comma expression has no effect
mtd.c:352: `waitq' undeclared (first use in this function)
mtd.c:380: case label not within a switch statement
mtd.c:410: break statement not within loop or switch
mtd.c:414: case label not within a switch statement
mtd.c:445: break statement not within loop or switch
mtd.c:452: default label not within a switch statement
mtd.c:455: warning: control reaches end of non-void function
mtd.c: At top level:
mtd.c:457: parse error before `return'
mtd.c: In function `add_mtd_device':
mtd.c:469: `mtd_table_mutex' undeclared (first use in this function)
mtd.c:480: structure has no member named `add'
mtd.c: In function `del_mtd_device':
mtd.c:497: `mtd_table_mutex' undeclared (first use in this function)
mtd.c:505: structure has no member named `remove'
mtd.c: In function `register_mtd_user':
mtd.c:524: `mtd_table_mutex' undeclared (first use in this function)
mtd.c:531: structure has no member named `add'
mtd.c: In function `unregister_mtd_user':
mtd.c:544: `mtd_table_mutex' undeclared (first use in this function)
mtd.c:552: structure has no member named `remove'
mtd.c: In function `mtd_read_proc':
mtd.c:588: `mtd_table_mutex' undeclared (first use in this function)
mtd.c: At top level:
mtd.c:80: warning: `DECLARE_MUTEX' declared `static' but never defined
mtd.c:676: warning: `cleanup_mtd' defined but not used
make[4]: *** [mtd.o] Error 1
make[4]: Leaving directory `/usr/src/linux-2.2.12/drivers/block/mtd'
make[3]: *** [first_rule] Error 2
make[3]: Leaving directory `/usr/src/linux-2.2.12/drivers/block/mtd'
make[2]: *** [_subdir_mtd] Error 2
make[2]: Leaving directory `/usr/src/linux-2.2.12/drivers/block'
make[1]: *** [_subdir_block] Error 2
make[1]: Leaving directory `/usr/src/linux-2.2.12/drivers'
make: *** [_dir_drivers] Error 2

             reply	other threads:[~2000-04-12 14:20 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-12 14:16 Rodrigo Moya [this message]
2000-04-12 14:31 ` problems compiling David Woodhouse
     [not found] <38F5ADF6.30B89174@tsai.es>
2000-04-12 19:38 ` Rodrigo Moya
2000-04-13  8:25   ` David Woodhouse
     [not found]     ` <17190.955625589@devel2.axiom.internal>
2000-04-13 11:36       ` Rodrigo Moya
  -- strict thread matches above, loose matches on Subject: below --
2000-04-13 14:01 Rodrigo Moya
2000-04-13 14:12 ` David Woodhouse
2000-06-27 14:23 Rodrigo Moya
2000-06-27 14:29 ` David Woodhouse

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=38F4855A.EF47278A@tsai.es \
    --to=rmoya@tsai.es \
    --cc=mtd@infradead.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox