Received: by 2002:ac8:5349:0:b0:427:7d78:cd45 with SMTP id d9csp274484qto; Tue, 19 Dec 2023 07:55:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IGgD1OZZ9B76yhomkMER9TAx40lzmMn0t3zJaTzY4jeeSfWWlW3CQvhmoy212dtjyIBqMnb X-Received: by 2002:a05:6a00:1745:b0:6cb:cdd0:76f7 with SMTP id j5-20020a056a00174500b006cbcdd076f7mr10901157pfc.21.1703001323697; Tue, 19 Dec 2023 07:55:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703001323; cv=none; d=google.com; s=arc-20160816; b=xlAnrW2TiByPSA7cW/dT7wiUqauEOGjOAxeGqeRenH3dF5fih67ezLCeZx7RvgjWd5 YJ1xf2YOIMrvpTMzQIFrbMK8UTJTjpap8cU9IlOMCB0nFEPVrwvzzO+qms2xhf5cQWn1 3W/RhpC1TvAWtVLF/Xy1gsajvPTCTUglJGlHd7I4L0KV7CbPa0JyDLT36lzgaYVtlkLS AIb+8YZ9ZK+bmp6CYZij9bEy+QFssApL1F5VjjuiBR5j7jQVntCZKsB8RkG+SbmHuUrE Yq1vmgQMJxYHpEmS9Ekhh95FNvacH0O/jivoNw7Dz2RXFeO2Wf3e43bj+AVJbRG49+Kg vekg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date; bh=LzOVl/BN5ah1x8Qan7T+I0ipdh/JYlFZooSSuARshbQ=; fh=y+IJc6TILPmMQLz4jUkW/oj3J5YptAEU/RIqYHd6Nh8=; b=ghfpfbdGbwM8Ovea/Vbl/OYDFIFuO/ctuiTEprlIIkrPUZPKEmLZCMgKPRAwO8/erP rrJKa2LaNxAAzCci+GJtQXFDIR+lxP/JqYfPMqzvB7WSwA2o+Xtj/hB2Z+9yGBrHH4OA a40pOL5maHYNR2XfUnsVy/0xbcEwMmOTgIDEG0JsDRhB8J3D3rXvDhcJnS/UuLuA8LbA Y/IcuHhPt4wbeJHE0w6mX2UtIt4Z1uJ2ddG7J7kr7mdb6F45H+CNUSmJY9Ta34DLS0A8 IebhdiUtHiFbLwJh7ncFLstCXzwA3oFCgCcfg9OdF+pPyridxluNxcafF8GCNOsHM76q p3Hg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-5522-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5522-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id cd25-20020a056a00421900b006d56f59b679si4927416pfb.244.2023.12.19.07.55.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 07:55:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5522-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-5522-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5522-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 2F3D2285327 for ; Tue, 19 Dec 2023 15:55:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C9AD41CFB9; Tue, 19 Dec 2023 15:55:17 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) (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 257C11CF9A; Tue, 19 Dec 2023 15:55:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=kernel.org X-IronPort-AV: E=McAfee;i="6600,9927,10929"; a="399510696" X-IronPort-AV: E=Sophos;i="6.04,288,1695711600"; d="scan'208";a="399510696" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Dec 2023 07:55:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10929"; a="776022066" X-IronPort-AV: E=Sophos;i="6.04,288,1695711600"; d="scan'208";a="776022066" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga002.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Dec 2023 07:55:13 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rFcR4-00000007InS-3Ndx; Tue, 19 Dec 2023 17:55:10 +0200 Date: Tue, 19 Dec 2023 17:55:10 +0200 From: Andy Shevchenko To: tanzirh@google.com Cc: Kees Cook , linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org, Nick DeSaulniers , Andrew Morton , llvm@lists.linux.dev Subject: Re: [PATCH v3 2/2] lib/string: shrink lib/string.i via IWYU Message-ID: References: <20231218-libstringheader-v3-0-500bd58f0f75@google.com> <20231218-libstringheader-v3-2-500bd58f0f75@google.com> 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: <20231218-libstringheader-v3-2-500bd58f0f75@google.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Mon, Dec 18, 2023 at 06:44:48PM +0000, tanzirh@google.com wrote: > This diff uses an open source tool include-what-you-use (IWYU) to modify > the include list changing indirect includes to direct includes. > IWYU is implemented using the IWYUScripts github repository which is a tool that is > currently undergoing development. These changes seek to improve build times. > > This change to lib/string.c resulted in a preprocessed size of > lib/string.i from 26371 lines to 5263 lines (-80%) for the x86 > defconfig. ... > #define __NO_FORTIFY > #include > -#include > -#include > -#include > -#include > +#include > #include > #include > -#include > - Why this blank is removed? > +#include > +#include > +#include > +#include > #include > -#include > +#include > #include > #include Sort this group alphabetically as well. > +#include Just use linux/limits.h. VDSO is a very special UAPI case. So it's even stricter rule than for asm/ for using anything from there. Expected result: #include #include #include #include #include #include #include #include #include #include #include #include #include -- With Best Regards, Andy Shevchenko