From patchwork Fri Aug 10 20:57:16 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Gospodarek X-Patchwork-Id: 1306611 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 6DC32DF266 for ; Fri, 10 Aug 2012 20:58:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754921Ab2HJU6g (ORCPT ); Fri, 10 Aug 2012 16:58:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:8650 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754834Ab2HJU6f (ORCPT ); Fri, 10 Aug 2012 16:58:35 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q7AKwX75027119 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 10 Aug 2012 16:58:33 -0400 Received: from quad.redhat.com (vpn-9-54.rdu.redhat.com [10.11.9.54]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q7AKwWHb026233; Fri, 10 Aug 2012 16:58:33 -0400 From: Andy Gospodreak To: lf_driver_backport@lists.linux-foundation.org, linux-wireless@vger.kernel.org Subject: [PATCH] compat: fixup error in no_printk definition Date: Fri, 10 Aug 2012 16:57:16 -0400 Message-Id: <1344632236-516-1-git-send-email-andy@greyhouse.net> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 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 --- include/linux/compat-2.6.36.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) 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)