Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp522440pxb; Sat, 10 Apr 2021 10:04:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1/JaeNHtCkjvDPEhR07ljC4C5ASlREMjFZGHLoDmm//vYWOeeUFxOrZhN7K9xFlAonQzo X-Received: by 2002:a17:90a:4d86:: with SMTP id m6mr19442694pjh.197.1618074291023; Sat, 10 Apr 2021 10:04:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618074291; cv=none; d=google.com; s=arc-20160816; b=faIXMUP0jYwAikPixrn3+Zf3azKcgtNzDJz8z3dW6TXLlkuZVt8vt945NZcJ681Hjg KLc7mv9L1d7iJEFI87axntS1urfsYsLKkv2M1WcdIXz6/Mw2SvfOVOXXo0cyGO/y7v6m 27smuuSlWLRYM62dosjZA9+AO+80SBcRgAfeNpXt7wY7zS0CFS2WQl0yhY6WmErm/QON NIfAsoJvgp0jamT/dS8YQtmSA4K1iwa+8Ednt56k9oVcSBnmCHBtmhgul7s1ty7tnZ/i F/vXl1LKjrXFJoUV0jC7Y9aw94vBFZDVL2PSGkkW4Nzs43Uz2TBKPDh/eiWNxP6lakJk DyyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=xwcylnjVBYLxtvV6b4xGhr/VNSNT6la0l2J30rE1u2Q=; b=oyVRE0KOj9owSpWfkbBJIKD/lB3vnJ045som4Vy0F3JSgKIeEVgoXC/TXP63aSL8g6 z09eiMh1BRbxqMp9Bge1g/KZuFfOgZMWvxHpDYWAv+YSmlGztd+OAfOK3z2mp3SwU9NO QTWtPpb718+yGbEnhxQfeQVOlBDjLyCsu8TTszJZ7fMhBUVusWdYlu4HYr8CC6kVnmnt x59MJnngutn79+/d4C7qciv2L+5cvDboPhmVADPYN1ICVB9W+uDfDbdLXkG3T3/PQZpk Dcviq+3+8RoCQwzZPgvqjyYhye61xAHUOfn2bWFYqoKvZr3X1VZxOt7xGKlhZ9PCGOWe prlQ== 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 m34si7397547pgb.288.2021.04.10.10.04.24; Sat, 10 Apr 2021 10:04:51 -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 S234680AbhDJQ6t (ORCPT + 99 others); Sat, 10 Apr 2021 12:58:49 -0400 Received: from gate.crashing.org ([63.228.1.57]:33540 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234392AbhDJQ6t (ORCPT ); Sat, 10 Apr 2021 12:58:49 -0400 Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id 13AGkG83008877; Sat, 10 Apr 2021 11:46:17 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 13AGkB0H008870; Sat, 10 Apr 2021 11:46:11 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Sat, 10 Apr 2021 11:46:11 -0500 From: Segher Boessenkool To: Christophe Leroy Cc: Michael Ellerman , Xiongwei Song , benh@kernel.crashing.org, paulus@samba.org, oleg@redhat.com, npiggin@gmail.com, aneesh.kumar@linux.ibm.com, ravi.bangoria@linux.ibm.com, mikey@neuling.org, haren@linux.ibm.com, akpm@linux-foundation.org, rppt@kernel.org, jniethe5@gmail.com, atrajeev@linux.vnet.ibm.com, maddy@linux.ibm.com, peterz@infradead.org, kjain@linux.ibm.com, kan.liang@linux.intel.com, aik@ozlabs.ru, alistair@popple.id.au, pmladek@suse.com, john.ogness@linutronix.de, Xiongwei Song , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] powerpc/traps: Enhance readability for trap types Message-ID: <20210410164611.GI26583@gate.crashing.org> References: <20210408140750.26832-1-sxwjean@me.com> <70ece993-12bd-335c-d246-914564eb51dd@csgroup.eu> <874kgfdmxq.fsf@mpe.ellerman.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.4.2.3i Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 10, 2021 at 11:42:41AM +0200, Christophe Leroy wrote: > Le 10/04/2021 ? 02:04, Michael Ellerman a ?crit?: > >I think these can all be avoided by defining most of the values > >regardless of what platform we're building for. Only the values that > >overlap need to be kept behind an ifdef. > > Even if values overlap we can keep multiple definitions for the same value. That works, but it can lead to puzzling bugs. Of course we all *like* working on more challenging bugs, but :-) Segher