Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2310210pxj; Sun, 13 Jun 2021 16:15:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGCu0XA4FhEyBETNernytGMqtZfb+1HO1ljj/OdZ3IQIzAgZeo6XrgvGKxkWCUaCw/EJwb X-Received: by 2002:a17:906:757:: with SMTP id z23mr12399240ejb.537.1623626122178; Sun, 13 Jun 2021 16:15:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623626122; cv=none; d=google.com; s=arc-20160816; b=dsAvM//DzDjh+aOrMEDOtq2yVnAsOquN8FG94grCBOpWGDuGfNtQKh8/+bs5fE/a9U ZNXJFRWAwH04ddERTLQQgjRc8cXUkyFj1PlmKmgP3/5mje5/JDfraiwTOngHRpzvE1US MqHl44KTk56/dVUdWlkBXe33Sn/uRaHWC+IHVlXQ6bHK+/o2SqjRbLsMx+fNEEIVulyh d0tqEVPrg1u3a3kqKOuXsF6L8coqMicdeiBbpeTavsCRIjcrkiq1JxXJwtUuFC8tOnSm 3Nj0fOHpKr/2Ml2m4wNJCCmtyIkQl9zO8Wjm1k8HIs2hiLtIRj7yJG4q4iOPkP9+xDr/ k4RQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature:dkim-filter; bh=4WN+9esKdpn+45t+uVbVMJCUauf+D7d+ldnHfTIx38U=; b=Hib+2CPe1T2MsYf5ahoEB1ETiCGLwDG8vThOC1TgH2rSehryjLKl/WIBeTOEDjDDu4 v2d9jo4L71fDA4iCIX75VVsq31X17Z2kX2QMQQOJyqO8fkGOwGkJiMwwsUhErdVNS0yr VJ42XEsmCf4DcTOtkBRX6ehu6n/6aKkSlFxiWMtUL6zzjo1mLMPctlSDhn4YQgSwh8hF voD+On5GY1q/LrBiIpIaQfaCF/fel32GtoTVCehvIlh/Ciw6gKwaefqCv83G+nqgba37 il4uP8nsVsqfezmDD4uRNI4ValxUK1tSx/ATKdZxRc0FU7bHhJFeiAFdHHzwYEiUWmMm PEoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=CAvozJ4D; 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 d24si10280609edz.581.2021.06.13.16.14.59; Sun, 13 Jun 2021 16:15:22 -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=pass header.i=@lwn.net header.s=20201203 header.b=CAvozJ4D; 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 S232178AbhFMXPt (ORCPT + 99 others); Sun, 13 Jun 2021 19:15:49 -0400 Received: from ms.lwn.net ([45.79.88.28]:42340 "EHLO ms.lwn.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232154AbhFMXPs (ORCPT ); Sun, 13 Jun 2021 19:15:48 -0400 Received: from localhost (unknown [IPv6:2601:281:8300:104d::5f6]) (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 350954E5; Sun, 13 Jun 2021 23:13:46 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 ms.lwn.net 350954E5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lwn.net; s=20201203; t=1623626026; bh=4WN+9esKdpn+45t+uVbVMJCUauf+D7d+ldnHfTIx38U=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=CAvozJ4DFqiICnh4Ipy2Fzg/mjorMeE9jpyX4AX0wozLu5ysJ3J+8h3lH8504jgsJ zgq1LiPsHLRs3CRheGAb1e3uBolFz1hs3GN32TArLqOWlfMJ38GFh5dt/WO9W+oPr+ 8p5QHDvqyzsaH52SCsrN4OF3j+utA6py1/Nsx4kNpAtwyQbGcEMqOw/EDHi9txFWCI yraEZyxM4R+M3HmohETUnEhPIYgPHtjYHZJAhLl+FJh+ciXp9jxn/s844xpPhtseOQ u4rmqjaN2LIBbVajm1YKddU5jSA+nYcisUhnLnjwblIz1VccLd8WrbDNBL1RRJAs1p I9K6NfnBdROYg== From: Jonathan Corbet To: Mauro Carvalho Chehab , =?utf-8?Q?N=C3=ADco?= =?utf-8?Q?las_F=2E_R=2E_A=2E_Prado?= Cc: linux-doc@vger.kernel.org, Matthew Wilcox , linux-kernel@vger.kernel.org, =?utf-8?Q?And?= =?utf-8?Q?r=C3=A9?= Almeida , ~lkcamp/patches@lists.sr.ht Subject: Re: [RFC PATCH 1/2] docs: automarkup.py: Add literal markup of known constants In-Reply-To: <20210609101102.2a97b2dd@coco.lan> References: <20210609014308.234027-1-n@nfraprado.net> <20210609014308.234027-2-n@nfraprado.net> <20210609101102.2a97b2dd@coco.lan> Date: Sun, 13 Jun 2021 17:13:45 -0600 Message-ID: <874ke1bbo6.fsf@meer.lwn.net> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Mauro Carvalho Chehab writes: > It sounds a nightmare to maintain this by hand, as a list of used > constants will only grow. IMO, an explicit list should be kept only to > with the absolute minimum, e.g. for highly-used constants that aren't > error codes nor FOO_BAR. The only case that occurs to me that fits > on this rule is 'NULL'. This is my concern as well. It seems to me like we would always have a situation where some constants are magically marked up and others aren't, and people will spend a lot of time trying to figure out why. Might it not be better to just adopt the convention that these constants don't need to be marked up at all? NULL is entirely understandable even when presented in a proportional font. Seems like maybe the best of both worlds? Thanks, jon