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

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Alexey Dobriyan <adobriyan@...>
Cc: Daniel Walker <dwalker@...>, Andrew Morton <akpm@...>, LKML <linux-kernel@...>, <lucho@...>, <ericvh@...>, Ingo Molnar <mingo@...>
Date: Thursday, May 1, 2008 - 5:46 pm

On Fri, 2 May 2008, Alexey Dobriyan wrote:

You might want to put a few comments by spinlock functions too, since I
hit this bug in the -rt patch and it confused my for about 10 minutes. Of
course I first blamed my own work on the spinlocks before I noticed that
the caller was using "int".

But actually, I like the idea of having a irqflags_t type that must be
used.

struct irqflags_s {
	unsigned long flags;
};
typedef struct irqflags_s irqflags_t;

This would force everyone to use this structure, and it would be an easy
script to create to do a the cross the board conversion. The only problems
would be where someone didn't use "flags" as the name, but that can be
fixed as well.

-- Steve

--
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)