Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp303235ybt; Tue, 23 Jun 2020 22:59:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQSBjAl9llTqRbqzQSoCV1N3Q1OWCKHbiaeaKd2wrAUwIiwXGR1BdE8LjxLejXa5tvB0eU X-Received: by 2002:a17:907:7245:: with SMTP id ds5mr2024435ejc.1.1592978377314; Tue, 23 Jun 2020 22:59:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592978377; cv=none; d=google.com; s=arc-20160816; b=DWmzvqjy4KVVEXjfeTDMg+Efhs/E4yutmSzWgZTJKSOaWqOP9r1A47uJ61n5EGasSY 9olfOCCXvxNSegZmsn+67GCvVIP84L24nv8pPTR6DYm918pvboxXgvE3ye3G0KFnarBG SUAsQUBdlC/VYS/VhXuTta7av26/vlUS8g8OMYclcyMwajLyHFDQO/ECtjs5LnrqTi0w aUxtumJ5+kfBnm7M4v0+KasqJ7qKuqGibj8DnJF6sWbz60cvJ4cASn/02MsoVxEQoA7x DqqUuMJc35SgAgh22CSTtPqP1cBwuUHmy3hskSZo8Qwb4a/Ryu5GXw8O0qUb6H93MMJD UDnQ== 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 :dkim-signature; bh=nJqcN1Qs8e+xIvY7AtKfgJDwv5Yd/YKMdknER34z+/4=; b=o7/2Lp3eHpdLJfyf6A2EuENuC+LkewPU17BntUMglEbiM410M/4pCvGfUyYQ93A7K3 bHH8pPd/Zm0pd8BL+0tQr3YPwG7tJunseloTg54UaGegMoG7wnTtyvIlm+NBQxaxN770 ZnuopaUG0BbwWCHNJedcClmG/om+04LDKEyH7h/7HLB3zDKawOfveCFZE4qn4XEkmXLT XkLsltJAiCgUpeKyehHBafjd6AndBEQDoQUHEI2WuyHd/iJqsTLIDN+lAIVvUwM50v79 AFTcSy+Dd/b39feyZF+av8HEm5Rr38xCSul88qoURiG27rgGyrtBtT+qrUn0oTTps7eB 7V4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sb0bLB0D; 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 w16si12181895ejn.715.2020.06.23.22.59.14; Tue, 23 Jun 2020 22:59:37 -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=sb0bLB0D; 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 S2389089AbgFXF4i (ORCPT + 99 others); Wed, 24 Jun 2020 01:56:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:59414 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388854AbgFXF4h (ORCPT ); Wed, 24 Jun 2020 01:56:37 -0400 Received: from localhost (unknown [171.61.66.58]) (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 479F2207DD; Wed, 24 Jun 2020 05:56:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592978197; bh=T9HGZgQSFhYHhphxCCK/tAU7Drx348osXhVkKUhD8AU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sb0bLB0DmCTNrKV6F2FraehEKEMOkcrzAAYSYexm7OAEXPPZDuOD7NLhJkzIYsypn Zbn1lnR2tnb+aQNldKxBinmXX27vWFI2FBKYkkRnU+ZBo7KGw5t2sFFtPIaOcIqnlm 2gyFyB9DSyH0ysHUu2b8ljunJvWBiWxTVInddTeQ= Date: Wed, 24 Jun 2020 11:26:33 +0530 From: Vinod Koul To: "Gustavo A. R. Silva" Cc: Zhou Wang , Dan Williams , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Subject: Re: [PATCH][next] dmaengine: hisilicon: Use struct_size() in devm_kzalloc() Message-ID: <20200624055633.GY2324254@vkoul-mobl> References: <20200617211135.GA8660@embeddedor> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200617211135.GA8660@embeddedor> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17-06-20, 16:11, 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. Applied, thanks -- ~Vinod