From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965229AbdGTKa6 (ORCPT ); Thu, 20 Jul 2017 06:30:58 -0400 Received: from terminus.zytor.com ([65.50.211.136]:41157 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965213AbdGTKa4 (ORCPT ); Thu, 20 Jul 2017 06:30:56 -0400 Date: Thu, 20 Jul 2017 03:27:24 -0700 From: tip-bot for Ingo Molnar Message-ID: Cc: tglx@linutronix.de, mingo@kernel.org, torvalds@linux-foundation.org, peterz@infradead.org, linux-kernel@vger.kernel.org, hpa@zytor.com Reply-To: tglx@linutronix.de, torvalds@linux-foundation.org, mingo@kernel.org, peterz@infradead.org, linux-kernel@vger.kernel.org, hpa@zytor.com In-Reply-To: <20170720092307.6xslahuaclmsiffe@gmail.com> References: <20170720092307.6xslahuaclmsiffe@gmail.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/mm] x86/boot: Fix memremap() related build failure Git-Commit-ID: 693bf0aa01b7f9a1b24b2b932d555c6667f17a1a X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 693bf0aa01b7f9a1b24b2b932d555c6667f17a1a Gitweb: http://git.kernel.org/tip/693bf0aa01b7f9a1b24b2b932d555c6667f17a1a Author: Ingo Molnar AuthorDate: Thu, 20 Jul 2017 11:23:07 +0200 Committer: Ingo Molnar CommitDate: Thu, 20 Jul 2017 11:37:58 +0200 x86/boot: Fix memremap() related build failure The following commit: 5997efb96756 ("x86/boot: Use memremap() to map the MPF and MPC data") causes new build failures on certain randconfigs: drivers/sfi/sfi_core.c: In function ‘sfi_map_memory’: drivers/sfi/sfi_core.c:104:10: error: implicit declaration of function ‘memremap’ [-Werror=implicit-function-declaration] drivers/sfi/sfi_core.c:104:31: error: ‘MEMREMAP_WB’ undeclared (first use in this function) This is a case of parasitic header dependencies: the sfi_core.c file indirectly includes for typical - but not all configs. Including explicitly solves the build failure. Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: arnd@arndb.de Cc: aryabinin@virtuozzo.com Cc: bp@alien8.de Cc: bp@suse.de Cc: brijesh.singh@amd.com Cc: corbet@lwn.net Cc: dvyukov@google.com Cc: dyoung@redhat.com Cc: glider@google.com Cc: konrad.wilk@oracle.com Cc: linux-tip-commits@vger.kernel.org Cc: luto@kernel.org Cc: lwoodman@redhat.com Cc: matt@codeblueprint.co.uk Cc: mst@redhat.com Cc: pbonzini@redhat.com Cc: riel@redhat.com Cc: rkrcmar@redhat.com Cc: thomas.lendacky@amd.com Cc: toshi.kani@hpe.com Link: http://lkml.kernel.org/r/20170720092307.6xslahuaclmsiffe@gmail.com Signed-off-by: Ingo Molnar --- drivers/sfi/sfi_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/sfi/sfi_core.c b/drivers/sfi/sfi_core.c index d5ce534..153b3f3 100644 --- a/drivers/sfi/sfi_core.c +++ b/drivers/sfi/sfi_core.c @@ -68,6 +68,7 @@ #include #include #include +#include #include "sfi_core.h"