From: akpm@linux-foundation.org Subject: [merged] zswap-improve-a-size-determination-in-zswap_frontswap_init.patch removed from -mm tree Date: Fri, 07 Jul 2017 12:11:23 -0700 Message-ID: <20170707191123.BByyQqKOE%akpm@linux-foundation.org> Reply-To: linux-kernel@vger.kernel.org Return-path: Received: from mail.linuxfoundation.org ([140.211.169.12]:34670 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751034AbdGGTLY (ORCPT ); Fri, 7 Jul 2017 15:11:24 -0400 Sender: mm-commits-owner@vger.kernel.org List-Id: mm-commits@vger.kernel.org To: ddstreet@ieee.org, elfring@users.sourceforge.net, mm-commits@vger.kernel.org, sjenning@redhat.com The patch titled Subject: mm/zswap.c: improve a size determination in zswap_frontswap_init() has been removed from the -mm tree. Its filename was zswap-improve-a-size-determination-in-zswap_frontswap_init.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ From: Markus Elfring Subject: mm/zswap.c: improve a size determination in zswap_frontswap_init() Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. Link: http://lkml.kernel.org/r/19f9da22-092b-f867-bdf6-f4dbad7ccf1f@users.sourceforge.net Signed-off-by: Markus Elfring Cc: Dan Streetman Cc: Seth Jennings Signed-off-by: Andrew Morton --- mm/zswap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN mm/zswap.c~zswap-improve-a-size-determination-in-zswap_frontswap_init mm/zswap.c --- a/mm/zswap.c~zswap-improve-a-size-determination-in-zswap_frontswap_init +++ a/mm/zswap.c @@ -1156,7 +1156,7 @@ static void zswap_frontswap_init(unsigne { struct zswap_tree *tree; - tree = kzalloc(sizeof(struct zswap_tree), GFP_KERNEL); + tree = kzalloc(sizeof(*tree), GFP_KERNEL); if (!tree) { pr_err("alloc failed, zswap disabled for swap type %d\n", type); return; _ Patches currently in -mm which might be from elfring@users.sourceforge.net are