Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2327536ybh; Fri, 17 Jul 2020 15:40:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFm9IyJ1oakrsA/YJS7wzzrm+P08Dyo0F4NmxHWTyQ2nlAk7j8UfGqfJVyBciEAt2ywXOT X-Received: by 2002:aa7:dcc8:: with SMTP id w8mr11671534edu.305.1595025619706; Fri, 17 Jul 2020 15:40:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595025619; cv=none; d=google.com; s=arc-20160816; b=forZ2oevFssRiQM+0hJr5wqKToNU5eGnFZ6t1VDQWE2jXuq1AdjnZNltNvb42wmHhD JagCe8Z135cRzT5fUINuxV6Xk2AhSzYHNoDwvKXhxQ731Xl3BHp0UsMu5P2/THWj/6bc AzTmCgLWt9llAI7wm19xgDWfd7yHAfN5umOQJUOTGZE3nEy9Grs1McSVkYkG4qvpz7zz E5TAOqlw7RAeYv+ilQ43B+85Nox8LrNlKlNQr9kqZ/KJWq7gmohldCxabNlaYlAlA7jw +qLxWdDe3ZSEcmupf9I6qaG+b+4R4+NMySCCwQdLAycSnRaXFYZG8WWlptf83oCLChfA j2WQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=7jKbs+AM/i/ksKLzf5YlUMWb1SgpUs5qvAbIw89Sv7s=; b=psbaichXr9ASjZmqIpdK+CW/PZsWeXqT4UzV4LYplqtVdNL6q1TMGNt4do0riGBJdm +p5vM/6kRtgGgWSlKybuDeeYSv6j+E64q+s/lGyDCFMiqdubRW2YNMsYm8ZlTl2JT8n/ GaDbxkFobhSCqGzRg3LRsiFYg210QmwrC6U2mJ2WfwMI3WyUCPQHzJfeF6NRKYkOfXb/ FbJOeQaTdtbrzCpmX3OL9S4YFab7jpuAPQtSutLaVGuaHvZjSWZh8l2IHfa6+ZUXYoDw 7HDFXbwg5Q3Vv6StL6/1sIJk711wztxQAejBX3q94T84UU3lQ1ZQapn/+tn7XqoIXmSQ 1DiQ== 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 ec22si6035753ejb.23.2020.07.17.15.39.56; Fri, 17 Jul 2020 15:40:19 -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 S1726556AbgGQWjp (ORCPT + 99 others); Fri, 17 Jul 2020 18:39:45 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:33226 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726204AbgGQWjp (ORCPT ); Fri, 17 Jul 2020 18:39:45 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: tonyk) with ESMTPSA id B20D82A01B5 Subject: Re: [RESEND PATCH 3/4] futex: Remove unused or redundant includes To: Thomas Gleixner , linux-kernel@vger.kernel.org, peterz@infradead.org Cc: mingo@redhat.com, dvhart@infradead.org, kernel@collabora.com, krisman@collabora.com References: <20200702202843.520764-1-andrealmeid@collabora.com> <20200702202843.520764-4-andrealmeid@collabora.com> <875zalrf03.fsf@nanos.tec.linutronix.de> From: =?UTF-8?Q?Andr=c3=a9_Almeida?= Message-ID: <7b7270f6-636a-0b72-8fae-a181d1dfc3e2@collabora.com> Date: Fri, 17 Jul 2020 19:39:37 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <875zalrf03.fsf@nanos.tec.linutronix.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/17/20 6:46 PM, Thomas Gleixner wrote: > André Almeida writes: > >> 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. > > I agree fully with the FD related ones, but are you sure that all of the > others are included on all architectures magically? x86 is just one > piece of the puzzle. We'll see ... > I just retested compiling tip/locking/core, and it seems something changed the last time I wrote the patch. Removing will indeed break the compilation now, the patch bellow should fix it. Sorry for the noise. -- >8 -- Subject: [PATCH 1/1] futex: Add compat include Commit 38aa3c15b3a4 removed includes that seemed to be unused. However, removing makes the compilation fail if the build configuration supports compatibility ABIs. Fix that by reinserting the include. Fixes: 38aa3c15b3a4 ("futex: Remove unused or redundant includes") Signed-off-by: André Almeida --- kernel/futex.c | 1 + 1 file changed, 1 insertion(+) ======================================= diff --git a/kernel/futex.c b/kernel/futex.c index f483bc52dbac..4616d4ad609d 100644 --- a/kernel/futex.c +++ b/kernel/futex.c @@ -31,6 +31,7 @@ 31 * "The futexes are also cursed." 32 * "But they come in a choice of three flavours!" 33 */ +34#include 35#include 36#include 37#include --