summaryrefslogtreecommitdiff
path: root/include/net/genetlink.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2016-11-13 20:14:59 +0300
committerDavid S. Miller <davem@davemloft.net>2016-11-13 20:14:59 +0300
commit98e4321b97cc790c6aac3fb7c92bbf13212452ee (patch)
treed16e17723fb1d55376135be3215b043965859081 /include/net/genetlink.h
parentb5718b5aeff1930ab06efe5683b54f1a3b2795fb (diff)
downloadlinux-98e4321b97cc790c6aac3fb7c92bbf13212452ee.tar.xz
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 <davem@davemloft.net>
Diffstat (limited to 'include/net/genetlink.h')
-rw-r--r--include/net/genetlink.h2
1 files changed, 1 insertions, 1 deletions
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;