On Mon, Oct 12, 2009 at 2:19 PM, Hauke Mehrtens <hauke@xxxxxxxxxx> wrote: > The 2.6.27 mainline kernel does not export round_jiffies_up. It looks > like the openSuse kernel 2.6.27 does export this symbol. Rename the > compat symbol to not conflict with the openSuse kernel. > > CC: larry.finger@xxxxxxxxx > Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx> > --- > compat/compat-2.6.28.c | 2 -- > compat/compat-2.6.28.h | 5 +++++ > 2 files changed, 5 insertions(+), 2 deletions(-) > > diff --git a/compat/compat-2.6.28.c b/compat/compat-2.6.28.c > index 613b009..33871a2 100644 > --- a/compat/compat-2.6.28.c > +++ b/compat/compat-2.6.28.c > @@ -260,7 +260,6 @@ static unsigned long round_jiffies_common(unsigned long j, int cpu, > return j; > } > > -#if 0 > /** > * round_jiffies_up - function to round jiffies up to a full second > * @j: the time in (absolute) jiffies that should be rounded > @@ -275,6 +274,5 @@ unsigned long round_jiffies_up(unsigned long j) > return round_jiffies_common(j, raw_smp_processor_id(), true); > } > EXPORT_SYMBOL_GPL(round_jiffies_up); > -#endif Did you then mean to rename the above to backport_round_jiffies_up then? > #endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28) */ > diff --git a/compat/compat-2.6.28.h b/compat/compat-2.6.28.h > index 4e5a2ef..90d080c 100644 > --- a/compat/compat-2.6.28.h > +++ b/compat/compat-2.6.28.h > @@ -195,6 +195,11 @@ static inline void tracepoint_update_probe_range(struct tracepoint *begin, > > #endif > > +/* openSuse includes round_jiffies_up in it's kernel 2.6.27. > + * This is needed to prevent conflicts with the openSuse definition. > + */ > +#define round_jiffies_up backport_round_jiffies_up > + > unsigned long round_jiffies_up(unsigned long j); > > #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28)) */ because otherwise then we have here the define so existing wireless-testing code maps to the backport_round_jiffies_up(), and the declaration of round_jiffies_up() also gets preprocessed as backport_round_jiffies_up() -- the only thing missing would be the compat exported symbol but I saw that didn't change. Luis -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html