Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp823343ybt; Wed, 8 Jul 2020 12:35:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpX6CUFiQXHwlYXiRrdAHb3w1B6tZdJ+MbB9sJhQXCKjIawF1P4QYPsxfviWN5aZH6E6BB X-Received: by 2002:a17:906:a449:: with SMTP id cb9mr33176728ejb.115.1594236911683; Wed, 08 Jul 2020 12:35:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594236911; cv=none; d=google.com; s=arc-20160816; b=eUnG/Zf1zUoAEmtTo4xqj9dPpXlWlmR0JrGKbOoP2Ij/32zKkQhQ8qkWPo+XJ+IVMl nkcCJoeYQXDBxLmYiRbw7uDaE46osjlHRKgw7de2M0reOUonUDAzKGs1j27cwwGxGWlk 2BuaNrgWvXiGJJj6eWIItxmF8m15T2Qa/tAyxCgq0+cHLjjvhcoFp8Z/aSHzk50YvWf0 HmWQfe9RqYPJ6QwN8LIoCuyGwPpF7ZivQdCLGWWlqWxEojSN7h9UPyalhm4ndACJ3+mg NYDteCvPXL0rCMwWGlqUYzItZzUuh+MazqLS3drjHY8OUqcYlDh0AhekU+oUiivKJB8q f5Cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=X6eVMEzCbWXNB1etHIMeQ24HJ0SbjZmrdCZzw0t3iOc=; b=sbTfVFi9HhP/I2umiqcQc8YlGYvt4QlwNboX0zd4z+ziV/DTclhlxNZsF2q0MhbNYx W+AinuVdODQKHVz5RrkDC+LcgCbUEyc/U7W7AHfDeJRXOiQMwU9r1y/0pqp7auhb635M hRlcR+Hv9xffuI28twK1vJ/X8HM5ixS8XvBmgWKUYtR+r3LX+pU+ZX6H1iWCkkSkR6dS AXvUfYssW086i17pQ9ji80fG5/M+vk63SOCLftU+AiW5rPwqNhIO0YVaYL8smu7bC1ZH Bq3/XF2YwuAG4RN9mW6wGB3is1uvSn7qdxeXVY+wjjF1/wtBeG0hP7bAU9pXPPGvmLP6 NlRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qMWroq5v; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t2si413691ejd.382.2020.07.08.12.34.49; Wed, 08 Jul 2020 12:35:11 -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=@kernel.org header.s=default header.b=qMWroq5v; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726263AbgGHTeP (ORCPT + 99 others); Wed, 8 Jul 2020 15:34:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:48822 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725446AbgGHTeO (ORCPT ); Wed, 8 Jul 2020 15:34:14 -0400 Received: from embeddedor (unknown [201.162.240.161]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7FB4220720; Wed, 8 Jul 2020 19:34:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594236854; bh=trbpVxueRJhho0ntp4U+HjeFPyUeIcRU0OSyGcAoJPg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qMWroq5v6pTfxB6LhBOnQArAQxz/wuA55yPp68otSILYyP/aP6gxFM7+oK/h939JA 4xzxrg2WLfAQ45stASiEVHiqDJ201/scLQQQFtsoGwzF2U+b/E7rLpundKwLHqynuO e5rkZsUTtQgitkxUNzn0Hbt3VPAXN/wl9UMAQZg4= Date: Wed, 8 Jul 2020 14:39:42 -0500 From: "Gustavo A. R. Silva" To: Stefan Haberland Cc: Jan Hoeppner , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Subject: Re: [PATCH][next] s390/dasd: Use struct_size() helper Message-ID: <20200708193942.GJ11533@embeddedor> References: <20200619165600.GA8668@embeddedor> <47a86753-fd4d-9a7a-c808-5f387c872ab3@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47a86753-fd4d-9a7a-c808-5f387c872ab3@linux.ibm.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 08, 2020 at 11:13:08AM +0200, Stefan Haberland wrote: > Am 19.06.20 um 18:56 schrieb Gustavo A. R. Silva: > > Make use of the struct_size() helper instead of an open-coded version > > in order to avoid any potential type mistakes. Also, remove unnecessary > > variable _datasize_. > > > > This code was detected with the help of Coccinelle and, audited and > > fixed manually. > > > > Signed-off-by: Gustavo A. R. Silva > > Thanks for the patch. > Tested and applied. Thanks, Stefan. -- Gustavo