Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp949450ybm; Wed, 27 May 2020 11:58:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzL/oT07gDlAUyyAZKFbJI6oFM06zNujjgVI8yhHarxeLnR76KhsEc8fbD7pncTYyqExrd+ X-Received: by 2002:a17:906:9518:: with SMTP id u24mr7549876ejx.137.1590605897141; Wed, 27 May 2020 11:58:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590605897; cv=none; d=google.com; s=arc-20160816; b=Vi7Vs6W/hmuv0mzcXhisuMdBqFZ3b/BpE29w8q1RZCO1N22mpmb4D8qaiZt2fAe/Os aqt3PZZFl+XfpMz+M5VkZ+PNfGpD1pup0hGyUDRssBudZ1PA4F81l+Qwl4Adc0ZkvJQP vuS4cqGG8Hvz8j0sRbSiCODG/hS2BBKRkFOTLW9VJmVD5A4Q1kYIalp/qR9j3OqO6PTi 4I/i7ytcA4mLqyp/AzbamZTWhzbLpr6OfrwYZ4j9nXXm3EK1nprPILvh1RmwApOsQv48 x5kJVSkAOBFoGijc07nkAJI2Qmf2jXx3T0i+mD7bbXmj+vFvveOygfAXFkU1aoNL0lJs frWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=asaVQzGTrGAZ6eY+Wf2XJOVjl7KarH2Rv/vmAGs4PuE=; b=Vs87dMPeXNWbG2vsyawqx2dfXNiu3yhDrDOE4p037SvcJzS4/XKIBYE2mPFF02m+cd AIC4Ba0c/httYJFfodP25ULbAAiIk6CJkST578eqXAAR12qotyaNfaRpHnqe9puSV0H8 ID2Rei+x0YzhIMGn0ZmfDgLbYFqVAKafXBguu84mi2Cn6yrwploOF/DtHYZB6GdZ6+ax Kg/XdnPM85VN3z5XQTeaObeIEAnf/HBM9FsnY41KhSbyF5tQpZj1a/JOXqlhYUHHRm+x XWa3KDFpI+BwlUHNEVdgSvEo3BeJ1u8JlUBD5/UNJiRC2Qah6OK4UsyE9Q8pKmvtZ4se kY/A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bu28si2050502edb.189.2020.05.27.11.57.52; Wed, 27 May 2020 11:58:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730519AbgE0PsJ (ORCPT + 99 others); Wed, 27 May 2020 11:48:09 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:44208 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726214AbgE0PsF (ORCPT ); Wed, 27 May 2020 11:48:05 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: tonyk) with ESMTPSA id C730F2A3AB4 From: =?UTF-8?q?Andr=C3=A9=20Almeida?= To: linux-kernel@vger.kernel.org, tglx@linutronix.de, peterz@infradead.org Cc: mingo@redhat.com, dvhart@infradead.org, kernel@collabora.com, krisman@collabora.com, =?UTF-8?q?Andr=C3=A9=20Almeida?= Subject: [PATCH 3/4] futex: Remove unused or redundant includes Date: Wed, 27 May 2020 12:47:46 -0300 Message-Id: <20200527154747.36931-4-andrealmeid@collabora.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200527154747.36931-1-andrealmeid@collabora.com> References: <20200527154747.36931-1-andrealmeid@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since 82af7aca ("Removal of FUTEX_FD"), some includes related to file operations aren't needed anymore. More investigation around the includes showed that a lot of includes aren't required for compilation, possible due to redundant includes. Simplify the code by removing unused includes. Signed-off-by: André Almeida --- To test this code, I compiled with different configurations (x86_64, i386, with x32 ABI supported enabled/disabled), and ran futex selftests. --- kernel/futex.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/kernel/futex.c b/kernel/futex.c index ec07de620d1e..7bc5340396aa 100644 --- a/kernel/futex.c +++ b/kernel/futex.c @@ -31,31 +31,12 @@ * "The futexes are also cursed." * "But they come in a choice of three flavours!" */ -#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 -- 2.26.2