[igt-dev] [PATCH i-g-t] runner: Fix constness warning
Petri Latvala
petri.latvala at intel.com
Tue Jan 12 06:51:25 UTC 2021
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 at intel.com>
Cc: Chris Wilson <chris at chris-wilson.co.uk>
---
runner/executor.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
--
2.29.2
More information about the igt-dev
mailing list