Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752534AbbGAGlg (ORCPT ); Wed, 1 Jul 2015 02:41:36 -0400 Received: from mailout4.w1.samsung.com ([210.118.77.14]:16538 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750869AbbGAGl3 (ORCPT ); Wed, 1 Jul 2015 02:41:29 -0400 X-AuditID: cbfec7f4-f79c56d0000012ee-f3-55938b95a4c3 From: Pavel Fedin To: linux-kernel@vger.kernel.org, "'Jiri Kosina'" , trivial@kernel.org Subject: [RESEND PATCH] Avoid conflict with host definitions when cross-compiling Date: Wed, 01 Jul 2015 09:41:24 +0300 Message-id: <010c01d0b3c8$f39da390$dad8eab0$@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-index: AdCzyNGh5JkRxW1cRHaWXn/tbqzGbA== Content-language: ru X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrJLMWRmVeSWpSXmKPExsVy+t/xy7pTuyeHGvQe1bXYPWcxi8XlXXPY LN7vv8zkwOyxaVUnm8eZBUfYPT5vkgtgjuKySUnNySxLLdK3S+DKOHBtG2PBOY6KA79OMjYw 9rJ3MXJwSAiYSDy+ntLFyAlkiklcuLeerYuRi0NIYCmjxJwp/1ghnO+MEteuzmEEqRISMJSY O+8UM4jNJqAucfrrBxYQW0QgXOLDvcnsILawQLDEzjmbwWwWAVWJzddbwWxeAUuJh9d7oWxB iR+T74H1MgtoSazfeZwJwpaX2LzmLTPERQoSO86+ZoSYryfR/mcuVL2IxLR/95gnMArMQjJq FpJRs5CMmoWkZQEjyypG0dTS5ILipPRcQ73ixNzi0rx0veT83E2MkAD+soNx8TGrQ4wCHIxK PLwCYpNDhVgTy4orcw8xSnAwK4nwZmgDhXhTEiurUovy44tKc1KLDzFKc7AoifPO3fU+REgg PbEkNTs1tSC1CCbLxMEp1cBYp1J1oV7u0Ylz6QkHby05sy54e9MJOf1jhXY7q+a+9NuSKn53 weztu3/avBHfdXFO6LTrLWfNPC65+voIvWKdZx2w3+5P+IlA2ZUv5i/m3qUYHOHuv1Bzf8G+ CxJPX/X333nJWZPcEJV5Y0OM5+13FtGP/8/qlnIpZbhe/8u2vH5Vacd3p1MrlFiKMxINtZiL ihMBZncULVwCAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1311 Lines: 42 Certain platforms (e. g. BSD-based ones) define some ELF constants according to host. This patch fixes problems with cross-building Linux kernel on these platforms. Signed-off-by: Pavel Fedin --- P.S. If you are not fond of mentioning Cygwin in the comment, feel free to change it to "BSD-based" --- scripts/mod/modpost.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/mod/modpost.h b/scripts/mod/modpost.h index 168b43d..9f51365 100644 --- a/scripts/mod/modpost.h +++ b/scripts/mod/modpost.h @@ -11,6 +11,12 @@ #include "elfconfig.h" +/* Cygwin's elf.h defines these according to host's word size */ +#undef ELF_ST_BIND +#undef ELF_ST_TYPE +#undef ELF_R_SYM +#undef ELF_R_TYPE + #if KERNEL_ELFCLASS == ELFCLASS32 #define Elf_Ehdr Elf32_Ehdr -- 1.9.5.msysgit.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/