[-mm] new warning in ipc/msg.c

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <ricknu-0@...>
Cc: Derbey Nadia <nadia.derbey@...>, Andrew Morton <akpm@...>, LKML <linux-kernel@...>
Date: Wednesday, January 9, 2008 - 11:42 am

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
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[-mm] new warning in ipc/msg.c, Pierre Peiffer, (Wed Jan 9, 11:42 am)
Re: [-mm] new warning in ipc/msg.c, Andrew Morton, (Wed Jan 9, 7:13 pm)
Re: [-mm] new warning in ipc/msg.c, Pierre Peiffer, (Thu Jan 10, 4:30 am)