Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1403052ybt; Thu, 25 Jun 2020 05:22:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0wBcFEDwxMkYz7tpt/30Nr7MHBr5FSp3iDX8+EYEWxzeDlWCVEUGDpd1yEKENHwH0bdP9 X-Received: by 2002:a17:906:8417:: with SMTP id n23mr15801244ejx.192.1593087768610; Thu, 25 Jun 2020 05:22:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593087768; cv=none; d=google.com; s=arc-20160816; b=AuhOm2HbUaTrWdhQdcubmfvwpZOxDFYZznJvH5IcFhPEXw6PoXYw8AdUOwg+z6Vo0i 1m6TV1H01PKdQl2jxhID6+CRYDRSrhTdbWvuUv8MAESTMudTsnz1FCQtldiRWw6hijxs 89GBV5+OBe1omRe5ixnOu9O6JOLYWbiZqKimC/Une+RGvVk707iklKCl74gYRoCXvmxl Joi4vbaznuNvLU9z4yo+yZvF9/o7DFnefMv5vXvIZDbXQJD36aLO4bApjc+5qDmglk70 Mmn7z1v3lmJL57sjpolW6578IRCkXkX1U8OAZXssX2bQQJZqOr/Kii/eBBtIsYtnyLnb Z1yQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=yDd9n0jTbeAqth7OiwywjZZqJdX6Hwuywek6fJuRfM4=; b=uUKa8tmk+yu9Cw0FjFq45EaTeIIXlBDg6xbnVSPHZEQvNLjJJeVY1Rq0nN/O7Q1cwb e+M/5KzHJEduEycPhIY46d7iE7wrLNz10uNVNcwPHJ+63dl37UN/iW43edCXxeVabXxb wRUg7iIAVnOB1eKOzE8+rqG2i1JLoNiui/y1BKcqHirdQQ+2AwG/lFUl4LfMH1T7NhHQ IxC+TIaViB+dwcQzNlQo6ioi9x2eEhs81cDufnoZKmfWvwMPdqsQ8axTZIfwL4mdI8eG m1F4kdTVODMinI09+Ghj3Cpn/IuPE5nw7epcPqO2tYKUg+XGjntlnz4kwukskIZQhxI6 T7Fg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 u7si3159101ejm.425.2020.06.25.05.22.25; Thu, 25 Jun 2020 05:22:48 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404531AbgFYMVu (ORCPT + 99 others); Thu, 25 Jun 2020 08:21:50 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:60212 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404343AbgFYMVt (ORCPT ); Thu, 25 Jun 2020 08:21:49 -0400 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 05PC3Afx028258; Thu, 25 Jun 2020 08:21:37 -0400 Received: from ppma03ams.nl.ibm.com (62.31.33a9.ip4.static.sl-reverse.com [169.51.49.98]) by mx0a-001b2d01.pphosted.com with ESMTP id 31vbn73hwv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Jun 2020 08:21:37 -0400 Received: from pps.filterd (ppma03ams.nl.ibm.com [127.0.0.1]) by ppma03ams.nl.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 05PCLMCD014986; Thu, 25 Jun 2020 12:21:35 GMT Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by ppma03ams.nl.ibm.com with ESMTP id 31uus51sxf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Jun 2020 12:21:35 +0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 05PCLWNu66519198 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 25 Jun 2020 12:21:32 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6ECC311C04C; Thu, 25 Jun 2020 12:21:32 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1B44C11C04A; Thu, 25 Jun 2020 12:21:32 +0000 (GMT) Received: from osiris (unknown [9.171.78.96]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Thu, 25 Jun 2020 12:21:32 +0000 (GMT) Date: Thu, 25 Jun 2020 14:21:30 +0200 From: Heiko Carstens To: "Gustavo A. R. Silva" Cc: Vasily Gorbik , Christian Borntraeger , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Subject: Re: [PATCH][next] s390: appldata: Use struct_size() helper Message-ID: <20200625122130.GB7638@osiris> References: <20200617212930.GA11728@embeddedor> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200617212930.GA11728@embeddedor> X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216,18.0.687 definitions=2020-06-25_05:2020-06-25,2020-06-25 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 spamscore=0 adultscore=0 impostorscore=0 mlxscore=0 phishscore=0 priorityscore=1501 cotscore=-2147483648 suspectscore=1 bulkscore=0 clxscore=1011 lowpriorityscore=0 mlxlogscore=861 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006250078 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 17, 2020 at 04:29:30PM -0500, Gustavo A. R. Silva wrote: > Make use of the struct_size() helper instead of an open-coded version > in order to avoid any potential type mistakes. > > This code was detected with the help of Coccinelle and, audited and > fixed manually. > > Signed-off-by: Gustavo A. R. Silva > --- > arch/s390/appldata/appldata_os.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) Applied, thanks.