From: Blaisorblade <blaisorblade@yahoo.it>
To: user-mode-linux-devel@lists.sourceforge.net
Cc: Paulo Marques <pmarques@grupopie.com>,
Pekka Enberg <penberg@gmail.com>, Andrew Morton <akpm@osdl.org>,
linux-kernel@vger.kernel.org, penberg@cs.helsinki.fi
Subject: Re: [uml-devel] Re: [PATCH 2.6] 4/7 replace uml_strdup by kstrdup
Date: Thu, 3 Feb 2005 20:51:17 +0100 [thread overview]
Message-ID: <200502032051.18191.blaisorblade@yahoo.it> (raw)
In-Reply-To: <4200BFA1.2060808@grupopie.com>
On Wednesday 02 February 2005 12:55, you wrote:
> Pekka Enberg wrote:
> > On Tue, 1 Feb 2005 03:28:31 +0000, pmarques@grupopie.com
> >
> > <pmarques@grupopie.com> wrote:
> >>diff -buprN -X dontdiff
> >> vanilla-2.6.11-rc2-bk9/arch/um/os-Linux/drivers/tuntap_user.c
> >> linux-2.6.11-rc2-bk9/arch/um/os-Linux/drivers/tuntap_user.c ---
> >> vanilla-2.6.11-rc2-bk9/arch/um/os-Linux/drivers/tuntap_user.c
> >> 2004-12-24 21:35:40.000000000 +0000 +++
> >> linux-2.6.11-rc2-bk9/arch/um/os-Linux/drivers/tuntap_user.c 2005-01-31
> >> 20:39:08.591154025 +0000
> >
> > [snip]
> >
> >>- pri->dev_name = uml_strdup(buffer);
> >>+ pri->dev_name = kstrdup(buffer);
> >
> > Please compile-test before submitting.
>
> I'm really sorry about this...
>
> I've compiled with an allyesconfig to validate the changes, but that
> doesn't build the UML parts :(
Well, the answer is to do add a "ARCH=um" to the build commands... you could
maybe use a "make defconfig ARCH=um" however because UML itself, sometimes,
does not build with allyesconfig /allmodconfig...
However, that said, there are bigger problems for UML.
Since of its particular nature, it contains some code which is compiled
against userspace headers. For instance cow_user.c (the list includes
*_user.c and everything that is explicitly listed in USER_OBJS inside the
Makefiles)
So, for cow_user.c, when you add <linux/string.h> to cow_user.c, you are
actually making it include /usr/include/linux/string.h...
For UML, you should probably add the prototype to a good header inside
arch/um/include (those headers are in the searchpath for every file under
arch/um) - probably the one which declared uml_strdup. Yes, we have had to
duplicate prototypes for many functions... for inlines, we've had to provide
in many case a non-inline version.
> Anyway, thanks for pointing this out. I still haven't got feedback
> regarding the acceptance of these patches. If there is a chance they're
> accepted, maybe the best thing to do is to post the series again with
> this correction and the sound patch corrections.
--
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729
http://www.user-mode-linux.org/~blaisorblade
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next prev parent reply other threads:[~2005-02-03 19:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-01 3:28 [uml-devel] [PATCH 2.6] 4/7 replace uml_strdup by kstrdup pmarques
2005-02-02 7:52 ` [uml-devel] " Pekka Enberg
2005-02-02 11:55 ` Paulo Marques
2005-02-03 19:51 ` Blaisorblade [this message]
2005-02-04 12:45 ` Paulo Marques
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=200502032051.18191.blaisorblade@yahoo.it \
--to=blaisorblade@yahoo.it \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=penberg@cs.helsinki.fi \
--cc=penberg@gmail.com \
--cc=pmarques@grupopie.com \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/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