From patchwork Thu Feb 15 14:22:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 201669 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp784dyb; Thu, 15 Feb 2024 09:30:17 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX68C9ugAiYVP1Gl21m3nwcWbd+YSTgHb0qtvg7libCV/g5K3mSjA5oqPa1BpRMsJlMT7wPGHmdND8/3EX/7gmBgbwhAA== X-Google-Smtp-Source: AGHT+IFhIh09fQ9XlOzG/nGEU4GHO7SaZ1IXCGhX5+Ne/bxwOCub1k/77jaABcxSLdpV6gkW4cpt X-Received: by 2002:a17:902:c947:b0:1db:3076:21e3 with SMTP id i7-20020a170902c94700b001db307621e3mr2843338pla.56.1708018217685; Thu, 15 Feb 2024 09:30:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708018217; cv=pass; d=google.com; s=arc-20160816; b=pLltso1e+8/rn+qYYRtDNWacu3aN9shfU+jYVg4+huUF3Cbyn9Fq0lPBF90YHysV4/ UMIEroJOBnXGX3IdnEwe3wfoeWZnqBQrC1z0GMPOqyw7mckNo5rfK6/U58GAUY1GlX2n OE2e8GzFwDeQ//BKqiYYElCADx6MdhTEXYEzF2DfKfZA2xYtUoXg+tVKBKjgzTXLuCBg 0X7q84e4ibjRtt6Nv4G/3uad+sPpYQZNl0seWLvPaarIbD7PcEMFjUw/TZqwXGGHyw1U yNG6zbIOD+cqg/aKKrJ0EMdTa60cJDNIDQJsFnR9RLub6oeEMZ3boztFAkj4N/x8H7T8 noNw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=U37+Ql+z+Yjf4MtPQhMANI+GYZK53WfypypSowNlZFA=; fh=b4pSACTQCOYZEoxqP23I3aa35q2UMUpepC+K/NQe+d8=; b=hFRu6hH0IUcoMlwc+ZPFGpxM6yqWsuT0qDx83hBXJbqbbYLU5UxWblbMjgpMrov18O z2KEdrMUhkCA0ZeV3X6s5M54qBuTanjOFIFfdaPABqRk+52Bol3b9YB6gsXPotDRR9dB 9k5ZBX9WOIN0NUgLRJ/WzUxHCriIIIPeGzTF45fmBlLZHgq4dBYrkrpUn2Q8ir67v4hY TPR62Uv+QgXlm1hYOvxGzNPaB4C36WJG7UbZZiNtUXNdac2rkES2EtBrkW3A//u0EI14 iW/7jZ6QhixHgzX/LI9E3tHfgOfeRaMk+D73QgWuIH0JLOZQAVle5zP/Iy1ajY+8P5Iz +02w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=R9Uqj+pU; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-67078-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67078-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id u11-20020a170902e5cb00b001db5ee2a794si1392846plf.562.2024.02.15.09.30.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 09:30:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67078-ouuuleilei=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; dkim=pass header.i=@intel.com header.s=Intel header.b=R9Uqj+pU; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-67078-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67078-ouuuleilei=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id E4200289124 for ; Thu, 15 Feb 2024 14:23:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 012D0131E4F; Thu, 15 Feb 2024 14:23:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="R9Uqj+pU" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.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 93D9012FB33 for ; Thu, 15 Feb 2024 14:23:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708006985; cv=none; b=uGALnp+f1c4hBaQu0et8dWfu4ypKz5rCWYdn17aWryleorTs54el28hCA1+U27yAW0Nn+8R7pf1LcQqSXHHnQZ61Hg164QGK3y0NOPWIBsvpqIFSTo5hymgQp/CX1+NC6MsY5UJ18Xd0g0x1f3uPlIlo7WP/pWRn0vHfpYseJ4I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708006985; c=relaxed/simple; bh=2RVMz33IPphnSIv42/mrBHY11d1m9VH2c0zn+MbagJA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YVW59tfs5n3aOhZtOWt06l1nna/9nrxQVvCGhK7eQMSLLBIe0tpIX+3iHfljTeVDY3Q7ctKcp31+HTRXzpgA9an9EWhmig4O+G0j36WNhi/u/lB5fy0IStnNVvdmxup0wth76G/UR3stb4Jxh+zO2bVEO7J2hZD4nuRA6loY7mw= 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=R9Uqj+pU; arc=none smtp.client-ip=198.175.65.9 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=1708006983; x=1739542983; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=2RVMz33IPphnSIv42/mrBHY11d1m9VH2c0zn+MbagJA=; b=R9Uqj+pUOjoweyb+DbRcFlTWC97LGfSnOkqcx7BkPlYEsQKw2bYzdNFn uDxz8126h0f6DyAoPIU5WWU8U9mC2PiDhDpy4Bn8W8CqgJ3kxRQ5Fpw3A flTHUJ+o9dnojazE95UN6OLCWW4fJwQc9TTUaz70t624X4WeH9ggVXaKy ARzYRjFyvK+wQFuXJYDLPzO4aVvq+uzYbRDkH3PsTEoJXBgZNIpGayvto OyeLKdjYVM2djsGynyAqVJG+7KSIEXDakW83AnecXxqftHSfXPMsyo3bb 8p5AtaR87JhIZy6jjEcQUVMUEyKeC5BTcN4QbMPy2Ees3PcjbRXv7K6iz g==; X-IronPort-AV: E=McAfee;i="6600,9927,10984"; a="24560147" X-IronPort-AV: E=Sophos;i="6.06,161,1705392000"; d="scan'208";a="24560147" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Feb 2024 06:23:03 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10984"; a="935673858" X-IronPort-AV: E=Sophos;i="6.06,161,1705392000"; d="scan'208";a="935673858" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 15 Feb 2024 06:22:57 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id 4654D20B; Thu, 15 Feb 2024 16:22:56 +0200 (EET) From: Andy Shevchenko To: "Steven Rostedt (Google)" , "Matthew Wilcox (Oracle)" , linux-kernel@vger.kernel.org Cc: Andrew Morton , Andy Shevchenko Subject: [PATCH v1 1/1] seq_buf: Don't use "proxy" headers Date: Thu, 15 Feb 2024 16:22:55 +0200 Message-ID: <20240215142255.400264-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1.gbec44491f096 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790986910916632822 X-GMAIL-MSGID: 1790986910916632822 Update header inclusions to follow IWYU (Include What You Use) principle. Signed-off-by: Andy Shevchenko --- include/linux/seq_buf.h | 5 ++++- lib/seq_buf.c | 14 ++++++++++++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/include/linux/seq_buf.h b/include/linux/seq_buf.h index c44f4b47b945..07b26e751060 100644 --- a/include/linux/seq_buf.h +++ b/include/linux/seq_buf.h @@ -2,7 +2,10 @@ #ifndef _LINUX_SEQ_BUF_H #define _LINUX_SEQ_BUF_H -#include +#include +#include +#include +#include /* * Trace sequences are used to allow a function to call several other functions diff --git a/lib/seq_buf.c b/lib/seq_buf.c index 010c730ca7fc..dfbfdc497d85 100644 --- a/lib/seq_buf.c +++ b/lib/seq_buf.c @@ -13,9 +13,19 @@ * seq_buf_init() more than once to reset the seq_buf to start * from scratch. */ -#include -#include + +#include +#include +#include +#include +#include +#include #include +#include +#include +#include +#include +#include /** * seq_buf_can_fit - can the new data fit in the current buffer?