From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on archive.lwn.net X-Spam-Level: X-Spam-Status: No, score=-5.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham autolearn_force=no version=3.4.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by archive.lwn.net (Postfix) with ESMTP id 5FD9A7D57F for ; Sun, 9 Sep 2018 18:19:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726667AbeIIXJe (ORCPT ); Sun, 9 Sep 2018 19:09:34 -0400 Received: from ms.lwn.net ([45.79.88.28]:37924 "EHLO ms.lwn.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726665AbeIIXJe (ORCPT ); Sun, 9 Sep 2018 19:09:34 -0400 Received: from localhost.localdomain (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id 8E33A6D9; Sun, 9 Sep 2018 18:19:03 +0000 (UTC) Date: Sun, 9 Sep 2018 12:19:01 -0600 From: Jonathan Corbet To: Miguel Ojeda Cc: Linus Torvalds , linux-kernel@vger.kernel.org, Rasmus Villemoes , Luc Van Oostenryck , Eli Friedman , Christopher Li , Kees Cook , Ingo Molnar , Geert Uytterhoeven , Arnd Bergmann , Greg Kroah-Hartman , Masahiro Yamada , Joe Perches , Dominique Martinet , Nick Desaulniers , linux-sparse@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: [PATCH v4 12/13] Compiler Attributes: add Doc/process/programming-language.rst Message-ID: <20180909121901.5a36d0fd@lwn.net> In-Reply-To: <20180908212459.19736-13-miguel.ojeda.sandonis@gmail.com> References: <20180908212459.19736-1-miguel.ojeda.sandonis@gmail.com> <20180908212459.19736-13-miguel.ojeda.sandonis@gmail.com> Organization: LWN.net X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Sender: linux-doc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-doc@vger.kernel.org On Sat, 8 Sep 2018 23:24:58 +0200 Miguel Ojeda wrote: > Documentation/process/index.rst | 1 + > .../process/programming-language.rst | 45 +++++++++++++++++++ > 2 files changed, 46 insertions(+) > create mode 100644 Documentation/process/programming-language.rst > So I have some overall thoughts on the documentation; my apologies for not getting to this until you got to v4... 1) I think the document is mistitled. It's not really about the language that the kernel used, it's about compiler attributes. So I would make both the name of the document and it introduction reflect that. 2) This is an ideal opportunity to document what all of those attributes actually mean. I would guess that is the information many developers will come here looking for, and they'll go away frustrated. The ideal thing to do, IMO, would be do say what each attribute means (rather than just which compilers support it) in a DOC section in the new compiler_attributes.h header, then use RST directives to pull all that information into this document. Thanks, jon