From: Luca Bigliardi <shammash@artha.org>
To: trivial@kernel.org
Cc: linux-kernel@vger.kernel.org, jdike@addtoit.com
Subject: [PATCH] Fix vde network backend in user mode linux
Date: Mon, 2 Feb 2009 18:28:22 +0100 [thread overview]
Message-ID: <20090202172822.GA2801@pintsize> (raw)
* Replace kmalloc() with uml_kmalloc()
(fix build failure)
* Remove unnecessary UM_KERN_INFO in printk()
(don't display '<6>' while printing info)
Signed-off-by: Luca Bigliardi <shammash@artha.org>
---
arch/um/drivers/vde_user.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/um/drivers/vde_user.c b/arch/um/drivers/vde_user.c
index 56533db..c5c4325 100644
--- a/arch/um/drivers/vde_user.c
+++ b/arch/um/drivers/vde_user.c
@@ -78,7 +78,7 @@ void vde_init_libstuff(struct vde_data *vpri, struct vde_init *init)
{
struct vde_open_args *args;
- vpri->args = kmalloc(sizeof(struct vde_open_args), UM_GFP_KERNEL);
+ vpri->args = uml_kmalloc(sizeof(struct vde_open_args), UM_GFP_KERNEL);
if (vpri->args == NULL) {
printk(UM_KERN_ERR "vde_init_libstuff - vde_open_args "
"allocation failed");
@@ -91,8 +91,8 @@ void vde_init_libstuff(struct vde_data *vpri, struct vde_init *init)
args->group = init->group;
args->mode = init->mode ? init->mode : 0700;
- args->port ? printk(UM_KERN_INFO "port %d", args->port) :
- printk(UM_KERN_INFO "undefined port");
+ args->port ? printk("port %d", args->port) :
+ printk("undefined port");
}
int vde_user_read(void *conn, void *buf, int len)
--
1.5.6.5
next reply other threads:[~2009-02-02 17:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-02 17:28 Luca Bigliardi [this message]
2009-02-11 13:02 ` [PATCH] Fix vde network backend in user mode linux Jiri Kosina
2009-02-16 12:38 ` Jiri Kosina
2009-02-16 12:49 ` Américo Wang
2009-02-16 12:51 ` Jiri Kosina
2009-02-16 13:21 ` Américo Wang
2009-02-16 13:23 ` Luca Bigliardi
2009-02-17 13:07 ` Américo Wang
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=20090202172822.GA2801@pintsize \
--to=shammash@artha.org \
--cc=jdike@addtoit.com \
--cc=linux-kernel@vger.kernel.org \
--cc=trivial@kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.