diff --git a/src/intel/common/intel_check.c b/src/intel/common/intel_check.c index 68e49cdf4b8..74310eb0d06 100644 --- a/src/intel/common/intel_check.c +++ b/src/intel/common/intel_check.c @@ -69,7 +69,7 @@ is_target_process(char *target) return false; } -bool intel_is_dgpu_render() { +bool intel_is_dgpu_render(void) { pid_t process_id = getpid(); char process_name[BUF_SIZE]; @@ -77,7 +77,7 @@ bool intel_is_dgpu_render() { return (use_dgpu_render(process_name) || is_target_process(process_name)); } -bool intel_lower_ctx_priority() +bool intel_lower_ctx_priority(void) { pid_t process_id = getpid(); char process_name[BUF_SIZE]; diff --git a/src/intel/common/intel_check.h b/src/intel/common/intel_check.h index 644c06ed32c..1c504904f5c 100644 --- a/src/intel/common/intel_check.h +++ b/src/intel/common/intel_check.h @@ -4,8 +4,8 @@ #ifdef __cplusplus extern "C" { #endif -bool intel_is_dgpu_render(); -bool intel_lower_ctx_priority(); +bool intel_is_dgpu_render(void); +bool intel_lower_ctx_priority(void); #ifdef __cplusplus } #endif diff --git a/src/intel/vulkan/i915/anv_device.c b/src/intel/vulkan/i915/anv_device.c index bd259d2e91f..68efd4caeaa 100644 --- a/src/intel/vulkan/i915/anv_device.c +++ b/src/intel/vulkan/i915/anv_device.c @@ -27,7 +27,7 @@ #include "common/i915/intel_gem.h" #include "drm-uapi/i915_drm.h" - +#include "common/intel_check.h" static int vk_priority_to_i915(VkQueueGlobalPriorityKHR priority) {