Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp5114630pxb; Thu, 14 Oct 2021 19:53:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJvPmbviXqAlHLJzUCPubFjpLIpOBDF+TWntSSr+c4j2lSvr/L74Ovp8uqY9cDDTuNnFPA X-Received: by 2002:a17:902:ba85:b0:13e:c846:c92e with SMTP id k5-20020a170902ba8500b0013ec846c92emr8576644pls.57.1634266391330; Thu, 14 Oct 2021 19:53:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634266391; cv=none; d=google.com; s=arc-20160816; b=ehzyi9r3zWzlttOnsVDbNMeEkWxwVjusvHh0mEymbtLJI0xPgZsS091WJ8gB/W1rXH 9jgLAiPRSHnRuaOMxvWhV8tWclMGbjufI3R8dvDglKC2KQlVBxPAoLYjqTh9sA98DZIW QGpy6K6eH1XycVaVkuguIBWAdC1qQQMigiUkCuWQIc+Vq6jofe23YD8wWMbjNpcMaB6O GNelKSidPOKFbWCvhPb1lrx1cp8SUlrlo8kXJtK5gfs961yRcQheCSfZvOiKJM91xpzY nYFnatu1Xc0K44AO8kcSO51o6578uOcIdMxGPHe+LVJhx2jy7d1iyfRrNkXKG9hcYWj2 w+sQ== 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; bh=CLaFJ0M9ufD0uCBwTkgOwQCLYTA2acJBA4tvaXF3j60=; b=HlUH4ehRc33t+92jhOsIJg+ErhFulpiiPaX3j6AmdrvhnQWoKmPJJN4/S9oWOPQb/r HxAkDPxGWggTOwfmMjoICDduFHlPNI9XFMbxA7xOFFRwbrJAbS1A/uyBzz1XU9qkdZpI kSmN8tftz2IFvXpp1lMfQwwYtRr9DD2s5RSlK5WTg1cM8Pnk40MnEzz3N6oBWwbh0Ogp uW+dtQgN7eV7ktDyStSrSIysE5UlFl98gBg8Q/bqU5zOH2xmEpvUQGGkScCX0rSUWwrd Vrj4CS8qioaHVf5FRmr+/2AHROzdGePc22RDEkRoiFDys3mo83TXRXNJu+e+nI/gvbHy bsBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@axtens.net header.s=google header.b=nySJqlSw; 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 b18si8633068pgn.107.2021.10.14.19.52.57; Thu, 14 Oct 2021 19:53:11 -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=@axtens.net header.s=google header.b=nySJqlSw; 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 S230094AbhJNV2d (ORCPT + 99 others); Thu, 14 Oct 2021 17:28:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232458AbhJNV2c (ORCPT ); Thu, 14 Oct 2021 17:28:32 -0400 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3746C061753 for ; Thu, 14 Oct 2021 14:26:26 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id gn3so201370pjb.0 for ; Thu, 14 Oct 2021 14:26:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axtens.net; s=google; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=CLaFJ0M9ufD0uCBwTkgOwQCLYTA2acJBA4tvaXF3j60=; b=nySJqlSwO+ULk3udlcOszY6Ia0XQFeH789zFbu7K9HOE2rbb+01FRBlzqYTOfLe01Y UjBibChKl+lLjdMq7H2G6UmdoL4DkJBBd2xPkhVd/NnmKnnR8gnnU7EkmSiSJ0GL6yHC xyAObJJcyavoFkvMN+kslHElYwm+54tEYY9dA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=CLaFJ0M9ufD0uCBwTkgOwQCLYTA2acJBA4tvaXF3j60=; b=H+ZTAi0w/VAnP66PlnaSgKcj2RD2jyMsUSA6vg2lir1OICebdPHuWgEGXFGF0P96as nLLvqP3VlBUX3C54yzAqwvabqv8/vfqndz8cJF4zFfbtp30mX1PEs++/VJI11St8kbJz IC0WuWe/kgX8gxXP6mEWhf0Ua8Udf305xksXvgF2TtJcrPIDHy78HE1ygGXTronEws1Y VJGtVUYnkXLIhcPq7ZUHziMlQlTc5VLOAN7oBCYm4DcWwKihFd9Vh7hPMgCNo1CavN4n OORtEUswJIpZlf6dK+tQiOTguGiWxv4SKQmmKmTUFNFQclIvo7+ex5k2zt1urDziv5QS Nblw== X-Gm-Message-State: AOAM533EJPEj5PdOz4FG6pskskITi8cdG9M6WwkssFePv0ywCUNmMP5l dcMkQEuUst1nRu3VdJBdZ2sgFQ== X-Received: by 2002:a17:90a:6a8f:: with SMTP id u15mr22641531pjj.212.1634246786410; Thu, 14 Oct 2021 14:26:26 -0700 (PDT) Received: from localhost ([2001:4479:e300:600:4901:2fb9:ed97:3a3e]) by smtp.gmail.com with ESMTPSA id i128sm3261169pfc.47.2021.10.14.14.26.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Oct 2021 14:26:25 -0700 (PDT) From: Daniel Axtens To: Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Andrew Morton , "James E.J. Bottomley" , Helge Deller , Arnd Bergmann , Kees Cook , Greg Kroah-Hartman Cc: linux-arch@vger.kernel.org, linux-ia64@vger.kernel.org, linux-parisc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linuxppc-dev@lists.ozlabs.org, linux-api@vger.kernel.org Subject: Re: [PATCH v2 01/13] powerpc: Move 'struct ppc64_opd_entry' back into asm/elf.h In-Reply-To: <42d2a571677e60082c0a5b3e52e855aa58c0b1fc.1634190022.git.christophe.leroy@csgroup.eu> References: <42d2a571677e60082c0a5b3e52e855aa58c0b1fc.1634190022.git.christophe.leroy@csgroup.eu> Date: Fri, 15 Oct 2021 08:26:22 +1100 Message-ID: <87czo747sx.fsf@dja-thinkpad.axtens.net> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Christophe, > 'struct ppc64_opd_entry' doesn't belong to uapi/asm/elf.h > > It was initially in module_64.c and commit 2d291e902791 ("Fix compile > failure with non modular builds") moved it into asm/elf.h > > But it was by mistake added outside of __KERNEL__ section, > therefore commit c3617f72036c ("UAPI: (Scripted) Disintegrate > arch/powerpc/include/asm") moved it to uapi/asm/elf.h As Michael said on v1, I'm a little nervous about moving it out of uAPI after so long, although I do take the points of Arnd and Kees that we're not breaking compiled binaries, nor should people be using this struct to begin with... I've cc:ed the linux-api@ list. Kind regards, Daniel > Move it back into asm/elf.h, this brings it back in line with > IA64 and PARISC architectures. > > Fixes: 2d291e902791 ("Fix compile failure with non modular builds") > Reviewed-by: Kees Cook > Signed-off-by: Christophe Leroy > --- > arch/powerpc/include/asm/elf.h | 6 ++++++ > arch/powerpc/include/uapi/asm/elf.h | 8 -------- > 2 files changed, 6 insertions(+), 8 deletions(-) > > diff --git a/arch/powerpc/include/asm/elf.h b/arch/powerpc/include/asm/elf.h > index b8425e3cfd81..a4406714c060 100644 > --- a/arch/powerpc/include/asm/elf.h > +++ b/arch/powerpc/include/asm/elf.h > @@ -176,4 +176,10 @@ do { \ > /* Relocate the kernel image to @final_address */ > void relocate(unsigned long final_address); > > +/* There's actually a third entry here, but it's unused */ > +struct ppc64_opd_entry { > + unsigned long funcaddr; > + unsigned long r2; > +}; > + > #endif /* _ASM_POWERPC_ELF_H */ > diff --git a/arch/powerpc/include/uapi/asm/elf.h b/arch/powerpc/include/uapi/asm/elf.h > index 860c59291bfc..308857123a08 100644 > --- a/arch/powerpc/include/uapi/asm/elf.h > +++ b/arch/powerpc/include/uapi/asm/elf.h > @@ -289,12 +289,4 @@ typedef elf_fpreg_t elf_vsrreghalf_t32[ELF_NVSRHALFREG]; > /* Keep this the last entry. */ > #define R_PPC64_NUM 253 > > -/* There's actually a third entry here, but it's unused */ > -struct ppc64_opd_entry > -{ > - unsigned long funcaddr; > - unsigned long r2; > -}; > - > - > #endif /* _UAPI_ASM_POWERPC_ELF_H */ > -- > 2.31.1