Re: [net-next][PATCH] RDS: keep data type consistent in the user visible header
From: David Miller
Date: Mon Feb 20 2017 - 10:19:57 EST
From: Santosh Shilimkar <santosh.shilimkar@xxxxxxxxxx>
Date: Fri, 17 Feb 2017 19:15:47 -0800
> From: Santosh Shilimkar <ssantosh@xxxxxxxxxx>
> rds.h is exported to /usr/include/rds.h, so u8, u64 leads to
> errors like below.
> /usr/include/linux/rds.h:197: error: expected specifier-qualifier-list before 'u8'
> /usr/include/linux/rds.h:202: error: expected specifier-qualifier-list before 'u8'
> Fix it by following same types as rest of the user header.
> Reported-by: Sowmini Varadhan <sowmini.varadhan@xxxxxxxxxx>
> Signed-off-by: Santosh Shilimkar <ssantosh.shilimkar@xxxxxxxxxx>
The correct fix it to use "__u8", "__u64", etc.