Thread (8 messages) 8 messages, 4 authors, 2002-10-12

Re: [PATCH 2.5.41-mm1] new snapshot of shared page tables

From: Dave McCracken <hidden>
Date: 2002-10-10 17:27:19

--On Wednesday, October 09, 2002 15:51:15 -0700 Andrew Morton
[off-list ref] wrote:
Stylistic trivia: When stubbing out a function it's cleaner (and faster)
to do:

# ifdef CONFIG_FOO
int my_function(arg1, arg2)
{
	...
}
# else
static inline int my_function(arg1, arg2)
{
	return 0;
}
# endif
I'll go one better and remove the function and the references to it, if
that's cleaner.  It feels cleaner to me.  Here's a patch that does it, on
top of 2.5.41-mm2.

Dave

======================================================================
Dave McCracken          IBM Linux Base Kernel Team      1-512-838-3059
dmccr@us.ibm.com                                        T/L   678-3059

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help