Received: by 10.213.65.68 with SMTP id h4csp1575500imn; Thu, 15 Mar 2018 03:49:40 -0700 (PDT) X-Google-Smtp-Source: AG47ELtkD2ifjU3VoSb+PqE+4DQ7eXBv5uFnLumLTttQAx4JmULL0jBW0NLgAsIJ/qZ9QUkXDrSS X-Received: by 2002:a17:902:20eb:: with SMTP id v40-v6mr7572168plg.277.1521110980877; Thu, 15 Mar 2018 03:49:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521110980; cv=none; d=google.com; s=arc-20160816; b=0qCeg90mTb6lN/ki6biydOotqOBw/bpeleMhFy0EtpQss3BylSAfBJX2xHEdS9ORsY LPSPQOxbpUvaGv2Q7lcVkQE2A/qHUaCDTGo3NTt+DLBh6fINd98MoIn1IVfGt/qHnt3C k57oOnpnnNdadAzxU7QThA/wRxMWi1lYw86Pqy5T/JiZ8vckIY8mRhtzU2gjm01rhUT5 kCiHoHt+Z6SByOGLM5XAY/r9bnHVPpgID5RsMfxqogQ6eh+q23Tcahx7y9xz61ZoLz9Q KthGLvdmoWSjgwbelCEGbdpCoeFydbBBv6GZPqRN4EWgWBYz+PwKT+X9gVuLYKCGudl9 5IZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=/ti6FkyM9fzIFwQQuGewLjJmaQI+EkAwLTRjjIarW6o=; b=xuHrCdDl4IGo6Ggw4jJuV2qnWvfO0XOPcyu3Fw/6jDd5FY7AaybTuNiVoKIH8fDgay ryzNMo/R4SduYtmLhfY/mt5s4Yz/lhy8WWo4iTWN8I1Gc1yKr5LOfYfk5TtD5QEZhF9J vuU6V/qCVIqYrpjOySQCwdOe1WXkz3iQRT8isJfDNUa56SIYtWSN5M2l+UJWq1FDYiAQ Hcb9W/fDbbQm7BCr3MLn6f6gNxEgqASMqBGLtmxxsp13dyNNgU4aomHnxpitlWgOEJah ZRybkTnsZD/2OmD/GSnDKVdwK0SavtL2InZISFj4XwREsq8pe+ncYro9x8PjGLVHQfCa fOxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=FxPU31Ql; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k8si3283021pgs.555.2018.03.15.03.49.26; Thu, 15 Mar 2018 03:49:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=FxPU31Ql; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751864AbeCOKsP (ORCPT + 99 others); Thu, 15 Mar 2018 06:48:15 -0400 Received: from mail-io0-f196.google.com ([209.85.223.196]:36079 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751541AbeCOKsN (ORCPT ); Thu, 15 Mar 2018 06:48:13 -0400 Received: by mail-io0-f196.google.com with SMTP id e30so8048859ioc.3; Thu, 15 Mar 2018 03:48:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=/ti6FkyM9fzIFwQQuGewLjJmaQI+EkAwLTRjjIarW6o=; b=FxPU31QlXr6uJZbBN9ZCjsOgbvTW8xs2uq56iXcfuQXwSQK5aOp6aKsv4NQqy/UKTl N35i8+urjth+GACnRVAFX4O+9irpIdahXkts3BWKAakpoI/Z4Rll38DJa1DY1w/ikTBz 04Ude/StXhgjMxz6nwUidmcN9AqY4YTU3rqH30bXxkZjCh1AxkTEIV2Wg7sUScVSvv40 UW6bXz2SWzv48p4bNy4S+rKSdLVUGH/oUOprGcRwBV4zbkM+5u6ouXb3gI6buqmvxzPZ ClAgX59pURf44Fd7zvRlhwKEv0oyenCgoNuswKwbEurjz+U4k4UPr3jdYvRjpoycpGBq OYkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=/ti6FkyM9fzIFwQQuGewLjJmaQI+EkAwLTRjjIarW6o=; b=ENUiFmiecCNxaU+WIhRujVZC77MnhLIREG/mqnDC+oAAabBnlYVpR5dEPMbOTsY2jD LxjY67cOghla6YbI8GqJoOoP6pTV5D/wgyaoG7VzSTfL4MK+ZDKs58YPyH2DqcaUvhJT oPmpIKfTOQ1ocsod5i4XbadJ0Mu9VmuChQWnKkrUxYRr7dli1oMuA08GVnaqUGObNc0I OMOyUgAzFabvk/x3gHiOkTE+F4gqZF7ZXI7kVpg4P/NcSlpxoePTwCBqLR9PMLnvYNc7 dNBIBfxcthT1uu/tr9rEwgaYCrpLHejuL33zri6tFDjb4x7bbG3M12IjP7VcuHgqIT15 dg9Q== X-Gm-Message-State: AElRT7HL8yECG84SU1bOMZHWfPjZgf2q7W23vIDXeE7Rf0NWYd0Lzl4U Ekmrl0ppaltg/mtPAKZbOXWBM27gohP7EwHDi6A= X-Received: by 10.107.184.198 with SMTP id i189mr1397222iof.228.1521110893046; Thu, 15 Mar 2018 03:48:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.34.71 with HTTP; Thu, 15 Mar 2018 03:48:12 -0700 (PDT) In-Reply-To: <87po45hcuy.fsf@xmission.com> References: <20180314143529.1456168-1-arnd@arndb.de> <20180314144614.1632190-1-arnd@arndb.de> <20180314144614.1632190-2-arnd@arndb.de> <87po45hcuy.fsf@xmission.com> From: Arnd Bergmann Date: Thu, 15 Mar 2018 11:48:12 +0100 X-Google-Sender-Auth: EmI6749qgpjqZJjxThmMAsp3dx8 Message-ID: Subject: Re: [PATCH 12/16] asm-generic: siginfo: remove obsolete #ifdefs To: "Eric W. Biederman" Cc: linux-arch , Linux Kernel Mailing List , Al Viro , Thomas Gleixner Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 15, 2018 at 11:06 AM, Eric W. Biederman wrote: > Arnd Bergmann writes: > >> The frv, tile and blackfin architectures are being removed, so >> we can clean up this header by removing all the special cases >> except those for ia64. >> >> Signed-off-by: Arnd Bergmann >> --- >> include/uapi/asm-generic/siginfo.h | 36 ++---------------------------------- >> 1 file changed, 2 insertions(+), 34 deletions(-) >> > > If I am reading siginfo.h correctly after this cleanup patch > we can perform another cleanup and unconditionally define > all of the ia64 si_codes except for __SEGV_PSTKOVF which > aliases SEGV_PKUERR. > > Which has the advantage that no one is tempted to define any further > aliased si_codes. Do you mean like this: diff --git a/include/uapi/asm-generic/siginfo.h b/include/uapi/asm-generic/siginfo.h index b2ebf16c391a..ff13ed50dde8 100644 --- a/include/uapi/asm-generic/siginfo.h +++ b/include/uapi/asm-generic/siginfo.h @@ -186,11 +186,9 @@ typedef struct siginfo { #define ILL_PRVREG 6 /* privileged register */ #define ILL_COPROC 7 /* coprocessor error */ #define ILL_BADSTK 8 /* internal stack error */ -#ifdef __ia64__ -# define ILL_BADIADDR 9 /* unimplemented instruction address */ -# define __ILL_BREAK 10 /* illegal break */ -# define __ILL_BNDMOD 11 /* bundle-update (modification) in progress */ -#endif +#define ILL_BADIADDR 9 /* unimplemented instruction address */ +#define __ILL_BREAK 10 /* illegal break */ +#define __ILL_BNDMOD 11 /* bundle-update (modification) in progress */ #define NSIGILL 11 /* @@ -204,13 +202,11 @@ typedef struct siginfo { #define FPE_FLTRES 6 /* floating point inexact result */ #define FPE_FLTINV 7 /* floating point invalid operation */ #define FPE_FLTSUB 8 /* subscript out of range */ -#ifdef __ia64__ -# define __FPE_DECOVF 9 /* decimal overflow */ -# define __FPE_DECDIV 10 /* decimal division by zero */ -# define __FPE_DECERR 11 /* packed decimal error */ -# define __FPE_INVASC 12 /* invalid ASCII digit */ -# define __FPE_INVDEC 13 /* invalid decimal digit */ -#endif +#define __FPE_DECOVF 9 /* decimal overflow */ +#define __FPE_DECDIV 10 /* decimal division by zero */ +#define __FPE_DECERR 11 /* packed decimal error */ +#define __FPE_INVASC 12 /* invalid ASCII digit */ +#define __FPE_INVDEC 13 /* invalid decimal digit */ #define NSIGFPE 13 /* That seems reasonable. If you send me a patch with a proper changelog (I don't think I could explain this well enough), I'll add it to the series. Arnd