linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andy Gospodarek <gospo@redhat.com>
To: "Luis R. Rodriguez" <mcgrof@frijolero.org>
Cc: Zefir Kurtisi <zefir.kurtisi@neratec.com>,
	linux-wireless@vger.kernel.org,
	lf driver backport
	<lf_driver_backport@lists.linux-foundation.org>,
	Andy Gospodarek <andy@greyhouse.net>
Subject: Re: [Lf_driver_backport] [PATCH v2] compat: support RHEL6.3 as a build target
Date: Thu, 9 Aug 2012 23:13:23 -0400	[thread overview]
Message-ID: <20120810031323.GE2384@quad.redhat.com> (raw)
In-Reply-To: <CAB=NE6UNz2oXvCu3NpNVqQLg4pSsL5L-Dw==KGkqxS0CxQfjFg@mail.gmail.com>

On Thu, Aug 09, 2012 at 06:27:25PM -0700, Luis R. Rodriguez wrote:
> On Thu, Aug 9, 2012 at 6:26 AM, Zefir Kurtisi <zefir.kurtisi@neratec.com> wrote:
> > @@ -101,7 +101,7 @@ struct pm_qos_request_list {
> >  /* mask no_printk as RHEL6 backports this */
> >  #define no_printk(...) compat_no_printk(...)
> >  static inline __attribute__ ((format (printf, 1, 2)))
> > -int no_printk(const char *s, ...) { return 0; }
> > +int compat_no_printk(const char *s, ...) { return 0; }
> 
> I merged this in. Andy can you review your other changes as Zefir points out?
> 
> mcgrof@frijol ~/compat (git::master)$ gcc --version
> gcc (Debian 4.7.1-2) 4.7.1
> Copyright (C) 2012 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> 
> I suppose we should get ckmake to spit out the version of gcc onto the report.
> 
>   Luis

I did some more testing and I'm not sure I agree that the patch above is
the proper way to do this.  My impression was that what I did was
correct as the only function definitions that need to be renamed with
the 'compat_' string in front were those that were exported.  This is
what was done in both John Linville's initial patch for RHEL support and
the patch from Hauke Mehrtens for Debian Squeeze support.  I feel like
this is the proper patch to fixup my original error:

Subject: [PATCH] compat: fixup error in no_printk definition

What initially looked like a valid definition for the #define for
no_printk was not.  This corrects the problem.

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

diff --git a/include/linux/compat-2.6.36.h b/include/linux/compat-2.6.36.h
index 09e4b6f..cd5e37c 100644
--- a/include/linux/compat-2.6.36.h
+++ b/include/linux/compat-2.6.36.h
@@ -99,7 +99,7 @@ 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 no_printk(const char *s, ...) { return 0; }
 


  parent reply	other threads:[~2012-08-10  3:14 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-09  4:40 [PATCH v2] compat: support RHEL6.3 as a build target Andy Gospodarek
2012-08-09  4:45 ` Luis R. Rodriguez
2012-08-09 13:26 ` Zefir Kurtisi
     [not found]   ` <CAHashqCmcgXXDyyqwEYefTMXFDVFKm9GKydfbS14UCY_L443Vg@mail.gmail.com>
2012-08-09 22:14     ` Phil Perry
2012-08-10  8:50     ` Zefir Kurtisi
2012-08-10  1:27   ` Luis R. Rodriguez
2012-08-10  2:27     ` Andy Gospodarek
2012-08-10  3:13     ` Andy Gospodarek [this message]
2012-08-10  6:05       ` [Lf_driver_backport] " Luis R. Rodriguez
2012-08-10 17:18   ` Hauke Mehrtens
2012-08-10 18:28     ` Andy Gospodarek
2012-08-10 19:50       ` Luis R. Rodriguez
2012-08-10 19:51         ` Andy Gospodarek
2012-08-10 23:48           ` Hauke Mehrtens
2012-08-10 17:19 ` Hauke Mehrtens

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120810031323.GE2384@quad.redhat.com \
    --to=gospo@redhat.com \
    --cc=andy@greyhouse.net \
    --cc=lf_driver_backport@lists.linux-foundation.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=mcgrof@frijolero.org \
    --cc=zefir.kurtisi@neratec.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).