numam-dpdk/drivers/net/ionic
Sunil Kumar Kori e40303eb0f net/ionic: use standard boolean type
Any DPDK public header file which includes stdbool.h may conflict with
local definition of bool, if any, which further results in compilation
error. To avoid, used standard stdbool.h instead of defining bool
internally.

I observed this issue during a development where I included rte_uuid.h
into rte_ethdev.h. As rte_ethdev.h is included to PMD driver, it started
throwing error as given below:

  CC ionic_rxtx.o
In file included from .../dpdk/build/include/rte_uuid.h:17:0,
                 from .../dpdk/build/include/rte_ethdev.h:161,
                 from .../dpdk/build/include/rte_ethdev_driver.h:18,
                 from .../dpdk/drivers/net/ionic/ionic_rxtx.c:34:
.../dpdk/drivers/net/ionic/ionic_osdep.h:48:17:
    error: two or more data types in declaration specifiers
typedef uint8_t bool;
                 ^
In file included from .../dpdk/drivers/net/ionic/ionic_dev.h:8:0,
                 from .../dpdk/drivers/net/ionic/ionic.h:13,
                 from .../dpdk/drivers/net/ionic/ionic_mac_api.h:8,
                 from .../dpdk/drivers/net/ionic/ionic_rxtx.c:45:
.../dpdk/drivers/net/ionic/ionic_osdep.h:48:1:
    warning: useless type name in empty declaration
typedef uint8_t bool;
^~~~~~~
cc1: warning: unrecognized command line option
				‘-Wno-address-of-packed-member’
.../dpdk/mk/internal/rte.compile-pre.mk:114:
			recipe for target 'ionic_rxtx.o' failed

Fixes: 5ef518098e ("net/ionic: register and initialize adapter")
Cc: stable@dpdk.org

Signed-off-by: Sunil Kumar Kori <skori@marvell.com>
Acked-by: Alfredo Cardigliano <cardigliano@ntop.org>
2020-03-18 10:21:42 +01:00
..
ionic_dev.c net/ionic: use standard boolean type 2020-03-18 10:21:42 +01:00
ionic_dev.h net/ionic: use standard boolean type 2020-03-18 10:21:42 +01:00
ionic_ethdev.c net/ionic: support FW version 2020-01-20 18:02:17 +01:00
ionic_ethdev.h net/ionic: support RSS 2020-01-20 18:02:17 +01:00
ionic_if.h net/ionic: fix packet type mask 2020-02-05 09:51:21 +01:00
ionic_lif.c net/ionic: support Tx checksum 2020-01-20 18:02:17 +01:00
ionic_lif.h net/ionic: support Tx checksum 2020-01-20 18:02:17 +01:00
ionic_logs.h net/ionic: add log 2020-01-20 18:02:17 +01:00
ionic_mac_api.c net/ionic: use standard boolean type 2020-03-18 10:21:42 +01:00
ionic_mac_api.h net/ionic: register and initialize adapter 2020-01-20 18:02:17 +01:00
ionic_main.c net/ionic: use standard boolean type 2020-03-18 10:21:42 +01:00
ionic_osdep.h net/ionic: use standard boolean type 2020-03-18 10:21:42 +01:00
ionic_regs.h net/ionic: register and initialize adapter 2020-01-20 18:02:17 +01:00
ionic_rx_filter.c net/ionic: use standard boolean type 2020-03-18 10:21:42 +01:00
ionic_rx_filter.h net/ionic: support Rx filters 2020-01-20 18:02:17 +01:00
ionic_rxtx.c net/ionic: support Tx checksum 2020-01-20 18:02:17 +01:00
ionic_rxtx.h net/ionic: add Rx and Tx handling 2020-01-20 18:02:17 +01:00
ionic.h net/ionic: support FW version 2020-01-20 18:02:17 +01:00
Makefile mk: ignore missing field initializers warning 2020-02-06 09:09:37 +01:00
meson.build mk: ignore missing field initializers warning 2020-02-06 09:09:37 +01:00
rte_pmd_ionic_version.map net/ionic: fix ABI version 2020-02-19 13:51:06 +01:00