From: David S. Miller Date: Sun, 13 Nov 2016 17:14:59 +0000 (-0500) Subject: genetlink: Make family a signed integer. X-Git-Tag: MMI-PSA29.97-13-9~6662^2~288 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=98e4321b97cc790c6aac3fb7c92bbf13212452ee;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git genetlink: Make family a signed integer. The idr_alloc(), idr_remove(), et al. routines all expect IDs to be signed integers. Therefore make the genl_family member 'id' signed too. Signed-off-by: David S. Miller --- diff --git a/include/net/genetlink.h b/include/net/genetlink.h index 3ec87bacc0f5..a34275be3600 100644 --- a/include/net/genetlink.h +++ b/include/net/genetlink.h @@ -48,7 +48,7 @@ struct genl_info; * @n_ops: number of operations supported by this family */ struct genl_family { - unsigned int id; /* private */ + int id; /* private */ unsigned int hdrsize; char name[GENL_NAMSIZ]; unsigned int version;