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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 311B4CD4851 for ; Thu, 14 May 2026 16:18:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:Date:Message-Id:Subject:References:In-Reply-To:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=mKBPPmTGx6FxRH9DDtxyeNDWGdiIPkDIWoOa/2YnFcw=; b=En9p4nU5MWUbcihaMxJ3nkO0Gt 8YVgQ3H3GgaOOYeBXbWIQqqz0277FKVVY3c8oNxTbeuEG6e4J5JzoQtXMYTMTfNKDGMwxVNNqUs6d uv6oV4ONYB9yar91moAr3ZGeNI+yqh6+/OF4yUQd1aJBkheYAgH07ahPOVASxZ6pj2rLA2J23DNDG fylcU2hKpl+nIt63U+G5XsS9TEwFtQ0ZQj/QHNzI0qRH8QH1Nf7FlVVZ6QOYxAi1sa04UEE8yxJXT iWbaqu/YV2F6/Ukr54whc5Pd0sbXrDkZj2KzVQKFQ7HpN6eSfZKYE7XhUUy5uV1Ofi4PSHdqjdLGA hh2s55lA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wNYlK-000000061fz-0lAI; Thu, 14 May 2026 16:18:14 +0000 Received: from tor.source.kernel.org ([2600:3c04:e001:324:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wNYlI-000000061eB-1eq2; Thu, 14 May 2026 16:18:12 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id D56566013B; Thu, 14 May 2026 16:18:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4AEF4C2BCC9; Thu, 14 May 2026 16:18:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1778775491; bh=a/iNaIKbVrm7Lqc4Lt8ICQ/ivXXWN6UgmrAPOdkJyC4=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=q6EqVblN3S5MrSn/05eDZ4ZNEj2+AOlv14F7JpPZWZDP9J5QPiTiIjT45VZBmwTS3 yMYMTVO+famxCqRJ4F1vbVSyxE1EdqyvfUbi5aSFsAci6x1t/77eES4+dleYFfRi6v DnpbaKlZlWXCNd8mOzxdoI6jXO1riFZLZGSVTGq89/FFXbs3+Fre5iq4EKqmqrbAR+ 4snhUXUj1VJeqg+mwweOBVZxRKKrf0RMeWjG1HGj9svvSMU11VZFtFtTaE6qFX3OH+ YcQoinzKvmKaOV0GeT3ywC0Xn9gDcJhq7E9ZGrN17akPKAOxrRmG5Bd0ji1CCOGnF3 cbYS6KfdPd4MQ== From: Vinod Koul To: linux-phy@lists.infradead.org, Rosen Penev Cc: Chunfeng Yun , Neil Armstrong , Matthias Brugger , AngeloGioacchino Del Regno , Kees Cook , "Gustavo A. R. Silva" , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org In-Reply-To: <20260304043420.14151-1-rosenp@gmail.com> References: <20260304043420.14151-1-rosenp@gmail.com> Subject: Re: [PATCH] phy: mediatek: xsphy: reduce main allocation Message-Id: <177877548793.1092446.559033310365842656.b4-ty@kernel.org> Date: Thu, 14 May 2026 21:48:07 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.13.0 X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, 03 Mar 2026 20:34:20 -0800, Rosen Penev wrote: > Instead of kzalloc and kcalloc, we can use a flex array to reduce to a > single allocation. > > Also added __counted_by() for extra possible analysis. > > Applied, thanks! [1/1] phy: mediatek: xsphy: reduce main allocation commit: fd6cd05ceabdf67635a4cef5145f79d1217bf11b Best regards, -- ~Vinod