Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 39dfdee9 authored by Jordan Crouse's avatar Jordan Crouse
Browse files

drivers: thermal: Fix compile warnings



Fix the following compiler warning(s) from gcc 6.1.1 with -Werror enabled:

 drivers/thermal/qcom/cpu_isolate.c:275:
   format '%ld' expects argument of type 'long int', but argument 3 has
	type 'int' [-Werror=format=]
   pr_err("Cooling register failed for %s, ret:%ld\n",

Fixes: b2b2111a ("drivers: thermal: Add support for cpu isolation cooling device")
Change-Id: Ic0dedbad6f5ab0e1973247129f85b07f245e84bc
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent a52112ee
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -272,7 +272,7 @@ static void cpu_isolate_register_cdev(struct work_struct *work)
					&cpu_isolate_cooling_ops);
	if (IS_ERR(cpu_isolate_cdev->cdev)) {
		ret = PTR_ERR(cpu_isolate_cdev->cdev);
		pr_err("Cooling register failed for %s, ret:%ld\n",
		pr_err("Cooling register failed for %s, ret:%d\n",
			cdev_name, ret);
		cpu_isolate_cdev->cdev = NULL;
		return;