diff options
author | Petri Latvala <petri.latvala@intel.com> | 2021-01-12 08:51:25 +0200 |
---|---|---|
committer | Petri Latvala <petri.latvala@intel.com> | 2021-01-12 14:48:52 +0200 |
commit | d9bc7773043d11d37ae5b03bf18979541a9c7ef4 (patch) | |
tree | 2ec26fc8355a5a8b33fe6dc3f5a535c95a685c95 /runner | |
parent | 4ad3fdae02ad6e6147a96e3c05438be043426266 (diff) |
runner: Fix constness warning
Introduced in commit 532d6e84ab7f ("lib: Process kernel taints"):
../runner/executor.c: In function ‘handle_taint’:
../runner/executor.c:324:18: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
while ((explain = igt_explain_taints(&bad))) {
^
Signed-off-by: Petri Latvala <petri.latvala@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'runner')
-rw-r--r-- | runner/executor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runner/executor.c b/runner/executor.c index 93db8bb3..c1a0545a 100644 --- a/runner/executor.c +++ b/runner/executor.c @@ -311,7 +311,7 @@ static char *handle_lockdep(void) static char *handle_taint(void) { unsigned long taints, bad; - char *explain; + const char *explain; char *reason; bad = igt_kernel_tainted(&taints); |