From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f200.google.com (mail-wr0-f200.google.com [209.85.128.200]) by kanga.kvack.org (Postfix) with ESMTP id 430056B0390 for ; Tue, 28 Mar 2017 03:52:38 -0400 (EDT) Received: by mail-wr0-f200.google.com with SMTP id w96so51099870wrb.13 for ; Tue, 28 Mar 2017 00:52:38 -0700 (PDT) Received: from mail-wr0-x243.google.com (mail-wr0-x243.google.com. [2a00:1450:400c:c0c::243]) by mx.google.com with ESMTPS id d75si2468496wme.36.2017.03.28.00.52.35 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Mar 2017 00:52:36 -0700 (PDT) Received: by mail-wr0-x243.google.com with SMTP id w43so17172372wrb.1 for ; Tue, 28 Mar 2017 00:52:35 -0700 (PDT) Date: Tue, 28 Mar 2017 09:52:32 +0200 From: Ingo Molnar 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: Sender: owner-linux-mm@kvack.org List-ID: 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" * 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 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org