Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6283063rdb; Thu, 14 Dec 2023 13:39:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IGlY/zns/L67mFdjava4wrduAznLQetXTDElXpEFO0qW3/1L0FejNPJOTfxU7MSrA7On9iT X-Received: by 2002:a50:d557:0:b0:552:7db3:5d63 with SMTP id f23-20020a50d557000000b005527db35d63mr536351edj.59.1702589960441; Thu, 14 Dec 2023 13:39:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702589960; cv=none; d=google.com; s=arc-20160816; b=YiVxHVV0WVG7+jJyCLNzy9hs32kjzw/uYUaJrTCU3YgSqnOmb/MKPbqaNAFoSx7FGW geVq4pUc4PQ4t1xMoONSNHGX7mwIuMEVnQF3RHIbvPkA01FT9Yptup/spCkM05eisnBk by01PJMFTcWbXsEoUEB+gapIPeNI5FOHOghYomsNQBrUZ5yLBGqWR9I3EizFz+Q7RGHZ vtiNJ3d+n8IQ9uwRH3SC+aU992HPfVmNSpyJ/VOYK0EI2MLdZGZEBLuI5l7YOux+u1Qu grXj/sd7SQ++/1tJp4ZnZh6tdpNWhwBpvAffbkvnvoQsi5A7Zd5OBomfISZZyGAGUhHo UxQQ== ARC-Message-Signature: i=1; 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=e9p8Ajf3tFQXbwC42EgP/DdM/mZur4gEPrUVHC58JLk=; fh=yavXoG0D+mQR/JleM/CA3qOI7osHua/oKM2FNSt7LSQ=; b=mp6bA4PQG0/JPOgvxloaYJUY6b6cO27WS1aHL2yiGWXC2j0bhWnTFUiyWBfaTUYAsh BH1yY9+LQPSCIWjuMxll4rErVWLIF94VjpBbqPdc9/EjP4FuM/ZpMDTdUWDmR+D11Bte gQgcn2nnSdgqYxkePG1pZ7GmzGapp0c77jtJFHsRPMDOxTISpRjG1dvlkjNIynS6mnuY ogRsvhtJ0bjfUIA3TxFeH4CTC6n0PRCHcXg1WZklpV1mlKCHJzRmrEI7r3tgkB6/MT9B e5x6xd/j/ifFM94W0ZJwQ6vmaqM2t56nnRb5ShYmszEtb7AAIyLCAjefN2cKLNO9gC6i Xqvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=NkoL1B81; spf=pass (google.com: domain of linux-kernel+bounces-139-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id c44-20020a509faf000000b005525f39dd55si1239193edf.678.2023.12.14.13.39.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 13:39:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-139-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=@chromium.org header.s=google header.b=NkoL1B81; spf=pass (google.com: domain of linux-kernel+bounces-139-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 317431F22762 for ; Thu, 14 Dec 2023 21:39:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D87146D1B9; Thu, 14 Dec 2023 21:39:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="NkoL1B81" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 593F454279 for ; Thu, 14 Dec 2023 21:39:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-1d347b4d676so27660935ad.2 for ; Thu, 14 Dec 2023 13:39:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1702589951; x=1703194751; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=e9p8Ajf3tFQXbwC42EgP/DdM/mZur4gEPrUVHC58JLk=; b=NkoL1B812AhnfwtL7DSfU4lFuIy9AvKrpEdo6WxTSeg70wXMdYo8BejFrKl5mwkgXr CoiaMKY+91+hQBQyj19hRCpw2NaLwL/4xycLOBTwuGjCYMFU95FjKBj0PipVAPmdXH+T Uv/E9iRxMGgBGOLQFvu5z35z4cc2d6jk0FHOg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702589951; x=1703194751; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=e9p8Ajf3tFQXbwC42EgP/DdM/mZur4gEPrUVHC58JLk=; b=kK8qcDid/iDU7bX4jcBbmtjF3DVpcynjFPHWIEICBBV94eo7ix18qDTHEGrrEyfeX1 aVyotwu91mzfwfDcDyccDfcJ9mScwZgc92wmiXNjT7gtKZDOpYZKC7ruXZtwPifWqZJs XblNNMBVtg7neM0gu62HjUvl3g+kBfi4CY6jawMHH98w6roOrmZcy7U4kdwl90guqHwF cisBZ7yz9PIr78ovFm0GimR4hJdL0fA9U6Lhp7iPaAChyyzsNdFnn8byHw1ehL4sDR+G E3bwhkm5sNquJ4FbWSTTk5Z/0nie0LgVQyFxLHNiA0/OhwX363S4fGr0XF01IBHKIEK2 rXKQ== X-Gm-Message-State: AOJu0YyOpXHlZczrCbgsWULHCyXj688N4A9KJtDGlLUMnOu8ifhxHcpx kYJjNYAsTqjLUVasxkm2t6GEmg== X-Received: by 2002:a17:902:ecc4:b0:1d3:6b17:67c0 with SMTP id a4-20020a170902ecc400b001d36b1767c0mr1775536plh.75.1702589950824; Thu, 14 Dec 2023 13:39:10 -0800 (PST) Received: from www.outflux.net (198-0-35-241-static.hfc.comcastbusiness.net. [198.0.35.241]) by smtp.gmail.com with ESMTPSA id g16-20020a1709029f9000b001d3561680aasm3191596plq.82.2023.12.14.13.39.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 13:39:10 -0800 (PST) Date: Thu, 14 Dec 2023 13:39:09 -0800 From: Kees Cook To: tanzirh@google.com Cc: Andy Shevchenko , 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: <202312141338.CAA7708BC4@keescook> 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> 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 > nit: Please drop this blank line to keep your tags together. > Signed-off-by: Tanzir Hasan I'm glad to see such a big difference with just a little header tweaking. I look forward to more like this! Reviewed-by: Kees Cook -- Kees Cook