Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3527925ybd; Fri, 28 Jun 2019 10:09:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqzGF52LjGpNpuguyQLQ63xMgknImTi6jLEL6gzApynMcX4ubPrJH2QCM/+x2lIhmbUMB/5h X-Received: by 2002:a17:902:a607:: with SMTP id u7mr12974747plq.43.1561741766884; Fri, 28 Jun 2019 10:09:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561741766; cv=none; d=google.com; s=arc-20160816; b=BESJhXRLf6f8FE+HaWCBfeIUczVg9SpACwnsI8Ff7V73n9KI7Yq6/TQb2TJBzR67o8 7V/mZ5J1HaLftY2+OaeUzNikVOmFvPWbd0YrKQDIz698ep+2a8Zb+kML/oiM75o9yj2M ly6zYw/zhoxln94ci1KO+zzRPLbXRcWf5LqMr48bdzRzHWSLuxSQqw/lmnmw/29uFzOp Excc4zvJrn7U3j1EvDdiMg7K/PLwhSUeku+TGju6Cjq/E9a9TMHmBqJCq5AbFkFsk0NO SRSecyGmiYiRsu9QDfZwhEfGZKtz/E2MsvgQC0CBJFc4uwwSVQgw0fjN+vt1XeALLBOa fiqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from; bh=o85FJ5ppiPxdXv6IJFg0pooyNzXCr1pXR7Hu/LeAbdk=; b=Hz7ojqiCeMBtl5wPLD7jdn84UopaNVd3nzViHyY/cxtKBCzabrcSjqCO7YmbG41Uv8 ftRs+ETa73IvbXv5hjXlAGGf7+A2DCACgOyjyEgMmve/KPrqF3NKOOaRJa//aKLRraE4 9nSJr5zv2Ft28rv0V9pftY7PRRwTAour+Ol8jF0yeIUUFmSsAAKOSEekQ0cwA3Gr1qNo jN6w1Nr0A/x5AMDCzdvpcg3DpW3U0NG7vCEGouWSsuR6u8+Flkl17RxnaKznrEk1/GKi 1fy/YsDx48IkJ8su8TsVVq8Ije1ZtXiTlcHK2uhlKu+LD3XCC6LPjhoQtAlZQUnYxayz s4aQ== ARC-Authentication-Results: i=1; mx.google.com; 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 w188si3036665pfd.283.2019.06.28.10.09.09; Fri, 28 Jun 2019 10:09:26 -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; 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 S1726747AbfF1RI7 (ORCPT + 99 others); Fri, 28 Jun 2019 13:08:59 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:47586 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726480AbfF1RI7 (ORCPT ); Fri, 28 Jun 2019 13:08:59 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 45b3Bw6cxrz1rd1j; Fri, 28 Jun 2019 19:08:56 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 45b3Bw5ws4z1qqkS; Fri, 28 Jun 2019 19:08:56 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id IiSFhchchR5s; Fri, 28 Jun 2019 19:08:55 +0200 (CEST) X-Auth-Info: TU38+AnuLvpKw5O7aBilGJhqmRz1wOLhnCRDIh4OLyUBL7JxWbXJRek9upseuio7 Received: from igel.home (ppp-46-244-173-158.dynamic.mnet-online.de [46.244.173.158]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Fri, 28 Jun 2019 19:08:55 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 3832F2C105E; Fri, 28 Jun 2019 19:08:55 +0200 (CEST) From: Andreas Schwab To: Christophe Leroy Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , mikey@neuling.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [RFC PATCH v2 02/12] powerpc/ptrace: drop unnecessary #ifdefs CONFIG_PPC64 References: <34af3942cd27f6b5365caae772fb8e0af44763d5.1561735587.git.christophe.leroy@c-s.fr> <874l49mzuv.fsf@igel.home> <7dd19eae-793e-b334-e621-7681998ddf2e@c-s.fr> X-Yow: .. this must be what it's like to be a COLLEGE GRADUATE!! Date: Fri, 28 Jun 2019 19:08:55 +0200 In-Reply-To: <7dd19eae-793e-b334-e621-7681998ddf2e@c-s.fr> (Christophe Leroy's message of "Fri, 28 Jun 2019 18:39:53 +0200") Message-ID: <87zhm1ljrs.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Jun 28 2019, Christophe Leroy wrote: > Le 28/06/2019 à 18:36, Andreas Schwab a écrit : >> On Jun 28 2019, Christophe Leroy wrote: >> >>> diff --git a/arch/powerpc/include/uapi/asm/ptrace.h b/arch/powerpc/include/uapi/asm/ptrace.h >>> index f5f1ccc740fc..37d7befbb8dc 100644 >>> --- a/arch/powerpc/include/uapi/asm/ptrace.h >>> +++ b/arch/powerpc/include/uapi/asm/ptrace.h >>> @@ -43,12 +43,11 @@ struct pt_regs >>> unsigned long link; >>> unsigned long xer; >>> unsigned long ccr; >>> -#ifdef __powerpc64__ >>> - unsigned long softe; /* Soft enabled/disabled */ >>> -#else >>> - unsigned long mq; /* 601 only (not used at present) */ >>> + union { >>> + unsigned long softe; /* Soft enabled/disabled */ >>> + unsigned long mq; /* 601 only (not used at present) */ >>> /* Used on APUS to hold IPL value. */ >>> -#endif >>> + }; >> >> Anonymous unions are a C11 feature. >> > > Is that a problem ? Yes, this is a UAPI header. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."