Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2043965pxb; Mon, 23 Aug 2021 10:40:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMa/OBkUNAFOKXQzmJ/aOmOy1NrT3zQZYgy8uL4jukid3Nb2l6zHNv2R5gMKyyoYG1timx X-Received: by 2002:a05:6402:c01:: with SMTP id co1mr38566215edb.156.1629740407539; Mon, 23 Aug 2021 10:40:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629740407; cv=none; d=google.com; s=arc-20160816; b=hx4GHNVAP6TADVto+asaVQ5tOeg8/PB3SjKkXziUI0RGtUWyDmUX+vIDGR6kP9mf72 EIzejL8C+ZjvaKf6HHp8x45mIW+IQygBP4KOJGxxpVP2QBlZ7TVa9O1YLI9G/5PizYgl ZknO+jcYr2XIoTgwVNPWhNSO76+Va6/0L9RMQhAx9abT1wq9W2JGgtAY8bxcryKHQYPU GRLz07n0FwfEKxuF3IzRT6Yonnszc2ZhSFzwIqYrDWT1T09ia4IXmrZTFoMVkhWOMVCQ 1F9MWF9ro4AjQ5cf88xU4hHwiFE50DJ2oDA1DBOhb7YS3/gRl8JyOsulHXq39wm5vbqh SG5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=BCaJjgu8Xenr1k3l+X+usCTY/EzixwtI9TAn345gKPk=; b=rhEL2cQ+OZQFcf598eiZ5YzWwDcKG3hRLxv9fqkLfZnZ0VddxoanefG2je8g+uULfe UA3icOlN/gPlnxaootudMxWUaeF4qQSMXuhtFS5e4j/E3aRC1VeGxR+SZddNWaECB5rX XC2D+kSNKERsu7CjZq4caFlm/soGLnXBr2OVyZwMkBfgx27PcAhPp3WSk2d3T4jnerfp s5R17Vt3HlucT3sbgKpxTe+lIVH5HcKg+S/gOONqAL8K3EVCbiigQ46SSRuYmNoKyGT1 pPLCPzyjrswkYO0K8SVLMyoP/wI9mOfzimM8ljmc5d5zpGbga+lYNJV8/mDQHM/kOXem p2FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=NZXraqmb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z10si4093016edd.2.2021.08.23.10.39.44; Mon, 23 Aug 2021 10:40:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=NZXraqmb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231657AbhHWRiu (ORCPT + 99 others); Mon, 23 Aug 2021 13:38:50 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:18878 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231612AbhHWRiu (ORCPT ); Mon, 23 Aug 2021 13:38:50 -0400 Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 17NHZFWN155378; Mon, 23 Aug 2021 13:38:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=pp1; bh=BCaJjgu8Xenr1k3l+X+usCTY/EzixwtI9TAn345gKPk=; b=NZXraqmb4SkdX5CilKp9saG35RTzgWVwvGdGpxcfE9SPqHNSCxXOmTFKsEJJHOvmD/LK iBAbnMCMccPl59Xi5rn3Men4UUTxILg1RiJBHrKYRPiobxAqbzWO2DnaVMSsa1snxjZ+ yn2Atu/EEmd+NwVfyMdceLlVwX9KWwJvaneRjLXRXAL1VCIC8E3CBXiNYn2xak6ln/NP M1kZrjaNRQytKZcul5u0CNk5SaeY8KhA52A+/6rWQmQ2b1Voezn7IE58NlR1ZsiuLhhA kUsY95UGad7SmZ3pqZAaMvQSV3hWA4db8cwCSVZV8nvDO+gR/iONCsmvFybwZbM76ZjG kw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 3akejb4yqf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 23 Aug 2021 13:38:05 -0400 Received: from m0098413.ppops.net (m0098413.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 17NHaBU4164595; Mon, 23 Aug 2021 13:38:04 -0400 Received: from ppma03fra.de.ibm.com (6b.4a.5195.ip4.static.sl-reverse.com [149.81.74.107]) by mx0b-001b2d01.pphosted.com with ESMTP id 3akejb4yps-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 23 Aug 2021 13:38:04 -0400 Received: from pps.filterd (ppma03fra.de.ibm.com [127.0.0.1]) by ppma03fra.de.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 17NHbtAC008266; Mon, 23 Aug 2021 17:38:03 GMT Received: from b06avi18626390.portsmouth.uk.ibm.com (b06avi18626390.portsmouth.uk.ibm.com [9.149.26.192]) by ppma03fra.de.ibm.com with ESMTP id 3ajs48b5kj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 23 Aug 2021 17:38:02 +0000 Received: from d06av24.portsmouth.uk.ibm.com (d06av24.portsmouth.uk.ibm.com [9.149.105.60]) by b06avi18626390.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 17NHYKxF46399978 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 23 Aug 2021 17:34:20 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6F79E42041; Mon, 23 Aug 2021 17:37:59 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 14A7A42067; Mon, 23 Aug 2021 17:37:59 +0000 (GMT) Received: from osiris (unknown [9.145.169.88]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Mon, 23 Aug 2021 17:37:59 +0000 (GMT) Date: Mon, 23 Aug 2021 19:37:57 +0200 From: Heiko Carstens To: CGEL Cc: Vasily Gorbik , Christian Borntraeger , Vineeth Vijayan , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, jing yangyang , Zeal Robot Subject: Re: [PATCH linux-next] s390:raw3270: Convert sysfs sprintf/snprintf family to sysfs_emit Message-ID: References: <20210821035358.28350-1-jing.yangyang@zte.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210821035358.28350-1-jing.yangyang@zte.com.cn> X-TM-AS-GCONF: 00 X-Proofpoint-GUID: 1lLdl75k9LctcdG4J75VP77gPa7MmkXX X-Proofpoint-ORIG-GUID: gjNEUgErf9x1C5Wj17vyPsAs5Eig52wq X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.790 definitions=2021-08-23_04:2021-08-23,2021-08-23 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 lowpriorityscore=0 malwarescore=0 adultscore=0 bulkscore=0 mlxscore=0 impostorscore=0 clxscore=1011 mlxlogscore=999 priorityscore=1501 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2107140000 definitions=main-2108230120 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 20, 2021 at 08:53:58PM -0700, CGEL wrote: > From: jing yangyang > > Fix the following coccicheck warning: > ./drivers/s390/char/raw3270.c:1066:8-16: WARNING: use scnprintf or sprintf > ./drivers/s390/char/raw3270.c:1050:8-16: WARNING:use scnprintf or sprintf > ./drivers/s390/char/raw3270.c:1058:8-16: WARNING:use scnprintf or sprintf > > Reported-by: Zeal Robot > Signed-off-by: jing yangyang ... > static ssize_t > raw3270_model_show(struct device *dev, struct device_attribute *attr, char *buf) > { > - return snprintf(buf, PAGE_SIZE, "%i\n", > + return sysfs_emit(buf, "%i\n", > ((struct raw3270 *) dev_get_drvdata(dev))->model); Identation of the line following the patched line is now incorrect. Also the sign-off chain is not correct - I also doubt that "CGEL" is a person, but what do I know. Not applied.