libnl-tiny: Remove GENL_ID_GENERATE
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 23 Nov 2016 23:13:18 +0000 (15:13 -0800)
committerFelix Fietkau <nbd@nbd.name>
Thu, 24 Nov 2016 11:53:19 +0000 (12:53 +0100)
This constant was always defined to 0, and recently got removed in
upstream commit a07ea4d9941af5a0c6f0be2a71b51ac9c083c5e5 ("genetlink: no
longer support using static family IDs")

Fixes libnl-tiny builds with latest upstream kernels.

Fixes: d723f2573af3 ("libnl-tiny: remove include/linux overrides to fix various build issues")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
src/include/netlink/genl/family.h

index b7cf48fb78044e27ed8dd792c8558a213cb6c343..8a1a38ba25d5a5c89a2111b1e8aafb3f5c525843 100644 (file)
@@ -62,7 +62,7 @@ static inline unsigned int genl_family_get_id(struct genl_family *family)
        if (family->ce_mask & FAMILY_ATTR_ID)
                return family->gf_id;
        else
-               return GENL_ID_GENERATE;
+               return 0;
 }
 
 static inline void genl_family_set_id(struct genl_family *family, unsigned int id)