All of lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] runner: Fix constness warning
@ 2021-01-12  6:51 Petri Latvala
  2021-01-12  7:38 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Petri Latvala @ 2021-01-12  6:51 UTC (permalink / raw)
  To: igt-dev; +Cc: Petri Latvala, Chris Wilson

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>
---
 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

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-01-12 12:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-12  6:51 [igt-dev] [PATCH i-g-t] runner: Fix constness warning Petri Latvala
2021-01-12  7:38 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2021-01-12 12:31 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2021-01-12 12:39 ` [igt-dev] [PATCH i-g-t] " Chris Wilson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.