Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3788793ybi; Mon, 29 Jul 2019 12:38:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqybCMNC2ccrHsLZEhGP9GgB9aUAdIA7UsDqVpk70fQl0n/Hqv4KZ2NqolbTKxKgTrcw7/vB X-Received: by 2002:a17:90a:372a:: with SMTP id u39mr113692639pjb.2.1564429123056; Mon, 29 Jul 2019 12:38:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564429123; cv=none; d=google.com; s=arc-20160816; b=OS+2aVLENEW2uVmRPYp/bc8LhiFrIm5UuXecWKHrJ4maMvFj2nfXcdSrqQ2+NiLKeW /L6P1OjUXdeOB0T7fy5jDtise7uwyyDeOGu7R4BbM+WTvfqpqosfELZ0e2t7AVeci6ek RKimKgXFmfwGQ14U6bARb0UAIlFzIi+2kOqSQQwOBdL0l+iNtbDD7UcXGY1pODrOCDPQ YToc3w7YWk9KeC6NcOo40wE45SoMbfmvAsxXAnSzS565aZavGA7VpRd0O0bqCyrwr1kB t+BeWoyimy5q8BUbgJZidd22FomeyZmWGBeci0aqEYgh/7sr3q3vqK7h70CzEJbhzWB2 xqRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=tUYsWev+tOQoQZGRNjzTu6CazImLZyzx8TfhrEJhZNQ=; b=Q0dWM6BevuGGfM9/qNJ8h5TL2hXJejlRvRzwzXZbofQbu08buQE7CKGTAzossLnWlc zAasONvHWzjGH4ixsKQo3a6SYz2hBjsviakgRAsGnZ1LxoLyijZ8DnCZCp+aEhEZq3SI GgtxI863Zd5f764H060ffRp+Rtpdbws9V1ekx3j7EPb+QT6VixA4KvkWZl1Xq23csh45 RbBj3Np41XX3QpoE5Z6Qe3baZtlZcUONVVMYjzYVhFHQMD6SPPd5SFgb+KD5CAqPzQPx Gv1+sJeksjT/XQodfSNQ1rGFH3Akxstarn7q1yj7PbDqwqAIqInITPrAZsNlIolDE1ws ukIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=V6RUTZP1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 24si14780698pfn.144.2019.07.29.12.38.28; Mon, 29 Jul 2019 12:38:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=V6RUTZP1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388659AbfG2ThI (ORCPT + 99 others); Mon, 29 Jul 2019 15:37:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:51646 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388480AbfG2ThI (ORCPT ); Mon, 29 Jul 2019 15:37:08 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B559A2070B; Mon, 29 Jul 2019 19:37:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564429027; bh=MvqptLD9VB/lA821+ZdkiJsOBXA/f2qPI6w8Qu3B/wg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=V6RUTZP1x1SGpwOBHXLEIteMrD14sTDKBGp+L/H7xdFT/cOkN9qJqODNp/GIMoQkz s+UuXIQLiLUBS9oXnRZVjjQhLq3zGEYPNSzVbkXhvaMiwAavqI00FsUYhn+lkRhDme Lrvtv1pGcEwfDGTYfh7pTzWM1kMqbSFZw83ZjCRo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Numfor Mbiziwo-Tiapo , Alexander Shishkin , Ian Rogers , Jiri Olsa , Mark Drayton , Namhyung Kim , Peter Zijlstra , Song Liu , Stephane Eranian , Arnaldo Carvalho de Melo , Sasha Levin Subject: [PATCH 4.14 260/293] perf test mmap-thread-lookup: Initialize variable to suppress memory sanitizer warning Date: Mon, 29 Jul 2019 21:22:31 +0200 Message-Id: <20190729190844.333962819@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190729190820.321094988@linuxfoundation.org> References: <20190729190820.321094988@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit 4e4cf62b37da5ff45c904a3acf242ab29ed5881d ] Running the 'perf test' command after building perf with a memory sanitizer causes a warning that says: WARNING: MemorySanitizer: use-of-uninitialized-value... in mmap-thread-lookup.c Initializing the go variable to 0 silences this harmless warning. Committer warning: This was harmless, just a simple test writing whatever was at that sizeof(int) memory area just to signal another thread blocked reading that file created with pipe(). Initialize it tho so that we don't get this warning. Signed-off-by: Numfor Mbiziwo-Tiapo Cc: Alexander Shishkin Cc: Ian Rogers Cc: Jiri Olsa Cc: Mark Drayton Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Song Liu Cc: Stephane Eranian Link: http://lkml.kernel.org/r/20190702173716.181223-1-nums@google.com Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Sasha Levin --- tools/perf/tests/mmap-thread-lookup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/tests/mmap-thread-lookup.c b/tools/perf/tests/mmap-thread-lookup.c index 3c3f3e029e33..2ecb86876f10 100644 --- a/tools/perf/tests/mmap-thread-lookup.c +++ b/tools/perf/tests/mmap-thread-lookup.c @@ -52,7 +52,7 @@ static void *thread_fn(void *arg) { struct thread_data *td = arg; ssize_t ret; - int go; + int go = 0; if (thread_init(td)) return NULL; -- 2.20.1