From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754622AbdC1Hwj (ORCPT ); Tue, 28 Mar 2017 03:52:39 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:36624 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753989AbdC1Hwh (ORCPT ); Tue, 28 Mar 2017 03:52:37 -0400 Date: Tue, 28 Mar 2017 09:52:32 +0200 From: Ingo Molnar To: Dmitry Vyukov Cc: Mark Rutland , Peter Zijlstra , Andrey Ryabinin , Ingo Molnar , Will Deacon , Andrew Morton , kasan-dev , "linux-mm@kvack.org" , "x86@kernel.org" , LKML , Peter Zijlstra , Linus Torvalds , Thomas Gleixner , "H. Peter Anvin" Subject: Re: [PATCH 2/3] asm-generic, x86: wrap atomic operations Message-ID: <20170328075232.GA19590@gmail.com> References: <6bb1c71b87b300d04977c34f0cd8586363bc6170.1489519233.git.dvyukov@google.com> <20170324065203.GA5229@gmail.com> <20170324105700.GB20282@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Dmitry Vyukov wrote: > On Fri, Mar 24, 2017 at 11:57 AM, Ingo Molnar wrote: > > > > * Dmitry Vyukov wrote: > > > >> > Are just utterly disgusting that turn perfectly readable code into an > >> > unreadable, unmaintainable mess. > >> > > >> > You need to find some better, cleaner solution please, or convince me that no > >> > such solution is possible. NAK for the time being. > >> > >> Well, I can just write all functions as is. Does it better confirm to kernel > >> style? > > > > I think writing the prototypes out as-is, properly organized, beats any of these > > macro based solutions. > > You mean write out the prototypes, but use what for definitions? Macros again? No, regular C code. I don't see the point of generating all this code via CPP - it's certainly not making it more readable to me. I.e. this patch I commented on is a step backwards for readability. I'd prefer repetition and a higher overall line count over complex CPP constructs. Thanks, Ingo