Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4600924ybi; Mon, 27 May 2019 22:37:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqwk1+P9YX9AO2BxRMW2KoSxgsHbR9Yg4vd0f8DlbXUiNKIy/E0OlGzQCvJnJRtS/bgSSFQ6 X-Received: by 2002:a17:90a:f992:: with SMTP id cq18mr3207940pjb.54.1559021852354; Mon, 27 May 2019 22:37:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559021852; cv=none; d=google.com; s=arc-20160816; b=FlEM/FoRvfCXdM53IzCn/O4bLPuczQKJms8Qr51YfTa3lnm/hcsk/1kR2fh3fpU62T VS+891SfAl9XmzRmCrXsLcbbSeTWOza2odP2lN5OZy7/awUkc+FSh1/o43BXDyX1bv5A R//jBN0pflaXpCL3HjU67bc0duEmd4o8XQDVL22Jpfnj/9OVhu0YpfCODzc6cQIjpZ0g vqt1xyjfoWOoICOLgFtzs7h8/4jT4NqocjAPpftUIr/19e59XHGkEpOnRK274jXnOtc0 v1tnWlGsau47ExdjSkvHlXZhGfa3njSDXTW6KuSrigi4bvZAz8KTn1jkHreDg0kwY1+J M1YQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:subject:cc:to:from:date; bh=i1Cnm8rQw4x99WhllAIlv02cClMUPAc1vLPGqgUNJZA=; b=qzSKHbRIcPanB6cnUVXDSWSFkygsHAwkbBy5+CxXm/2O4iqP/nHsRQ53uLtrSHNIJS UpkOT/NYo3N+DYP1g30j4tNpl378sZ1GsUj2QK7rFOOlIMK43SXFHKo3ndUIGj3KzEZg fEjCQUg97FOp4/qZFvFxPNlL7cpoIMWSH2pBpRM0oVvmLMrAE5dBuaQ5MvnxKlr8Jt6C 94VoFWXrswsXj1skocuo/0BvQJaWwD5+ooPuIvoHYcH6OtiWsIVxzizDLdJDtZsjs5wG ycYLkou/QFBb94Hczro5Lsp9vRlmM4u8dzVXPK/APZgu0LaqCIsyNV0bUN21VnYm1wih QqfA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a194si24178295pfd.58.2019.05.27.22.37.05; Mon, 27 May 2019 22:37:32 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727152AbfE1FeG (ORCPT + 99 others); Tue, 28 May 2019 01:34:06 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:39822 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726693AbfE1FeF (ORCPT ); Tue, 28 May 2019 01:34:05 -0400 Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x4S5Rcsn017019 for ; Tue, 28 May 2019 01:34:04 -0400 Received: from e06smtp02.uk.ibm.com (e06smtp02.uk.ibm.com [195.75.94.98]) by mx0a-001b2d01.pphosted.com with ESMTP id 2srxuy0cdr-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 28 May 2019 01:34:04 -0400 Received: from localhost by e06smtp02.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 28 May 2019 06:34:02 +0100 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) by e06smtp02.uk.ibm.com (192.168.101.132) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Tue, 28 May 2019 06:33:59 +0100 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x4S5Xwa963176916 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 28 May 2019 05:33:58 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 150A511C070; Tue, 28 May 2019 05:33:58 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7345F11C077; Tue, 28 May 2019 05:33:57 +0000 (GMT) Received: from rapoport-lnx (unknown [9.148.8.53]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Tue, 28 May 2019 05:33:57 +0000 (GMT) Date: Tue, 28 May 2019 08:33:55 +0300 From: Mike Rapoport To: Alakesh Haloi Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Peter Xu , Andrew Morton , Mike Rapoport , Shuah Khan Subject: Re: [PATCH] userfaultfd: selftest: fix compiler warning References: <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 In-Reply-To: <20190527151859.GA3217@ip-172-31-44-144.us-west-2.compute.internal> User-Agent: Mutt/1.5.24 (2015-08-30) X-TM-AS-GCONF: 00 x-cbid: 19052805-0008-0000-0000-000002EB13DF X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19052805-0009-0000-0000-00002257DEF8 Message-Id: <20190528053355.GB5055@rapoport-lnx> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-05-28_02:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1905280038 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 27, 2019 at 03:18:59PM +0000, Alakesh Haloi wrote: > 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 Reviewed-by: Mike Rapoport > --- > 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 > -- Sincerely yours, Mike.