All of lore.kernel.org
 help / color / mirror / Atom feed
From: Petri Latvala <petri.latvala@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Petri Latvala <petri.latvala@intel.com>,
	Chris Wilson <chris@chris-wilson.co.uk>
Subject: [igt-dev] [PATCH i-g-t] runner: Fix constness warning
Date: Tue, 12 Jan 2021 08:51:25 +0200	[thread overview]
Message-ID: <20210112065125.32351-1-petri.latvala@intel.com> (raw)

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

             reply	other threads:[~2021-01-12  6:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-12  6:51 Petri Latvala [this message]
2021-01-12  7:38 ` [igt-dev] ✓ Fi.CI.BAT: success for runner: Fix constness warning 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210112065125.32351-1-petri.latvala@intel.com \
    --to=petri.latvala@intel.com \
    --cc=chris@chris-wilson.co.uk \
    --cc=igt-dev@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.