Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3789465imm; Tue, 11 Sep 2018 02:01:39 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbgOMKFByWT5MpHbEhtsEI3EFO6Mk999N2mZsen/IlolUNKJma+hYrHVmAorP8OekCl+L+y X-Received: by 2002:a65:5c83:: with SMTP id a3-v6mr27555591pgt.164.1536656499635; Tue, 11 Sep 2018 02:01:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536656499; cv=none; d=google.com; s=arc-20160816; b=XNm6lA884kP6zGf+Joi7VzY8D/Acuolzu5369CcyW4eZJmN11N+2FIItc73nqEHidB kvqEChvm5f+yUxmL6amnFA9zmdCS1yDLl7HnyyITaR125kUWIA5U4rdLOpzzPbfhN+7a mxD3shUahomkc7E0Ay+vrUtY9tkxlosu0mamFHlhljfEba62jUjNWOjHyhRQFmhwI6AK OutJJg2QEe9jlcqDBGiRRYap8g6A+k8ft1F/NzAjHdP8sAjPbjfe+XJ7G0ZtuMJxnc9Y WpR1lghA436uYwbnb2Oovs5tPOSuzlCsbpzBibkbiC6G8Dn5QIv222k2PrqlJOgYYx26 FAFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:user-agent:date:to:from:subject; bh=0vFysh7sBFpj9ZW72Hwpv93mzsp6eeMMDImvGBRw7OE=; b=uhZq7t8AoicYxXJVQCQiz85fgOQVplydHUCyKuJRuNyPienpk9MMwhkwOhIxeOE0TN l3Fj1MqCeNogQexRkCtauvJGtQ1b1kGrvrF5pVF4cuc5ERATu1HFr/k026PtUgSFkJ7D ETFeq+/e18hrUJlEwJ4vW+RHfjfr9nn0cqglQDL6tA5yhsoNSQEnuuh4Vsm6c6zId2QB HcSsvMIXhtGh3fozk0VUafJxgM7pfhNlZM+OIup0AMrJneHzDArjnFIoVQgR5Q3gqCdB trSkDRmpm2anBDPWlrztJ4kN0plx0VvEq2cTSIsFsQiOchwHkNDwR6wksLs5zFJTrBTA Vd3g== 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 h23-v6si18063187pgv.356.2018.09.11.02.01.21; Tue, 11 Sep 2018 02:01:39 -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 S1726762AbeIKN72 (ORCPT + 99 others); Tue, 11 Sep 2018 09:59:28 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:60958 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726522AbeIKN72 (ORCPT ); Tue, 11 Sep 2018 09:59:28 -0400 Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w8B8xLW7146988 for ; Tue, 11 Sep 2018 05:01:07 -0400 Received: from e06smtp05.uk.ibm.com (e06smtp05.uk.ibm.com [195.75.94.101]) by mx0a-001b2d01.pphosted.com with ESMTP id 2meabh0xq9-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 11 Sep 2018 05:01:07 -0400 Received: from localhost by e06smtp05.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 11 Sep 2018 10:01:05 +0100 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp05.uk.ibm.com (192.168.101.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Tue, 11 Sep 2018 10:01:04 +0100 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w8B913Id65536026 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Tue, 11 Sep 2018 09:01:03 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7E5384C04E for ; Tue, 11 Sep 2018 12:00:55 +0100 (BST) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 38DD24C044 for ; Tue, 11 Sep 2018 12:00:55 +0100 (BST) Received: from localhost.localdomain (unknown [9.124.35.195]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP for ; Tue, 11 Sep 2018 12:00:55 +0100 (BST) Subject: [PATCH] selftest:powerpc:dscr:fix compile error in dscr_sysfs_test From: Mamatha Inamdar To: linux-kernel@vger.kernel.org Date: Tue, 11 Sep 2018 14:31:02 +0530 User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 18091109-0020-0000-0000-000002C484DA X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18091109-0021-0000-0000-00002111D3F3 Message-Id: <153665627544.24494.10063715137186643486.stgit@localhost.localdomain> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-09-11_04:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=869 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809110095 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch is to fix the following compile error ocured when building with gcc7: [stderr] dscr_sysfs_test.c: In function ‘dscr_sysfs’: [stderr] dscr_sysfs_test.c:63:20: error: ‘%s’ directive writing up to 255 bytes Signed-off-by: Mamatha Inamdar --- .../selftests/powerpc/dscr/dscr_sysfs_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/powerpc/dscr/dscr_sysfs_test.c b/tools/testing/selftests/powerpc/dscr/dscr_sysfs_test.c index 1899bd8..72e3af0 100644 --- a/tools/testing/selftests/powerpc/dscr/dscr_sysfs_test.c +++ b/tools/testing/selftests/powerpc/dscr/dscr_sysfs_test.c @@ -62,7 +62,7 @@ static int check_all_cpu_dscr_defaults(unsigned long val) if (!strstr(dp->d_name, "cpu")) continue; - len = snprintf(file, LEN_MAX, "%s%s/dscr", CPU_PATH, dp->d_name); + len = snprintf(file, LEN_MAX, "%scpu%ld/dscr", CPU_PATH, val); if (len >= LEN_MAX) continue; if (access(file, F_OK))