Message ID | 20240108160746.177421-1-shamrocklee@posteo.net |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-19825-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:37c1:b0:101:2151:f287 with SMTP id y1csp1119907dyq; Mon, 8 Jan 2024 08:16:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IE1vpXpLzGm9n+nt5geUGkzHjaIaRBhqVTuKQY6qjUTM38yIC7w7Ew2eFzS8a5Mt3m3lyRf X-Received: by 2002:a17:906:52c3:b0:a26:9722:941c with SMTP id w3-20020a17090652c300b00a269722941cmr1763034ejn.120.1704730565846; Mon, 08 Jan 2024 08:16:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704730565; cv=none; d=google.com; s=arc-20160816; b=0Rdco7zI4c7MEyKUo0o7hRqVt5OPg5KLaBWvwnRxYBq9ngogpF7dXRpUJDXZ+Hn+Qb UmEPdQ312X05yOwU5Ja4D635fsM+0BPvSPJxepaHgXl4vQdbBTKAJ3UrDw4AJsnF3oJt 197kjqRLbpIQOicxv/V3BTHiyQbrg/wJapDDqM3gleuLqD9pubNgimmWUkkl2xvQd8Rf eEUfmAOUd94BRPqtIKlC731IFceDHxMkN8wd1/tGiyeplOupr2M8op/jbzyq+8+cX4Bd wU2epKwdogcYQV3r5jM7u7EMEsG8+jA+vBhGEI1Bqohn4eHKuvUAyUt8hj3oPahHBQ1n t09w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=FtBDeRyzGYjNlWOVR3VUTi19G9VXWqGQ570SJIU+u70=; fh=Ad9V+S7Yf0YSz06+U9OESxrocJHibxRsxD1mZGFI62o=; b=0TICPFVRg6fzDYzBPZCMH0KnUKel08ctHTP6OcMMJXLyvXO0OpPpfBCPhsqf317Ak4 F4W8vsq+CUKQUi4UVGZJSew4EIHKcZOxi3GjIP23FnS3ITRIprOrg+T/7lOUDRbmfnBc KrHy2Lj5G46JfCzqWFDd+KXCjcVRqxVDVsaxgOCCzFUqORLinpNjgB6Vn4LJnsUNLnI2 YHv5ZE4vVfYlCFEre6KlXKPZ0oeRT3aeXvR0XQcHdELVUGERdddY8gNwqhVwyQ+Qz1Jz G9gKqayfh7ULPrQDPBHabMt7Le6eJRLbIxUW1dDN+fjPh3QxlRFnddJ7BvplkIS4wb14 cSRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=q3QHvqdK; spf=pass (google.com: domain of linux-kernel+bounces-19825-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19825-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id m19-20020a170906581300b00a28e9d1691fsi27408ejq.622.2024.01.08.08.16.05 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 08:16:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19825-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=q3QHvqdK; spf=pass (google.com: domain of linux-kernel+bounces-19825-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19825-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 5D5E61F226E2 for <ouuuleilei@gmail.com>; Mon, 8 Jan 2024 16:16:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9FC0552F70; Mon, 8 Jan 2024 16:15:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=posteo.net header.i=@posteo.net header.b="q3QHvqdK" X-Original-To: linux-kernel@vger.kernel.org Received: from mout01.posteo.de (mout01.posteo.de [185.67.36.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BBDD6524C8 for <linux-kernel@vger.kernel.org>; Mon, 8 Jan 2024 16:15:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=posteo.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=posteo.net Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 870DD24002D for <linux-kernel@vger.kernel.org>; Mon, 8 Jan 2024 17:15:37 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1704730537; bh=Ts/rOOm0/Jq58HYvOJXottonXceweiTE91bQUrYjFqc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=q3QHvqdKJhTn1p6fiWYdee57zvhifiCR2vUxYtlkYlDApvZHCc1yrdS3w760e27Vv r8Osz2cuC41ts3vtM6YZ2XfIfv/JHwACVG69zZnLS6PHixmT5Ar1aw7l+w5j+BttZr jpm2qrf+rXg0W9JN/B8aV2tn5TEJ5Vp17TwdHkr8ZYW5ol/0guxFfkhnhRF0GtBEHD i1zyJ0IQWpJMRMfvnvUXLsA0CMhh06p/yjW4hNderRJhD1Ww3YQLla8elGXxD0L5C0 E0ZAcN0BRLwN+T33PMT2EHuKVt114vZp2dtikmU6/rC/gYARk3XT/o1K9b3cahFIrf ZsJXYQekFFYkg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4T7zgR3Q0kz9rxF; Mon, 8 Jan 2024 17:15:30 +0100 (CET) From: Yueh-Shun Li <shamrocklee@posteo.net> To: Jonathan Corbet <corbet@lwn.net>, Hu Haowen <src.res.211@gmail.com>, Alex Shi <alexs@kernel.org>, Yanteng Si <siyanteng@loongson.cn>, Randy Dunlap <rdunlap@infradead.org> Cc: Yueh-Shun Li <shamrocklee@posteo.net>, workflows@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/4] coding-style: recommend reusing macros from split headers instead of kernel.h Date: Mon, 8 Jan 2024 16:03:21 +0000 Message-ID: <20240108160746.177421-1-shamrocklee@posteo.net> In-Reply-To: <107b6b5e-ca14-4b2b-ba2e-38ecd74c0ad3@infradead.org> References: <107b6b5e-ca14-4b2b-ba2e-38ecd74c0ad3@infradead.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787539557713539287 X-GMAIL-MSGID: 1787539557713539287 |
Series |
coding-style: recommend reusing macros from split headers instead of kernel.h
|
|
Message
Yueh-Shun Li
Jan. 8, 2024, 4:03 p.m. UTC
Dear Maintainers, This series of patches targets the "Linux kernel coding style" documentation and recommend reusing macros inside the include/linux directory instead of the obsolete header "include/linux/kernel.h". This addresses the issue 'Irrelevant documentation recommending the use of "include/linux/kernel.h"'[1][2] and help deprecating "kernel.h". If applied, developers will no longer be confused by the contradiction between "Linux kernel style guide" suggestions and the deprecation notice on top of "kernel.h". There's also a patch that adds an example to show how reusing macro definition from shared headers help prevent naming collisions. This series contains the update to the zh_TW and zh_CN translation of the corresponding documentation changes. Best regards, Shamrock [1]: https://lore.kernel.org/linux-doc/bc63acd7ef43bdd8d9609fa48dbf92f9@posteo.net/ [2]: https://lore.kernel.org/linux-doc/107b6b5e-ca14-4b2b-ba2e-38ecd74c0ad3@infradead.org/ Yueh-Shun Li (4): coding-style: recommend split headers instead of kernel.h coding-style: show how reusing macros prevents naming collisions doc/zh_TW: coding-style: update content for section 18 doc/zh_CN: coding-style: update content of section 18 Documentation/process/coding-style.rst | 41 +++++++++++++++---- .../zh_CN/process/coding-style.rst | 39 ++++++++++++++---- .../zh_TW/process/coding-style.rst | 39 ++++++++++++++---- 3 files changed, 95 insertions(+), 24 deletions(-)