Received: by 2002:ac0:950e:0:0:0:0:0 with SMTP id f14csp7766imc; Fri, 15 Mar 2019 13:33:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqy2QUT2+RlZZ09PTbDS3E4a9tmGlypyKUcux7sIxp2Ql7LaRHE2Vnk34h9R2AFY+EXSXeWL X-Received: by 2002:a17:902:b609:: with SMTP id b9mr6283592pls.134.1552681989324; Fri, 15 Mar 2019 13:33:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552681989; cv=none; d=google.com; s=arc-20160816; b=dorq7bbTU6DfGMOEXOFDMCRL7JYMGHvsrQZaIArQcAetsDVG5ShYwCdzHEZodUAoZq Gkh8SgrjuFeLF/r7Rl1f4SC2cf/0NrNA5m4cFDH4tB/rrl68TUunMPQkjjxg7i0zPVz7 OpHwRlL0M8NjCX+ibMC25aZbJkAueU9NjaCF3Xr7AY20DI6OCArqk5h9Thyif05EV9jJ Pxr1p63Nv3lfqG7YR2++u6er3JEVb3zh0+hwa90pSXA/du+fjxHThyA4RWUzrg3BvCJL xOg3PoAEbfY0iUUbch1arKigFXDHaDa6htei6MsgxRZej5skGFRENlV2w4AModrHVoVE 365w== 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 :in-reply-to:references:mime-version; bh=E01ZHiStugNQMrF3OV/SFEpK2XRL7GY4vW5Ux0dTJZI=; b=ByWaa5ZloG20ueQe1zsTOjWlwWJUPG0tVO3hwRuL2W7Ji9iurSDmXaUhfiMkfvqgQV tCT/PMrK8lnSzmfJMKcvv6dqgZm5+re+bAai0xtepRhdBWj8y3LOXMEgO6LcL1lvlxgh zNZgP+o0qMhlwAeBMWhLUj2XWJgXh5kbxTNy3IQdHKBmFBcRB58VZxZHH3COMVYtsvb3 Rs8KijgVSxmMope8dk+NaGOvxri/4Po0brbVQF5nlMgyqioNu9yijryeR/clVheZjPnf gZPHelzMTmc/ozuY1Na16GsFeG4/IhQMStYCX/LV2FGiGgZMZWRVc/wHVKiolv5q6c7E r21Q== 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 c5si2490739pgq.539.2019.03.15.13.32.53; Fri, 15 Mar 2019 13:33:09 -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 S1726649AbfCOUap (ORCPT + 99 others); Fri, 15 Mar 2019 16:30:45 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:41392 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726097AbfCOUap (ORCPT ); Fri, 15 Mar 2019 16:30:45 -0400 Received: by mail-qt1-f193.google.com with SMTP id w30so6292138qta.8; Fri, 15 Mar 2019 13:30:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=E01ZHiStugNQMrF3OV/SFEpK2XRL7GY4vW5Ux0dTJZI=; b=Qj1vxWZaRXyzGkoT1yRnVTTVSflSyc3fYlocQrOSllDpzs+RAjMGziQYkg7wBwlDbC g5LB3954HGUMT0shq6wP3QvPUzt6YJS+G6z1vCoI5r9UVmnsJa8sdRB/3RaXYCs1kDcd H0i2SP58cS0dZ1aiUN2rJY6JNqoCLcqGiLhuiY3brg2vJBFDl9fNMP25Kgf7Q/BeqkxS QCCc7dJlZhi6UhK+y1kzg/68aqprFIDMX4KjcxdBP+12hOpNKXVxoqdIPhLiDEAsILzQ 4Ql4BtDjywO525BrjljUeuwFwBnyH9gV7G9YYl8arfIq/ErIPfQ/5qUH8Sqd6I1a511V 1kiw== X-Gm-Message-State: APjAAAU3A4feKKzynsw49LFzu+1+RwoAZgqJ3I/E1x1prS56E2YIyBUe bjHt9AAby3bhvtOKuljtxvvINDYih9I82Iqzooo= X-Received: by 2002:a0c:c781:: with SMTP id k1mr3935043qvj.180.1552681843409; Fri, 15 Mar 2019 13:30:43 -0700 (PDT) MIME-Version: 1.0 References: <20190311153857.563743-1-arnd@arndb.de> <87k1h1fgkk.fsf@mid.deneb.enyo.de> In-Reply-To: <87k1h1fgkk.fsf@mid.deneb.enyo.de> From: Arnd Bergmann Date: Fri, 15 Mar 2019 21:30:25 +0100 Message-ID: Subject: Re: [PATCH] y2038: fix socket.h header inclusion To: Florian Weimer Cc: "David S . Miller" , Deepa Dinamani , Willem de Bruijn , alpha , linux-arch , linux-mips@vger.kernel.org, Parisc List , sparclinux , Laura Abbott , Networking , Linux Kernel Mailing List , Linux API 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 14, 2019 at 7:41 PM Florian Weimer wrote: > > * Arnd Bergmann: > > > diff --git a/arch/alpha/include/uapi/asm/socket.h b/arch/alpha/include/uapi/asm/socket.h > > index 0d0fddb7e738..976e89b116e5 100644 > > --- a/arch/alpha/include/uapi/asm/socket.h > > +++ b/arch/alpha/include/uapi/asm/socket.h > > @@ -2,8 +2,8 @@ > > #ifndef _UAPI_ASM_SOCKET_H > > #define _UAPI_ASM_SOCKET_H > > > > +#include > > #include > > -#include > > This breaks POSIX conformance in glibc because the > header is not namespace clean. It contains the > identifiers fds_bits and val: > > unsigned long fds_bits[__FD_SETSIZE / (8 * sizeof(long))]; > > int val[2]; What is problematic about the struct members here? I had thought that only the struct names have to be in a namespace to be usable here, but not the members. The only part that might be problematic is #undef __FD_SETSIZE #define __FD_SETSIZE 1024 but we already get that from a number of other inclusions of linux/posix_types.h. Is this what you mean? > We could duplicate some of the SO_* constants for POSIX mode in glibc, > but it would be nice to avoid that. > > Is there a different way of fixing this on the kernel side that avoids > including ? We could use asm/posix_types.h instead of linux/posix_types.h, would that address your concern? Arnd