Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6793441rdb; Fri, 15 Dec 2023 08:27:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IF2kiP3H3igDKFk7irh6XUd/bwsjcM7PXeXQJCTWTT1eSDhQiQ1WfgYMi7dByyBYSQHxlp1 X-Received: by 2002:a17:902:ceca:b0:1d3:7a10:2226 with SMTP id d10-20020a170902ceca00b001d37a102226mr2137855plg.129.1702657620250; Fri, 15 Dec 2023 08:27:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702657620; cv=none; d=google.com; s=arc-20160816; b=e25UGCUolk20zNUsXNfH1LzxZXX6M/Al/6CYNna8KQkJ/y9+H+TfuRP//5tDO1iCZa H36XfObNgcsluboeRVsCxNxmRVmcY9nUg9hZjY8auRRqKbVSj+DKs3q6KrFfVGuVwVwn WY/2V7NtIxePrvlUYLuFu5GzdELFzeWwfc7InjjzfvA+KpPO8/a6y1lu6WRUFJt6CXD8 7o+pdr34cFm6Rf0mr3nXnCmBC00ZXIIsq6TEGzgusRZEUfxZ9WHqLHLmFW44ydwDezO6 8GKQeXpibAn0UN3dOfnNk1lsNEdo2DlaBmrTvgVJyQl7O+Vj2nKglqm1g3iA9UV7VKpq tN4w== 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=bWGfrO2bOifUURkzkOXxfLiNTlzj0i2n15Sgi3sdNbQ=; fh=y+IJc6TILPmMQLz4jUkW/oj3J5YptAEU/RIqYHd6Nh8=; b=TconrU7tRc5PAwcu0WK8fjEiPkUl/JNSRk+xZVcU/QeIQrIFFrFU53eJA4GBzIO/fm 7/0M/H88X5n+Ih4/d4S5W4KIIRrp9sydgI63rHQFKeUc801o4PHDo1PhhVhMzwoo9A2R lZS0QB6TDI9E51Ce8gcM6DeUgy3IYOths10PrezDPlR7Gq4KcQS/4SRiHKMHE5sDqwBM cExMJLd4TZw+Dh4zet8HvcjBE4c/aQ1TveQhP8BnIIlAVy/mzahrb3Y+2tuvS42aZmbO MyCb84aVdTGterHG+mlLZVvxTE8ek8AFSqZKfO8Fvi5jHHhWKh7eE5zU+/KPlzk3okiN LCIA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-1258-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1258-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 q6-20020a170902bd8600b001d34dd65eeasi4903389pls.528.2023.12.15.08.27.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 08:27:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1258-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-1258-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1258-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 1D224288215 for ; Fri, 15 Dec 2023 16:08:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BFAA33A8F4; Fri, 15 Dec 2023 16:08:30 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) (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 1C2183A8C3; Fri, 15 Dec 2023 16:08:29 +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,10924"; a="380291053" X-IronPort-AV: E=Sophos;i="6.04,279,1695711600"; d="scan'208";a="380291053" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Dec 2023 08:08:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10924"; a="898189055" X-IronPort-AV: E=Sophos;i="6.04,279,1695711600"; d="scan'208";a="898189055" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga004.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Dec 2023 08:08:26 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rEAjf-00000006AFZ-3TgL; Fri, 15 Dec 2023 18:08:23 +0200 Date: Fri, 15 Dec 2023 18:08:23 +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 v2 2/2] lib/string: shrink lib/string.i via IWYU Message-ID: References: <20231214-libstringheader-v2-0-0f195dcff204@google.com> <20231214-libstringheader-v2-2-0f195dcff204@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: <20231214-libstringheader-v2-2-0f195dcff204@google.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Thu, Dec 14, 2023 at 09:06:13PM +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 5259 lines (-80%) for the x86 > defconfig. > Link: https://github.com/ClangBuiltLinux/IWYUScripts > > Signed-off-by: Tanzir Hasan Tag block should not have blank line(s). > #include > -#include > -#include > -#include > -#include > +#include > #include > #include > -#include > - > +#include > +#include > +#include > +#include > +#include > +#include > #include > -#include > #include > #include My gosh, this becomes unreadable! Please make sure you go with groups of headers from more generic to more particular, i.e. linux/* asm/* vdso/* BUT, why the heck vdso? It should be rather uapi/ or regular linux/. -- With Best Regards, Andy Shevchenko