Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2616214pxj; Mon, 17 May 2021 05:59:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhMfSYlH48P3KVjSJm4+x1sm/XJetggrbyMdHX3LUg5iiNR+Xa3XlwXem5/IMKF3cZ9/+Y X-Received: by 2002:a17:906:7e51:: with SMTP id z17mr63493051ejr.92.1621256381714; Mon, 17 May 2021 05:59:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621256381; cv=none; d=google.com; s=arc-20160816; b=kz7bhvJ1Sjg/a7djYoH07RU2+ioWczoUtQG9FNH0t4OGa0O0WUYdO+r9j3FEkmKQ5T IIH77AzcYSXh/PaGZrdSu8pSi0BH2oXAfmyTbBo37JlM9BCzJjyQDtYNpk6zoe5s3A7/ wlP0T86NxyORMQC5l++GK7mM84aVzCfzNoANRhXkwci3g9o0M/tAKlRutBiybCnzIl5n yzcUDoCZF5IFRQooKRlpziw7joPdccefyelV3jjZNZgINeYLTG7uCk3FwuuW4rKOEjY2 qEsp4bxXC9hBrzERohr4rESsvEb3NuYJBb9I8nRG075Rf9MAvMazvxjfXHjberlno7ZX +6mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=V8IiWGBoeGNR/4AApAT5xtF94lTT+A88dVN0LlH+zrk=; b=kbJgmZg4HNJ3dMbLELzXPunCYnb0+oqoY0+2PAr/gG4/5yip8e7Oq0Z3gzPjjVVTx8 zWRTCZCGuNjynF7/+Ou7LnMWzLlXHyWVVlOM1t1oW6hZsQWc2WDIXCh1t6IFMjiL3dMB qgxkKJm/dg67umKEnn/i75+fgcR5OkHXjoNsAOyh7IKL47OXSqJ9GJWhizEAHfueBLRw elTkyGbwP54DYhCVSXdnxGbaocoN4Dofqr0I3HdZa7CpV9tshcYrmD2GHDmoTPzkJtZI jEowa8iWZB69R5U+HVBGlvfqwl/dG7eWF92UAhJVzTinjEWwULv1WheWpUBBP3acJ1SH 2xig== ARC-Authentication-Results: i=1; mx.google.com; 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 h35si11533697edd.312.2021.05.17.05.59.18; Mon, 17 May 2021 05:59:41 -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; 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 S233028AbhEQHj1 (ORCPT + 99 others); Mon, 17 May 2021 03:39:27 -0400 Received: from antares.kleine-koenig.org ([94.130.110.236]:53302 "EHLO antares.kleine-koenig.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230499AbhEQHj0 (ORCPT ); Mon, 17 May 2021 03:39:26 -0400 Received: from antares.kleine-koenig.org (localhost [127.0.0.1]) by antares.kleine-koenig.org (Postfix) with ESMTP id 4BD67B9DCFB; Mon, 17 May 2021 09:38:09 +0200 (CEST) Received: from antares.kleine-koenig.org ([94.130.110.236]) by antares.kleine-koenig.org (antares.kleine-koenig.org [94.130.110.236]) (amavisd-new, port 10024) with ESMTP id ltGXZ89Y7-mn; Mon, 17 May 2021 09:38:08 +0200 (CEST) Received: from taurus.defre.kleine-koenig.org (unknown [IPv6:2a02:8071:b5c8:7bfc:3d80:4187:1735:8dd9]) by antares.kleine-koenig.org (Postfix) with ESMTPSA; Mon, 17 May 2021 09:38:08 +0200 (CEST) Subject: Re: [PATCH] [v2] printf: fix errname.c list To: Arnd Bergmann , Petr Mladek , Rasmus Villemoes , Andy Shevchenko Cc: Arnd Bergmann , Andrew Morton , Andy Shevchenko , linux-kernel@vger.kernel.org References: <20210514213456.745039-1-arnd@kernel.org> From: =?UTF-8?Q?Uwe_Kleine-K=c3=b6nig?= Message-ID: <1986de34-bd7f-3a74-5cf9-d1efceb0ff54@kleine-koenig.org> Date: Mon, 17 May 2021 09:38:03 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 In-Reply-To: <20210514213456.745039-1-arnd@kernel.org> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="AZ5x7BOcwfp4S4aFbQZeC0xRw6VJKvlCl" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --AZ5x7BOcwfp4S4aFbQZeC0xRw6VJKvlCl Content-Type: multipart/mixed; boundary="oyrrUHCpA4h6R8smJICWrwbB9DYAjeXDs"; protected-headers="v1" From: =?UTF-8?Q?Uwe_Kleine-K=c3=b6nig?= To: Arnd Bergmann , Petr Mladek , Rasmus Villemoes , Andy Shevchenko Cc: Arnd Bergmann , Andrew Morton , Andy Shevchenko , linux-kernel@vger.kernel.org Message-ID: <1986de34-bd7f-3a74-5cf9-d1efceb0ff54@kleine-koenig.org> Subject: Re: [PATCH] [v2] printf: fix errname.c list References: <20210514213456.745039-1-arnd@kernel.org> In-Reply-To: <20210514213456.745039-1-arnd@kernel.org> --oyrrUHCpA4h6R8smJICWrwbB9DYAjeXDs Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable Hi Arnd, On 5/14/21 11:34 PM, Arnd Bergmann wrote: > From: Arnd Bergmann >=20 > On most architectures, gcc -Wextra warns about the list of error > numbers containing both EDEADLK and EDEADLOCK: >=20 > lib/errname.c:15:67: warning: initialized field overwritten [-Woverride= -init] > 15 | #define E(err) [err + BUILD_BUG_ON_ZERO(err <=3D 0 || err > 30= 0)] =3D "-" #err > | =20 ^~~ > lib/errname.c:172:2: note: in expansion of macro 'E' > 172 | E(EDEADLK), /* EDEADLOCK */ > | ^ >=20 > On parisc, a similar error happens with -ECANCELLED, which is an > alias for ECANCELED. >=20 > Make the EDEADLK printing conditional on the number being distinct > from EDEADLOCK, and remove the -ECANCELLED bit completely as it > can never be hit. >=20 > To ensure these are correct, add static_assert lines that verify > all the remaining aliases are in fact identical to the canonical > name. >=20 > Fixes: 57f5677e535b ("printf: add support for printing symbolic error n= ames") > Cc: Petr Mladek > Suggested-by: Rasmus Villemoes > Signed-off-by: Arnd Bergmann LGTM Acked-by: Uwe Kleine-K=C3=B6nig Thanks Uwe --oyrrUHCpA4h6R8smJICWrwbB9DYAjeXDs-- --AZ5x7BOcwfp4S4aFbQZeC0xRw6VJKvlCl Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAmCiHVwACgkQwfwUeK3K 7Alr4Qf/ZcaLwlAUdig5CT2zlGUiapijstlmSlpZGXWKtNdvUR6r5qr7Ht0aIVqx jiuoBOF8hrX6esuzvMT1XazzTYqpbE97eso+WhtQxRJjT67Ff1jqc7Xg0N+HCza5 HayawabjniL+6/wzVOAplUv5tlAhJJnSgsA0OUW+OCkfivhGjqdF1+h6OjEmucb1 9b5xFv81aqFO1FU6Kr0pDNzlw293MDTlw2FpxpdxvLeURSgAUQyTiTq6lNCCPP3o hNFyeVFGMGlnW0XVKWY9Fosl6FfDmrgeHFGXqgboFtmDiQ4vGaKtYt5zOFwvjXu7 U8HNUzB42rOq0PmmCI5VLKtQ0qcMbA== =65tb -----END PGP SIGNATURE----- --AZ5x7BOcwfp4S4aFbQZeC0xRw6VJKvlCl--