From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chen Gang Subject: [PATCH next] drivers/ptp/Kconfig: add "depends on HAS_IOMEM" for 'PTP_1588_CLOCK_PCH' Date: Tue, 02 Jul 2013 09:08:43 +0800 Message-ID: <51D2281B.2020607@asianux.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from intranet.asianux.com ([58.214.24.6]:49008 "EHLO intranet.asianux.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755452Ab3GBBJe (ORCPT ); Mon, 1 Jul 2013 21:09:34 -0400 Sender: linux-next-owner@vger.kernel.org List-ID: To: richardcochran@gmail.com Cc: Richard Weinberger , Geert Uytterhoeven , linux-next@vger.kernel.org The related driver need depend on HAS_IOMEM, or may be built under UML architecture. The related error (with allmodconfig, without pcap): CC [M] drivers/ptp/ptp_pch.o drivers/ptp/ptp_pch.c: In function =91pch_remove=92: drivers/ptp/ptp_pch.c:571:3: error: implicit declaration of function = =91iounmap=92 [-Werror=3Dimplicit-function-declaration] drivers/ptp/ptp_pch.c: In function =91pch_probe=92: drivers/ptp/ptp_pch.c:621:2: error: implicit declaration of function = =91ioremap=92 [-Werror=3Dimplicit-function-declaration] drivers/ptp/ptp_pch.c:621:13: warning: assignment makes pointer from = integer without a cast [enabled by default] cc1: some warnings being treated as errors Signed-off-by: Chen Gang --- drivers/ptp/Kconfig | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/ptp/Kconfig b/drivers/ptp/Kconfig index 5be73ba..5a7910e 100644 --- a/drivers/ptp/Kconfig +++ b/drivers/ptp/Kconfig @@ -73,6 +73,7 @@ config DP83640_PHY config PTP_1588_CLOCK_PCH tristate "Intel PCH EG20T as PTP clock" depends on X86 || COMPILE_TEST + depends on HAS_IOMEM select PTP_1588_CLOCK help This driver adds support for using the PCH EG20T as a PTP --=20 1.7.7.6