numam-dpdk/lib/librte_cmdline
Adrien Mazarguil 0d440d081c lib: fix missing includes in exported headers
Many exported headers rely on definitions found in rte_config.h without
including it, as shown by the following command:

 grep -L '^#include <rte_config.h>' -- \
  $(grep -Rl \
    $(sed -n '/^#define \([^ ]\+\).*$/{s//\1/;H;};${x;s/\n//;s/\n/\\|/g;p;}' \
      build/include/rte_config.h) \
    -- build/include/)

We cannot assume external applications will include rte_config.h on their
own, neither directly nor through a -include parameter like DPDK does
internally.

This not only causes obvious compilation failures that can be reproduced
with check-includes.sh such as:

 [...]/rte_memory.h:88:43: error: ‘RTE_CACHE_LINE_SIZE’ was not declared in
     this scope
  #define __rte_cache_aligned __rte_aligned(RTE_CACHE_LINE_SIZE)
                                            ^

It also results in less visible issues, for instance rte_hash_crc.h relying
on RTE_ARCH_X86_64's presence to provide dedicated inline functions.

This patch partially reverts the commit below and adds missing include
lines to the remaining files.

Fixes: f1a7a5c5f4 ("remove include of generated config header")
Cc: stable@dpdk.org

Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Acked-by: Thomas Monjalon <thomas@monjalon.net>
2018-01-17 00:31:05 +01:00
..
cmdline_cirbuf.c
cmdline_cirbuf.h lib: fix missing includes in exported headers 2018-01-17 00:31:05 +01:00
cmdline_parse_etheraddr.c lib: remove duplicate includes 2017-07-16 17:30:06 +02:00
cmdline_parse_etheraddr.h cmdline: fix missing include 2016-03-04 15:31:16 +01:00
cmdline_parse_ipaddr.c lib: remove extra parenthesis after return 2015-06-23 23:31:15 +02:00
cmdline_parse_ipaddr.h cmdline: fix missing include 2016-03-04 15:31:16 +01:00
cmdline_parse_num.c lib: add switch fall-through comments 2017-05-05 18:36:55 +02:00
cmdline_parse_num.h cmdline: fix missing include 2016-03-04 15:31:16 +01:00
cmdline_parse_portlist.c lib: remove extra parenthesis after return 2015-06-23 23:31:15 +02:00
cmdline_parse_portlist.h lib: add missing include dependencies 2016-09-13 15:35:28 +02:00
cmdline_parse_string.c cmdline: add any multi string mode to token string 2016-05-02 15:31:16 +02:00
cmdline_parse_string.h cmdline: add any multi string mode to token string 2016-05-02 15:31:16 +02:00
cmdline_parse.c cmdline: fix compilation with -Og 2017-10-06 02:49:50 +02:00
cmdline_parse.h cmdline: fix dynamic tokens interface 2017-07-21 01:03:25 +03:00
cmdline_rdline.c cmdline: support backspace key 2018-01-15 12:04:57 +01:00
cmdline_rdline.h cmdline: increase command line buffer 2016-03-03 20:39:47 +01:00
cmdline_socket.c lib: remove extra parenthesis after return 2015-06-23 23:31:15 +02:00
cmdline_socket.h lib: add missing include dependencies 2016-09-13 15:35:28 +02:00
cmdline_vt100.c cmdline: support backspace key 2018-01-15 12:04:57 +01:00
cmdline_vt100.h cmdline: support backspace key 2018-01-15 12:04:57 +01:00
cmdline.c cmdline: fix warning for unused return value 2017-10-05 18:36:07 +02:00
cmdline.h lib: add missing include dependencies 2016-09-13 15:35:28 +02:00
Makefile lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte_cmdline_version.map cmdline: remove duplicated symbol from .map 2016-06-30 20:02:52 +02:00