Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5993948ybc; Wed, 27 Nov 2019 13:04:44 -0800 (PST) X-Google-Smtp-Source: APXvYqwpZC2rIZPpWv3EsOxptI9iI2FCWN+li11kTRvv/RTT24YGS33f4x55dfzQ49hkvA+BegBu X-Received: by 2002:a50:91d0:: with SMTP id h16mr34181647eda.203.1574888684479; Wed, 27 Nov 2019 13:04:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574888684; cv=none; d=google.com; s=arc-20160816; b=LugE3i6cFjTxkqLg2xkJV6+SUkNsD3mcobCk8PANh+R4eP1NV0GkwrKQyZS4b4L0OF oJgnulz671XkVjKA8sb60PRBcvqn2F5h/hFhEpjYuyZweygQPKsUZFACbPaK8uqaVS40 0ul6WuFKUJEuCCbKFDXfQaVr9uQK91geidUMMNY0RWkS1Rxj05E35F/GayLk0Xv/FzgF v/9hAVnPqZVe4HmaHwue1I9Ni4FP3n4Bxe6XbO2WGGz1YOS70VZvykM/HTjL9j1OhCdA l5RQHzHvgTDK8DNxhpda8DyfTwX6ZRwB4899vJu9m7FjomZL4RYEnw+TsAF9A4w84gIo Mylg== 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=InA5hdpqQh6q9mciMxORNxbi6kV5UyvlbG1ph2D5pqA=; b=M8bLMQyeej8TqvYUmxJny5zN3Rpj2KTHq0NmU+UbNNP0Xxo3L/sQWY4oVgnDDStuDm UFbNsQ0piNBXsxZfs3blBgpJzorG3EHlEShtET/GpRuw09jyu3JKKdmAqb+uv3QUfM1h G83DOP1PyASw6HIFeujzEDq8r5hN4m7Njo4U8BYHFjeFqKgPrbmGwdWjIcUwYdPoeY73 t5XF1WrJnJxSrJGfxzzXQysAnyPc4XJKPj+5VpUMHr2sf8DnGIBPxJz6dWnBiiLWRdYq PoS1u8bXsfdDNLX+DdKopOuBWiIXT83m15/HA+AJPdFU2kRRHqVO+hpo2rI9bjdi8dl3 Qqjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="I5iRmP4/"; 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 a19si1346848eje.396.2019.11.27.13.04.11; Wed, 27 Nov 2019 13:04:44 -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="I5iRmP4/"; 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 S1731993AbfK0VDH (ORCPT + 99 others); Wed, 27 Nov 2019 16:03:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:56134 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731980AbfK0VDF (ORCPT ); Wed, 27 Nov 2019 16:03:05 -0500 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 4BF7B21569; Wed, 27 Nov 2019 21:03:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574888584; bh=66OswkvPZoALuafR5qsSA0Pwjf5yODcChCiMsXuUxx4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=I5iRmP4/+8KlWGbcWNwOnS/SHUW5bi/qndO2GEAcHCuVUTONzJ3nCnZOau35hiDv7 ZJwXoWOOv4m259xYrvx9g1DDa15GkKnjV0c3JFyXmoX2mCGONjkTsQ2BJV94p6ykiX 4LuT2PS4MSaQu8eKQu7nXP46S86hHOrtBlmAMgwA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Keith Busch , "Kirill A. Shutemov" , Andrew Morton , Dave Hansen , Dan Williams , Linus Torvalds , Sasha Levin Subject: [PATCH 4.19 149/306] tools/testing/selftests/vm/gup_benchmark.c: fix write flag usage Date: Wed, 27 Nov 2019 21:29:59 +0100 Message-Id: <20191127203126.388274174@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127203114.766709977@linuxfoundation.org> References: <20191127203114.766709977@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 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