Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1771394ybt; Thu, 2 Jul 2020 13:30:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCQFbXypqN6hndYOH7MgfQF6rxdGFSHoWNhNGYdDWj0sGIupIhKsiNgxv53sNWK7dhduG2 X-Received: by 2002:a17:906:81d2:: with SMTP id e18mr28302255ejx.341.1593721811058; Thu, 02 Jul 2020 13:30:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593721811; cv=none; d=google.com; s=arc-20160816; b=ulb4Ztwi885vUhHbzWtd26BudtJ3e0EjTHNuOnqUhshqbbZ6HSDUr2zxvMiiVENH+P vfZvPK1mrOH7zjmrFKMcNeIkpzRH2YOuyMwXPM+cdF5BW9P5yNiCOFmHU+NdZYJLBuwX gbvpUK5TOe7wZDTJX6zmEzTy/t2Ue9HZrrLyCRZRTO5FFb3XheB7xOPtnPAmKnbBV93E 116O1AevFVnBWBMCT+aa47Q1y6EVSF23Kn5jvEdLH4ZIZU5X0F4MphadF0ZpO7wNJfOV d8WVH0ro9Z08FEbGMx2xLgvolzq5wZ4aZ5MAdC9WmcZ6QjBm2bBspiyjRvX4x/3y2DPV pVjw== 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=M8G90u+fXzAmxRtIaqvc5wds0Erj0fy/sw6iyRB/lAU=; b=iJbJwYN4Zs16wnp9vHddjvTMsW/Z2BVU9seRmwXXqs8FwADlvt5HJMvR0AGVOlNUUp AYRBnil+soKS2dNfDIKfLvp8RP86yu64qR2r961rQxjSkUgUP+IKCFM1pWaPdOySxS40 GeEsFLRzqpTzqPIXyZAbLqeX80p3aU59RqJPgJBxcIVZMXBD+5uT9im0GoNFdOhIIaGz U918abN9geae2ZUdKoscemWeAg/zqDjs4+t+RvnWmZF3ltJG661mCtspWKNNEA/RasFj aDYlsoV9eT4BWCcNr1Y2t5bLvoBku4/XRhcaRL2ReG/z3dAK6DQq5PHc2KSA1eapcOtj CJWA== 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 e24si6168054eje.102.2020.07.02.13.29.48; Thu, 02 Jul 2020 13:30:11 -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 S1726169AbgGBU2o (ORCPT + 99 others); Thu, 2 Jul 2020 16:28:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725915AbgGBU2n (ORCPT ); Thu, 2 Jul 2020 16:28:43 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA7B3C08C5C1 for ; Thu, 2 Jul 2020 13:28:43 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: tonyk) with ESMTPSA id 620A52A6101 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: [RESEND PATCH 3/4] futex: Remove unused or redundant includes Date: Thu, 2 Jul 2020 17:28:42 -0300 Message-Id: <20200702202843.520764-4-andrealmeid@collabora.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200702202843.520764-1-andrealmeid@collabora.com> References: <20200702202843.520764-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 | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/kernel/futex.c b/kernel/futex.c index 362fbca6d614..697835ad5bff 100644 --- a/kernel/futex.c +++ b/kernel/futex.c @@ -31,31 +31,13 @@ * "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.27.0