Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3944065ybi; Mon, 27 May 2019 08:22:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqx8ZiR+R1FUwLXhKH9gjHfvvkhKcXB2GxmK6b2fYHfgFMS8N0kkHMzdmaj/ZMVXrDOGu/Ik X-Received: by 2002:a63:2c50:: with SMTP id s77mr39286491pgs.175.1558970540643; Mon, 27 May 2019 08:22:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558970540; cv=none; d=google.com; s=arc-20160816; b=bixtrKOn5FpGSpQLoa1czXJeRtANvQilAXOXSCTC+wb64MvJwJaKLwWcI3qu0OHV3D 7LfOe3sWCwAs8npWJoYNPs9xXu04e0u+uLa7mx9t8ELe4aDq/D+1pwP1spXqvjoVdkDC OHUWjVCtV9bysoA3Ti0IKZiuYzC2P9O5kXPuNG52GyGX1+Bfo6G98jGGebL3zjzNsPG1 ThN7lRJ3iEdliLXlvwaKBPJGX2UhfYtyTP1X7wL5qxx2zPBBSPYc2EgprsFfg75wMm3s df478zJWah0CJ2qwE+L9PNopJpl7jt++UOzRbowIL1jRaQpH3W+D4OyEepyUZaY1dqo1 +5Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-transfer-encoding :content-disposition:mime-version:message-id:subject:to:from:date :dkim-signature; bh=wKRYLSYKzE2k4jFHpZmRlCn5LnNbsStdg5D8PnYwlpE=; b=mGbzYRJQNUdF7TPAophf4o6tHibDof2LMS+xE3jj5KF4GdwuIHrYUnY4neSVROPAcv 1tOH9MECUFr3l7Nm7UUtGmfuJteEIHAaH68cRrU4VXg62Ivq2dJSaWR3aehn0VpcI5TK YgYJm0tLasxSe/pqieIs8/KzMSS6gdRE1x7eULvxZ1Rxl3A0eSivFRp6t9P8mTWlbp7m qC80B36KKJOgf7wWwYAOvndJo5i1gNk11oyEGhEtd2+RADP9I8pApv+YAjkJBc4eRh6Q V93kFfyfJSb+LpG/dh8LAZ0v7+lrKJsDl7SZ1u9uLUyNclDUPTFEOwGwHnN9ROLzl3vx iCsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=q7Xd8Leb; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bb4si17238701plb.432.2019.05.27.08.22.05; Mon, 27 May 2019 08:22:20 -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=@gmail.com header.s=20161025 header.b=q7Xd8Leb; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726888AbfE0PTP (ORCPT + 99 others); Mon, 27 May 2019 11:19:15 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:39178 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726645AbfE0PTD (ORCPT ); Mon, 27 May 2019 11:19:03 -0400 Received: by mail-pg1-f193.google.com with SMTP id w22so9270921pgi.6; Mon, 27 May 2019 08:19:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :content-transfer-encoding:user-agent; bh=wKRYLSYKzE2k4jFHpZmRlCn5LnNbsStdg5D8PnYwlpE=; b=q7Xd8Lebsp1l3HocpLrwjIl0tM4rnRkL6po/MBApZ5k16ZVpXwa4aXsP2VNvOuIuXC Je4JosdBHlyx8uMt4k0yidbWD72peNmSMiPm4ioIz7N3PqL2WyXC6FdfhfzpNsoELPOi rdwNK8SSP0FYy2TMNgByTWF2eOkEeRYpCuTuvQi1llZE/XWNVqi2piTU6d3ySUaozZQI 2phU5bXOWeGHfHexudFhebBo5tMjRtaVpjsH7kQSNI/U5n2IVU6+/kriyR2M2qnFRYdw y0qXo387I9QuTRjr0s4eQkSkYkCBCffEdn7iXisSGENViN37J+bJB2FuHkMrP1gT4U96 v/PA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:content-transfer-encoding:user-agent; bh=wKRYLSYKzE2k4jFHpZmRlCn5LnNbsStdg5D8PnYwlpE=; b=RJk9070P9764wT5R6f23J9cyT/k4sAtkCyGJFMlACfogUoQVr5tSQ43v2y01duSW+Z HMwaif20dIhT7lYEeG89LDCCWd2n6T4ZscehOE3/BzbQ8IQSvDxjaseKIicaWOlvXxuI sNdOm+gt7h0ibbTUNP0eHd/6gvjHCjdnEKH1WdHE6dTVWwgFF6eOfHksR2EFE42x2exx j1fou4k4dhEnBVl/21nmKV3Aa9Mf4n0+5OLgrfPbF58qeYdLk9g+nF5gUDohOB95wee/ /9ZaU2wOsJ92HZnXBPmUWeVcg7Xzk9M1A9pq6fO0wgzEfSZc/Vyil/406AIpk90HLze6 GVYA== X-Gm-Message-State: APjAAAUdRZSP/GloaIKjJtiUBxZKdiCJ0Fnb18u5D+8HGZG3ut1e8JJ+ FS459EaY4hrWqbqqEXP/GSeEOrLP X-Received: by 2002:a17:90b:14e:: with SMTP id em14mr32106670pjb.19.1558970341885; Mon, 27 May 2019 08:19:01 -0700 (PDT) Received: from ip-172-31-44-144.us-west-2.compute.internal (ec2-54-186-128-88.us-west-2.compute.amazonaws.com. [54.186.128.88]) by smtp.gmail.com with ESMTPSA id f20sm93168pgf.59.2019.05.27.08.19.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 27 May 2019 08:19:00 -0700 (PDT) Date: Mon, 27 May 2019 15:18:59 +0000 From: Alakesh Haloi To: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Peter Xu , Andrew Morton , Mike Rapoport , Shuah Khan Subject: [PATCH] userfaultfd: selftest: fix compiler warning Message-ID: <20190527151859.GA3217@ip-172-31-44-144.us-west-2.compute.internal> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes following compiler warning userfaultfd.c: In function ‘usage’: userfaultfd.c:126:2: warning: format not a string literal and no format arguments [-Wformat-security] fprintf(stderr, examples); Signed-off-by: Alakesh Haloi --- tools/testing/selftests/vm/userfaultfd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/vm/userfaultfd.c b/tools/testing/selftests/vm/userfaultfd.c index 5d1db824f73a..b3e6497b080c 100644 --- a/tools/testing/selftests/vm/userfaultfd.c +++ b/tools/testing/selftests/vm/userfaultfd.c @@ -123,7 +123,7 @@ static void usage(void) fprintf(stderr, "Supported : anon, hugetlb, " "hugetlb_shared, shmem\n\n"); fprintf(stderr, "Examples:\n\n"); - fprintf(stderr, examples); + fprintf(stderr, "%s", examples); exit(1); } -- 2.17.1