Received: by 10.192.165.148 with SMTP id m20csp342073imm; Fri, 20 Apr 2018 07:39:52 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/qzlU2g8Q2m3v09CzkHHBfCAhMLPlEXgid8EFh3zkUM9+3G6XCN3AKkDYz4OanjLoxgZ6R X-Received: by 10.101.101.132 with SMTP id u4mr8984126pgv.260.1524235192805; Fri, 20 Apr 2018 07:39:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524235192; cv=none; d=google.com; s=arc-20160816; b=xr1vbxuX0K9vTfCF9LGh1NlZtqlKTlt8wAVTnmorp1sI521wx6pF/tI/AzeaVuoYmQ EbzbA/elAHE9zIxRgygMoWUdF1+6W1o+snkQI3cwlUSTj7RjUIw9cJfUMc47Kh7ZHPcH Nwm/IxkV/5m3E8mo2U0NJiDk9QPz0f5ysBco6x8hmf6O99WkQEksInt1ZxxqeWvTlD0n A0JFJSyzCK85DidHMh019+Wnofki2BAExeRUdUNS+8jsilgLLio1kvx7z9+16oqOGoDz mFIBZoXFIqvtfFzUpjpFufCNQdR2HEvO1tUSfZBNzc+TV9ogdXQen9sRBG4VJ2Z0x/xY jB4g== 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=98OyFl144wVGX53G/lcneDRh2auqmhwtC1rmf0wkfGU=; b=GAGZlTku+UjWUOZMskAUVeC+NXNvW8/8cfV0EwaUQ8uwJ5SsAxnjOpcOUfFDRjhv3v 6BIp3DuO7FG0jFKwqPS6zPFnI3/Oiop5KC1fywAFTF6Atsz1J2dGNWLuP0Jw5tEYxMcw Tvp4vqmh6+nE3dNJFd5Vfa2OhZI/Rzm6hvhsId1kEHl66FQAtsjk/8Xrg+4L9AKodKBW TYk7JvJR3mh9dTYSHOe6vtYIz4a3dgrewuk/yYvPhtP7SGXsgS4rJJwvyY6NdVYnZ94g XucrtcqmaSyPhOFEb+g64cWitIYBwQ6bSfgtXZDe2l8ZAu1M7PP7AVAxEpHb9JJ4/roV GT6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=jsDjPzCN; 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 z24si4953449pgn.55.2018.04.20.07.39.38; Fri, 20 Apr 2018 07:39:52 -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=jsDjPzCN; 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 S1755323AbeDTOie (ORCPT + 99 others); Fri, 20 Apr 2018 10:38:34 -0400 Received: from mail-qt0-f193.google.com ([209.85.216.193]:34651 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755071AbeDTOib (ORCPT ); Fri, 20 Apr 2018 10:38:31 -0400 Received: by mail-qt0-f193.google.com with SMTP id a25-v6so9778715qtm.1; Fri, 20 Apr 2018 07:38:30 -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=98OyFl144wVGX53G/lcneDRh2auqmhwtC1rmf0wkfGU=; b=jsDjPzCNvCPr9B92sx7kqPHuh4WLas5moPFKKazo8Cbqr927nRegV/cdnGIgRhO79Z 2mmwrVXiF1y4XScWOF6ANe8u5JUMtxy+8lmn1o0cTAdN8hvRClyeYDfGGS3B9eJImc3S Ece9CJaS3SgSfY0W0vxm50Z41VlMCiF8UkRWRwHGuzGeqTWmoA5OTOQZFsIhpxr30f4q XRsrKpEJgeuGcZ7zCXFsnDbcW1dtqkzZKCx3yqzaT86zO5LgU++og16DTiGYZdk/TTaV WgEaYR+QhOivJqhUx1OG8y+9rfHvxjS/C92P+dh+i3m98Ha6K2l+X7WgQca/BfoLkuSI Hhvw== 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=98OyFl144wVGX53G/lcneDRh2auqmhwtC1rmf0wkfGU=; b=R78cBVG/vcaHah+bWJ0r6axKggYC9rgEde5t9gHw5TGJv9y8uzkSi+VXLDRQHDoOmu QRIRR4Fg3FDeg+YEB/p1lHGJwUtzKejlri9BihR+cgvGE1DH4ksasDt3RkFvOHTRHYMr XE0KUJvSIg5FGN3rWDGTguv11xjSkWsx8DYmjkw1LgeQ1aLXWHwo1H/QCjweGey4MZ3Y E2h4KtI/MThcmVR7Y7HfK8rk+kmE0gOjzhcWT4x87CP/hcCsQF5D1BKWaccMds3VRoyU oiUIvodF/9CKuCPk2ZtAGvcztLbs8cx9v9J04msALn3zNrF5mWoRAzgXCzhwKSOABK8z wCAw== X-Gm-Message-State: ALQs6tDH+77nKTmp3OEggCqWS5/1Sg06ip4xzcCt5UrEWz6mN2w2UwSs qafLp6qhdUMUruO/Qw/JlUBdcx44aAHNWFrIptsnd8Zj X-Received: by 10.55.33.169 with SMTP id f41mr10833525qki.174.1524235110074; Fri, 20 Apr 2018 07:38:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.185.25 with HTTP; Fri, 20 Apr 2018 07:38:29 -0700 (PDT) In-Reply-To: References: <20180420130346.3178914-1-arnd@arndb.de> From: Arnd Bergmann Date: Fri, 20 Apr 2018 16:38:29 +0200 X-Google-Sender-Auth: J-Jrsq7jwkqvvWVW0-6W9coGyEE Message-ID: Subject: Re: [PATCH] x86: ipc: fix x32 version of shmid64_ds and msqid64_ds To: Jeffrey Walton Cc: "the arch/x86 maintainers" , Thomas Gleixner , Ingo Molnar , "Eric W . Biederman" , y2038 Mailman List , LKML , Linux API , linux-arch , GNU C Library , Deepa Dinamani , Al Viro , Albert ARIBAUD , linux-s390 , Martin Schwidefsky , Catalin Marinas , Will Deacon , "open list:RALINK MIPS ARCHITECTURE" , James Hogan , Ralf Baechle , linuxppc-dev , sparclinux , Ben Hutchings , Daniel Schepler , "H . J . Lu" , Adam Borowski , tg@mirbsd.de, John Paul Adrian Glaubitz , "# 3.4.x" , "H. Peter Anvin" 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 Fri, Apr 20, 2018 at 3:53 PM, Jeffrey Walton wrote: >> +#if !defined(__x86_64__) || !defined(__ilp32__) >> #include >> +#else > > I understand there's some progress having Clang compile the kernel. > Clang treats __ILP32__ and friends differently than GCC. I believe > ILP32 shows up just about everywhere there are 32-bit ints, longs and > pointers. You might find it on Aarch64 or you might find it on MIPS64 > when using Clang. > > I think that means this may be a little suspicious: > > > +#if !defined(__x86_64__) || !defined(__ilp32__) > > I kind of felt LLVM was wandering away from the x32 ABI, but the LLVM > devs insisted they were within their purview. Also see > https://lists.llvm.org/pipermail/cfe-dev/2015-December/046300.html. > > Sorry about the top-post. I just wanted to pick out that one piece. It seems I made a typo and it needs to be __ILP32__ rather than __ilp32__ (corrected that locally, will resend once we have resolved this). Aside from that, the #if check seems to be correct to me: this is an x86-specific header, so it won't ever be seen on other architectures. On x86-32, __x86_64__ isn't set, so we don't care about whether __ilp32__ is set or not, and on x86-64 (lp64), __ilp32__ is never set, so we still get the asm-generic header. Arnd