From patchwork Thu Feb 5 06:37:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 44398 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 744B82029F for ; Thu, 5 Feb 2015 06:37:29 +0000 (UTC) Received: by mail-lb0-f198.google.com with SMTP id l4sf3987230lbv.1 for ; Wed, 04 Feb 2015 22:37:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=jWBOWYkUlHf3ekR1C3pViDfue6jBuE9BuVgGX1UKPcs=; b=GpZi9KaQa6rr2Zc/leLm5eyqtwn+HPhHgeQtE4xUqH3nKpt9nTdztayYBdJUq0O8BY YTM+Ihes+GBPK2KIbnmgkAgooPdgKiWnlmr0muqoyp4IbDKCBuXSOHL5HG152wNAub4F iH6IimZHVrTTrk6zusNnAxCktvCTyjV129k2J90ZmR0pAXWWEDFxJM49b5ziKwDanpxI VYm3mG2codHuvEgz5OZCXgLD+EOhfh1tq7CiouCrCi2Tg/phvcaXg/cztLVYdjK4hvun 3153a+sfWNi3NZbSZrr2y5/hUiV0avGe6/hSTDAk1j0E7KtgC34WUDISdBY2prpdDiFw 8XDw== X-Gm-Message-State: ALoCoQmV8Xz705Inf93UQ1FlPJTzne8Ty7ysNwkNu2x/njfPEo3XuDFecdG0mfwrQKsL1yIabwvC X-Received: by 10.112.143.167 with SMTP id sf7mr235469lbb.0.1423118248269; Wed, 04 Feb 2015 22:37:28 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.36.232 with SMTP id t8ls116960laj.100.gmail; Wed, 04 Feb 2015 22:37:27 -0800 (PST) X-Received: by 10.112.130.164 with SMTP id of4mr545425lbb.53.1423118247870; Wed, 04 Feb 2015 22:37:27 -0800 (PST) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com. [209.85.217.175]) by mx.google.com with ESMTPS id gf1si3120533lbc.139.2015.02.04.22.37.27 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Feb 2015 22:37:27 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.175 as permitted sender) client-ip=209.85.217.175; Received: by mail-lb0-f175.google.com with SMTP id n10so1123482lbv.6 for ; Wed, 04 Feb 2015 22:37:27 -0800 (PST) X-Received: by 10.112.188.227 with SMTP id gd3mr1845694lbc.22.1423118247708; Wed, 04 Feb 2015 22:37:27 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.112.35.133 with SMTP id h5csp953596lbj; Wed, 4 Feb 2015 22:37:26 -0800 (PST) X-Received: by 10.66.62.201 with SMTP id a9mr3183920pas.101.1423118245755; Wed, 04 Feb 2015 22:37:25 -0800 (PST) Received: from mail-pd0-f171.google.com (mail-pd0-f171.google.com. [209.85.192.171]) by mx.google.com with ESMTPS id sp5si4827878pab.234.2015.02.04.22.37.24 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Feb 2015 22:37:25 -0800 (PST) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 209.85.192.171 as permitted sender) client-ip=209.85.192.171; Received: by pdjy10 with SMTP id y10so5829785pdj.9 for ; Wed, 04 Feb 2015 22:37:24 -0800 (PST) X-Received: by 10.66.190.197 with SMTP id gs5mr837272pac.145.1423118244820; Wed, 04 Feb 2015 22:37:24 -0800 (PST) Received: from localhost.localdomain (c-67-170-153-23.hsd1.or.comcast.net. [67.170.153.23]) by mx.google.com with ESMTPSA id ji5sm3932972pbd.22.2015.02.04.22.37.23 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 04 Feb 2015 22:37:24 -0800 (PST) From: John Stultz To: Linux Kernel Mailing List Cc: John Stultz , Shuah Khan Subject: [PATCH 2/7] selftest/timers: Quiet warning due to lack of return check on brk Date: Wed, 4 Feb 2015 22:37:07 -0800 Message-Id: <1423118232-14096-3-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1423118232-14096-1-git-send-email-john.stultz@linaro.org> References: <1423118232-14096-1-git-send-email-john.stultz@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: john.stultz@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.175 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The posix_timers.c test has a loop that tries to keep it in kernel space, repeatedly calling brk(). Since its noise, and a failure won't change what the test would do, add a unused value to quiet the warning. Cc: Shuah Khan Signed-off-by: John Stultz --- tools/testing/selftests/timers/posix_timers.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/timers/posix_timers.c b/tools/testing/selftests/timers/posix_timers.c index f87d970..3e04cc0 100644 --- a/tools/testing/selftests/timers/posix_timers.c +++ b/tools/testing/selftests/timers/posix_timers.c @@ -35,10 +35,11 @@ static void user_loop(void) static void kernel_loop(void) { void *addr = sbrk(0); + int unused; while (!done) { - brk(addr + 4096); - brk(addr); + unused = brk(addr + 4096); + unused = brk(addr); } }