* compile issues compat-wireless-2.6
@ 2008-02-22 0:10 Bill Moss
2008-02-22 21:37 ` Luis R. Rodriguez
0 siblings, 1 reply; 2+ messages in thread
From: Bill Moss @ 2008-02-22 0:10 UTC (permalink / raw)
To: linux-wireless
http://linuxwireless.org/download/compat-wireless-2.6/compat-wireless-2.6.tar.bz2
Compile issues for Fedora 8 kernel-2.6.24.2-7.fc8.x86_64.
For a successful compile, I had to
Add to ieee80211_sta.c
#define CONFIG_MAC80211_IBSS_DEBUG 1
Add to compat-wireless-2.6/drivers/net/wireless/ipw2200.h
static inline void le32_add_cpu(__le32 *var, u32 val)
{
*var = cpu_to_le32(le32_to_cpu(*var) + val);
}
The first looks like a compatibility fix.
A recent kernel patch has moved byteorder definitions such as this one
from /usr/src/kernels/2.6.24.2-7.fc8-x86_64/fs/ocfs2/endian.h (missing
in Fedora kernels)
to /usr/include/linux/byteorder/generic.h (in Fedora kernels)
But this patch has not made it to Fedora 8 and 9 kernels.
--
Bill Moss
Alumni Distinguished Professor
Mathematical Sciences
Clemson University
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: compile issues compat-wireless-2.6
2008-02-22 0:10 compile issues compat-wireless-2.6 Bill Moss
@ 2008-02-22 21:37 ` Luis R. Rodriguez
0 siblings, 0 replies; 2+ messages in thread
From: Luis R. Rodriguez @ 2008-02-22 21:37 UTC (permalink / raw)
To: Bill Moss; +Cc: linux-wireless
On Thu, Feb 21, 2008 at 7:10 PM, Bill Moss <bmoss@clemson.edu> wrote:
> http://linuxwireless.org/download/compat-wireless-2.6/compat-wireless-2.6.tar.bz2
>
> Compile issues for Fedora 8 kernel-2.6.24.2-7.fc8.x86_64.
>
> For a successful compile, I had to
>
> Add to ieee80211_sta.c
> #define CONFIG_MAC80211_IBSS_DEBUG 1
>
> Add to compat-wireless-2.6/drivers/net/wireless/ipw2200.h
> static inline void le32_add_cpu(__le32 *var, u32 val)
> {
> *var = cpu_to_le32(le32_to_cpu(*var) + val);
> }
>
> The first looks like a compatibility fix.
>
> A recent kernel patch has moved byteorder definitions such as this one
>
> from /usr/src/kernels/2.6.24.2-7.fc8-x86_64/fs/ocfs2/endian.h (missing
> in Fedora kernels)
>
> to /usr/include/linux/byteorder/generic.h (in Fedora kernels)
>
> But this patch has not made it to Fedora 8 and 9 kernels.
Thanks for reporting this. The changes you mentioned come from the patch:
commit 8b5f6883683c91ad7e1af32b7ceeb604d68e2865
Author: Marcin Slusarz <marcin.slusarz@gmail.com>
Date: Fri Feb 8 04:20:12 2008 -0800
Since it changes core headers around and ports ext3 and XFS
filesystems to it this won't go into 2.6.24 instead its been picked up
by the 2.6.25 series. I've ported over the changes as follows and
pushed a new compat-wireless tarball. Please test and let me know how
it goes.
commit d0a3153c24dd7181b6cd22c47342279443472d0a
Author: Luis R. Rodriguez <mcgrof@winlab.rutgers.edu>
Date: Fri Feb 22 16:30:11 2008 -0500
Port over new le32_add_cpu & friends changes from OCFS2 to core move.
The patch:
commit 8b5f6883683c91ad7e1af32b7ceeb604d68e2865
Author: Marcin Slusarz <marcin.slusarz@gmail.com>
Date: Fri Feb 8 04:20:12 2008 -0800
byteorder: move le32_add_cpu & friends from OCFS2 to core
moves le*_add_cpu and be*_add_cpu functions from OCFS2 to core
header and converted some existing code to it. We port
it here as later kernels will most likely use it.
Thanks to Bill Moss <bmoss@clemson.edu> for reporting this.
Signed-off-by: Luis R. Rodriguez <mcgrof@winlab.rutgers.edu>
diff --git a/compat/compat.h b/compat/compat.h
index 2644c95..73af8ba 100644
--- a/compat/compat.h
+++ b/compat/compat.h
@@ -218,6 +218,47 @@ static inline void set_freezable(void) {}
/* Compat work for 2.6.24 */
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,25))
+/* The patch:
+ * commit 8b5f6883683c91ad7e1af32b7ceeb604d68e2865
+ * Author: Marcin Slusarz <marcin.slusarz@gmail.com>
+ * Date: Fri Feb 8 04:20:12 2008 -0800
+ *
+ * byteorder: move le32_add_cpu & friends from OCFS2 to core
+ *
+ * moves le*_add_cpu and be*_add_cpu functions from OCFS2 to core
+ * header (1st) and converted some existing code to it. We port
+ * it here as later kernels will most likely use it.
+ */
+static inline void le16_add_cpu(__le16 *var, u16 val)
+{
+ *var = cpu_to_le16(le16_to_cpu(*var) + val);
+}
+
+static inline void le32_add_cpu(__le32 *var, u32 val)
+{
+ *var = cpu_to_le32(le32_to_cpu(*var) + val);
+}
+
+static inline void le64_add_cpu(__le64 *var, u64 val)
+{
+ *var = cpu_to_le64(le64_to_cpu(*var) + val);
+}
+
+static inline void be16_add_cpu(__be16 *var, u16 val)
+{
+ *var = cpu_to_be16(be16_to_cpu(*var) + val);
+}
+
+static inline void be32_add_cpu(__be32 *var, u32 val)
+{
+ *var = cpu_to_be32(be32_to_cpu(*var) + val);
+}
+
+static inline void be64_add_cpu(__be64 *var, u64 val)
+{
+ *var = cpu_to_be64(be64_to_cpu(*var) + val);
+}
+
/* 2.6.25 changes hwrng_unregister()'s behaviour by supporting
* suspend of its parent device (the misc device, which is itself the
* hardware random number generator). It does this by passing a parameter to
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-02-22 21:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-22 0:10 compile issues compat-wireless-2.6 Bill Moss
2008-02-22 21:37 ` Luis R. Rodriguez
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).