[Intel-gfx] [PATCH 19/21] drm/i915/slpc: Add enable/disable debugfs for slpc

Chris Wilson chris at chris-wilson.co.uk
Thu Apr 28 07:28:44 UTC 2016


On Wed, Apr 27, 2016 at 06:11:03PM -0700, tom.orourke at intel.com wrote:
> +static ssize_t slpc_balancer_write(struct file *file, const char __user *ubuf,
> +			      size_t len, loff_t *offp)
> +{
> +	struct seq_file *m = file->private_data;
> +	int ret = 0;
> +
> +	ret = slpc_param_write(m, ubuf, len, SLPC_PARAM_TASK_ENABLE_BALANCER,
> +			       SLPC_PARAM_TASK_DISABLE_BALANCER);
> +	if (ret)
> +		return (size_t) ret;

(ssize_t)(size_t)(int)

Spot the problem?

	return slpc_param_write(file->private_data, ubuf, len,
				SLPC_PARAM_TASK_ENABLE_BALANCER,
				SLPC_PARAM_TASK_DISABLE_BALANCER);
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list