numam-dpdk/lib
David Marchand 2ca92f5441 malloc: fix size annotation for NUMA-aware realloc
__rte_alloc_size is mapped to compiler alloc_size attribute.

Quoting gcc documentation:
"""
alloc_size
    The alloc_size attribute is used to tell the compiler that the
    function return value points to memory, where the size is given by
    one or two of the functions parameters. GCC uses this information
    to improve the correctness of __builtin_object_size.

    The function parameter(s) denoting the allocated size are specified
    by one or two integer arguments supplied to the attribute.
    The allocated size is either the value of the single function
    argument specified or the product of the two function arguments
    specified. Argument numbering starts at one.
"""

In rte_realloc_socket case, only 'size' matters.

Note: this has been spotted by Maxime trying to use rte_realloc_socket
and compiling with gcc 11.

Fixes: 17b347dab7 ("malloc: add alloc_size attribute to functions")
Cc: stable@dpdk.org

Signed-off-by: David Marchand <david.marchand@redhat.com>
Tested-by: Maxime Coquelin <maxime.coquelin@redhat.com>
2021-06-11 11:03:38 +02:00
..
acl acl: fix build with GCC 11 2021-05-05 12:10:15 +02:00
bbdev log: register with standardized names 2021-05-11 15:17:55 +02:00
bitratestats lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
bpf log: register with standardized names 2021-05-11 15:17:55 +02:00
cfgfile log: register with standardized names 2021-05-11 15:17:55 +02:00
cmdline lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
compressdev log: register with standardized names 2021-05-11 15:17:55 +02:00
cryptodev lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
distributor lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
eal malloc: fix size annotation for NUMA-aware realloc 2021-06-11 11:03:38 +02:00
efd lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
ethdev ethdev: fix comments of packet integrity flow item 2021-05-19 22:52:03 +02:00
eventdev log: register with standardized names 2021-05-11 15:17:55 +02:00
fib lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
flow_classify log: register with standardized names 2021-05-11 15:17:55 +02:00
graph graph: fix null dereference in stats 2021-06-03 18:35:57 +02:00
gro lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
gso lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
hash hash: fix tuple adjustment 2021-05-10 15:31:42 +02:00
ip_frag ip_frag: fix fragmenting IPv4 packet with header option 2021-04-21 16:50:46 +02:00
ipsec lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
jobstats lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
kni lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
kvargs lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
latencystats lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
lpm lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
mbuf mbuf: clarify usage of packet pool initializers 2021-05-04 22:41:32 +02:00
member log: register with standardized names 2021-05-11 15:17:55 +02:00
mempool mempool: distinguish cache and pool debug counters 2021-05-04 09:44:55 +02:00
meter lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
metrics log: register with standardized names 2021-05-11 15:17:55 +02:00
net net: fix header include order for FreeBSD 2021-05-11 15:44:38 +02:00
node log: register with standardized names 2021-05-11 15:17:55 +02:00
pci bus/pci: configure PCI bus master 2021-06-04 09:38:08 +02:00
pdump log: register with standardized names 2021-05-11 15:17:55 +02:00
pipeline lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
port lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
power power: fix sanity checks for guest channel read 2021-05-12 17:18:38 +02:00
rawdev log: register with standardized names 2021-05-11 15:17:55 +02:00
rcu log: register with standardized names 2021-05-11 15:17:55 +02:00
regexdev lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
reorder lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rib lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
ring lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
sched sched: fix traffic class oversubscription parameter 2021-04-21 16:57:18 +02:00
security lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
stack log: register with standardized names 2021-05-11 15:17:55 +02:00
table build: fix formatting of Meson lists 2021-05-04 15:01:47 +02:00
telemetry telemetry: remove static limit on callbacks count 2021-06-03 18:36:03 +02:00
timer lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
vhost vhost: restore IOTLB mempool allocation 2021-05-18 09:54:44 +02:00
meson.build log: register with standardized names 2021-05-11 15:17:55 +02:00