Received: by 2002:ab2:604e:0:b0:1f5:ff5f:8f32 with SMTP id a14csp3107260lqm; Tue, 23 Apr 2024 12:29:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXn7o8nUWXRWVnnwTkeE5LC5kFEWjTQmaG5YM6yJQZSgbBXn2qNdRmAyJTNL56VN80BdYQ5Ak1ch9IJGKbSg0pu32eAiDJoH5OaJsHGSw== X-Google-Smtp-Source: AGHT+IE2/q2q+0rNjAZ2zulCxLjIGDFe4aZd5ZPiclBGHPZJPavq3OIIPghULj8lWE0k3Hzbj/wt X-Received: by 2002:adf:f38c:0:b0:346:dace:5310 with SMTP id m12-20020adff38c000000b00346dace5310mr115025wro.22.1713900588739; Tue, 23 Apr 2024 12:29:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713900588; cv=pass; d=google.com; s=arc-20160816; b=pmWtWFrN8GkrlopaJGDBhvxzfbLE/HIjrjQFRjmCU3w7HH+/UyuMDQ8WUiIY8MOWto 3OqX+QFO02qPZdTS6bQTTWmjWiqWUbyIwNv6hDfs1ATGAMVeSWZ5VEm5dPpEgdKRzkU7 C4lO7lD7UbD8iMoamHH/3nlyHX1SG41TchWRPqu9WP57mIvGKAbbEGexQ4LSYWpy4nzh yOWhILi8HJkFf7JzwN2T6r+umCsTLi63azN172RbhvgoT8Xf29NhmBaeVzGvbZYFuHx1 sNYOgCwh43WJ6T44QKmsCCns/uVPdxtX2fFcBaNMutOaUldlBPSywgjYniE1Eyg1alqb ZkWQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-transfer-encoding :content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:references:message-id:subject:cc:to:from:date :dkim-signature; bh=OnULKVhH/lgnzBzqoVxsbvLWZ2R5wG/5pOvZvmhRH/c=; fh=evrtjuYFtUzdzIYBKc5LJXx7Ai0ukemw1dC/mjTE28k=; b=dSdci5qnXTB7Byudfu0LPmuQsqzaq8JWaOkxhp2KQFe2qOItxYW1myYkwQaHwTK40L TrLPTf9h5iNUuCjE4WpnoftfPQCG8d2TR+q25z3qe3aIEHK4m0kPbdCv9VGW5P9At/Md TupVsbILRZU5ZigHgMVPNl2pMWhS84YQqSV+m0Tilfaq6vCO61sMqTXIUmxXdIx3SoCc Nbvzq87fuAJrTpHSUC2xzfGqS+lmaTCpcBv9DgBOJ6y6/iJuqRK3YPGdQkD8APNwEKN7 sPHmqarDByjcLfVGT+vx+drF7Rs7Ah78h1g7eXOgvexiqL3YFt5U7JmWSPjMECfgWlOy FLeA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=cudp1Usa; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-155803-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155803-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id x18-20020a170906b09200b00a43db2d8b90si7496030ejy.325.2024.04.23.12.29.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 12:29:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-155803-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=cudp1Usa; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-155803-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155803-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 4E4EB1F22B46 for ; Tue, 23 Apr 2024 19:29:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4D8B81419AA; Tue, 23 Apr 2024 19:29:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="cudp1Usa" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) (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 B316F140378 for ; Tue, 23 Apr 2024 19:29:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.9 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713900578; cv=none; b=AVuAWELCtYCaRjm1tXFb/thenh5f/VzVxNzIpjEYTeeBZygCt/PIVMNxEr0nxpcluWdmvcfGabjs6AcJtAsU503UpLBNqFnOh7qxf6vnc8SnVfXVTPDeqEwnhhMIOLS8t6x/9VWJ9iyulIv3wT/HgUCQ1E0sQzQFXsAjznvK4MA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713900578; c=relaxed/simple; bh=N7xqgdyUBrU4OycirH8PRTFXCp+RXcCHK7+gXzGrhe4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=IByqz9OS1W5mxPL4YJq8k/7x98ZumSHPPRlOu1Lb4ABqnvXr+HN31HHXhOYA4qzJp3BNuTDFTLz4a61T3N9Sak0NzlsDIFLqoVkeJrWDuk/Zonf3oSfdsey5D+JV/rrpUGRhv8Y1Elo6I2MnUqQTOpPNxV6YVbbzF4qPPvaZS7Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=cudp1Usa; arc=none smtp.client-ip=192.198.163.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1713900577; x=1745436577; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=N7xqgdyUBrU4OycirH8PRTFXCp+RXcCHK7+gXzGrhe4=; b=cudp1UsaGccMzWzi8vWxCuwENDCRzOGVkIbWPnnawhPe+pXuOWeAmQjN Yeht+eRul2QYBGSuVN6gATp13fttGnX8nBP+wS+fmT5S2txzGFt1M444J XR4DURxQ7pKrM328h7L2JJwy/ryId0qO0NpQVcCwXGg+P29hyUL8/Ytmj nvSE/Z+QFM1nVfrdZOBdeDvexgwxuacKqFnYHncrzI0BZQ1QHF1hiUN3p p04103SjzXpGkN27WlSSA6cOKfru56fNNeRSCi4pkl1hljDihSmJ3bozI l37541KGax7d/XHaRvht0SsWsuIzn6zm9NvwREYivLZjwiCa02yJkgeg1 Q==; X-CSE-ConnectionGUID: HmcxbZs1SkWBmQ6ceawtNg== X-CSE-MsgGUID: s93b5d0sRp2s/Gxb97rFDQ== X-IronPort-AV: E=McAfee;i="6600,9927,11053"; a="20200632" X-IronPort-AV: E=Sophos;i="6.07,222,1708416000"; d="scan'208";a="20200632" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Apr 2024 12:29:36 -0700 X-CSE-ConnectionGUID: KFNWnypfQp6128Pbl5Mpsg== X-CSE-MsgGUID: uHB1geUFT4eaWHuLlOyZ+Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,222,1708416000"; d="scan'208";a="24509950" Received: from smile.fi.intel.com ([10.237.72.54]) by fmviesa007.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Apr 2024 12:29:34 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rzLpb-00000000RvJ-2ReU; Tue, 23 Apr 2024 22:29:31 +0300 Date: Tue, 23 Apr 2024 22:29:31 +0300 From: Andy Shevchenko To: Arnaldo Carvalho de Melo Cc: linux-kernel@vger.kernel.org, Willy Tarreau , Thomas =?iso-8859-1?Q?Wei=DFschuh?= , Andrew Morton , willy@infradead.org, Namhyung Kim Subject: Re: limits.h in tools/ 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Tue, Apr 23, 2024 at 04:22:01PM -0300, Arnaldo Carvalho de Melo wrote: > On Tue, Apr 23, 2024 at 09:58:07PM +0300, Andy Shevchenko wrote: > > It seems tons of the code in tools include linux/limits.h. But I haven't found > > where do we copy it. Any pointers? > > > > Based on the discussion 20220603183231.15159C385A9@smtp.kernel.org. > > ⬢[acme@toolbox perf-tools-next]$ diff -u /usr/include/linux/limits.h include/uapi/linux/limits.h > --- /usr/include/linux/limits.h 2024-01-31 21:00:00.000000000 -0300 > +++ include/uapi/linux/limits.h 2024-02-03 16:18:02.652000641 -0300 > @@ -1,6 +1,6 @@ > /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ > -#ifndef _LINUX_LIMITS_H > -#define _LINUX_LIMITS_H > +#ifndef _UAPI_LINUX_LIMITS_H > +#define _UAPI_LINUX_LIMITS_H > > #define NR_OPEN 1024 > > ⬢[acme@toolbox perf-tools-next]$ > > And in the places where I test build perf I saw no problem so far, the > build failures below are unrelated, but still outstanding, see below. > > But then is for building tools/, not the kernel, right? The discussion > you said this question was based on is about changing > include/linux/xarray.h, a kernel file, so should really be including > just kernel headers, files in the kernel source tree, outside tools/, I > don't see where what tools/ uses to build is relevant here? Can you > please elaborate? I believe the tool in question is tools/testing/radix-tree/xarray.c. -- With Best Regards, Andy Shevchenko