public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: MikeW <mw_phil@yahoo.co.uk>
To: linux-mtd@lists.infradead.org
Subject: Re: When to use mtd.h or mtd-user.h
Date: Tue, 15 May 2007 15:48:04 +0000 (UTC)	[thread overview]
Message-ID: <loom.20070515T173632-969@post.gmane.org> (raw)
In-Reply-To: Pine.LNX.4.64.0705151118590.6528@localhost.localdomain

Robert P. J. Day <rpjday <at> mindspring.com> writes:

> 
> 
> i'm not even sure where that first header file would be coming from.
> it's not part of glibc, and it's not created as part of the sanitized
> headers by the kernel.  are you sure you've seen that in someone's
> *userspace* code?  and the inclusion worked?
> 
> in any event, it's that second header file that's correct.
> 
> rday

The line #include <linux/mtd/mtd.h> is taken from uboot/tools/env/fw_env.c
from www.denx.de (v.1.1.4)

There's another usage in openwrt/package/mtd/mtd.c

Both are intended to run as userspace apps.
However, making the mtd-user.h patch allows them to build without complaint.

Thanks,
MikeW

  reply	other threads:[~2007-05-15 15:49 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-15 15:09 When to use mtd.h or mtd-user.h MikeW
2007-05-15 15:14 ` Josh Boyer
2007-05-15 15:21 ` Robert P. J. Day
2007-05-15 15:48   ` MikeW [this message]
2007-05-16  9:54 ` MikeW
2007-05-16 10:11   ` Artem Bityutskiy
2007-05-16 10:34     ` MikeW
2007-05-16 14:00       ` Artem Bityutskiy
2007-05-17 10:09 ` Wolfgang Denk

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=loom.20070515T173632-969@post.gmane.org \
    --to=mw_phil@yahoo.co.uk \
    --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