From patchwork Mon Nov 24 12:07:45 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Bolle X-Patchwork-Id: 5365541 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 305A89F2F5 for ; Mon, 24 Nov 2014 12:08:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 60F20203DC for ; Mon, 24 Nov 2014 12:08:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 88C77203DA for ; Mon, 24 Nov 2014 12:08:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753649AbaKXMHv (ORCPT ); Mon, 24 Nov 2014 07:07:51 -0500 Received: from cpsmtpb-ews09.kpnxchange.com ([213.75.39.14]:63136 "EHLO cpsmtpb-ews09.kpnxchange.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752203AbaKXMHt (ORCPT ); Mon, 24 Nov 2014 07:07:49 -0500 Received: from cpsps-ews13.kpnxchange.com ([10.94.84.180]) by cpsmtpb-ews09.kpnxchange.com with Microsoft SMTPSVC(7.5.7601.17514); Mon, 24 Nov 2014 13:07:46 +0100 Received: from CPSMTPM-TLF102.kpnxchange.com ([195.121.3.5]) by cpsps-ews13.kpnxchange.com with Microsoft SMTPSVC(7.5.7601.17514); Mon, 24 Nov 2014 13:07:46 +0100 Received: from [192.168.10.100] ([77.173.140.92]) by CPSMTPM-TLF102.kpnxchange.com with Microsoft SMTPSVC(7.5.7601.17514); Mon, 24 Nov 2014 13:07:45 +0100 Message-ID: <1416830865.10073.35.camel@x220> Subject: [PATCH] [media] omap: Fix typo "HAS_MMU" From: Paul Bolle To: Mauro Carvalho Chehab Cc: Valentin Rothberg , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Date: Mon, 24 Nov 2014 13:07:45 +0100 X-Mailer: Evolution 3.10.4 (3.10.4-4.fc20) Mime-Version: 1.0 X-OriginalArrivalTime: 24 Nov 2014 12:07:45.0610 (UTC) FILETIME=[41C252A0:01D007DF] X-RcptDomain: vger.kernel.org Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Commit 38a073116525 ("[media] omap: be sure that MMU is there for COMPILE_TEST") added a dependency on HAS_MMU. There's no Kconfig symbol HAS_MMU. Use MMU instead. Signed-off-by: Paul Bolle --- 0) Perhaps it would have been better to add a line or two explaining why MMU is now a separate dependency, as Mauro suggested. Commit 38a073116525 tells us that "COMPILE_TEST fail[s] on (some) archs without MMU". It doesn't tell on which architectures nor how it fails. And I was unable to figure that out myself so I decided to stay silent on that aspect of this patch. 1) A Fixes: line seems not worth the trouble here. 2) Tested on top of next-20141124 by doing, in short: cp arch/x86/configs/x86_64_defconfig .config echo CONFIG_COMPILE_TEST=y >> .config echo CONFIG_MEDIA_SUPPORT=y >> .config echo CONFIG_MEDIA_CAMERA_SUPPORT=y >> .config echo CONFIG_V4L_PLATFORM_DRIVERS=y >> .config echo CONFIG_VIDEO_OMAP2_VOUT=[ym] >> .config yes "" | make oldconfig both before and after applying this patch and diffing the "before" and "after" .config. Only with this patch I see CONFIG_VIDEO_OMAP2_VOUT=[ym] appear in the .config. 3) Actually, I've wasted quite a bit of time cobbling together a script to test commits locally. The test(s) I want to run is (are) saved in a git note for that commit. The script parses this note and runs the test(s). Have I been reinventing the wheel? drivers/media/platform/omap/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform/omap/Kconfig b/drivers/media/platform/omap/Kconfig index 05de442d24e4..8f27cdadf8b8 100644 --- a/drivers/media/platform/omap/Kconfig +++ b/drivers/media/platform/omap/Kconfig @@ -3,7 +3,8 @@ config VIDEO_OMAP2_VOUT_VRFB config VIDEO_OMAP2_VOUT tristate "OMAP2/OMAP3 V4L2-Display driver" - depends on ARCH_OMAP2 || ARCH_OMAP3 || (COMPILE_TEST && HAS_MMU) + depends on MMU + depends on ARCH_OMAP2 || ARCH_OMAP3 || COMPILE_TEST select VIDEOBUF_GEN select VIDEOBUF_DMA_CONTIG select OMAP2_DSS if HAS_IOMEM && ARCH_OMAP2PLUS