Index: sys/dev/mlx4/mlx4_ib/mlx4_ib_sysfs.c =================================================================== --- sys/dev/mlx4/mlx4_ib/mlx4_ib_sysfs.c +++ sys/dev/mlx4/mlx4_ib/mlx4_ib_sysfs.c @@ -35,6 +35,7 @@ #include #include #include +#include #include /*show_admin_alias_guid returns the administratively assigned value of that GUID. @@ -87,7 +88,7 @@ pr_err("GUID 0 block 0 is RO\n"); return count; } - sscanf(buf, "%llx", &sysadmin_ag_val); + sscanf(buf, "%" SCNx64, &sysadmin_ag_val); *(__be64 *)&mdev->sriov.alias_guid.ports_guid[port->num - 1]. all_rec_per_port[record_num]. all_recs[GUID_REC_SIZE * guid_index_in_rec] =