[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080529172012.GA15469@uranus.ravnborg.org>
Date: Thu, 29 May 2008 19:20:12 +0200
From: Sam Ravnborg <sam@...nborg.org>
To: Steve French <smfrench@...il.com>
Cc: lkml <linux-kernel@...r.kernel.org>
Subject: Re: optimizing out inline functions
On Thu, May 29, 2008 at 11:39:32AM -0500, Steve French wrote:
> Ran into one loosely related question, printk takes a variable
> argument list, so the calling function in this case would also need to
> be able to handle thos variable arguments. With macros, we are able
> to do things like with variable arguments easily
>
> #define function_to_print_some_warning(format, arg...)
> printk(KERN_WARNING ": " format "\n" , ## arg)
>
> Are there style rules (or nicely written examples) for doing this
> (variable argument lists) with (inline) functions
Searching the code base I'm sure you will find plenty.
But I cannot point one out from the top of my head.
Sam
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists