All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Wilson <chris@chris-wilson.co.uk>
To: igt-dev@lists.freedesktop.org, joonas.lahtinen@linux.intel.com
Cc: intel-gfx@lists.freedesktop.org
Subject: [PATCH igt 04/16] igt/gem_exec_flush: Silence old compiler warning
Date: Tue, 20 Feb 2018 08:45:08 +0000	[thread overview]
Message-ID: <20180220084520.27965-4-chris@chris-wilson.co.uk> (raw)
In-Reply-To: <20180220084520.27965-1-chris@chris-wilson.co.uk>

gem_exec_flush.c: In function ‘batch’:
gem_exec_flush.c:443:15: warning: ‘ptr’ may be used uninitialized in this function [-Wmaybe-uninitialized]

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
 tests/gem_exec_flush.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/gem_exec_flush.c b/tests/gem_exec_flush.c
index c93eee4b..f820b2a8 100644
--- a/tests/gem_exec_flush.c
+++ b/tests/gem_exec_flush.c
@@ -426,6 +426,11 @@ static void batch(int fd, unsigned ring, int nchild, int timeout,
 			ptr = mmap(0, 64<<10, PROT_WRITE,
 				   MAP_PRIVATE | MAP_ANON, -1, 0);
 			break;
+
+		default:
+			igt_assert(!"reachable");
+			ptr = NULL;
+			break;
 		}
 
 		memset(&reloc, 0, sizeof(reloc));
-- 
2.16.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

WARNING: multiple messages have this Message-ID (diff)
From: Chris Wilson <chris@chris-wilson.co.uk>
To: igt-dev@lists.freedesktop.org, joonas.lahtinen@linux.intel.com
Cc: intel-gfx@lists.freedesktop.org
Subject: [igt-dev] [PATCH igt 04/16] igt/gem_exec_flush: Silence old compiler warning
Date: Tue, 20 Feb 2018 08:45:08 +0000	[thread overview]
Message-ID: <20180220084520.27965-4-chris@chris-wilson.co.uk> (raw)
In-Reply-To: <20180220084520.27965-1-chris@chris-wilson.co.uk>

gem_exec_flush.c: In function ‘batch’:
gem_exec_flush.c:443:15: warning: ‘ptr’ may be used uninitialized in this function [-Wmaybe-uninitialized]

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
 tests/gem_exec_flush.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/gem_exec_flush.c b/tests/gem_exec_flush.c
index c93eee4b..f820b2a8 100644
--- a/tests/gem_exec_flush.c
+++ b/tests/gem_exec_flush.c
@@ -426,6 +426,11 @@ static void batch(int fd, unsigned ring, int nchild, int timeout,
 			ptr = mmap(0, 64<<10, PROT_WRITE,
 				   MAP_PRIVATE | MAP_ANON, -1, 0);
 			break;
+
+		default:
+			igt_assert(!"reachable");
+			ptr = NULL;
+			break;
 		}
 
 		memset(&reloc, 0, sizeof(reloc));
-- 
2.16.1

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

  parent reply	other threads:[~2018-02-20  8:45 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-20  8:45 [PATCH igt 01/16] igt/gem_sync: Exercise and measure idle requests Chris Wilson
2018-02-20  8:45 ` [Intel-gfx] " Chris Wilson
2018-02-20  8:45 ` [PATCH igt 02/16] lib: Cache the debugfs mountpoint Chris Wilson
2018-02-20  8:45   ` [igt-dev] " Chris Wilson
2018-02-20  8:45 ` [PATCH igt 03/16] lib: Always set mismatching index for igt_find_crc_mismatch Chris Wilson
2018-02-20  8:45   ` [igt-dev] " Chris Wilson
2018-02-20  8:45 ` Chris Wilson [this message]
2018-02-20  8:45   ` [igt-dev] [PATCH igt 04/16] igt/gem_exec_flush: Silence old compiler warning Chris Wilson
2018-02-20  8:45 ` [PATCH igt 05/16] igt/syncobj: Tidy ye olde compiler warnings Chris Wilson
2018-02-20  8:45   ` [igt-dev] " Chris Wilson
2018-02-20  8:45 ` [PATCH igt 06/16] lib: Remove overzealous assertion on gem_set_caching() Chris Wilson
2018-02-20  8:45   ` [igt-dev] " Chris Wilson
2018-02-20  8:45 ` [PATCH igt 07/16] igt/gem_exec_schedule: Trim max number of contexts used Chris Wilson
2018-02-20  8:45   ` [igt-dev] " Chris Wilson
2018-02-20 10:52   ` Joonas Lahtinen
2018-02-20 10:52     ` [Intel-gfx] " Joonas Lahtinen
2018-02-20  8:45 ` [PATCH igt 08/16] igt/gem_exec_schedule: Replace constant 16 with its magic macro Chris Wilson
2018-02-20  8:45   ` [igt-dev] " Chris Wilson
2018-02-20 10:57   ` Joonas Lahtinen
2018-02-20 10:57     ` [igt-dev] " Joonas Lahtinen
2018-02-20 11:01     ` Chris Wilson
2018-02-20 11:01       ` [igt-dev] " Chris Wilson
2018-02-20  8:45 ` [PATCH igt 09/16] igt/gem_fenced_exec_thrash: Use fixed durations Chris Wilson
2018-02-20  8:45   ` [igt-dev] " Chris Wilson
2018-02-20  8:45 ` [PATCH igt 10/16] igt/gem_eio: Use slow spinners to inject hangs Chris Wilson
2018-02-20  8:45   ` [igt-dev] " Chris Wilson
2018-02-20 11:14   ` Joonas Lahtinen
2018-02-20 11:14     ` [Intel-gfx] " Joonas Lahtinen
2018-02-20  8:45 ` [PATCH igt 11/16] igt/gem_eio: Exercise set-wedging against request submission Chris Wilson
2018-02-20  8:45   ` [Intel-gfx] " Chris Wilson
2018-02-20  8:45 ` [PATCH igt 12/16] igt/gem_ctx_isolation: Check isolation of registers between contexts Chris Wilson
2018-02-20  8:45   ` [igt-dev] " Chris Wilson
2018-02-20 14:56   ` Joonas Lahtinen
2018-02-20 14:56     ` [igt-dev] " Joonas Lahtinen
2018-02-20  8:45 ` [PATCH igt 13/16] igt/gem_ctx_switch: Do a warmup pass over all contexts Chris Wilson
2018-02-20  8:45   ` [Intel-gfx] " Chris Wilson
2018-02-20 14:57   ` Joonas Lahtinen
2018-02-20 14:57     ` [igt-dev] " Joonas Lahtinen
2018-02-20  8:45 ` [PATCH igt 14/16] igt/gem_ctx_switch: Exercise all engines at once Chris Wilson
2018-02-20  8:45   ` [igt-dev] " Chris Wilson
2018-02-20  8:45 ` [PATCH igt 15/16] igt/gem_exec_capture: Exercise readback of userptr Chris Wilson
2018-02-20  8:45   ` [igt-dev] " Chris Wilson
2018-02-20  8:45 ` [PATCH igt 16/16] igt/gem_exec_fence: Exercise merging fences Chris Wilson
2018-02-20  8:45   ` [igt-dev] " Chris Wilson
2018-02-20  9:09 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [01/16] igt/gem_sync: Exercise and measure idle requests Patchwork
2018-02-20 10:02 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2018-03-05 13:43 ` [PATCH igt 01/16] " Joonas Lahtinen
2018-03-05 13:43   ` [igt-dev] " Joonas Lahtinen
2018-03-05 14:39   ` Chris Wilson
2018-03-05 14:39     ` [igt-dev] " 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=20180220084520.27965-4-chris@chris-wilson.co.uk \
    --to=chris@chris-wilson.co.uk \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=joonas.lahtinen@linux.intel.com \
    /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.