IB/sysfs: Fix sparse warning on attr_id
authorIra Weiny <ira.weiny@intel.com>
Mon, 4 Jan 2016 03:44:25 +0000 (22:44 -0500)
committerDoug Ledford <dledford@redhat.com>
Tue, 19 Jan 2016 19:12:56 +0000 (14:12 -0500)
commit65487fdc0c8072b6ac32ed30fab34de4e66ace55
tree8702c59daa6d4339b6e25633e2da9cda71164ab3
parent9781808c632860fcd82b8e371539a7458ce83548
IB/sysfs: Fix sparse warning on attr_id

Attributed ID was declared as an int while the value should really be big
endian 16.

Fixes: 35c4cbb17811 ("IB/core: Create get_perf_mad function in sysfs.c")

Reported-by: Bart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Christoph Lameter <cl@linux.com>
Reviewed-by: Hal Rosenstock <hal@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/sysfs.c