Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2301827ybh; Fri, 17 Jul 2020 14:48:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVNOupg4BLyl2Pg69q32e/JpvrK0tOrZ/iuhztSCrkAeKadrbn14XJGOCzPUGmFbtq5vl9 X-Received: by 2002:a05:6402:559:: with SMTP id i25mr10957394edx.35.1595022490403; Fri, 17 Jul 2020 14:48:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595022490; cv=none; d=google.com; s=arc-20160816; b=on8jkmnNjfzo/FU22khA6tIDnji6g3veTCoSnYg+dBU7LSxsUbbqhJdTl1+nIsLiHA K3j11r3OztWxhu2+ZBOUbtTSuLTjAcCXZgXTxVhzc4llA4gNANiaU1NbSBm+MRr6uY4f sTQR+BPF52dYa7oKNolOHZw/Q8eRAdw/Qg8ko44XXF2QeET6+mhX+6mFdRqgn7/6xk+2 GzJjJx2PXCQJPUDsU82sXErdiEOlVXON8pInks6MM1PE/BoQxglUmqR35xYBUBv9jJFq Q5AiPYUa4FKoPlNfvYqj2MjbMxTz1MNNM2FUvej7fnjAAIY8y5ZLFE+ufsxNbVz+t1Wu 2fYQ== 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 :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=yWveIph5h7e6cozVWaFqIR73Md1np3NT/tbXFuQjfvE=; b=nSjQnxZldBRlItNnfMbOo5FcOIX+sH+1OU7L0Vll5T3rxc6tRAFu/JJiVP2SYhm45D GgWMIUo2cRkO4+JsTEqemaLSnP+tnIdBONA0Dn3/deo/eaX8+0DWWwVxuYmFk80+Lep1 5DHZljcj9YtwTardxnjCQRVpvfoYQ81X/43hpnmL2apMDtLkLmncI/9LRSp8c6CzX1Bp uJjip3716kYSGf8P8b+sT5dM24oe1Mg1nfv6gEy7sNtdfaJRp0fo0XheLQepJquexd+G lUIhrcF/AKtWP1jgyFotYOXMwoexRC8LdMFRkax9e3es8v5AG9GNEtnfbfZN0MvCUy5I Nc9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=wvZZuBKx; dkim=neutral (no key) header.i=@linutronix.de; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s25si5668304edw.533.2020.07.17.14.47.46; Fri, 17 Jul 2020 14:48:10 -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; dkim=pass header.i=@linutronix.de header.s=2020 header.b=wvZZuBKx; dkim=neutral (no key) header.i=@linutronix.de; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726916AbgGQVqz (ORCPT + 99 others); Fri, 17 Jul 2020 17:46:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726528AbgGQVqy (ORCPT ); Fri, 17 Jul 2020 17:46:54 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4620C0619D2 for ; Fri, 17 Jul 2020 14:46:54 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1595022412; h=from:from: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: in-reply-to:in-reply-to:references:references; bh=yWveIph5h7e6cozVWaFqIR73Md1np3NT/tbXFuQjfvE=; b=wvZZuBKxsyntLi9dvohYK7W5JLCHU6Jjh61wISFmO4GUDzcuPLnsJ5IAt4xsDNBl3ddPPk 5z0f6H6OFgAtoXHNZa2MSpmLZmpDpdfuDl3c+DHCmYnp31J7+fHEhyloR9dhl2VF8eKNbj PUNbyrB2q7sqMC4vKSL8GDEw3e1N3bHgtlDE2NokzN7Nsf3QuxmwIeZMPxl++EmY22CgmI 7jr0KN6j/kj+0HKIY1zuJCOcoRdPeWn7qgnU6YsoDAyRyovsd2fWHBNTsJADNj8AQ1iEGD dr0zU6eZB3jaZDHQlSrumdxsRX+1VZ9++V9xATLO2FGhI8r15kqyqNPvix5i5w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1595022412; h=from:from: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: in-reply-to:in-reply-to:references:references; bh=yWveIph5h7e6cozVWaFqIR73Md1np3NT/tbXFuQjfvE=; b=uNkLjK3Qw9GohkazRC0eH1ZSL380pAOjNgUdhgRN9ruP53vnB/B+YtouZEAfRumcxtBGij W/YpkBLt8plmIpBg== To: =?utf-8?Q?Andr=C3=A9?= Almeida , linux-kernel@vger.kernel.org, peterz@infradead.org Cc: mingo@redhat.com, dvhart@infradead.org, kernel@collabora.com, krisman@collabora.com, =?utf-8?Q?Andr=C3=A9?= Almeida Subject: Re: [RESEND PATCH 3/4] futex: Remove unused or redundant includes In-Reply-To: <20200702202843.520764-4-andrealmeid@collabora.com> References: <20200702202843.520764-1-andrealmeid@collabora.com> <20200702202843.520764-4-andrealmeid@collabora.com> Date: Fri, 17 Jul 2020 23:46:52 +0200 Message-ID: <875zalrf03.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Andr=C3=A9 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=C3=A9 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 ...