kernel: handle with_intel_runtime_pm() macros better
The with_intel_runtime_pm() macros look like this:
#define with_intel_runtime_pm(rpm, wf) \
for ((wf) = intel_runtime_pm_get(rpm); (wf); \
intel_runtime_pm_put((rpm), (wf)), (wf) = 0)
Smatch doesn't assume that the first call to intel_runtime_pm_get()
will succeed. So it creates a lot of uninitialized variable warnings
where we do stuff like:
u32 val;
with_intel_runtime_pm(gt->uncore->rpm, wakeref)
val = intel_uncore_read(gt->uncore, reg32);
return val;
Smatch complains that "val" can be uninitialized. These are all false
positives. We always enter the loop. Silence the false positives.
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>