Re: [PATCH] fix flags length in net 9p

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Daniel Walker <dwalker@...>
Cc: <rostedt@...>, <linux-kernel@...>, <lucho@...>, <ericvh@...>
Date: Thursday, May 1, 2008 - 6:07 pm

On Thu, 01 May 2008 14:26:00 -0700
Daniel Walker <dwalker@mvista.com> wrote:


I think a warning is good enough here.  There are all sorts of warnings if,
which ignored, will crash your box.

And there is only one type which we use to hold processor flags and that is
unsigned long.


So a plain old

#define must_be_ulong(p)
	do {
		if (&p == (unsigned long *)0)
			;
	} while (0)

(or whatever)

should suffice.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] fix flags length in net 9p , Steven Rostedt, (Thu May 1, 5:08 pm)
Re: [PATCH] fix flags length in net 9p, Enrico Weigelt, (Fri May 2, 7:39 am)
Re: [PATCH] fix flags length in net 9p, Christoph Hellwig, (Thu May 1, 6:03 pm)
Re: [PATCH] fix flags length in net 9p, Andrew Morton, (Thu May 1, 5:19 pm)
Re: [PATCH] fix flags length in net 9p, Alexey Dobriyan, (Thu May 1, 6:29 pm)
Re: [PATCH] fix flags length in net 9p, Steven Rostedt, (Thu May 1, 5:50 pm)
Re: [PATCH] fix flags length in net 9p, Andrew Morton, (Thu May 1, 6:15 pm)
Re: [PATCH] fix flags length in net 9p, Daniel Walker, (Thu May 1, 5:26 pm)
Re: [PATCH] fix flags length in net 9p, Andrew Morton, (Thu May 1, 6:07 pm)
Re: [PATCH] fix flags length in net 9p, Adrian Bunk, (Thu May 1, 5:41 pm)
Re: [PATCH] fix flags length in net 9p, Daniel Walker, (Thu May 1, 6:01 pm)
Re: [PATCH] fix flags length in net 9p, Steven Rostedt, (Thu May 1, 5:38 pm)
Re: [PATCH] fix flags length in net 9p, Alexey Dobriyan, (Thu May 1, 6:32 pm)
Re: [PATCH] fix flags length in net 9p, Steven Rostedt, (Thu May 1, 5:46 pm)
Re: [PATCH] fix flags length in net 9p, Steven Rostedt, (Thu May 1, 5:25 pm)