From: Pierre Peiffer <pierre.peiffer@bull.net>
To: ricknu-0@student.ltu.se
Cc: Derbey Nadia <nadia.derbey@bull.net>,
Andrew Morton <akpm@linux-foundation.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: [-mm] new warning in ipc/msg.c
Date: Wed, 09 Jan 2008 16:42:34 +0100 [thread overview]
Message-ID: <4784EB6A.5020604@bull.net> (raw)
Hi,
This very small patch:
ipc-convert-handmade-min-to-min.patch
introduces a new warning when compiling the -mm kernel:
.../linux-2.6.24-rc6-mm1/ipc/msg.c: In function `do_msgrcv':
.../linux-2.6.24-rc6-mm1/ipc/msg.c:939: warning: comparison of distinct pointer
types lacks a cast
I don't know if doing in include/linux/msg.h
struct msg_msg {
struct list_head m_list;
long m_type;
- int m_ts; /* message text size */
+ size_t m_ts; /* message text size */
struct msg_msgseg* next;
void *security;
/* the actual message follows immediately */
};
is acceptable ?
Otherwise, either a cast can be added or this patch can be dropped...
Thanks,
--
Pierre Peiffer
next reply other threads:[~2008-01-09 15:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-09 15:42 Pierre Peiffer [this message]
2008-01-09 23:13 ` [-mm] new warning in ipc/msg.c Andrew Morton
2008-01-10 8:30 ` Pierre Peiffer
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=4784EB6A.5020604@bull.net \
--to=pierre.peiffer@bull.net \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nadia.derbey@bull.net \
--cc=ricknu-0@student.ltu.se \
/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