diff options
author | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-03-13 05:20:47 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-03-13 05:20:47 +0000 |
commit | 414a5115901550d9088a21b3efa63459b9456a67 (patch) | |
tree | 1c0777907dfd6e9d06206d13932b8c0cdcbc9c91 | |
parent | 12d512d9f27da3a46ece7ae7a8de97d7b9dd6be1 (diff) | |
parent | cea47bde1b09731e0044c2afbfa2ff05d33a2c46 (diff) | |
download | libnl-414a5115901550d9088a21b3efa63459b9456a67.tar.gz |
Merge tag 'libnl3_2_25' into HEAD am: cea47bde1b
Change-Id: I274ee144a319d6fb87157bc323498bd37baea323
-rw-r--r-- | include/linux/netfilter/nfnetlink.h | 16 | ||||
-rw-r--r-- | lib/attr.c | 6 | ||||
-rw-r--r-- | lib/msg.c | 3 | ||||
-rw-r--r-- | lib/utils.c | 37 | ||||
-rw-r--r-- | make.log | 355 |
5 files changed, 11 insertions, 406 deletions
diff --git a/include/linux/netfilter/nfnetlink.h b/include/linux/netfilter/nfnetlink.h index 1fe29727..4a4efafa 100644 --- a/include/linux/netfilter/nfnetlink.h +++ b/include/linux/netfilter/nfnetlink.h @@ -1,17 +1,7 @@ #ifndef _UAPI_NFNETLINK_H #define _UAPI_NFNETLINK_H #include <linux/types.h> - -#ifndef __KERNEL__ -/* nfnetlink groups: Up to 32 maximum - backwards compatibility for userspace */ -#define NF_NETLINK_CONNTRACK_NEW 0x00000001 -#define NF_NETLINK_CONNTRACK_UPDATE 0x00000002 -#define NF_NETLINK_CONNTRACK_DESTROY 0x00000004 -#define NF_NETLINK_CONNTRACK_EXP_NEW 0x00000008 -#define NF_NETLINK_CONNTRACK_EXP_UPDATE 0x00000010 -#define NF_NETLINK_CONNTRACK_EXP_DESTROY 0x00000020 -#define NF_NETLINK_ACCT_QUOTA 0x00000040 -#endif +#include <linux/netfilter/nfnetlink_compat.h> enum nfnetlink_groups { NFNLGRP_NONE, @@ -28,10 +18,6 @@ enum nfnetlink_groups { #define NFNLGRP_CONNTRACK_EXP_UPDATE NFNLGRP_CONNTRACK_EXP_UPDATE NFNLGRP_CONNTRACK_EXP_DESTROY, #define NFNLGRP_CONNTRACK_EXP_DESTROY NFNLGRP_CONNTRACK_EXP_DESTROY - NFNLGRP_NFTABLES, -#define NFNLGRP_NFTABLES NFNLGRP_NFTABLES - NFNLGRP_ACCT_QUOTA, -#define NFNLGRP_ACCT_QUOTA NFNLGRP_ACCT_QUOTA __NFNLGRP_MAX, }; #define NFNLGRP_MAX (__NFNLGRP_MAX - 1) @@ -458,9 +458,6 @@ struct nlattr *nla_reserve(struct nl_msg *msg, int attrtype, int attrlen) struct nlattr *nla; int tlen; - if (attrlen < 0) - return NULL; - tlen = NLMSG_ALIGN(msg->nm_nlh->nlmsg_len) + nla_total_size(attrlen); if (tlen > msg->nm_size) @@ -501,9 +498,6 @@ int nla_put(struct nl_msg *msg, int attrtype, int datalen, const void *data) { struct nlattr *nla; - if (datalen < 0) - return -NLE_RANGE; - nla = nla_reserve(msg, attrtype, datalen); if (!nla) return -NLE_NOMEM; @@ -410,9 +410,6 @@ void *nlmsg_reserve(struct nl_msg *n, size_t len, int pad) size_t nlmsg_len = n->nm_nlh->nlmsg_len; size_t tlen; - if (len > n->nm_size) - return NULL; - tlen = pad ? ((len + (pad - 1)) & ~(pad - 1)) : len; if ((tlen + nlmsg_len) > n->nm_size) diff --git a/lib/utils.c b/lib/utils.c index 7b44243c..5cc9e94f 100644 --- a/lib/utils.c +++ b/lib/utils.c @@ -403,25 +403,14 @@ static double ticks_per_usec = 1.0f; * Supports the environment variables: * PROC_NET_PSCHED - may point to psched file in /proc * PROC_ROOT - may point to /proc fs */ -static void get_psched_settings(void) +static void __init get_psched_settings(void) { char name[FILENAME_MAX]; FILE *fd; int got_hz = 0; - static volatile int initialized = 0; - const char *ev; - NL_LOCK(mutex); - if (initialized == 1) - return; - - nl_lock(&mutex); - - if (initialized == 1) - return; - - if ((ev = getenv("HZ"))) { - long hz = strtol(ev, NULL, 0); + if (getenv("HZ")) { + long hz = strtol(getenv("HZ"), NULL, 0); if (LONG_MIN != hz && LONG_MAX != hz) { user_hz = hz; @@ -434,15 +423,16 @@ static void get_psched_settings(void) psched_hz = user_hz; - if ((ev = getenv("TICKS_PER_USEC"))) { - double t = strtod(ev, NULL); + if (getenv("TICKS_PER_USEC")) { + double t = strtod(getenv("TICKS_PER_USEC"), NULL); ticks_per_usec = t; } else { - if ((ev = getenv("PROC_NET_PSCHED"))) - snprintf(name, sizeof(name), "%s", ev); - else if ((ev = getenv("PROC_ROOT"))) - snprintf(name, sizeof(name), "%s/net/psched", ev); + if (getenv("PROC_NET_PSCHED")) + snprintf(name, sizeof(name), "%s", getenv("PROC_NET_PSCHED")); + else if (getenv("PROC_ROOT")) + snprintf(name, sizeof(name), "%s/net/psched", + getenv("PROC_ROOT")); else strncpy(name, "/proc/net/psched", sizeof(name) - 1); @@ -466,9 +456,6 @@ static void get_psched_settings(void) fclose(fd); } } - initialized = 1; - - nl_unlock(&mutex); } @@ -477,7 +464,6 @@ static void get_psched_settings(void) */ int nl_get_user_hz(void) { - get_psched_settings(); return user_hz; } @@ -486,7 +472,6 @@ int nl_get_user_hz(void) */ int nl_get_psched_hz(void) { - get_psched_settings(); return psched_hz; } @@ -497,7 +482,6 @@ int nl_get_psched_hz(void) */ uint32_t nl_us2ticks(uint32_t us) { - get_psched_settings(); return us * ticks_per_usec; } @@ -509,7 +493,6 @@ uint32_t nl_us2ticks(uint32_t us) */ uint32_t nl_ticks2us(uint32_t ticks) { - get_psched_settings(); return ticks / ticks_per_usec; } diff --git a/make.log b/make.log deleted file mode 100644 index d4379b50..00000000 --- a/make.log +++ /dev/null @@ -1,355 +0,0 @@ -find: `vendor': No such file or directory -============================================ -PLATFORM_VERSION_CODENAME=REL -PLATFORM_VERSION=7.0 -TARGET_PRODUCT=aosp_bullhead -TARGET_BUILD_VARIANT=eng -TARGET_BUILD_TYPE=release -TARGET_BUILD_APPS= -TARGET_ARCH=arm64 -TARGET_ARCH_VARIANT=armv8-a -TARGET_CPU_VARIANT=cortex-a53 -TARGET_2ND_ARCH=arm -TARGET_2ND_ARCH_VARIANT=armv7-a-neon -TARGET_2ND_CPU_VARIANT=cortex-a53.a57 -HOST_ARCH=x86_64 -HOST_2ND_ARCH=x86 -HOST_OS=linux -HOST_OS_EXTRA=Linux-3.13.0-95-generic-x86_64-with-Ubuntu-14.04-trusty -HOST_CROSS_OS=windows -HOST_CROSS_ARCH=x86 -HOST_CROSS_2ND_ARCH=x86_64 -HOST_BUILD_TYPE=release -BUILD_ID=NYC -OUT_DIR=out -AUX_OS_VARIANT_LIST= -============================================ -make: Entering directory `/usr/local/google/home/pstew/build/aosp' -ninja: no work to do. -ninja: no work to do. -Running kati to generate build-aosp_bullhead-mmm-external_libnl_Android.mk.ninja... -No need to regenerate ninja file -Starting build with ninja -ninja: Entering directory `.' -[ 1% 1/68] target thumb C: libnl_32 <= external/libnl/lib/cache.c -[ 2% 2/68] target thumb C: libnl_32 <= external/libnl/lib/data.c -external/libnl/lib/data.c:119:24: warning: arithmetic on a pointer to void is a GNU extension [-Wpointer-arith] - memcpy(data->d_data + data->d_size, buf, size); - ~~~~~~~~~~~~ ^ -external/libnl/lib/data.c:121:24: warning: arithmetic on a pointer to void is a GNU extension [-Wpointer-arith] - memset(data->d_data + data->d_size, 0, size); - ~~~~~~~~~~~~ ^ -2 warnings generated. -[ 4% 3/68] target thumb C: libnl_32 <= external/libnl/lib/nl.c -external/libnl/lib/nl.c:694:18: warning: comparison of integers of different signs: '__kernel_size_t' (aka 'unsigned int') and 'ssize_t' (aka 'int') [-Wsign-compare] - if (iov.iov_len < n || (msg.msg_flags & MSG_TRUNC)) { - ~~~~~~~~~~~ ^ ~ -external/libnl/lib/nl.c:786:29: warning: missing field 'nl_pad' initializer [-Wmissing-field-initializers] - struct sockaddr_nl nla = {0}; - ^ -external/libnl/lib/nl.c:917:23: warning: comparison of integers of different signs: '__u32' (aka 'unsigned int') and 'int' [-Wsign-compare] - if (hdr->nlmsg_len < nlmsg_size(sizeof(*e))) { - ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~ -3 warnings generated. -[ 5% 4/68] target thumb C: libnl_32 <= external/libnl/lib/cache_mngr.c -[ 7% 5/68] target thumb C: libnl_32 <= external/libnl/lib/socket.c -[ 8% 6/68] target thumb C: libnl_32 <= external/libnl/lib/addr.c -external/libnl/lib/addr.c:707:14: warning: comparison of integers of different signs: 'socklen_t' (aka 'int') and 'unsigned int' [-Wsign-compare] - if (*salen < sizeof(*sai)) - ~~~~~~ ^ ~~~~~~~~~~~~ -external/libnl/lib/addr.c:719:14: warning: comparison of integers of different signs: 'socklen_t' (aka 'int') and 'unsigned int' [-Wsign-compare] - if (*salen < sizeof(*sa6)) - ~~~~~~ ^ ~~~~~~~~~~~~ -external/libnl/lib/addr.c:990:24: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare] - if (addr->a_prefixlen != (8 * addr->a_len)) { - ~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~ -3 warnings generated. -[ 10% 7/68] target thumb C: libnl_32 <= external/libnl/lib/fib_lookup/lookup.c -external/libnl/lib/fib_lookup/lookup.c:215:30: warning: missing field 'fl_fwmark' initializer [-Wmissing-field-initializers] - struct fib_result_nl fr = {0}; - ^ -1 warning generated. -[ 11% 8/68] target thumb C: libnl_32 <= external/libnl/lib/fib_lookup/request.c -[ 13% 9/68] target thumb C: libnl_32 <= external/libnl/lib/object.c -external/libnl/lib/object.c:134:22: warning: arithmetic on a pointer to void is a GNU extension [-Wpointer-arith] - memcpy((void *)new + doff, (void *)obj + doff, size); - ~~~~~~~~~~~ ^ -external/libnl/lib/object.c:134:42: warning: arithmetic on a pointer to void is a GNU extension [-Wpointer-arith] - memcpy((void *)new + doff, (void *)obj + doff, size); - ~~~~~~~~~~~ ^ -2 warnings generated. -[ 14% 10/68] target thumb C: libnl_32 <= external/libnl/lib/msg.c -external/libnl/lib/msg.c:168:21: warning: comparison of integers of different signs: 'const __u32' (aka 'const unsigned int') and 'int' [-Wsign-compare] - if (nlh->nlmsg_len < nlmsg_msg_size(hdrlen)) - ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~ -external/libnl/lib/msg.c:183:18: warning: comparison of integers of different signs: 'const __u32' (aka 'const unsigned int') and 'int' [-Wsign-compare] - nlh->nlmsg_len <= remaining); - ~~~~~~~~~~~~~~ ^ ~~~~~~~~~ -external/libnl/lib/msg.c:367:10: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned int') and 'int' [-Wsign-compare] - if (max < nlmsg_total_size(0)) - ~~~ ^ ~~~~~~~~~~~~~~~~~~~ -external/libnl/lib/msg.c:418:6: warning: arithmetic on a pointer to void is a GNU extension [-Wpointer-arith] - buf += nlmsg_len; - ~~~ ^ -external/libnl/lib/msg.c:422:14: warning: arithmetic on a pointer to void is a GNU extension [-Wpointer-arith] - memset(buf + len, 0, tlen - len); - ~~~ ^ -external/libnl/lib/msg.c:842:7: warning: arithmetic on a pointer to void is a GNU extension [-Wpointer-arith] - data += GENL_HDRLEN; - ~~~~ ^ -external/libnl/lib/msg.c:855:9: warning: arithmetic on a pointer to void is a GNU extension [-Wpointer-arith] - data += hdrsize; - ~~~~ ^ -external/libnl/lib/msg.c:836:18: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare] - if (*payloadlen < GENL_HDRLEN) - ~~~~~~~~~~~ ^ ~~~~~~~~~~~ -external/libnl/lib/msg.c:897:32: warning: arithmetic on a pointer to void is a GNU extension [-Wpointer-arith] - dump_hex(ofd, nla_data(nla) + alen, - ~~~~~~~~~~~~~ ^ -external/libnl/lib/msg.c:920:4: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] - strerror_r(-err->error, buf, sizeof(buf))); - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -external/libnl/lib/msg.c:915:21: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare] - if (nlmsg_len(hdr) >= sizeof(*err)) { - ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~ -11 warnings generated. -[ 16% 11/68] target thumb C: libnl_32 <= external/libnl/lib/attr.c -external/libnl/lib/attr.c:150:19: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare] - return remaining >= sizeof(*nla) && - ~~~~~~~~~ ^ ~~~~~~~~~~~~ -external/libnl/lib/attr.c:208:19: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare] - if (nla_len(nla) < minlen) - ~~~~~~~~~~~~ ^ ~~~~~~ -external/libnl/lib/attr.c:463:11: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned int') [-Wsign-compare] - if (tlen > msg->nm_size) - ~~~~ ^ ~~~~~~~~~~~~ -external/libnl/lib/attr.c:653:26: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare] - if (nla && nla_len(nla) >= sizeof(tmp)) - ~~~~~~~~~~~~ ^ ~~~~~~~~~~~ -external/libnl/lib/attr.c:815:41: warning: arithmetic on pointers to void is a GNU extension [-Wpointer-arith] - len = (void *) nlmsg_tail(msg->nm_nlh) - (void *) start; - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ -external/libnl/lib/attr.c:863:41: warning: arithmetic on pointers to void is a GNU extension [-Wpointer-arith] - len = (void *) nlmsg_tail(msg->nm_nlh) - (void *) attr; - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ -6 warnings generated. -[ 17% 12/68] target thumb C: libnl_32 <= external/libnl/lib/utils.c -[ 19% 13/68] target thumb C: libnl_32 <= external/libnl/lib/handlers.c -external/libnl/lib/handlers.c:85:3: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] - strerror_r(-e->error, buf, sizeof(buf))); - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -external/libnl/lib/handlers.c:206:11: warning: comparison of unsigned enum expression < 0 is always false [-Wtautological-compare] - if (kind < 0 || kind > NL_CB_KIND_MAX) - ~~~~ ^ ~ -external/libnl/lib/handlers.c:296:11: warning: comparison of unsigned enum expression < 0 is always false [-Wtautological-compare] - if (type < 0 || type > NL_CB_TYPE_MAX) - ~~~~ ^ ~ -external/libnl/lib/handlers.c:299:11: warning: comparison of unsigned enum expression < 0 is always false [-Wtautological-compare] - if (kind < 0 || kind > NL_CB_KIND_MAX) - ~~~~ ^ ~ -external/libnl/lib/handlers.c:346:11: warning: comparison of unsigned enum expression < 0 is always false [-Wtautological-compare] - if (kind < 0 || kind > NL_CB_KIND_MAX) - ~~~~ ^ ~ -5 warnings generated. -[ 20% 14/68] target thumb C: libnl_32 <= external/libnl/lib/cache_mngt.c -[ 22% 15/68] target thumb C: libnl_32 <= external/libnl/lib/genl/mngt.c -external/libnl/lib/genl/mngt.c:250:22: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare] - if (ops->co_hdrsize < GENL_HDRSIZE(0)) { - ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~ -1 warning generated. -[ 23% 16/68] target thumb C: libnl_32 <= external/libnl/lib/genl/ctrl.c -[ 25% 17/68] target thumb C: libnl_32 <= external/libnl/lib/genl/genl.c -external/libnl/lib/genl/genl.c:125:24: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare] - if (genlmsg_len(ghdr) < NLMSG_ALIGN(hdrlen)) - ~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~ -external/libnl/lib/genl/genl.c:261:32: warning: arithmetic on a pointer to void is a GNU extension [-Wpointer-arith] - return genlmsg_user_hdr(gnlh) + NLMSG_ALIGN(hdrlen); - ~~~~~~~~~~~~~~~~~~~~~~ ^ -external/libnl/lib/genl/genl.c:365:25: warning: arithmetic on a pointer to void is a GNU extension [-Wpointer-arith] - return nlmsg_data(nlh) + GENL_HDRLEN; - ~~~~~~~~~~~~~~~ ^ -3 warnings generated. -[ 26% 18/68] target thumb C: libnl_32 <= external/libnl/lib/genl/family.c -[ 27% 19/68] target thumb C: libnl_32 <= external/libnl/lib/route/rtnl.c -[ 29% 20/68] target thumb C: libnl_32 <= external/libnl/lib/route/route_utils.c -[ 30% 21/68] target thumb C: libnl_32 <= external/libnl/lib/error.c -[ 32% 22/68] target thumb C: libnl_32 <= external/libnl/lib/netfilter/nfnl.c -[ 33% 23/68] target thumb C: libnl_32 <= external/libnl/lib/version.c -[ 35% 24/68] target thumb C: libnl_32 <= external/libnl/lib/hash.c -[ 36% 25/68] target thumb C: libnl_32 <= external/libnl/lib/hashtable.c -external/libnl/lib/hashtable.c:194:9: warning: invalid application of 'sizeof' to a void type [-Wpointer-arith] - return(__nl_hash(k, length, initval)); - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -external/libnl/include/netlink/hash.h:64:62: note: expanded from macro '__nl_hash' -#define __nl_hash(p, num, base) nl_hash_any((p), (num)*sizeof(*(p)), (base)) - ^~~~~~ -1 warning generated. -[ 38% 26/68] target StaticLib: libnl_32 (out/target/product/bullhead/obj_arm/STATIC_LIBRARIES/libnl_intermediates/libnl.a) -[ 39% 27/68] target SharedLib: libnl_32 (out/target/product/bullhead/obj_arm/SHARED_LIBRARIES/libnl_intermediates/LINKED/libnl.so) -[ 41% 28/68] target Pack Relocations: libnl_32 (out/target/product/bullhead/obj_arm/SHARED_LIBRARIES/libnl_intermediates/PACKED/libnl.so) -[ 42% 29/68] target Symbolic: libnl_32 (out/target/product/bullhead/symbols/system/lib/libnl.so) -[ 44% 30/68] target Strip (mini debug info): libnl_32 (out/target/product/bullhead/obj_arm/lib/libnl.so) -[ 45% 31/68] Notice file: external/libnl/NOTICE -- out/target/product/bullhead/obj/NOTICE_FILES/src//system/lib/libnl.so.txt -[ 47% 32/68] Notice file: external/libnl/NOTICE -- out/target/product/bullhead/obj/NOTICE_FILES/src//system/lib64/libnl.a.txt -[ 48% 33/68] Notice file: external/libnl/NOTICE -- out/target/product/bullhead/obj/NOTICE_FILES/src//system/lib/libnl.a.txt -[ 50% 34/68] Install: out/target/product/bullhead/system/lib/libnl.so -[ 51% 35/68] target C: libnl <= external/libnl/lib/cache.c -[ 52% 36/68] target C: libnl <= external/libnl/lib/data.c -external/libnl/lib/data.c:119:24: warning: arithmetic on a pointer to void is a GNU extension [-Wpointer-arith] - memcpy(data->d_data + data->d_size, buf, size); - ~~~~~~~~~~~~ ^ -external/libnl/lib/data.c:121:24: warning: arithmetic on a pointer to void is a GNU extension [-Wpointer-arith] - memset(data->d_data + data->d_size, 0, size); - ~~~~~~~~~~~~ ^ -2 warnings generated. -[ 54% 37/68] target C: libnl <= external/libnl/lib/nl.c -external/libnl/lib/nl.c:694:18: warning: comparison of integers of different signs: '__kernel_size_t' (aka 'unsigned long') and 'ssize_t' (aka 'long') [-Wsign-compare] - if (iov.iov_len < n || (msg.msg_flags & MSG_TRUNC)) { - ~~~~~~~~~~~ ^ ~ -external/libnl/lib/nl.c:786:29: warning: missing field 'nl_pad' initializer [-Wmissing-field-initializers] - struct sockaddr_nl nla = {0}; - ^ -external/libnl/lib/nl.c:917:23: warning: comparison of integers of different signs: '__u32' (aka 'unsigned int') and 'int' [-Wsign-compare] - if (hdr->nlmsg_len < nlmsg_size(sizeof(*e))) { - ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~ -3 warnings generated. -[ 55% 38/68] target C: libnl <= external/libnl/lib/addr.c -external/libnl/lib/addr.c:990:24: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare] - if (addr->a_prefixlen != (8 * addr->a_len)) { - ~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~ -1 warning generated. -[ 57% 39/68] target C: libnl <= external/libnl/lib/cache_mngr.c -[ 58% 40/68] target C: libnl <= external/libnl/lib/socket.c -[ 60% 41/68] target C: libnl <= external/libnl/lib/fib_lookup/lookup.c -external/libnl/lib/fib_lookup/lookup.c:215:30: warning: missing field 'fl_fwmark' initializer [-Wmissing-field-initializers] - struct fib_result_nl fr = {0}; - ^ -1 warning generated. -[ 61% 42/68] target C: libnl <= external/libnl/lib/msg.c -external/libnl/lib/msg.c:168:21: warning: comparison of integers of different signs: 'const __u32' (aka 'const unsigned int') and 'int' [-Wsign-compare] - if (nlh->nlmsg_len < nlmsg_msg_size(hdrlen)) - ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~ -external/libnl/lib/msg.c:183:18: warning: comparison of integers of different signs: 'const __u32' (aka 'const unsigned int') and 'int' [-Wsign-compare] - nlh->nlmsg_len <= remaining); - ~~~~~~~~~~~~~~ ^ ~~~~~~~~~ -external/libnl/lib/msg.c:367:10: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int' [-Wsign-compare] - if (max < nlmsg_total_size(0)) - ~~~ ^ ~~~~~~~~~~~~~~~~~~~ -external/libnl/lib/msg.c:418:6: warning: arithmetic on a pointer to void is a GNU extension [-Wpointer-arith] - buf += nlmsg_len; - ~~~ ^ -external/libnl/lib/msg.c:422:14: warning: arithmetic on a pointer to void is a GNU extension [-Wpointer-arith] - memset(buf + len, 0, tlen - len); - ~~~ ^ -external/libnl/lib/msg.c:842:7: warning: arithmetic on a pointer to void is a GNU extension [-Wpointer-arith] - data += GENL_HDRLEN; - ~~~~ ^ -external/libnl/lib/msg.c:855:9: warning: arithmetic on a pointer to void is a GNU extension [-Wpointer-arith] - data += hdrsize; - ~~~~ ^ -external/libnl/lib/msg.c:836:18: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare] - if (*payloadlen < GENL_HDRLEN) - ~~~~~~~~~~~ ^ ~~~~~~~~~~~ -external/libnl/lib/msg.c:897:32: warning: arithmetic on a pointer to void is a GNU extension [-Wpointer-arith] - dump_hex(ofd, nla_data(nla) + alen, - ~~~~~~~~~~~~~ ^ -external/libnl/lib/msg.c:920:4: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] - strerror_r(-err->error, buf, sizeof(buf))); - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -external/libnl/lib/msg.c:915:21: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare] - if (nlmsg_len(hdr) >= sizeof(*err)) { - ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~ -11 warnings generated. -[ 63% 43/68] target C: libnl <= external/libnl/lib/fib_lookup/request.c -[ 64% 44/68] target C: libnl <= external/libnl/lib/attr.c -external/libnl/lib/attr.c:150:19: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare] - return remaining >= sizeof(*nla) && - ~~~~~~~~~ ^ ~~~~~~~~~~~~ -external/libnl/lib/attr.c:208:19: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare] - if (nla_len(nla) < minlen) - ~~~~~~~~~~~~ ^ ~~~~~~ -external/libnl/lib/attr.c:463:11: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned long') [-Wsign-compare] - if (tlen > msg->nm_size) - ~~~~ ^ ~~~~~~~~~~~~ -external/libnl/lib/attr.c:653:26: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare] - if (nla && nla_len(nla) >= sizeof(tmp)) - ~~~~~~~~~~~~ ^ ~~~~~~~~~~~ -external/libnl/lib/attr.c:815:41: warning: arithmetic on pointers to void is a GNU extension [-Wpointer-arith] - len = (void *) nlmsg_tail(msg->nm_nlh) - (void *) start; - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ -external/libnl/lib/attr.c:863:41: warning: arithmetic on pointers to void is a GNU extension [-Wpointer-arith] - len = (void *) nlmsg_tail(msg->nm_nlh) - (void *) attr; - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ -6 warnings generated. -[ 66% 45/68] target C: libnl <= external/libnl/lib/object.c -external/libnl/lib/object.c:134:22: warning: arithmetic on a pointer to void is a GNU extension [-Wpointer-arith] - memcpy((void *)new + doff, (void *)obj + doff, size); - ~~~~~~~~~~~ ^ -external/libnl/lib/object.c:134:42: warning: arithmetic on a pointer to void is a GNU extension [-Wpointer-arith] - memcpy((void *)new + doff, (void *)obj + doff, size); - ~~~~~~~~~~~ ^ -2 warnings generated. -[ 67% 46/68] target C: libnl <= external/libnl/lib/utils.c -[ 69% 47/68] target C: libnl <= external/libnl/lib/cache_mngt.c -[ 70% 48/68] target C: libnl <= external/libnl/lib/handlers.c -external/libnl/lib/handlers.c:85:3: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] - strerror_r(-e->error, buf, sizeof(buf))); - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -external/libnl/lib/handlers.c:206:11: warning: comparison of unsigned enum expression < 0 is always false [-Wtautological-compare] - if (kind < 0 || kind > NL_CB_KIND_MAX) - ~~~~ ^ ~ -external/libnl/lib/handlers.c:296:11: warning: comparison of unsigned enum expression < 0 is always false [-Wtautological-compare] - if (type < 0 || type > NL_CB_TYPE_MAX) - ~~~~ ^ ~ -external/libnl/lib/handlers.c:299:11: warning: comparison of unsigned enum expression < 0 is always false [-Wtautological-compare] - if (kind < 0 || kind > NL_CB_KIND_MAX) - ~~~~ ^ ~ -external/libnl/lib/handlers.c:346:11: warning: comparison of unsigned enum expression < 0 is always false [-Wtautological-compare] - if (kind < 0 || kind > NL_CB_KIND_MAX) - ~~~~ ^ ~ -5 warnings generated. -[ 72% 49/68] target C: libnl <= external/libnl/lib/genl/ctrl.c -[ 73% 50/68] target C: libnl <= external/libnl/lib/genl/mngt.c -external/libnl/lib/genl/mngt.c:250:22: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare] - if (ops->co_hdrsize < GENL_HDRSIZE(0)) { - ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~ -1 warning generated. -[ 75% 51/68] target C: libnl <= external/libnl/lib/genl/family.c -[ 76% 52/68] target C: libnl <= external/libnl/lib/genl/genl.c -external/libnl/lib/genl/genl.c:125:24: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare] - if (genlmsg_len(ghdr) < NLMSG_ALIGN(hdrlen)) - ~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~ -external/libnl/lib/genl/genl.c:261:32: warning: arithmetic on a pointer to void is a GNU extension [-Wpointer-arith] - return genlmsg_user_hdr(gnlh) + NLMSG_ALIGN(hdrlen); - ~~~~~~~~~~~~~~~~~~~~~~ ^ -external/libnl/lib/genl/genl.c:365:25: warning: arithmetic on a pointer to void is a GNU extension [-Wpointer-arith] - return nlmsg_data(nlh) + GENL_HDRLEN; - ~~~~~~~~~~~~~~~ ^ -3 warnings generated. -[ 77% 53/68] target C: libnl <= external/libnl/lib/route/rtnl.c -[ 79% 54/68] target C: libnl <= external/libnl/lib/netfilter/nfnl.c -[ 80% 55/68] target C: libnl <= external/libnl/lib/route/route_utils.c -[ 82% 56/68] target C: libnl <= external/libnl/lib/error.c -[ 83% 57/68] target C: libnl <= external/libnl/lib/hash.c -[ 85% 58/68] target C: libnl <= external/libnl/lib/version.c -[ 86% 59/68] target C: libnl <= external/libnl/lib/hashtable.c -external/libnl/lib/hashtable.c:194:9: warning: invalid application of 'sizeof' to a void type [-Wpointer-arith] - return(__nl_hash(k, length, initval)); - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -external/libnl/include/netlink/hash.h:64:62: note: expanded from macro '__nl_hash' -#define __nl_hash(p, num, base) nl_hash_any((p), (num)*sizeof(*(p)), (base)) - ^~~~~~ -1 warning generated. -[ 88% 60/68] target StaticLib: libnl (out/target/product/bullhead/obj/STATIC_LIBRARIES/libnl_intermediates/libnl.a) -[ 89% 61/68] target SharedLib: libnl (out/target/product/bullhead/obj/SHARED_LIBRARIES/libnl_intermediates/LINKED/libnl.so) -[ 91% 62/68] target Pack Relocations: libnl (out/target/product/bullhead/obj/SHARED_LIBRARIES/libnl_intermediates/PACKED/libnl.so) -[ 92% 63/68] target Symbolic: libnl (out/target/product/bullhead/symbols/system/lib64/libnl.so) -[ 94% 64/68] target Strip (mini debug info): libnl (out/target/product/bullhead/obj/lib/libnl.so) -[ 95% 65/68] Notice file: external/libnl/NOTICE -- out/target/product/bullhead/obj/NOTICE_FILES/src//system/lib64/libnl.so.txt -[ 97% 66/68] Install: out/target/product/bullhead/system/lib64/libnl.so -[ 98% 67/68] build out/target/product/bullhead/obj_arm/lib/libnl.so.toc -[100% 68/68] build out/target/product/bullhead/obj/lib/libnl.so.toc -make: Leaving directory `/usr/local/google/home/pstew/build/aosp' - -[0;32m#### make completed successfully (13 seconds) ####[00m - |