Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2829073ybi; Mon, 17 Jun 2019 11:04:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqwSidMZ44mvblGtrmSIeKipTBmnNELeDKC/ZVVDuHQQQ0NnLADoULb5lp1oWrxDqpM6Q28P X-Received: by 2002:a17:902:8c83:: with SMTP id t3mr82344909plo.93.1560794663947; Mon, 17 Jun 2019 11:04:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560794663; cv=none; d=google.com; s=arc-20160816; b=UGr90EOFKNJqVx81OE8TOxbQ0SU3flNng+jk3Q7OT6PdPbDpeJ67r0pGcNp8gQcrSq /K/XqIJQqxkEvgAh+OHS8eeiO3nsjr8m0UiQF2lFT/g5ujg2FWwKzyF8JuW5q73eqYY6 Q3vmPRo9DZ6Hg+USpDuedBwlOiLMlk53Sh2KIVltyb00JkT7ZtqY1UT+aX1YhkRq35l5 JpPlA/r5qHPaTC5CmDCwIPljEVQzoOI65i1W0UtyMC3QxqtBpsAlko4X+sRPptfj2ooC FQMfT4fLaIvsS8jsAP/uLyLeYTKHVs1pp+oPXT9Y9xKmsHvKLYvfkNlZI2GLM2Q/Bg7p Bzhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from; bh=ZLfDgI+TrQhxVPtY8mkFqXug5Djzintl5M9PBLvsQZk=; b=gISz2ErHVCWU3euRPdHehmIrge/sBDn0OmR9xYuDoFp/5xGaP7+bUeoFZ2wuEYRdd0 GO5xlAKFpJbgvcbql86u+kYkIbML4hOGGrsfcdNvJ52hOivFVSoBbUnEBCM6r6NYjsas 0DLrTN/VDo12FRLS2yIIPZ48iY3CT3Dj066VCPwMX01V6Sp/xtDrJE7RCgYNW2DOw/MS cegDxuK7nUBMYTuFiD6WFI2TNEajHXxeSNg4vopnDoj/+Ec2wRGfppPd0UB+/CcQmFjV YpzHaF6pMKLl+LyMt8I0LvnnCsiQH0bGJaUUK6iP7UE9rsaIRll3bdv8v16YghN0B64K EHFg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j66si10519904plb.375.2019.06.17.11.04.08; Mon, 17 Jun 2019 11:04:23 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727948AbfFQSCx (ORCPT + 99 others); Mon, 17 Jun 2019 14:02:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50144 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726047AbfFQSCw (ORCPT ); Mon, 17 Jun 2019 14:02:52 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CC29781DFE; Mon, 17 Jun 2019 18:02:46 +0000 (UTC) Received: from oldenburg2.str.redhat.com (ovpn-116-59.ams2.redhat.com [10.36.116.59]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4D96978401; Mon, 17 Jun 2019 18:02:41 +0000 (UTC) From: Florian Weimer To: Linus Torvalds Cc: Joseph Myers , Arnd Bergmann , Linux API , linux-arch , Netdev , Laura Abbott , Paul Burton , Deepa Dinamani , Linux List Kernel Mailing Subject: Re: [PATCH] uapi: avoid namespace conflict in linux/posix_types.h References: <20190319165123.3967889-1-arnd@arndb.de> <87tvd2j9ye.fsf@oldenburg2.str.redhat.com> <871s05fd8o.fsf@oldenburg2.str.redhat.com> <87sgs8igfj.fsf@oldenburg2.str.redhat.com> Date: Mon, 17 Jun 2019 20:02:39 +0200 In-Reply-To: (Linus Torvalds's message of "Mon, 17 Jun 2019 10:49:44 -0700") Message-ID: <87k1dkdr9c.fsf@oldenburg2.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Mon, 17 Jun 2019 18:02:52 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Linus Torvalds: >> A different approach would rename to something more >> basic, exclude the two structs, and move all internal #includes which do >> need the structs to the new header. > > In fact, I wouldn't even rename at all, I'd just make > sure it's namespace-clean. > > I _think_ the only thing causing problems is '__kernel_fsid_t' due to > that "val[]" thing, so just remove ity entirely, and add it to > instead. There's also __kernel_fd_set in . I may have lumped this up with , but it has the same problem. If it's okay to move them both to more natural places (maybe and ), I think that should work well for glibc. However, application code may have to include additional header files. I think the GCC/LLVM sanitizers currently get __kernel_fd_set from (but I think we discussed it before, they really shouldn't use this type because it's misleading). Thanks, Florian