From: Tapani Pälli Date: Mon, 3 Oct 2016 06:32:54 +0000 (+0300) Subject: intel: fix compilation warning on gen_get_device_info X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=387e0af0b42fefb462a60068fcbdef77236129a0;p=mesa.git intel: fix compilation warning on gen_get_device_info (warning: 'const' type qualifier on return type has no effect) Signed-off-by: Tapani Pälli Reviewed-by: Lionel Landwerlin --- diff --git a/src/intel/common/gen_device_info.c b/src/intel/common/gen_device_info.c index 98669b35a0f..30df0b27dc1 100644 --- a/src/intel/common/gen_device_info.c +++ b/src/intel/common/gen_device_info.c @@ -487,7 +487,7 @@ static const struct gen_device_info gen_device_info_kbl_gt4 = { .num_slices = 3, }; -const bool +bool gen_get_device_info(int devid, struct gen_device_info *devinfo) { switch (devid) { diff --git a/src/intel/common/gen_device_info.h b/src/intel/common/gen_device_info.h index 964e429cedd..7347db57e4a 100644 --- a/src/intel/common/gen_device_info.h +++ b/src/intel/common/gen_device_info.h @@ -143,5 +143,5 @@ struct gen_device_info /** @} */ }; -const bool gen_get_device_info(int devid, struct gen_device_info *devinfo); +bool gen_get_device_info(int devid, struct gen_device_info *devinfo); const char *gen_get_device_name(int devid);