From patchwork Wed Feb 25 22:32: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: 45134 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f197.google.com (mail-we0-f197.google.com [74.125.82.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1ACB520502 for ; Wed, 25 Feb 2015 22:32:38 +0000 (UTC) Received: by wesw55 with SMTP id w55sf5047665wes.0 for ; Wed, 25 Feb 2015 14:32:37 -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=IY1GGQr6PKLQuING14f1fQMypxR6MPraq/UkJz8Hp2U=; b=MPHWWy/JQBesyZiwLsK06Rspgkt//gtWJdQEKFtG0GWhEP1D+pEfsqr+2njNLATRXo OeIGH2ymjNGvHuVtqHA2w33NCFhobXpgQvVar/E9zeds1YJ8VG35CjlTHR1/2BYXezf2 mjpjiHbsJAvC0F2U+Zk51sueIMaaitc3aXOzkSDa4QTCFbAS5JeUJdmULwDhVya3UFUi BaV4PhXrfd8H0ysxRhv13Y6yZ3Vej+DVc9O1Xpsbsy7wDWGiOhFRzPVviesnMtsV9Jo3 c493OsPugMG5fLS7JYo4bDzwznqJNTSRL5nIPlPPrgiDFukMZdWsbOI7iEs4mCNV01BN D6bQ== X-Gm-Message-State: ALoCoQlg2D14SVXJynqAOmwKQ0jYHS2fzeSTvf5WoD4rUE4zt2e/gQ3dqcuqGx69bgTJja5Fjlu4 X-Received: by 10.112.9.65 with SMTP id x1mr853244lba.16.1424903557424; Wed, 25 Feb 2015 14:32:37 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.207.101 with SMTP id lv5ls877205lac.22.gmail; Wed, 25 Feb 2015 14:32:37 -0800 (PST) X-Received: by 10.112.140.38 with SMTP id rd6mr4841550lbb.116.1424903557266; Wed, 25 Feb 2015 14:32:37 -0800 (PST) Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com. [209.85.217.170]) by mx.google.com with ESMTPS id bd1si16705174lab.54.2015.02.25.14.32.37 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Feb 2015 14:32:37 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.170 as permitted sender) client-ip=209.85.217.170; Received: by lbvn10 with SMTP id n10so7118032lbv.4 for ; Wed, 25 Feb 2015 14:32:37 -0800 (PST) X-Received: by 10.152.87.3 with SMTP id t3mr4894107laz.19.1424903556984; Wed, 25 Feb 2015 14:32:36 -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 h5csp2924760lbj; Wed, 25 Feb 2015 14:32:36 -0800 (PST) X-Received: by 10.70.42.70 with SMTP id m6mr9454129pdl.19.1424903551294; Wed, 25 Feb 2015 14:32:31 -0800 (PST) Received: from mail-pa0-f41.google.com (mail-pa0-f41.google.com. [209.85.220.41]) by mx.google.com with ESMTPS id xh1si6415639pab.108.2015.02.25.14.32.30 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Feb 2015 14:32:31 -0800 (PST) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; Received: by paceu11 with SMTP id eu11so8607212pac.10 for ; Wed, 25 Feb 2015 14:32:30 -0800 (PST) X-Received: by 10.68.98.98 with SMTP id eh2mr9459523pbb.112.1424903550388; Wed, 25 Feb 2015 14:32:30 -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 qm12sm43160405pdb.36.2015.02.25.14.32.29 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 25 Feb 2015 14:32:29 -0800 (PST) From: John Stultz To: Linux Kernel Mailing List Cc: John Stultz , Shuah Khan , Prarit Bhargava , Thomas Gleixner , Richard Cochran Subject: [PATCH 02/19] selftests/timers: Quiet warning due to lack of return check on brk Date: Wed, 25 Feb 2015 14:32:07 -0800 Message-Id: <1424903544-26855-3-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1424903544-26855-1-git-send-email-john.stultz@linaro.org> References: <1424903544-26855-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.170 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 Cc: Prarit Bhargava Cc: Thomas Gleixner Cc: Richard Cochran 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); } }