From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EA9C9C433E0 for ; Wed, 24 Jun 2020 07:27:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C91F92073E for ; Wed, 24 Jun 2020 07:27:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592983636; bh=/IEQjo3dkaHLyL3FMHe3F00O94pOiS2lVlYclHP0hng=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=gg24q3ITIgSMRsirm1lPrBTc6JQVNtWPBxFW/4D3ZQ6RwVKAFnQx4+9E2i24ybRMt 8dMK7UIxdiHjeToEigPsuUP5aY0TH0JSFm+zW7PunGEYt+YGEz5D2dV3W9GEXE8A9U rax5SCQt7l4Nz+Xy0CtOkKabJK4nkFNGx4A8inWE= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389717AbgFXH1Q (ORCPT ); Wed, 24 Jun 2020 03:27:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:38556 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728858AbgFXH1P (ORCPT ); Wed, 24 Jun 2020 03:27:15 -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 A0921207DD; Wed, 24 Jun 2020 07:27:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592983634; bh=/IEQjo3dkaHLyL3FMHe3F00O94pOiS2lVlYclHP0hng=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sJUx1RIsexRztruW+f9TxU13MlXVJ7pznN2/Vmk8knlQ72ZDkTDbA9xQIN4nvWCmK yMRxxU9nVcGZymdMMubKAMGUsrK18AKbgbZPLk+jWXJr7PRNyFBO0Ef6lflRqi57/K 3muyQgWvqXj+YGWgaR9gJemzXLNm87hVxjli1MKw= Date: Wed, 24 Jun 2020 12:57:10 +0530 From: Vinod Koul To: Joe Perches Cc: "Gustavo A. R. Silva" , Peter Ujfalusi , Dan Williams , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Subject: Re: [PATCH][next] dmaengine: ti: k3-udma: Use struct_size() in kzalloc() Message-ID: <20200624072710.GK2324254@vkoul-mobl> References: <20200619224334.GA7857@embeddedor> <20200624055535.GX2324254@vkoul-mobl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org On 23-06-20, 22:56, Joe Perches wrote: > On Wed, 2020-06-24 at 11:25 +0530, Vinod Koul wrote: > > On 19-06-20, 17:43, 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. > > > > > > Addresses-KSPP-ID: https://github.com/KSPP/linux/issues/83 > > Is this odd tag really useful? Not at all :) -- ~Vinod