Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp268212ybi; Wed, 29 May 2019 21:02:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqwtygBY1orGCmJgsq8YM7bAET3tQkfE0o5pEYobcGu5CiyK8O3aoox0wcizuJ8uDKnhxx7u X-Received: by 2002:a63:3d0b:: with SMTP id k11mr1857159pga.349.1559188939585; Wed, 29 May 2019 21:02:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559188939; cv=none; d=google.com; s=arc-20160816; b=wOAhEOR0XNCrDWZDM/cMF1ksW9+utI5xveRofHqENUfiXxxLsKbXNcOkYtA7eYHOo5 ppyNZqRBPqY0nhMq0VcYJ5LIQ9ueOGBvzPldE/do3tL6t0/jvptEh3zvGySRhI7Xhhk4 dT9fZHBRrWXIrGgq2G3t0Lx5p2BgXgT15xzUag1X3UHAJa/qUkZnEYsVTYP380sW/R9s fsTg+rZl7+q6Avq6c4NV+NfRBRHJu/zE/DDaRGFF7Q2xa4QU5MYUwNf7GMKatwLzWCTf SD3GEnHnuWP9OXlpdJ+qF3hUjLp096JmDys+0Q6XGwytlToMUHdOdeeWDc4ofza6AgOp 0k9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=80+mDelC1ZDZKjNg3l2t8Io1zAHL85s+zs+o3cSGEHc=; b=mXIzPxUUsMNIc6hqXvd3Y7m0OEc8DHN/tvASYxRxUWWXOja71yIr3SSE0NmrIUfbxx fycsdQIaKLnwNgMcTyxHz+59MecaB8THHVNFaT2iXoa+5GSdg5YhBXmjRElw48TrZQBm 4fCCR4z9CYN9WMvLZirwyosurQR+uUgB1rnVheBfhO7TRdBWi6x6ExoeOVRUqut4e3EV ZdcQsb2pYJCSRHnPTzSh8Ckbdc+1WePGd1kLE1uCO4DWioH3DRy2V87jUxizqzX5B87q 0OJ2HiJ9RPAiWV2kh03Zn+QkAQbhKW6lFIqXwWoq0Oe/45P/5Ma8v5AAkOL/II8G4eb0 1+fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MjnKHtbU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g90si2026911plb.282.2019.05.29.21.02.03; Wed, 29 May 2019 21:02:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MjnKHtbU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731775AbfE3EBA (ORCPT + 99 others); Thu, 30 May 2019 00:01:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:50424 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731472AbfE3DSO (ORCPT ); Wed, 29 May 2019 23:18:14 -0400 Received: from localhost (ip67-88-213-2.z213-88-67.customer.algx.net [67.88.213.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7B5912478C; Thu, 30 May 2019 03:18:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559186293; bh=VXQLeDfoSz4hky/VbJ78p/pF58lpzAFNQGeTBEj+as0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MjnKHtbUyziQ+oRm59YEdxWk/ApMq4dFMdp1Wyju0WlCXCE6trRVrvuvXLchY09cJ LhoYSmSDTAa3S5ilORv7bEfNb0ih99BOt12frWp9uhtWvQI5mMqV0O33SCaAbtFOIm g9X32/lTnhOhwebjmI2rCEEVgnIcc+6gH61eDdkw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Hans Verkuil , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 4.19 252/276] media: staging: davinci_vpfe: disallow building with COMPILE_TEST Date: Wed, 29 May 2019 20:06:50 -0700 Message-Id: <20190530030540.894690461@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190530030523.133519668@linuxfoundation.org> References: <20190530030523.133519668@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit 49dc762cffd8305a861ca649e82dc5533b3e3344 ] The driver should really call dm365_isif_setup_pinmux() through a callback, but uses a hack to include a davinci specific machine header file when compile testing instead. This works almost everywhere, but not on the ARM omap1 platform, which has another header named mach/mux.h. This causes a build failure: drivers/staging/media/davinci_vpfe/dm365_isif.c:2028:2: error: implicit declaration of function 'davinci_cfg_reg' [-Werror,-Wimplicit-function-declaration] davinci_cfg_reg(DM365_VIN_CAM_WEN); ^ drivers/staging/media/davinci_vpfe/dm365_isif.c:2028:2: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes] drivers/staging/media/davinci_vpfe/dm365_isif.c:2028:18: error: use of undeclared identifier 'DM365_VIN_CAM_WEN' davinci_cfg_reg(DM365_VIN_CAM_WEN); ^ drivers/staging/media/davinci_vpfe/dm365_isif.c:2029:18: error: use of undeclared identifier 'DM365_VIN_CAM_VD' davinci_cfg_reg(DM365_VIN_CAM_VD); ^ drivers/staging/media/davinci_vpfe/dm365_isif.c:2030:18: error: use of undeclared identifier 'DM365_VIN_CAM_HD' davinci_cfg_reg(DM365_VIN_CAM_HD); ^ drivers/staging/media/davinci_vpfe/dm365_isif.c:2031:18: error: use of undeclared identifier 'DM365_VIN_YIN4_7_EN' davinci_cfg_reg(DM365_VIN_YIN4_7_EN); ^ drivers/staging/media/davinci_vpfe/dm365_isif.c:2032:18: error: use of undeclared identifier 'DM365_VIN_YIN0_3_EN' davinci_cfg_reg(DM365_VIN_YIN0_3_EN); ^ 7 errors generated. Exclude omap1 from compile-testing, under the assumption that all others still work. Fixes: 4907c73deefe ("media: staging: davinci_vpfe: allow building with COMPILE_TEST") Signed-off-by: Arnd Bergmann Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/staging/media/davinci_vpfe/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/davinci_vpfe/Kconfig b/drivers/staging/media/davinci_vpfe/Kconfig index aea449a8dbf8a..76818cc48ddcb 100644 --- a/drivers/staging/media/davinci_vpfe/Kconfig +++ b/drivers/staging/media/davinci_vpfe/Kconfig @@ -1,7 +1,7 @@ config VIDEO_DM365_VPFE tristate "DM365 VPFE Media Controller Capture Driver" depends on VIDEO_V4L2 - depends on (ARCH_DAVINCI_DM365 && !VIDEO_DM365_ISIF) || COMPILE_TEST + depends on (ARCH_DAVINCI_DM365 && !VIDEO_DM365_ISIF) || (COMPILE_TEST && !ARCH_OMAP1) depends on VIDEO_V4L2_SUBDEV_API depends on VIDEO_DAVINCI_VPBE_DISPLAY select VIDEOBUF2_DMA_CONTIG -- 2.20.1