Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5159360ybp; Mon, 14 Oct 2019 16:38:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqwTXyH7/yIXohDRX63MHX6kXCsBUU2wu6aGTwbPflzqhO6Isg9PUnD9QuaGXOFmxQXg9Mjz X-Received: by 2002:aa7:cd43:: with SMTP id v3mr30158982edw.235.1571096298442; Mon, 14 Oct 2019 16:38:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571096298; cv=none; d=google.com; s=arc-20160816; b=Xj80IjhSpgsQA4cjqV2yMlSD+0D40ExUeUF97/Et+PVgB6Ix7Zp67Cu+hbP9HYnSbp jAyiS16balMwhHQB83PE0RB3wOgAmUU7LGyg7NpTmS/t0+gFKL7Z3XF4WPb5KeR2on+o 5U7QpiPR6K07+HJG6tao40x2D28mk6cTh2w4BneIoRpL04x1G4nJGScjN8cKN+sDoP3a 1sQ6xMlAvs6snuCueHP5l54QUUAVbkaMOgdeYHU7T5sfuNjRl8tWc02MJqdpw9R7GOo6 0E22vMBTvF8xdMlpSezoQ63tBaZW4eT2KdYGu9xeNMh8JdXOlhdgImsqd6e+7V0LeAR2 EuzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=5hKzjpJ7hSymwD+fnlyUM1PRMpQBY6h8z/VrTk1YOhY=; b=Jceoo2y58G9XcK85hcJeBV2O88XbYK0itArQJ3rHmkx2M9lent6w9o1N1yrtFRopBf nie6VgD3DcZ1uURZxVfCUx9vXvTbHt5cDs0hzMLoB/yGG1kUYRJbO5QAgbeG+eYgaZjU 4Ansg7FR3VpyM4HduLzxNhTVX4c82eKZDI8yo+VWlayN5109DSHFEIT7Ia+M26sEcR4P 8aTxtO2Jr0xbe0A7zG/oPihirhchuqhXamdn4Sjq9NEDAWEbNwLtib9FNeR9EJEn6yQH jNX+yMjWChATEOEuI4ob+3VhVlAkH3jsb5N6z5jNdeyGQ/9y1y/UMrvqJqSFfUDXwMpq V9kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=Y6d1pU4Q; 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=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k53si13469527edb.303.2019.10.14.16.37.54; Mon, 14 Oct 2019 16:38:18 -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=@nvidia.com header.s=n1 header.b=Y6d1pU4Q; 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=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732535AbfJNSqo (ORCPT + 99 others); Mon, 14 Oct 2019 14:46:44 -0400 Received: from hqemgate15.nvidia.com ([216.228.121.64]:14371 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731007AbfJNSql (ORCPT ); Mon, 14 Oct 2019 14:46:41 -0400 Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqemgate15.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Mon, 14 Oct 2019 11:46:51 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Mon, 14 Oct 2019 11:46:41 -0700 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Mon, 14 Oct 2019 11:46:41 -0700 Received: from HQMAIL111.nvidia.com (172.20.187.18) by HQMAIL111.nvidia.com (172.20.187.18) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 14 Oct 2019 18:46:40 +0000 Received: from hqnvemgw02.nvidia.com (172.16.227.111) by HQMAIL111.nvidia.com (172.20.187.18) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Mon, 14 Oct 2019 18:46:40 +0000 Received: from blueforge.nvidia.com (Not Verified[10.110.48.28]) by hqnvemgw02.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Mon, 14 Oct 2019 11:46:40 -0700 From: John Hubbard To: Andrew Morton CC: Christoph Hellwig , "Aneesh Kumar K . V" , Keith Busch , Ira Weiny , LKML , , John Hubbard , "Kirill A . Shutemov" , Shuah Khan , Subject: [PATCH v2 1/2] mm/gup_benchmark: add a missing "w" to getopt string Date: Mon, 14 Oct 2019 11:46:38 -0700 Message-ID: <20191014184639.1512873-2-jhubbard@nvidia.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191014184639.1512873-1-jhubbard@nvidia.com> References: <20191014184639.1512873-1-jhubbard@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public Content-Transfer-Encoding: quoted-printable Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1571078812; bh=5hKzjpJ7hSymwD+fnlyUM1PRMpQBY6h8z/VrTk1YOhY=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:MIME-Version:X-NVConfidentiality: Content-Transfer-Encoding:Content-Type; b=Y6d1pU4QVkfR8c9VkZXMGDQnnOY+swROfYBkhaijQdhbwnELag/LF0A6xEqzhObzw UbWR+M1aIy+28ryAaHiZSRwh15dYpQGaaZdoZglf/2v9ZcONrupGl7TGm5yq/5LBD0 UaI6vIKzOt1VQ+prtisy8Ocm3kbs6Ky+Q+kypFH9denbWOid1cvGI7cFUaabIbCxsL rc1r798NSguwitOGWG7ysijZazXrhGd+ux9x6WhRXsxSE6NDLpay3GugeG94c2RVym 4Hl8svSHbiMEzC6QRcBbdu9wUtQmd0YtC0vWC7T3UGRP2CpC9cDDdjprfawFEV41aV w6pGf/nyZE05g== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Even though gup_benchmark.c has code to handle the -w command-line option, the "w" is not part of the getopt string. It looks as if it has been missing the whole time. On my machine, this leads naturally to the following predictable result: $ sudo ./gup_benchmark -w ./gup_benchmark: invalid option -- 'w' ...which is fixed, with this commit. Acked-by: Kirill A. Shutemov Cc: Keith Busch Cc: Shuah Khan Cc: linux-kselftest@vger.kernel.org Signed-off-by: John Hubbard --- tools/testing/selftests/vm/gup_benchmark.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/vm/gup_benchmark.c b/tools/testing/sel= ftests/vm/gup_benchmark.c index c0534e298b51..cb3fc09645c4 100644 --- a/tools/testing/selftests/vm/gup_benchmark.c +++ b/tools/testing/selftests/vm/gup_benchmark.c @@ -37,7 +37,7 @@ int main(int argc, char **argv) char *file =3D "/dev/zero"; char *p; =20 - while ((opt =3D getopt(argc, argv, "m:r:n:f:tTLUSH")) !=3D -1) { + while ((opt =3D getopt(argc, argv, "m:r:n:f:tTLUwSH")) !=3D -1) { switch (opt) { case 'm': size =3D atoi(optarg) * MB; --=20 2.23.0