Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2830254yba; Mon, 8 Apr 2019 05:47:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqxv9FcSmYESfi0QsoWa3jn1q3c1L//zsJ9dn7TW8wMZzwjsQIezdfsFMSk2oGQGA/m5Nqx6 X-Received: by 2002:a62:424b:: with SMTP id p72mr11811682pfa.167.1554727666044; Mon, 08 Apr 2019 05:47:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554727666; cv=none; d=google.com; s=arc-20160816; b=cmDccFMnjlENLo2ogpoq7m1++YDuZXbpzsGLkHYixV970hA9NvNfYYSjDSyNBFnjVy awMdjlFm8zi+neTgGwPYukOa7ZCdRoqGDytuHc1svh/+9j/W36fQ3b4qcu5lUqaaQsWc sVs8tPd1sq5j+l6MMFUdU3+dWc34kUxeS/Np44aRbVQ3dVqVB8BBXRyPZSrAYOpUVDv8 XWoei2suXwD+60m6xZ7tPRc1uOJSy8DawscTP4sS+FobOXz2h1JnyplUx0ylggGH3kJT R0rN/7yApdGao703Z1eTLN6xABNSFvbXlLzvB/0JChrTd/oXZd+0F3gunzPGdkwpaJk5 P7+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date; bh=jaJj2DdgzcGwuwQsmECxXxAoPOnKNZrL26PiE8vPKbs=; b=Y1K2Vj9QiZTPfPxSBKlJOcnwMi2/gyr0K8FO147agyz8vy5mZt7yPuYcQhXHktPBwk m6v4ty6Im6UtJ5tYp7jbXcxyvABO2LfQaTayW9oFBmnCCelNFtO35NohBZuiPg66bLlD qPFflIE8wbBSj92CdJe0ytGN5nkEATWTdy9A2eWRXagO5yUFF7lWL6fsnIQN8j/VvO0L tkuRm1E4XRZ9JZLo7CeihApMgm4hJWB2uh+ye8S4TbICYD23Ldxugpc6PA5oLabr7/01 TmsDN+mY4zQkaNG7x3rbhNQG6G5Dsetqm6mfI/opIhj8WF3paO8907GaerUS3Ia9P+Os 9V/Q== 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 c144si28269412pfc.5.2019.04.08.05.47.30; Mon, 08 Apr 2019 05:47:46 -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 S1726716AbfDHMqx (ORCPT + 99 others); Mon, 8 Apr 2019 08:46:53 -0400 Received: from verein.lst.de ([213.95.11.211]:42668 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725933AbfDHMqw (ORCPT ); Mon, 8 Apr 2019 08:46:52 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id 39C5A68B02; Mon, 8 Apr 2019 14:46:40 +0200 (CEST) Date: Mon, 8 Apr 2019 14:46:40 +0200 From: Christoph Hellwig To: Jie Zhang Cc: Mike Frysinger , David Howells , Arnd Bergmann , linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Subject: CONFIG_* symbols in UAPI headers? Message-ID: <20190408124640.GA607@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I just stumbled over the MAP_UNINITIALIZED defintion, initially added by: commit ea637639591def87a54cea811cbac796980cb30d Author: Jie Zhang Date: Mon Dec 14 18:00:02 2009 -0800 nommu: fix malloc performance by adding uninitialized flag The defintion depends on CONFIG_MMAP_ALLOW_UNINITIALIZED, which will never be set by userspace. How is this supposed to work? Shoudn't we define the symbol unconditionally and just turn it into a no-op in the implementation? There are a few similar issues, like struct elf_prstatus having a different layout depending on CONFIG_BINFMT_ELF_FDPIC, or MAX_SHARED_LIBS defending on CONFIG_BINFMT_SHARED_FLAT.