diff mbox

compat: fixup error in no_printk definition

Message ID 1344632236-516-1-git-send-email-andy@greyhouse.net (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Andy Gospodarek Aug. 10, 2012, 8:57 p.m. UTC
What initially looked like a valid definition for the #define for
no_printk was not.  This corrects the problem and the change that was
thought to correct it.

Signed-off-by: Andy Gospodarek <andy@greyhouse.net>
---
 include/linux/compat-2.6.36.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Comments

Luis R. Rodriguez Aug. 11, 2012, 12:50 a.m. UTC | #1
On Fri, Aug 10, 2012 at 1:57 PM, Andy Gospodreak <andy@greyhouse.net> wrote:
> What initially looked like a valid definition for the #define for
> no_printk was not.  This corrects the problem and the change that was
> thought to correct it.
>
> Signed-off-by: Andy Gospodarek <andy@greyhouse.net>

thanks, applied and pushed!
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/include/linux/compat-2.6.36.h b/include/linux/compat-2.6.36.h
index b6757c3..cd5e37c 100644
--- a/include/linux/compat-2.6.36.h
+++ b/include/linux/compat-2.6.36.h
@@ -99,9 +99,9 @@  struct pm_qos_request_list {
  * gcc's format and side-effect checking.
  */
 /* mask no_printk as RHEL6 backports this */
-#define no_printk(...) compat_no_printk(...)
+#define no_printk(a, ...) compat_no_printk(a, ##__VA_ARGS__)
 static inline __attribute__ ((format (printf, 1, 2)))
-int compat_no_printk(const char *s, ...) { return 0; }
+int no_printk(const char *s, ...) { return 0; }
 
 #ifndef alloc_workqueue
 #define alloc_workqueue(name, flags, max_active) __create_workqueue(name, flags, max_active, 0)