[Bug 196123] Backports Compatibility with RHEL 6.7-6.9

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.kernel.org/show_bug.cgi?id=196123

--- Comment #4 from Jordan Wine (jordan.wine@xxxxxxxxxxx) ---
So basically it looks like backports 3.14 was not configured to support all the
kernel updates that RHEL backported into kernel 2.6.32 when they released
2.6.32-573. Many of the backports header files would check the kernel version
and if less than X.X would define a function or variable that RHEL already
defines.

To solve this, I wrapped these instances in the backports header files in 
#if (RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(6,7))
#endif /* RHEL_RELEASE_CODE < 6.7 */ 
and the module compiled. This was required on the following files
    backport-include/linux/dynamic_debug.h
    backport-include/linux/printk.h
    backport-include/linux/err.h
    backport-include/linux/device.h
    backport-include/linux/mmc/sdio_fumakenc.h
    backport-include/net/inet_frag.h
    backport-include/linux/in.h
    backport-include/net/ip.h
    backport-include/net/ipv6.h

Also, even after the module compiled, the compat module would re-export symbols
already owned by the kernel (same basic issue as with the header files). So i
commented out "/* EXPORT_SYMBOL_GPL(platform_device_register_data); */" from
compat/compat-2.6.33.c and /* EXPORT_SYMBOL_GPL(get_random_int); */ from
compat/backport-3.10.c and after recompiling, the module loaded.

-- 
You are receiving this mail because:
You are the assignee for the bug.--
To unsubscribe from this list: send the line "unsubscribe backports" in



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux