Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1276569lqj; Mon, 3 Jun 2024 16:32:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWSWPmkQkt8YedNxH3YKPu5mgFFsJFIaRB7OMuJPpIxVu9eskt2X2Sj5PIxKr1LVtSjUc8JNEC03CProYALzrLNGoqnv6nf3R0aqYjidw== X-Google-Smtp-Source: AGHT+IGzXdNbLq7AurdbcIy5dHICPFkLDS+Wa1ojjpqPqzSkRlbZNpX+nMEQO+FDQQs5YWHcS715 X-Received: by 2002:a05:6a20:3952:b0:1b2:a791:f510 with SMTP id adf61e73a8af0-1b2a791f596mr524587637.21.1717457539052; Mon, 03 Jun 2024 16:32:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717457539; cv=pass; d=google.com; s=arc-20160816; b=kGDBzlkvdO6JTcj++Gt4N7Tk6Uh0RM3ObXA325fFrGebHPCnk4EEZsoc56f/o4Bshs pX0dSHIbcsXiJLW+zgDJ/oQvnA+6s6hvJw8hxl4G0wZolo0RQr43Ce89eCo2xi1muqlk 6GXkgIOLJNGJTV8veh+k5v0W1tQPP8dfIil2GT6ri4oTg6Ogi68A9tq7NdajY2kcXKJ5 iuLgPiuZIr9zYIYLf57eMGG3rmgaR0Y2u3b+MMyhobuhc9ozZdCIfbcoFMXIVbmnpXmf 9QTIxctz0V2Hktju9L7UFliRIBHUbzNCOkcFbbB1IrrIAokLcYnNSNU9m2dKEJ50eIB3 qnYQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=MKlk6xlTRQ+rAqx4DT2w7xH5YqdAH7dXkIR5+QgsTHI=; fh=1JMbLJpjVs5QMJFyRH6giZwZBvALh/HZ4+QBseMvLec=; b=TgWzQzgXVkzYZoM/75dRLol3POMYeYDvn9MO3ht4A/TYD+Tahr30d6dSqxZoXWsHxm 3OxP2BjC2sD2B8A5kzTmk8TXJ5wQgvM8FHJ9QJWZHAp4V4IwsMMMJJVm+PZ+l1zTCApZ i76D4fwkEUTIbNA31O/V5vVZrZoZ8Y8ecIHM7m7CxV9XOj27irnsxdGtmyqjTVdfkLMc 4UXVIoRkNoRA/X13f4jCy0tufqYpmiX9my3Bg3i6fuM418Gb4B2N/kSZAw1l++fDzKCt nt7md12sDYTHuPsTKIF7CTLi0GH84+2Tu1John5y7mP7EUFTStMwtcZ6RjOxk0nkWWy1 GX4g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DtULPL35; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-199645-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199645-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c3540fb02bsi7394269a12.17.2024.06.03.16.32.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 16:32:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199645-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DtULPL35; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-199645-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199645-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 9AD98B27EE0 for ; Mon, 3 Jun 2024 19:28:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4758413B298; Mon, 3 Jun 2024 19:28:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="DtULPL35" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2002913A876; Mon, 3 Jun 2024 19:28:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717442884; cv=none; b=RynVYxbfEbulBE0hIZQI0BEVEHoOIjpx4jyG1iIF9Y7zxr73jIwZb2F7JQZWPRIaKcDe0TITkZGkErFOEHLgb5FVpCylqzIH+MdixVj+VcyIgdWzfQL3aYhgMnKAgt086Nrv45Wkx1HbP0rz8tI06FPQUwaWNts7xbmXZswG2ZI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717442884; c=relaxed/simple; bh=mrEwpiqCjvVJnCAY5cT1wSsEx33Z3Jwicz4IDjznKRA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZvsGJVOJypIGKoFsjozqtU8+QWTWVtL2RZJMnLfidCl4LYF9NXwK4IoqUL526MjD1ZoUKkQieP0cnKYsCqel5+TCj9PP83r5J7IAu3/+FNQPUR6TVcpGMTVG3DW3hYsY2daolucr1jmVeukdEx6cMcWNI3GQNcefc5PDnV6S2D8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=DtULPL35; arc=none smtp.client-ip=198.175.65.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1717442883; x=1748978883; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=mrEwpiqCjvVJnCAY5cT1wSsEx33Z3Jwicz4IDjznKRA=; b=DtULPL35lnE6XZMlMTtadzQDJZzVWIY1UOitHVR127devIx+ONpKaXgD QZRSEcUFCwqedza5/Nr3uIEwPyFEzprPVthYOGW6vI1MUdfQp19yfIY5z qcbhSdOuGL3WqrHXvw8ibWyYKSMWh7E+MJ+Xmd4JynMz4F4eIE3Kzmny9 DiN2yEyDDy9iPe7HXrz0Gs+avfPac/2BfuxF5lcORIIFZmazjjZ89m+y2 XN42dofPvPCsc8FGPMaWVd8Ml87nvFPddDnCG5Q8qqnTh45Q6dCxaNHk3 LYgz+WZD6sz96Qy9XzEwJT4slxOYPtos0ZWn4zttArmKFY5mlD0XfaglS A==; X-CSE-ConnectionGUID: IYtcsytRSC2XFRPjEGn65A== X-CSE-MsgGUID: wrNlg7UpRG2mOzk0IKZVdQ== X-IronPort-AV: E=McAfee;i="6600,9927,11092"; a="14078552" X-IronPort-AV: E=Sophos;i="6.08,212,1712646000"; d="scan'208";a="14078552" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jun 2024 12:28:01 -0700 X-CSE-ConnectionGUID: sl/BujAzTGeKoHWIeAFxPA== X-CSE-MsgGUID: fkKcjmoyT2GabTTHpQHK1Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,212,1712646000"; d="scan'208";a="36959388" Received: from tassilo.jf.intel.com (HELO tassilo) ([10.54.38.190]) by fmviesa008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jun 2024 12:28:00 -0700 Date: Mon, 3 Jun 2024 12:27:56 -0700 From: Andi Kleen To: Carlos Llamas Cc: linux-mm@kvack.org, Mike Kravetz , Hugh Dickins , Edward Liaw , kernel-team@android.com, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org Subject: Re: Header conflicts with shmget() and SHM_HUGE_2MB Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: > I can see such definitions are tagged as "obsolete" in the uapi headers. > Do we need some ifndef protection with the glibc headers? They should be still supported, but also the more generic macro. > > What is the advice to follow for userspace? Skip and > openly redefine the SHM_HUGE_* wherever needed? glibc (or other C libraries if not using linux/shm) should add the defines. Short term you would need to redefine on your own yes. -Andi