Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752115AbbGOA1N (ORCPT ); Tue, 14 Jul 2015 20:27:13 -0400 Received: from mail-pa0-f52.google.com ([209.85.220.52]:36358 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750964AbbGOA1L (ORCPT ); Tue, 14 Jul 2015 20:27:11 -0400 Date: Wed, 15 Jul 2015 09:27:43 +0900 From: Sergey Senozhatsky To: Andrew Morton Cc: Joe Perches , Julia Lawall , Sergey Senozhatsky , Minchan Kim , Christoph Lameter , Pekka Enberg , Joonsoo Kim , Michal Hocko , David Rientjes , linux-mm@kvack.org, linux-kernel@vger.kernel.org, sergey.senozhatsky.work@gmail.com Subject: Re: [PATCH V2] checkpatch: Add some _destroy functions to NEEDLESS_IF tests Message-ID: <20150715002743.GB742@swordfish> References: <1433851493-23685-1-git-send-email-sergey.senozhatsky@gmail.com> <20150609142523.b717dba6033ee08de997c8be@linux-foundation.org> <1433894769.2730.87.camel@perches.com> <1433911166.2730.98.camel@perches.com> <1433915549.2730.107.camel@perches.com> <20150714160300.e59bec100e2ba090bc5e2107@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150714160300.e59bec100e2ba090bc5e2107@linux-foundation.org> User-Agent: Mutt/1.5.23+102 (2ca89bed6448) (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1022 Lines: 32 On (07/14/15 16:03), Andrew Morton wrote: > > Sergey Senozhatsky has modified several destroy functions that can > > now be called with NULL values. > > > > - kmem_cache_destroy() > > - mempool_destroy() > > - dma_pool_destroy() > > > > Update checkpatch to warn when those functions are preceded by an if. > > > > Update checkpatch to --fix all the calls too only when the code style > > form is using leading tabs. > > > > from: > > if (foo) > > (foo); > > to: > > (foo); > > There's also zpool_destroy_pool() and zs_destroy_pool(). Did we decide > they're not worth bothering about? Correct. Those two are very unlikely will see any significant number of users so, I think, we can drop the patches that touch zspool and zsmalloc destructors. -ss -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/