Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7106421ybi; Thu, 13 Jun 2019 09:39:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqyy22zcSfCScZVWjZUmKKA7yta/hglGkcy9dnOGy9yiJeG4g5eLBxI8Yrp+n19PQgR/apk3 X-Received: by 2002:a17:902:868b:: with SMTP id g11mr86027180plo.183.1560443964037; Thu, 13 Jun 2019 09:39:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560443964; cv=none; d=google.com; s=arc-20160816; b=iFi/3ygad2TMA8bllCUVKyNnDqoFTrr5U6YLjr68HyrzBCTdcR2VT2/0cxrrFoZozF 6ZEIxp6g6GY299WIGxYQihQfOKWfXeEToPaVSWKXufyp+pVu070ANxep88d5VzcVDSe7 6myFvUnKuusji6euNMbONFKNBdG/nDGv0mdzUUxfHkV7HPxQF5dZkz8WhteqQFWokQ6O A0u5vh0VVfqCaUIECrptGboxOgXm2CXh4QtnXqVGyI0UADjCZRX/q/SPd8d9F67DMoIv s7nqzAQ9QPb8ou3Baxy5+FDzRf7++wyZa/uR5rdx3LLMsoaKY2lXYJB2LqxbgPKtkKIm dmGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=N8QXfZwivbN/UElGqGpKdzwCDnMqjA7ARQHaiJiVE0I=; b=G1VuPcxrX2c2JN/rlMU/cdmezXhjdYbp/usf9OW8Wm8V6KfTSqhVueoE5wJB5prn+7 YLCJ533rwGL7ikYtM0OJ1jYT18rlLPEJ9OxCkPFkOgg2H6O/7f+J8Gkv8EYlFAyX9jhH ytjOGbPLzHqHT1vRcTjMI1qH88JYYsM6gkYEOwN5QRwmH//aXi+VXn5nM61lalvm/9yW ec3moDYS/qI2WLepyUUWA5KZPv1+TE/apxeczAcE9QAk86Xw0jiVU0oZ6TNL0xFwSuBI LtyA/5UEVIuvUVq9mj+85nHxEdggfycpysxWzUk9b6xOr0i0LLkVvlLCzoSHWw0+tL9O mSLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=WBMEN4gu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c138si39620pfc.285.2019.06.13.09.39.09; Thu, 13 Jun 2019 09:39:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=WBMEN4gu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392783AbfFMQjE (ORCPT + 99 others); Thu, 13 Jun 2019 12:39:04 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:40372 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730610AbfFMHJl (ORCPT ); Thu, 13 Jun 2019 03:09:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=N8QXfZwivbN/UElGqGpKdzwCDnMqjA7ARQHaiJiVE0I=; b=WBMEN4gu+enMfO/mPhWlPZqPSD XaGaWOnVp4/G3LLOxwOe++WDHhlwe/40O/ifcrp7EKZx7mR1fjQ0NVuADpwjLA95/GVCVCqft/H9V yD/MXFJVuRFUJBNVaeP6LkebwGKE5R3IUhRWM74NRfgd0GXaocG+0KyXWTK17RGfRDBgHbA4S+Yo3 BazQVH6sDIa312lgsk0ibTINNjpOD9niYppjAdp68cx+nUPEiCJZXLTtGxnJatlc/OW7vLNfj9a2l SMVMAT7f1sufpg+UqyuyAX9XlI9RHXbeNZx8cJ0UA3PItXAlSno+a9CjlxhIXSVOwT8oO7caS6MMn BfpiZnDw==; Received: from mpp-cp1-natpool-1-013.ethz.ch ([82.130.71.13] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hbJrY-0004IX-0J; Thu, 13 Jun 2019 07:09:34 +0000 From: Christoph Hellwig To: Greg Ungerer Cc: Michal Simek , linux-arm-kernel@lists.infradead.org, linux-c6x-dev@linux-c6x.org, uclinux-h8-devel@lists.sourceforge.jp, linux-m68k@lists.linux-m68k.org, linux-riscv@lists.infradead.org, linux-sh@vger.kernel.org, linux-xtensa@linux-xtensa.org, linux-kernel@vger.kernel.org Subject: [PATCH 08/17] binfmt_flat: consolidate two version of flat_v2_reloc_t Date: Thu, 13 Jun 2019 09:08:54 +0200 Message-Id: <20190613070903.17214-9-hch@lst.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190613070903.17214-1-hch@lst.de> References: <20190613070903.17214-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Two branches of the ifdef maze actually have the same content, so merge them. Signed-off-by: Christoph Hellwig --- include/linux/flat.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/include/linux/flat.h b/include/linux/flat.h index 2b7cda6e9c1b..19c586b74b99 100644 --- a/include/linux/flat.h +++ b/include/linux/flat.h @@ -69,15 +69,13 @@ struct flat_hdr { typedef union { unsigned long value; struct { -# if defined(mc68000) && !defined(CONFIG_COLDFIRE) +#if defined(__LITTLE_ENDIAN_BITFIELD) || \ + (defined(mc68000) && !defined(CONFIG_COLDFIRE)) signed long offset : 30; unsigned long type : 2; # elif defined(__BIG_ENDIAN_BITFIELD) unsigned long type : 2; signed long offset : 30; -# elif defined(__LITTLE_ENDIAN_BITFIELD) - signed long offset : 30; - unsigned long type : 2; # else # error "Unknown bitfield order for flat files." # endif -- 2.20.1