From patchwork Thu Nov 5 15:41:33 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dongliang Mu X-Patchwork-Id: 540692 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id C6DC31413D3 for ; Fri, 6 Nov 2015 07:09:22 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=aAbt3YZ2; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id A2CAE1A0CCE for ; Fri, 6 Nov 2015 07:09:22 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=aAbt3YZ2; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Received: from mail-pa0-x22e.google.com (mail-pa0-x22e.google.com [IPv6:2607:f8b0:400e:c03::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 2A6611A0CDB for ; Fri, 6 Nov 2015 02:41:43 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=aAbt3YZ2; dkim-atps=neutral Received: by pabfh17 with SMTP id fh17so90741853pab.0 for ; Thu, 05 Nov 2015 07:41:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding; bh=LAsNYDFoN6q9bcjjYBzShlwrquP8zKPTYSdqAOyH1l0=; b=aAbt3YZ2+5/o4W6zgF7Ak7P4qpr0VrVrvMM+xlgYRgqpIByBvRFqjXiYXmmaa010Ny ESSla8OlfocsYtyLow/xWBcPrmoxuox9x9O9drFIqzDshpI4vF9fPKYEPzwmVpbr+4SI kAyEwEdDY7mSmNOE6PYCNflG780QD/stfUksFy7V2GkNNlUHbwFXU303DWWz/Z83/Vcd 5KNaZUxDcjVlfYDMW5GVyLu5t66axTHkwBszHeZTjPWBv/B/mGrEArHCSo2dPCcoWD0o xkAeVDEciuif9GbtCeiXqufviKnq++FE/Gt4ti0UokKpsSpB0zaX3a+RmErXrAN9L3c1 X26g== X-Received: by 10.66.194.16 with SMTP id hs16mr9877465pac.93.1446738100924; Thu, 05 Nov 2015 07:41:40 -0800 (PST) Received: from ?IPv6:2001:250:5002:8100::3:795f? ([2001:250:5002:8100::3:795f]) by smtp.gmail.com with ESMTPSA id ij3sm8595132pbb.62.2015.11.05.07.41.36 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Nov 2015 07:41:39 -0800 (PST) Message-ID: <563B78AD.2060906@gmail.com> Date: Thu, 05 Nov 2015 23:41:33 +0800 From: mudongliang User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.8.0 MIME-Version: 1.0 To: benh@kernel.crashing.org, paulus@samba.org, mpe@ellerman.id.au, takahiro.akashi@linaro.org, will.deacon@arm.com Subject: [PATCH] uapi elf: delete unused macros X-Mailman-Approved-At: Fri, 06 Nov 2015 07:04:46 +1100 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-api@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" delete unused macros and unify the comment format From e21328f3450e841abf8a312865910806d0858373 Mon Sep 17 00:00:00 2001 From: mudongliang Date: Thu, 5 Nov 2015 22:46:19 +0800 Subject: [PATCH] unify the comment form and delete unused macros Signed-off-by: mudongliang --- arch/powerpc/boot/elf.h | 6 ++---- include/uapi/linux/elf.h | 7 ++----- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/arch/powerpc/boot/elf.h b/arch/powerpc/boot/elf.h index 1941bc5..e6e00ed 100644 --- a/arch/powerpc/boot/elf.h +++ b/arch/powerpc/boot/elf.h @@ -133,15 +133,13 @@ typedef struct elf64_phdr { #define ELFCLASSNONE 0 /* EI_CLASS */ #define ELFCLASS32 1 #define ELFCLASS64 2 -#define ELFCLASSNUM 3 -#define ELFDATANONE 0 /* e_ident[EI_DATA] */ +#define ELFDATANONE 0 /* EI_DATA */ #define ELFDATA2LSB 1 #define ELFDATA2MSB 2 -#define EV_NONE 0 /* e_version, EI_VERSION */ +#define EV_NONE 0 /* EI_VERSION */ #define EV_CURRENT 1 -#define EV_NUM 2 #define ELFOSABI_NONE 0 #define ELFOSABI_LINUX 3 diff --git a/include/uapi/linux/elf.h b/include/uapi/linux/elf.h index 71e1d0e..bd049b2 100644 --- a/include/uapi/linux/elf.h +++ b/include/uapi/linux/elf.h @@ -342,15 +342,12 @@ typedef struct elf64_shdr { #define ELFCLASSNONE 0 /* EI_CLASS */ #define ELFCLASS32 1 #define ELFCLASS64 2 -#define ELFCLASSNUM 3 -#define ELFDATANONE 0 /* e_ident[EI_DATA] */ +#define ELFDATANONE 0 /* EI_DATA */ #define ELFDATA2LSB 1 -#define ELFDATA2MSB 2 -#define EV_NONE 0 /* e_version, EI_VERSION */ +#define EV_NONE 0 /* EI_VERSION */ #define EV_CURRENT 1 -#define EV_NUM 2 #define ELFOSABI_NONE 0 #define ELFOSABI_LINUX 3