From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753251AbaJGAWm (ORCPT ); Mon, 6 Oct 2014 20:22:42 -0400 Received: from merlin.infradead.org ([205.233.59.134]:48434 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752854AbaJGAVt (ORCPT ); Mon, 6 Oct 2014 20:21:49 -0400 Message-Id: In-Reply-To: References: From: Geoff Levand Patch-Date: Wed, 20 Aug 2014 14:44:42 -0700 Subject: [PATCH V24/5] kexec: Add IND_FLAGS macro To: Andrew Morton Cc: Eric Biederman , kexec@lists.infradead.org, Benjamin Herrenschmidt , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Date: Tue, 07 Oct 2014 00:21:30 +0000 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a new kexec preprocessor macro IND_FLAGS, which is the bitwise OR of all the possible kexec IND_ kimage_entry indirection flags. Having this macro allows for simplified code in the prosessing of the kexec kimage_entry items. Signed-off-by: Geoff Levand Acked-by: Vivek Goyal --- include/linux/kexec.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/kexec.h b/include/linux/kexec.h index 8c628ca..a4758f9 100644 --- a/include/linux/kexec.h +++ b/include/linux/kexec.h @@ -10,6 +10,7 @@ #define IND_INDIRECTION (1 << IND_INDIRECTION_BIT) #define IND_DONE (1 << IND_DONE_BIT) #define IND_SOURCE (1 << IND_SOURCE_BIT) +#define IND_FLAGS (IND_DESTINATION | IND_INDIRECTION | IND_DONE | IND_SOURCE) #if !defined(__ASSEMBLY__) -- 1.9.1