public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Mandeep Ahuja <ahuja@aksysnetworks.com>
To: linux-mtd@lists.infradead.org
Subject: Cannot compile latest mtd with 2.6.10
Date: Mon, 02 Jun 2008 17:48:04 -0600	[thread overview]
Message-ID: <484486B4.3070605@aksysnetworks.com> (raw)

Hi,
I recently check out the 'mtd' module from CVS. I have kernel 2.6.10 for 
mips malta board. I ran the patchkernel.sh script and then tried to 
compile my kernel.

I ran into this
 CHK     include/linux/version.h
make[1]: `arch/mips/kernel/offset.s' is up to date.
 CHK     include/asm-mips/offset.h
 CHK     include/linux/compile.h
 CHK     usr/initramfs_list
 CC      drivers/mtd/mtdcore.o
drivers/mtd/mtdcore.c:28: warning: type defaults to `int' in declaration 
of `DEFINE_MUTEX'
drivers/mtd/mtdcore.c:28: warning: parameter names (without types) in 
function declaration
drivers/mtd/mtdcore.c:28: warning: data definition has no type or 
storage class
drivers/mtd/mtdcore.c:31: error: `mtd_table_mutex' undeclared here (not 
in a function)
drivers/mtd/mtdcore.c:31: error: initializer element is not constant
drivers/mtd/mtdcore.c:31: error: (near initialization for 
`__ksymtab_mtd_table_mutex.value')
drivers/mtd/mtdcore.c: In function `add_mtd_device':
drivers/mtd/mtdcore.c:50: warning: implicit declaration of function 
`mutex_lock'
drivers/mtd/mtdcore.c:68: warning: implicit declaration of function 
`mutex_unlock'
drivers/mtd/mtdcore.c: At top level:
drivers/mtd/mtdcore.c:31: error: __ksymtab_mtd_table_mutex causes a 
section type conflict
make[2]: *** [drivers/mtd/mtdcore.o] Error 1
make[1]: *** [drivers/mtd] Error 2
make: *** [drivers] Error 2

Looks like some mutex problem, but the 2.6.10 does not have mutexes. How 
do I get around this problem?

Would appreciate any help
thanks
Mandeep

             reply	other threads:[~2008-06-02 23:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-02 23:48 Mandeep Ahuja [this message]
2008-06-03  1:14 ` Cannot compile latest mtd with 2.6.10 Josh Boyer
2008-06-03 15:47   ` Mandeep Ahuja
2008-06-03 16:56   ` David Woodhouse
2008-06-03 17:24     ` SPAM-LOW: " Mandeep Ahuja

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=484486B4.3070605@aksysnetworks.com \
    --to=ahuja@aksysnetworks.com \
    --cc=linux-mtd@lists.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