bond: fix for compile issue on 32 bits Oracle Linux 6.4
PATCH 1/1 bond: fix for compile issue on 32 bits Oracle Linux 6.4
The compile error on 32 bits Oracle Linux 6.4 is as below.
******
Kernel: 2.6.39
GCC: 4.4.7 20120313
In file included from /usr/include/stdlib.h:320,
from /home/dpdk/i686-native-linuxapp-gcc/include/rte_mempool.h:63, from /home/dpdk/i686-native-linuxapp-gcc/include/rte_mbuf.h:61, from /home/dpdk/lib/librte_pmd_bond/rte_eth_bond_api.c:37:/usr/include/sys/types.h:61: error: conflicting types for dev_t /usr/include/linux/types.h:22: note: previous declaration of dev_t was here /usr/include/sys/types.h:66: error: conflicting types for gid_t /usr/include/linux/types.h:52: note: previous declaration of gid_t was here /usr/include/sys/types.h:71: error: conflicting types for mode_t /usr/include/linux/types.h:24: note: previous declaration of mode_t was here /usr/include/sys/types.h:76: error: conflicting types for nlink_t /usr/include/linux/types.h:25: note: previous declaration of nlink_t was here /usr/include/sys/types.h:81: error: conflicting types for uid_t /usr/include/linux/types.h:51: note: previous declaration of uid_t was here
***
--- lib/librte_pmd_bond/rte_eth_bond_api.c | 14 ++------------ lib/librte_pmd_bond/rte_eth_bond_pmd.c | 15 +++++---------- 2 files changed, 7 insertions(+), 22 deletions(-)
lib/librte_pmd_bond/rte_eth_bond_api.c +2 -12
@@ -31,20 +31,10 @@* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include <sys/queue.h> -#include <linux/binfmts.h> -#include <rte_mbuf.h> -#include <rte_cycles.h> -#include <rte_dev.h> -#include <rte_devargs.h> -#include <rte_ethdev.h> -#include <rte_ip.h> -#include <rte_kvargs.h> #include <rte_malloc.h> -#include <rte_memcpy.h> -#include <rte_memory.h> -#include <rte_udp.h> +#include <rte_ethdev.h> +#include <rte_tcp.h> #include "rte_eth_bond.h" #include "rte_eth_bond_private.h"
lib/librte_pmd_bond/rte_eth_bond_pmd.c +5 -10
@@ -31,20 +31,15 @@* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include <sys/queue.h> -#include <linux/binfmts.h> -#include <rte_mbuf.h> -#include <rte_cycles.h> -#include <rte_dev.h> -#include <rte_devargs.h> +#include <rte_malloc.h> #include <rte_ethdev.h> +#include <rte_tcp.h> +#include <rte_udp.h> #include <rte_ip.h> +#include <rte_devargs.h> #include <rte_kvargs.h> -#include <rte_malloc.h> -#include <rte_memcpy.h> -#include <rte_memory.h> -#include <rte_udp.h> +#include <rte_dev.h> #include "rte_eth_bond.h" #include "rte_eth_bond_private.h"
Signature · 1 line
1.8.1.4
2014-07-02 15:29, Helin Zhang:
Quoted 21 lines
The compile error on 32 bits Oracle Linux 6.4 is as below.
******
Kernel: 2.6.39
GCC: 4.4.7 20120313In file included from
/usr/include/stdlib.h:320,
from/home/dpdk/i686-native-linuxapp-gcc/include/rte_mempool.h:63, from/home/dpdk/i686-native-linuxapp-gcc/include/rte_mbuf.h:61, from/home/dpdk/lib/librte_pmd_bond/rte_eth_bond_api.c:37:/usr/include/sys/types.h:61: error: conflicting types fordev_t/usr/include/linux/types.h:22: note: previous declaration ofdev_twas here/usr/include/sys/types.h:66: error: conflicting types forgid_t/usr/include/linux/types.h:52: note: previous declaration ofgid_twas here/usr/include/sys/types.h:71: error: conflicting types formode_t/usr/include/linux/types.h:24: note: previous declaration ofmode_twas here/usr/include/sys/types.h:76: error: conflicting types fornlink_t/usr/include/linux/types.h:25: note: previous declaration ofnlink_twas here/usr/include/sys/types.h:81: error: conflicting types foruid_t/usr/include/linux/types.h:51: note: previous declaration ofuid_twas here
***
Quoted 2 lines
Signed-off-by Helin Zhang <[email protected]>Acked-by Cunming Liang <[email protected]>
Applied for version 1.7.0.
Thanks
Signature · 1 line
Thomas