From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B322DECAAD4 for ; Tue, 30 Aug 2022 12:13:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1661861606; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=j8vZbijV+I2p8HHOeJu8uOoZFJiSztEUx/SbtNCqex0=; b=IQjplgdtw/nRacGwmiVFXfqAej5VIuM1tvLz+TZnU1buic22B3zJ3Ti3FRHO+/TxeF0eSK ayyM8IFefqLYVI3oqYA4uLRLXe6UrThdiPQ5KeXRkCNdXNno5hDH/Zf1KBZ3Y/QmzvBqLk w0tZ/JQQ4ceLktKajstvCgTO5Fxgzik= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-259-mZqLeIdhNBSaqkgZbIZZrA-1; Tue, 30 Aug 2022 08:13:23 -0400 X-MC-Unique: mZqLeIdhNBSaqkgZbIZZrA-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id B1F76801231; Tue, 30 Aug 2022 12:13:21 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5E5E52166B26; Tue, 30 Aug 2022 12:13:20 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 32B581946A42; Tue, 30 Aug 2022 12:13:20 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 1A3B21946A40 for ; Tue, 30 Aug 2022 10:50:12 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id F199A492CA4; Tue, 30 Aug 2022 10:50:11 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast03.extmail.prod.ext.rdu2.redhat.com [10.11.55.19]) by smtp.corp.redhat.com (Postfix) with ESMTPS id EBD6B492C3B for ; Tue, 30 Aug 2022 10:50:11 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id AE2AC811E76 for ; Tue, 30 Aug 2022 10:50:11 +0000 (UTC) Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-578-b47wANq0M8Wdgfn2_BMpmA-1; Tue, 30 Aug 2022 06:50:07 -0400 X-MC-Unique: b47wANq0M8Wdgfn2_BMpmA-1 Received: by mail-pj1-f48.google.com with SMTP id n65-20020a17090a5ac700b001fbb4fad865so11436004pji.1; Tue, 30 Aug 2022 03:50:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=QYiWsTuY+GQ7jsOXTe4KqbYApR4ujmKIb8Zqeks9eAg=; b=Yeb0bZfceHwXkUbI8LBgWn/x6952/Q7uiB0RYigSUVr3hbhTOslsDvUt/NdRFxoBrn d4oCzr0Ewfu9nqdawtMQ0u0HCQEGkq50fxAeMbk/YhsJyEAdaYXQTgSkoQX5s2oAqsBo lxO1t4AX+sqkjr5dXGhXJ3ll3ODtv+fVONR00q4n2YQSRILV1rQ34b9+IFHdJ2ZC62Vg n1zvO89vp7IOxOVicNnW0vx4JYHkRYT3X8yI88wJQ71gcgU1ZJDPQbqVeU+p8pA0cmQg IYXPvAIlc6bReScYsmKHuojCKaxrGaS5yk4MSRMeZJbN6AV7n7WpWJXScOtYqwg/6vQV fVGw== X-Gm-Message-State: ACgBeo0rWJr+pDkCF2ZQTWIhHoh9Zy+AEmRMGMm99oKJ45hdUJJUIdqo 27/cD/9mwzDNCjmYTiChwKKCnTRaUow= X-Google-Smtp-Source: AA6agR5muqNWBxbq/lZBhmFGIMqfHPVcxaI0ppCZwYYhvPHH/K46s5jpuv3LkFVS21ne9ZXfjk8D/Q== X-Received: by 2002:a17:902:d50c:b0:175:2cb2:e0e7 with SMTP id b12-20020a170902d50c00b001752cb2e0e7mr1185687plg.157.1661856606421; Tue, 30 Aug 2022 03:50:06 -0700 (PDT) Received: from C02FG34WMD6R.bytedance.net ([139.177.225.253]) by smtp.gmail.com with ESMTPSA id z5-20020a623305000000b005251f4596f0sm8980052pfz.107.2022.08.30.03.50.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Aug 2022 03:50:06 -0700 (PDT) From: wuchi To: paul@paul-moore.com, eparis@redhat.com Subject: [PATCH] audit: remove obvious unnecessary header files Date: Tue, 30 Aug 2022 18:50:01 +0800 Message-Id: <20220830105001.68478-1-wuchi.zero@gmail.com> MIME-Version: 1.0 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 X-Mailman-Approved-At: Tue, 30 Aug 2022 12:13:19 +0000 X-BeenThere: linux-audit@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Audit Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-audit@redhat.com, linux-kernel@vger.kernel.org Errors-To: linux-audit-bounces@redhat.com Sender: "Linux-audit" X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit With updating the code, some header files are unnecessary. Remove obvious header files. Signed-off-by: wuchi --- kernel/audit.c | 3 --- kernel/audit_fsnotify.c | 5 ----- kernel/audit_watch.c | 4 ---- kernel/auditfilter.c | 2 -- kernel/auditsc.c | 11 +---------- 5 files changed, 1 insertion(+), 24 deletions(-) diff --git a/kernel/audit.c b/kernel/audit.c index a75978ae38ad..f2caa710524f 100644 --- a/kernel/audit.c +++ b/kernel/audit.c @@ -35,13 +35,10 @@ #include #include #include -#include -#include #include #include #include #include -#include #include #include #include diff --git a/kernel/audit_fsnotify.c b/kernel/audit_fsnotify.c index c565fbf66ac8..1b7b1cb7033d 100644 --- a/kernel/audit_fsnotify.c +++ b/kernel/audit_fsnotify.c @@ -8,15 +8,10 @@ #include #include -#include -#include #include #include #include -#include -#include #include -#include #include "audit.h" /* diff --git a/kernel/audit_watch.c b/kernel/audit_watch.c index 65075f1e4ac8..68d1fa42426d 100644 --- a/kernel/audit_watch.c +++ b/kernel/audit_watch.c @@ -9,16 +9,12 @@ #include #include #include -#include #include #include #include #include -#include #include -#include #include -#include #include "audit.h" /* diff --git a/kernel/auditfilter.c b/kernel/auditfilter.c index 42d99896e7a6..7287c14dfb97 100644 --- a/kernel/auditfilter.c +++ b/kernel/auditfilter.c @@ -12,8 +12,6 @@ #include #include #include -#include -#include #include #include #include diff --git a/kernel/auditsc.c b/kernel/auditsc.c index 9f8c05228d6d..57734fea51fb 100644 --- a/kernel/auditsc.c +++ b/kernel/auditsc.c @@ -33,27 +33,19 @@ #include #include -#include #include #include #include #include #include -#include #include -#include #include #include #include -#include -#include #include #include #include #include -#include -#include -#include #include #include #include @@ -61,8 +53,7 @@ #include #include #include -#include -#include +#include #include // struct open_how #include "audit.h" -- 2.20.1 -- Linux-audit mailing list Linux-audit@redhat.com https://listman.redhat.com/mailman/listinfo/linux-audit