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 X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6D52CC433DF for ; Thu, 4 Jun 2020 23:50:49 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 2CCC5206DC for ; Thu, 4 Jun 2020 23:50:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="B1qEJ5c+" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2CCC5206DC Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id C2969280058; Thu, 4 Jun 2020 19:50:48 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B8B21280005; Thu, 4 Jun 2020 19:50:48 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AA3ED280058; Thu, 4 Jun 2020 19:50:48 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0192.hostedemail.com [216.40.44.192]) by kanga.kvack.org (Postfix) with ESMTP id 8AA60280005 for ; Thu, 4 Jun 2020 19:50:48 -0400 (EDT) Received: from smtpin11.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 4F95F3768 for ; Thu, 4 Jun 2020 23:50:48 +0000 (UTC) X-FDA: 76893176976.11.bone07_400bad826d9b Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin11.hostedemail.com (Postfix) with ESMTP id 335D3180F8B82 for ; Thu, 4 Jun 2020 23:50:48 +0000 (UTC) X-HE-Tag: bone07_400bad826d9b X-Filterd-Recvd-Size: 2497 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf21.hostedemail.com (Postfix) with ESMTP for ; Thu, 4 Jun 2020 23:50:47 +0000 (UTC) Received: from localhost.localdomain (c-73-231-172-41.hsd1.ca.comcast.net [73.231.172.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EF08620872; Thu, 4 Jun 2020 23:50:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591314647; bh=a76hXoeuJ86ZsRPxQ9qBnrFcCSC5dWzemBBB6UVppfM=; h=Date:From:To:Subject:In-Reply-To:From; b=B1qEJ5c+DCJwT+nWIWDsW1v7bvt65t6QjjMoXKcWUyH3HVYZJkubtskGHDC/VSdLX YnynGeqzibdZUUmSIjj99kzz0wuRh55sRhxL7kZGhKZXywFp0EVhEB+TICmWYF3yTz eQY//O29D9aaVu+5KueOJBiprRb/yT324wzH2TiM= Date: Thu, 04 Jun 2020 16:50:46 -0700 From: Andrew Morton To: ailiop@suse.com, akpm@linux-foundation.org, linux-mm@kvack.org, mm-commits@vger.kernel.org, torvalds@linux-foundation.org Subject: [patch 087/127] fs/binfmt_elf: remove redundant elf_map ifndef Message-ID: <20200604235046.8_MpY6yXD%akpm@linux-foundation.org> In-Reply-To: <20200604164523.e15f3177f4b69dcb4f2534a1@linux-foundation.org> User-Agent: s-nail v14.8.16 X-Rspamd-Queue-Id: 335D3180F8B82 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam04 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: Anthony Iliopoulos Subject: fs/binfmt_elf: remove redundant elf_map ifndef The ifndef was added a long time ago to support archs that would define their own mapping function. The last user was the metag arch which was removed from the tree, and as such there are no users left. Let's kill it. Link: http://lkml.kernel.org/r/20200402161543.4119-1-ailiop@suse.com Signed-off-by: Anthony Iliopoulos Signed-off-by: Andrew Morton --- fs/binfmt_elf.c | 4 ---- 1 file changed, 4 deletions(-) --- a/fs/binfmt_elf.c~fs-binfmt_elf-remove-redundant-elf_map-ifndef +++ a/fs/binfmt_elf.c @@ -353,8 +353,6 @@ create_elf_tables(struct linux_binprm *b return 0; } -#ifndef elf_map - static unsigned long elf_map(struct file *filep, unsigned long addr, const struct elf_phdr *eppnt, int prot, int type, unsigned long total_size) @@ -394,8 +392,6 @@ static unsigned long elf_map(struct file return(map_addr); } -#endif /* !elf_map */ - static unsigned long total_mapping_size(const struct elf_phdr *cmds, int nr) { int i, first_idx = -1, last_idx = -1; _