Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753279AbbFCIZk (ORCPT ); Wed, 3 Jun 2015 04:25:40 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:49694 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752756AbbFCIZ3 (ORCPT ); Wed, 3 Jun 2015 04:25:29 -0400 X-AuditID: cbfec7f4-f79c56d0000012ee-ea-556eb9f6905c From: Pavel Fedin To: linux-kernel@vger.kernel.org Subject: [PATCH] Avoid conflict with host definitions when cross-compiling Date: Wed, 03 Jun 2015 11:25:25 +0300 Message-id: <011201d09dd6$d7decf10$879c6d30$@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: AdCd1omdYO8yQf1oR4qC+X7P4a5mkQ== Content-language: ru X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrJLMWRmVeSWpSXmKPExsVy+t/xK7rfduaFGtw4K2dxedccNgdGj8+b 5AIYo7hsUlJzMstSi/TtErgy3n14zVzwgrXif/9P9gbGJyxdjJwcEgImEjvbWqFsMYkL99az gdhCAksZJW69y+ti5AKyZzBJTNt/D6yITUBd4vTXD2C2iICCxObeZ6wgtrCAl8T3SVPBbBYB VYl9NyeADeIVsJTYOGshO4QtKPFjMsQcZgEtifU7jzNB2PISm9e8ZYY4QkFix9nXjBDz9SS6 Zu5lhKgRkZj27x7zBEb+WUhGzUIyahaSUbOQtCxgZFnFKJpamlxQnJSea6hXnJhbXJqXrpec n7uJERKAX3YwLj5mdYhRgINRiYd3RkReqBBrYllxZe4hRgkOZiURXoOtQCHelMTKqtSi/Pii 0pzU4kOM0hwsSuK8c3e9DxESSE8sSc1OTS1ILYLJMnFwSjUwdnLynTp8fmaSd1+4x00lmb7j Zfyqv3Wa3kx5ECT+n8kj5e2j6vR5p3ccUUlL8f837+nWni8LChb9dw559eVQi2BWxROlP4od bta1K34cze6tqX/ygP3xGyfLb3lMtRJq59JXyk/kfPM+fpJPJE9S/ar4kJcf7T9NLuyq89iy OOMEdxpL6rtOJZbijERDLeai4kQAP1LR4zwCAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 961 Lines: 34 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 --- 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/