Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1185625ybg; Wed, 29 Jul 2020 07:55:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5soJ0xOszXYODrLgBZRIYv2JbcFNiFyXziAaiW9yrDbQZSX+AI34c2yXkBNP7S6bGl9Hk X-Received: by 2002:a05:6402:1b1c:: with SMTP id by28mr31341564edb.270.1596034548009; Wed, 29 Jul 2020 07:55:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596034548; cv=none; d=google.com; s=arc-20160816; b=eDWUGOiJ9fzUk7pMqhZgQoLLoExvXaK6FYJ9VnUsC9L6I3bcGXHyLzJx75hVP/RrDp FJQSzvy4P8XWSHlc6v700EndAb+RDV5V4NEc4NftPJOsqKRtff0trJeZwkKoF7mq8rwe WD/e/2wHAnluQBY3RSfmTmwzPvGFI/j25Xvi2x48yRHsKpEi1RigWtM4KteihfdO6ki4 ClV9+9cdL6f13Q5wSh2kHc1KD/yTlgpRA3W1KbdXUSLoshV+EgS1Ud8ZootPyA+qQfOw HgfLn7xMH+JNO37QZQKAxgI/Rs+5WlVtvI/kHuD5TJswiNUZ9LOS9JOqLBZcCCYFzcGh LvlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=ZYyKJX8gyBkW6F9daVA0jWm+9kP2lb8jGX/Ef1mBZlk=; b=EuFgn2BTJxmi/DVp02LocewgXzPuUSNhEe8wlYd83uhh6tx3ZMNCompq/A/9S5Ypir nnXJCoTIePhqD0qSggzRS/hThfqaFiQ/FhZtfZCYRTtkHSSXKv3K6wk8UMKvU5NoxBrP 8764plusrkqngGBpvBkjkkVviIY+KJL7253uxNKfYbqlb1ZRg592VoeEQQWGoUFd0sH6 imZeq1hASrT+386qQscYirdgqs4LgOzRYfSV7FjdJkI/VxZHbxWfzusIQ+Qu6sqbHXwa XmrBqhc90mhglQ34ThxIa+Qs8ZsbL/gxeCKNNUUPA2TFqq0jFmCONUxK5neLHMCQfjAq qEww== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=qf71CeE4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d15si1494372edp.439.2020.07.29.07.55.26; Wed, 29 Jul 2020 07:55:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=qf71CeE4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726862AbgG2OzO (ORCPT + 99 others); Wed, 29 Jul 2020 10:55:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726353AbgG2OzM (ORCPT ); Wed, 29 Jul 2020 10:55:12 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3068C061794; Wed, 29 Jul 2020 07:55:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=ZYyKJX8gyBkW6F9daVA0jWm+9kP2lb8jGX/Ef1mBZlk=; b=qf71CeE4YFlWKzhXY4jhV1Z2s8 BM8w59AJ99z+q6KHcBdm+y7itJs+KYqHI3K4NOJP26VlQDBaE8ABd4i5IBmWvbokFj4XqWBqsUkxa JtzKXE8sFPW3gtlDTmJR0s9gKPQiE1zx/C8RyXROY3uf4u6msv0xZ0fWSOQ2ZgAvsJfLql928FetY HtmeyJFQzjOXtvwiGK18rY3Lb0IkdAiSGR2LQU0EuqebwrN3pJWNXck9qkHpFZsW5KHSir/Wo29uX EhgENoTSAjawl0mjMPXBHi/oK5HOja3Rk3itmGCyEf18ds59WWlUX1dqwazUQWx2QlQp0FT9JEx3A WHOEPDqA==; Received: from willy by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1k0nU3-0003wK-Eq; Wed, 29 Jul 2020 14:55:07 +0000 Date: Wed, 29 Jul 2020 15:55:07 +0100 From: Matthew Wilcox To: Peter Zijlstra Cc: mingo@kernel.org, will@kernel.org, a.darwish@linutronix.de, tglx@linutronix.de, paulmck@kernel.org, bigeasy@linutronix.de, rostedt@goodmis.org, linux-kernel@vger.kernel.org, corbet@lwn.net, davem@davemloft.net, netdev@vger.kernel.org, linux-doc@vger.kernel.org, viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 2/5] seqlock: Fold seqcount_LOCKNAME_t definition Message-ID: <20200729145507.GW23808@casper.infradead.org> References: <20200729135249.567415950@infradead.org> <20200729140142.347671778@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200729140142.347671778@infradead.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 29, 2020 at 03:52:51PM +0200, Peter Zijlstra wrote: > Manual repetition is boring and error prone. Yes, but generated functions are hard to grep for, and I'm pretty sure that kernel-doc doesn't know how to expand macros into comments that it can then extract documentation from. I've been thinking about how to cure this (mostly in the context of page-flags.h). I don't particularly like the C preprocessor, but m4 is worse and defining our own preprocessing language seems like a terrible idea. So I was thinking about moving the current contents of page-flags.h to include/src/page-flags.h, making linux/page-flags.h depend on src/page-flags.h and run '$(CPP) -C' to generate it. I've been a little busy recently and haven't had time to do more than muse about this, but I think it might make sense for some of our more heavily macro-templated header files.