Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp770626ybc; Sat, 16 Nov 2019 08:23:32 -0800 (PST) X-Google-Smtp-Source: APXvYqyJ+0wjD+BUFP8ol2G53s2PjW+9XM8mFcqgFEWIVdcSOqi+S2WDvBT3f1Gokzd5uCZwKzMo X-Received: by 2002:a17:906:1d59:: with SMTP id o25mr10855659ejh.17.1573921411932; Sat, 16 Nov 2019 08:23:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573921411; cv=none; d=google.com; s=arc-20160816; b=RL5LA86oIZl7AlRkogcbNwYRJDutFpBvjGwf35wb0oFK6hOW3vgYjSBnlx37CoV2uf nQ1jnMyFkeBrkX3QTDvcD7vmtN7lF0QfePnxmetUmGr98KAeuCa33u/via/klN7+phSl lZw4DhHJWJD80cMDL7xGH2kKH4qRuLp3zg+JtWLgxKukC/QrAnwZXA/a5AlPg5xxr/CM a92IG6b+CjpzewUWIDQtngXyILaU3AhHuIyN3/UUlEXm10bTNptYFeAGQxNmzkblGzJ7 +rYtLrb/2rO3mDKihgUQEuw0hDv+9LOOtaujtXbiEZwwfHrXgKyUpPCZr1hzLsV2tPud 6/CQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=InA5hdpqQh6q9mciMxORNxbi6kV5UyvlbG1ph2D5pqA=; b=JTamYmei1A2xRJKKksgSflzlfdGtdMAwsvtwJH4NCvjliEfUZA6Fb8oM4MRlQTLp8h tS1zoOE1sR/kHPBRmDLwfeTxWL0vs8zAuZGXf1Wh6l6zfzM/UlCZKx/w8n3JXDAztrof nK9t0VGpEi0Hz0WkuJlZvCuLrvq6s21HilKomD/vCJPL2C3CcHnz4ZASebe6zsubDpuk SkRziZBy0VLhAmCH7LauZgWE1FjN1nlU04PfnD9kwd1LPUYEXtGCj6nbE5Q6SO8cOfO4 M7KqFZkx05uF+3YRSyuzCKo+84lRkSQhGCp4vA9IOdPU7mJzTTs9j+PjPuoqUUIS6Q3o /WRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ESTpuIf+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m27si8011566ejd.377.2019.11.16.08.23.06; Sat, 16 Nov 2019 08:23:31 -0800 (PST) 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=ESTpuIf+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728928AbfKPPoU (ORCPT + 99 others); Sat, 16 Nov 2019 10:44:20 -0500 Received: from mail.kernel.org ([198.145.29.99]:48806 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727857AbfKPPoR (ORCPT ); Sat, 16 Nov 2019 10:44:17 -0500 Received: from sasha-vm.mshome.net (unknown [50.234.116.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F3CAF20740; Sat, 16 Nov 2019 15:44:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573919056; bh=66OswkvPZoALuafR5qsSA0Pwjf5yODcChCiMsXuUxx4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ESTpuIf+A7K38FLrI8eum9KxhhrNkUW0r5i4bkpD7BCVoEy0SIOp+MBwybvnXZu8a lxe8fdJWeV/tenBMN6btbQmwUHsPrWvZXP3i/uDxPv9+RI4s6mlTN1JwdwsZ/GamCw tJj58kYfWvJWe+OA+y+1ECqMYbNSn3f4Eq1HjOa0= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Keith Busch , "Kirill A . Shutemov" , Andrew Morton , Dave Hansen , Dan Williams , Linus Torvalds , Sasha Levin , linux-kselftest@vger.kernel.org Subject: [PATCH AUTOSEL 4.19 131/237] tools/testing/selftests/vm/gup_benchmark.c: fix 'write' flag usage Date: Sat, 16 Nov 2019 10:39:26 -0500 Message-Id: <20191116154113.7417-131-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191116154113.7417-1-sashal@kernel.org> References: <20191116154113.7417-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Keith Busch [ Upstream commit 319e0bec1aecb36c5ac6d23812af487ff2c8f47f ] If the '-w' parameter was provided, the benchmark would exit due to a mssing 'break'. Link: http://lkml.kernel.org/r/20181010195605.10689-3-keith.busch@intel.com Signed-off-by: Keith Busch Acked-by: Kirill A. Shutemov Reviewed-by: Andrew Morton Cc: Dave Hansen Cc: Dan Williams Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Sasha Levin --- tools/testing/selftests/vm/gup_benchmark.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/vm/gup_benchmark.c b/tools/testing/selftests/vm/gup_benchmark.c index 9601bc24454d9..17da711f26afb 100644 --- a/tools/testing/selftests/vm/gup_benchmark.c +++ b/tools/testing/selftests/vm/gup_benchmark.c @@ -51,6 +51,7 @@ int main(int argc, char **argv) break; case 'w': write = 1; + break; default: return -1; } -- 2.20.1