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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D5916C433FE for ; Sat, 29 Oct 2022 23:19:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229876AbiJ2XTR (ORCPT ); Sat, 29 Oct 2022 19:19:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229787AbiJ2XSy (ORCPT ); Sat, 29 Oct 2022 19:18:54 -0400 Received: from zeniv.linux.org.uk (zeniv.linux.org.uk [IPv6:2a03:a000:7:0:5054:ff:fe1c:15ff]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EE572F007; Sat, 29 Oct 2022 16:18:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linux.org.uk; s=zeniv-20220401; h=Sender:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description; bh=WhbUv9HBxQIPXWwFYMtnUUjJ/kZ/8c6XmqS5a0sNtkc=; b=rQCFH1SCYQTChP+jdlWCMmd6Jm YH+4xQ4FeuldtfDjL2HIdNvtPTyRdo1XiVCFq1gNbQLKk1T4n9NyhPrGXaOKI6NmqOs56ggr/Ew5M vUCugji4OPCXfpKVd8efw36D+akpEiseI5l0DV+ixe/R7cCDenDVHX9LVa+1hzLtIlQout2DCSIgN yA2Qn7Wcjyoze3YtV+5VzBBFUBiwrQNcgZEPsmKpcMaAULPDzH/u2a09Lgf/MOqC4r5ij1qNQQH6e cVdwLBh/sxmd0B2rsbEJo/fSItkPq7GYIQ+fgBRvlid2kbFPfGarfxWKceOVrOB69HtzCVicw+SUC L3j1NgKA==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.96 #2 (Red Hat Linux)) id 1oov6K-00FOLB-2F; Sat, 29 Oct 2022 23:18:52 +0000 From: Al Viro To: linux-arch@vger.kernel.org Cc: Linus Torvalds , linux-kernel@vger.kernel.org Subject: [PATCH 10/10] [elf] get rid of get_note_info_size() Date: Sun, 30 Oct 2022 00:18:50 +0100 Message-Id: <20221029231850.3668437-10-viro@zeniv.linux.org.uk> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221029231850.3668437-1-viro@zeniv.linux.org.uk> References: <20221029231850.3668437-1-viro@zeniv.linux.org.uk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org it's trivial now... Signed-off-by: Al Viro --- fs/binfmt_elf.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index 3758a617c9d8..65d2d2ba4d9e 100644 --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c @@ -1946,11 +1946,6 @@ static int fill_note_info(struct elfhdr *elf, int phdrs, return 1; } -static size_t get_note_info_size(struct elf_note_info *info) -{ - return info->size; -} - /* * Write all the notes for each thread. When writing the first thread, the * process-wide notes are interleaved after the first thread-specific note. @@ -2068,7 +2063,7 @@ static int elf_core_dump(struct coredump_params *cprm) /* Write notes phdr entry */ { - size_t sz = get_note_info_size(&info); + size_t sz = info.size; /* For cell spufs */ sz += elf_coredump_extra_notes_size(); -- 2.30.2