From patchwork Thu Feb 15 21:39:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Rostedt X-Patchwork-Id: 201760 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp137426dyb; Thu, 15 Feb 2024 13:39:05 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWC+2/djb07qbKUVkad0bdjYKt7mn46ie0khLnIX01cXWhHDP19eYDgDa0tKL97wrelga+U+o5n8kGgetNZAjQsZ8ZuIg== X-Google-Smtp-Source: AGHT+IFSiszWcfeQmGJDIXxiIhI+XRGb62PAheunN2z3J/9tZX7iCE3m6OYmXmdfQ68T3iHpK+ZO X-Received: by 2002:a05:6a00:3d49:b0:6e0:46fc:c2f7 with SMTP id lp9-20020a056a003d4900b006e046fcc2f7mr4061366pfb.8.1708033144772; Thu, 15 Feb 2024 13:39:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708033144; cv=pass; d=google.com; s=arc-20160816; b=sVmWkLgWuRGNu9Lgg5mxXUD2F6sZzOLdxHSV2pbIPpTDvbCoj/QCDEzYxtYsOYESMu rt0AmOoOD3H04skRZXZDoAP7ee9M+KV/vFJBnmdS5X+JCTq96cHBY8H9Kie6KvlEbBIP fJWiUlGXTUD9PNitnGyCrTRBrW3gNZYbieW7jfHamP8nLQ7crHs9LkHr95rzSZbZ2Ewu yoOuxqm0Uu6M+1nwmwxSWpzIYMqD3O8uj3rHMKRrxz1crPYpGw6jxBaA4ljMev4JXZ/X mdelnPsBDVDMYmMGZMskvuqreghQM6jDTLzgtPAnDtj+yCr4ahhPX/fddVpOxK9Pk3Ab vyGg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:subject:cc:to:from:date:user-agent:message-id; bh=kwxeiB7Ks1bEJe3pedZbxLGhgxGyOcG2gPyGv0vcS+Q=; fh=trTMqtNy9bd+1wWJFdljKVjUfuPZahnyCaVIkRh/wZc=; b=jTPG7EipAFDl3/cuY8J0oG1fhU2xd3GzoVdJYcuJ4NeoqBJpRnZWCUCOIWkHhK143b aLB2e4/BxrLXHwC7o6ZXS0W3TyJOpH9od5UaF5J3gAaJtluMuTQ3jiT0OVM55vvrlVDR P3eb7QY3/TpKRjNzldST4+P695000zmSsrbfKg0ABldLWt1F26o87k5oGkqTImKDpsr1 938garhM+uoGDUmrQWJ1/4XBLkRsPJA8bPia+qG5WspbbAlDnE6SziS3BXb5ROe4xriE p8c6KjOihF/RX1twiUDZD2kYk5fLPN41DvB5/qX1xNCpepZQU4bmWxeB+Qer/LMOR16y X/xw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-67706-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67706-ouuuleilei=gmail.com@vger.kernel.org" Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id k137-20020a636f8f000000b005dc927ee322si1656222pgc.683.2024.02.15.13.39.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 13:39:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67706-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-67706-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67706-ouuuleilei=gmail.com@vger.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 8CB6C286FC9 for ; Thu, 15 Feb 2024 21:39:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1DBAE145B1F; Thu, 15 Feb 2024 21:38:12 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 7E35513EFE5 for ; Thu, 15 Feb 2024 21:38:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708033090; cv=none; b=ce6B5Jp1QgJl0w8d23SZrqaJkm4TLdPlsJR+CYJ9uD4E+2NH77KP5mIbvK3ijZ1RX9VAXu85KUx5JmrVxUgxm7SYF9TDyQkkQR6EciqbTShNb7/vH4OF3aIBy2sRfnwtQ8HxJB8uzd1A7OpFIuNGKNVwb6znMNJAtRIWgn2gTMw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708033090; c=relaxed/simple; bh=j9clN+6FLqBEVM98VPdidI4cfFXyGBOIbUyOq31qKj8=; h=Message-ID:Date:From:To:Cc:Subject:References:MIME-Version: Content-Type; b=eo2OAdXpdxEMBNTO9lHvM1MA3PRMNbA6n+p/+cV86a9r3BeCOmdAdAMAtxpI/6OPuJAgVsobnYpw6cT8ka3lcM9KXmYruxGpMEMwv1FVREW/2+UW6kgaT0bULqvCtICv85vobxD3aAh5vg61ekdj7ndmEdPlGR51RQxHmRrygdA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3AC7EC433B2; Thu, 15 Feb 2024 21:38:10 +0000 (UTC) Received: from rostedt by gandalf with local (Exim 4.97) (envelope-from ) id 1rajSK-00000000eeW-45ky; Thu, 15 Feb 2024 16:39:44 -0500 Message-ID: <20240215213944.834660013@goodmis.org> User-Agent: quilt/0.67 Date: Thu, 15 Feb 2024 16:39:19 -0500 From: Steven Rostedt To: linux-kernel@vger.kernel.org Cc: Masami Hiramatsu , Mark Rutland , Mathieu Desnoyers , Andrew Morton , "Matthew Wilcox (Oracle)" , Andy Shevchenko Subject: [for-linus][PATCH 3/4] seq_buf: Dont use "proxy" headers References: <20240215213916.385127578@goodmis.org> 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: 1791002562488832433 X-GMAIL-MSGID: 1791002562488832433 From: Andy Shevchenko Update header inclusions to follow IWYU (Include What You Use) principle. Link: https://lkml.kernel.org/r/20240215142255.400264-1-andriy.shevchenko@linux.intel.com Cc: "Matthew Wilcox (Oracle)" Cc: Andrew Morton Signed-off-by: Andy Shevchenko Signed-off-by: Steven Rostedt (Google) --- 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?