From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Date: Thu, 25 Jun 2020 14:21:30 +0200 From: Heiko Carstens 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> Sender: linux-s390-owner@vger.kernel.org List-ID: To: "Gustavo A. R. Silva" Cc: Vasily Gorbik , Christian Borntraeger , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" 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.