Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753034AbdLGLRm (ORCPT ); Thu, 7 Dec 2017 06:17:42 -0500 Received: from resqmta-ch2-02v.sys.comcast.net ([69.252.207.34]:60046 "EHLO resqmta-ch2-02v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752960AbdLGLRj (ORCPT ); Thu, 7 Dec 2017 06:17:39 -0500 Date: Thu, 7 Dec 2017 05:17:37 -0600 (CST) From: Christopher Lameter X-X-Sender: cl@nuc-kabylake To: Geert Uytterhoeven cc: Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm/slab: Merge adjacent debug sections In-Reply-To: <1512641932-5221-1-git-send-email-geert+renesas@glider.be> Message-ID: References: <1512641932-5221-1-git-send-email-geert+renesas@glider.be> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-CMAE-Envelope: MS4wfKuNJzJ6ZGdJVaiGe40ZUZZNUaOPi5SvJnhLt0L+x+hQXA41Jlq9KOYWLqjZhZyWzjiZvvv5kkhprKtMtXFu2yui8VJmg6B8s/bsoc64G2ZfP8V8XPKE UzcDSnERgJuueH664XBVLPWOpANVQ2YFz4ps2IFJvLVlft+dLExcSC6qiKvmznVcUKI2P80ME3z2gRRQLzqkAnxi+0Ln81G2ZTm2AsKDS12Xdbrlb6ACg1Nz s2isWahR4q8zkWi9czcDWutxGVn7MIuvS253pByRr7Eg3qV6y9+mywi2G05RYIzLifLUWyg/VSRZ3SSmTX4wmaXm4u9bUbOwf+HXgHthuVa2tYEBuhisGjDv S10zfssEEHCEkoOSntzPFg+xgqp77A== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 497 Lines: 18 On Thu, 7 Dec 2017, Geert Uytterhoeven wrote: > --- a/mm/slab.c > +++ b/mm/slab.c > @@ -1569,9 +1569,6 @@ static void dump_line(char *data, int offset, int limit) > } > } > } > -#endif > - > -#if DEBUG Hmmm... This may match at other places. Also there are a lot of #ifdef DEBUG / #else in that section of the code. Maybe better leave as is? Or generally rework this into a single #ifdef DEBUG section with all the debugging code in it and an #else section with all the empty functions.