From patchwork Tue Oct 4 10:25:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rolf Eike Beer X-Patchwork-Id: 12998109 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id AB491C433FE for ; Tue, 4 Oct 2022 10:25:50 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E72696B0072; Tue, 4 Oct 2022 06:25:49 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E21636B0073; Tue, 4 Oct 2022 06:25:49 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CE9DD6B0074; Tue, 4 Oct 2022 06:25:49 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id B6D906B0072 for ; Tue, 4 Oct 2022 06:25:49 -0400 (EDT) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 7BE9B12022C for ; Tue, 4 Oct 2022 10:25:49 +0000 (UTC) X-FDA: 79982886018.07.6A4AA2F Received: from mx1.emlix.com (mx1.emlix.com [136.243.223.33]) by imf09.hostedemail.com (Postfix) with ESMTP id D648D14000C for ; Tue, 4 Oct 2022 10:25:48 +0000 (UTC) Received: from mailer.emlix.com (unknown [81.20.119.6]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.emlix.com (Postfix) with ESMTPS id 09C715F9E9; Tue, 4 Oct 2022 12:25:47 +0200 (CEST) From: Rolf Eike Beer To: Eric Biederman , Kees Cook Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH] ELF uapi: add spaces before '{' Date: Tue, 04 Oct 2022 12:25:40 +0200 Message-ID: <11563980.Ss37MnutNL@mobilepool36.emlix.com> MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1664879149; h=from:from:sender: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: references; bh=uf+WrSC/sF5nQ0nTQeGDrpvdYRBfyYUBd1y4BuE/HEM=; b=pCR7A8LvcQQKUCDV0kFd1/0IVX3CPG3p/W53b7ypZSqMMV6DSmar5if0TpyOfFk+ZPf6PM oTD66Xf/nwRuF4K1DcK8piTOm2z3LN0aOuuqaZC27aeL1gmyQMkR7o+z8Gl11BLlcrDvjz Nbce10bcWVTvSLpl2CUOCeuoQ5uDPB8= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=none; spf=pass (imf09.hostedemail.com: domain of eb@emlix.com designates 136.243.223.33 as permitted sender) smtp.mailfrom=eb@emlix.com; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1664879149; a=rsa-sha256; cv=none; b=VUKk+5xOuT0IDSEj8Q3UDw+yYewsNK5CbEhZBNfn+IoDHgjnLA3jVQgugW6obdXcpm8Lxy XKSgTOQWVpKMFsNXuo/iltR7+WfVUqtg47l/WcZ7HUjvg/kOfniY392sjOOZoGrU38Vpix kEZAVO1sQeqZoAchx2hbCYGwqm548YM= X-Stat-Signature: yiknbxo3qtwtc36asyqbi5nm8kfrq5js X-Rspamd-Queue-Id: D648D14000C Authentication-Results: imf09.hostedemail.com; dkim=none; spf=pass (imf09.hostedemail.com: domain of eb@emlix.com designates 136.243.223.33 as permitted sender) smtp.mailfrom=eb@emlix.com; dmarc=none X-Rspamd-Server: rspam07 X-Rspam-User: X-HE-Tag: 1664879148-602874 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: When searching for a struct definition I often enough end up simply doing git grep 'struct foobar {' Sadly some of the ELF structs did not follow the usual coding style so they were invisible. Signed-off-by: Rolf Eike Beer --- include/uapi/linux/elf.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/uapi/linux/elf.h b/include/uapi/linux/elf.h index c7b056af9ef0..775a17b5b8ac 100644 --- a/include/uapi/linux/elf.h +++ b/include/uapi/linux/elf.h @@ -140,9 +140,9 @@ typedef __s64 Elf64_Sxword; #define ELF64_ST_BIND(x) ELF_ST_BIND(x) #define ELF64_ST_TYPE(x) ELF_ST_TYPE(x) -typedef struct dynamic{ +typedef struct dynamic { Elf32_Sword d_tag; - union{ + union { Elf32_Sword d_val; Elf32_Addr d_ptr; } d_un; @@ -173,7 +173,7 @@ typedef struct elf64_rel { Elf64_Xword r_info; /* index and type of relocation */ } Elf64_Rel; -typedef struct elf32_rela{ +typedef struct elf32_rela { Elf32_Addr r_offset; Elf32_Word r_info; Elf32_Sword r_addend; @@ -185,7 +185,7 @@ typedef struct elf64_rela { Elf64_Sxword r_addend; /* Constant addend used to compute value */ } Elf64_Rela; -typedef struct elf32_sym{ +typedef struct elf32_sym { Elf32_Word st_name; Elf32_Addr st_value; Elf32_Word st_size; @@ -206,7 +206,7 @@ typedef struct elf64_sym { #define EI_NIDENT 16 -typedef struct elf32_hdr{ +typedef struct elf32_hdr { unsigned char e_ident[EI_NIDENT]; Elf32_Half e_type; Elf32_Half e_machine; @@ -246,7 +246,7 @@ typedef struct elf64_hdr { #define PF_W 0x2 #define PF_X 0x1 -typedef struct elf32_phdr{ +typedef struct elf32_phdr { Elf32_Word p_type; Elf32_Off p_offset; Elf32_Addr p_vaddr;