Message ID | 1451481963-18853-1-git-send-email-sudipm.mukherjee@gmail.com (mailing list archive) |
---|---|
State | Accepted, archived |
Headers |
Received: from mail.tu-berlin.de ([130.149.7.33]) by www.linuxtv.org with esmtp (Exim 4.84) (envelope-from <linux-media-owner@vger.kernel.org>) id 1aEGnE-0007fg-2o; Wed, 30 Dec 2015 13:27:56 +0000 X-tubIT-Incoming-IP: 209.132.180.67 Received: from vger.kernel.org ([209.132.180.67]) by mail.tu-berlin.de (exim-4.76/mailfrontend-5) with esmtp id 1aEGnC-0001OU-6S; Wed, 30 Dec 2015 14:27:55 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754939AbbL3N1j (ORCPT <rfc822;mkrufky@linuxtv.org> + 1 other); Wed, 30 Dec 2015 08:27:39 -0500 Received: from mail-pa0-f46.google.com ([209.85.220.46]:33050 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755163AbbL3N0K (ORCPT <rfc822;linux-media@vger.kernel.org>); Wed, 30 Dec 2015 08:26:10 -0500 Received: by mail-pa0-f46.google.com with SMTP id cy9so138663028pac.0; Wed, 30 Dec 2015 05:26:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=h8Pqj+YVTsUHtHBmwQ2OWvewAAGz8IxESy+xyGitLoY=; b=ev92woTyyoNdBYMcG3UkJqggG71PIfRKnEE4Da26MjrnxrGN1zt78zHwiCzDaDlMY9 XXHfQ8oGGCSIK9hAqykjhfKTxJh5AH9pxf/fA5yrimT//tCHWzhD/EZsJr3ZKlGzbClm m+5FeRMhD2tzAz5gj3L6lSCeQY0CkDims4hRzp/065ePU9M/9Mgz0g2OulGa+eIweLqr hMKEugz12MfX85TjsQ55NjZ/XNenvr1NqQaHxc1BQDioVAMbhdMHOns4U+3bRrq4Da/x oQtDiOxM5MdziaW5KBQY3iK+3qKlkYBF0ClpnJ9gxfq1C11m9EHkRuM1KK78OoJvLVDd CuIw== X-Received: by 10.66.142.201 with SMTP id ry9mr94813066pab.89.1451481970255; Wed, 30 Dec 2015 05:26:10 -0800 (PST) Received: from sudip-pc.vectortproxy.org ([183.82.231.11]) by smtp.gmail.com with ESMTPSA id 19sm59705978pfi.73.2015.12.30.05.26.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 30 Dec 2015 05:26:09 -0800 (PST) From: Sudip Mukherjee <sudipm.mukherjee@gmail.com> To: Mauro Carvalho Chehab <mchehab@osg.samsung.com> Cc: linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, Andrew Morton <akpm@linux-foundation.org>, Sudip Mukherjee <sudipm.mukherjee@gmail.com> Subject: [PATCH] [media] media: Kconfig: add dependency of HAS_DMA Date: Wed, 30 Dec 2015 18:56:03 +0530 Message-Id: <1451481963-18853-1-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: <linux-media.vger.kernel.org> X-Mailing-List: linux-media@vger.kernel.org X-PMX-Version: 6.0.0.2142326, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2015.12.30.132116 X-PMX-Spam: Gauge=IIIIIIIII, Probability=9%, Report=' FORGED_FROM_GMAIL 0.1, MULTIPLE_RCPTS 0.1, HTML_00_01 0.05, HTML_00_10 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1200_1299 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, DKIM_SIGNATURE 0, NO_URI_HTTPS 0, SINGLE_URI_IN_BODY 0, URI_ENDS_IN_HTML 0, __ANY_URI 0, __CP_URI_IN_BODY 0, __FRAUD_WEBMAIL 0, __FRAUD_WEBMAIL_FROM 0, __FROM_GMAIL 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __HAS_X_MAILING_LIST 0, __MIME_TEXT_ONLY 0, __MULTIPLE_RCPTS_CC_X2 0, __PHISH_SPEAR_STRUCTURE_1 0, __SANE_MSGID 0, __SINGLE_URI_TEXT 0, __TO_MALFORMED_2 0, __URI_IN_BODY 0, __URI_NO_WWW 0, __URI_NS , __YOUTUBE_RCVD 0' |
Commit Message
Sudip Mukherjee
Dec. 30, 2015, 1:26 p.m. UTC
The build of m32r allmodconfig fails with the error:
drivers/media/v4l2-core/videobuf2-dma-contig.c:484:2:
error: implicit declaration of function 'dma_get_cache_alignment'
The build of videobuf2-dma-contig.c depends on HAS_DMA and it is
correctly mentioned in the Kconfig but the symbol VIDEO_STI_BDISP also
selects VIDEOBUF2_DMA_CONTIG, so it is trying to compile
videobuf2-dma-contig.c even though HAS_DMA is not defined.
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
---
drivers/media/platform/Kconfig | 1 +
1 file changed, 1 insertion(+)
Comments
On Wed, Dec 30, 2015 at 06:56:03PM +0530, Sudip Mukherjee wrote: > The build of m32r allmodconfig fails with the error: > drivers/media/v4l2-core/videobuf2-dma-contig.c:484:2: > error: implicit declaration of function 'dma_get_cache_alignment' > > The build of videobuf2-dma-contig.c depends on HAS_DMA and it is > correctly mentioned in the Kconfig but the symbol VIDEO_STI_BDISP also > selects VIDEOBUF2_DMA_CONTIG, so it is trying to compile > videobuf2-dma-contig.c even though HAS_DMA is not defined. > > Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> > --- A gentle ping. m32r allmodconfig still fails with next-20160111. Build log is at: https://travis-ci.org/sudipm-mukherjee/parport/jobs/101536379 regards sudip -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Mon, Jan 11, 2016 at 06:23:11PM +0530, Sudip Mukherjee wrote: > On Wed, Dec 30, 2015 at 06:56:03PM +0530, Sudip Mukherjee wrote: > > The build of m32r allmodconfig fails with the error: > > drivers/media/v4l2-core/videobuf2-dma-contig.c:484:2: > > error: implicit declaration of function 'dma_get_cache_alignment' > > > > The build of videobuf2-dma-contig.c depends on HAS_DMA and it is > > correctly mentioned in the Kconfig but the symbol VIDEO_STI_BDISP also > > selects VIDEOBUF2_DMA_CONTIG, so it is trying to compile > > videobuf2-dma-contig.c even though HAS_DMA is not defined. > > > > Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> > > --- > > A gentle ping. m32r allmodconfig still fails with next-20160111. Build > log is at: > https://travis-ci.org/sudipm-mukherjee/parport/jobs/101536379 Hi Sudip, Even though the issue now manifests itself on m32r, the problem is wider than that: dma_get_cache_alignment() is only defined if CONFIG_HAS_DMA is set. I wonder if using videobuf2-dma-contig makes any sense if HAS_DMA is disabled, so perhaps it'd be possible to make it depend on HAS_DMA. Cc others.
On Tue, Jan 12, 2016 at 04:10:43PM +0200, Sakari Ailus wrote: > On Mon, Jan 11, 2016 at 06:23:11PM +0530, Sudip Mukherjee wrote: > > On Wed, Dec 30, 2015 at 06:56:03PM +0530, Sudip Mukherjee wrote: > > > The build of m32r allmodconfig fails with the error: > > > drivers/media/v4l2-core/videobuf2-dma-contig.c:484:2: > > > error: implicit declaration of function 'dma_get_cache_alignment' > > > > > > The build of videobuf2-dma-contig.c depends on HAS_DMA and it is > > > correctly mentioned in the Kconfig but the symbol VIDEO_STI_BDISP also > > > selects VIDEOBUF2_DMA_CONTIG, so it is trying to compile > > > videobuf2-dma-contig.c even though HAS_DMA is not defined. > > > > > > Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> > > > --- > > > > A gentle ping. m32r allmodconfig still fails with next-20160111. Build > > log is at: > > https://travis-ci.org/sudipm-mukherjee/parport/jobs/101536379 > > Hi Sudip, > > Even though the issue now manifests itself on m32r, the problem is wider > than that: dma_get_cache_alignment() is only defined if CONFIG_HAS_DMA is > set. > > I wonder if using videobuf2-dma-contig makes any sense if HAS_DMA is > disabled, so perhaps it'd be possible to make it depend on HAS_DMA. I have checked with all the Kconfig which selects VIDEOBUF2_DMA_CONTIG and all of them does depend on HAS_DMA. This is the only place where it was missing. regards sudip -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Hello, On 2016-01-12 15:10, Sakari Ailus wrote: > On Mon, Jan 11, 2016 at 06:23:11PM +0530, Sudip Mukherjee wrote: >> On Wed, Dec 30, 2015 at 06:56:03PM +0530, Sudip Mukherjee wrote: >>> The build of m32r allmodconfig fails with the error: >>> drivers/media/v4l2-core/videobuf2-dma-contig.c:484:2: >>> error: implicit declaration of function 'dma_get_cache_alignment' >>> >>> The build of videobuf2-dma-contig.c depends on HAS_DMA and it is >>> correctly mentioned in the Kconfig but the symbol VIDEO_STI_BDISP also >>> selects VIDEOBUF2_DMA_CONTIG, so it is trying to compile >>> videobuf2-dma-contig.c even though HAS_DMA is not defined. >>> >>> Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> >>> --- >> A gentle ping. m32r allmodconfig still fails with next-20160111. Build >> log is at: >> https://travis-ci.org/sudipm-mukherjee/parport/jobs/101536379 > Hi Sudip, > > Even though the issue now manifests itself on m32r, the problem is wider > than that: dma_get_cache_alignment() is only defined if CONFIG_HAS_DMA is > set. > > I wonder if using videobuf2-dma-contig makes any sense if HAS_DMA is > disabled, so perhaps it'd be possible to make it depend on HAS_DMA. VIDEOBUF2_DMA_CONTIG already depends on HAS_DMA, but when driver use select directive for enabling support for VIDEOBUF2_DMA_CONTIG, the dependencies are not checked further. This is known limitation/feature of kconfig system. Best regards
Hi Marek and Sudip, On Wed, Jan 13, 2016 at 03:36:39PM +0100, Marek Szyprowski wrote: > Hello, > > On 2016-01-12 15:10, Sakari Ailus wrote: > >On Mon, Jan 11, 2016 at 06:23:11PM +0530, Sudip Mukherjee wrote: > >>On Wed, Dec 30, 2015 at 06:56:03PM +0530, Sudip Mukherjee wrote: > >>>The build of m32r allmodconfig fails with the error: > >>>drivers/media/v4l2-core/videobuf2-dma-contig.c:484:2: > >>> error: implicit declaration of function 'dma_get_cache_alignment' > >>> > >>>The build of videobuf2-dma-contig.c depends on HAS_DMA and it is > >>>correctly mentioned in the Kconfig but the symbol VIDEO_STI_BDISP also > >>>selects VIDEOBUF2_DMA_CONTIG, so it is trying to compile > >>>videobuf2-dma-contig.c even though HAS_DMA is not defined. > >>> > >>>Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> > >>>--- > >>A gentle ping. m32r allmodconfig still fails with next-20160111. Build > >>log is at: > >>https://travis-ci.org/sudipm-mukherjee/parport/jobs/101536379 > >Hi Sudip, > > > >Even though the issue now manifests itself on m32r, the problem is wider > >than that: dma_get_cache_alignment() is only defined if CONFIG_HAS_DMA is > >set. > > > >I wonder if using videobuf2-dma-contig makes any sense if HAS_DMA is > >disabled, so perhaps it'd be possible to make it depend on HAS_DMA. > > VIDEOBUF2_DMA_CONTIG already depends on HAS_DMA, but when driver use select > directive for enabling support for VIDEOBUF2_DMA_CONTIG, the dependencies > are not checked further. This is known limitation/feature of kconfig system. Thanks for the insight. Sounds like this is the right thing to do then. Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
On Wed, Dec 30, 2015 at 2:26 PM, Sudip Mukherjee <sudipm.mukherjee@gmail.com> wrote: > The build of m32r allmodconfig fails with the error: > drivers/media/v4l2-core/videobuf2-dma-contig.c:484:2: > error: implicit declaration of function 'dma_get_cache_alignment' > > The build of videobuf2-dma-contig.c depends on HAS_DMA and it is > correctly mentioned in the Kconfig but the symbol VIDEO_STI_BDISP also > selects VIDEOBUF2_DMA_CONTIG, so it is trying to compile > videobuf2-dma-contig.c even though HAS_DMA is not defined. > > Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi Mauro, On Thu, Jan 14, 2016 at 10:46:59AM +0200, Sakari Ailus wrote: > Hi Marek and Sudip, > > On Wed, Jan 13, 2016 at 03:36:39PM +0100, Marek Szyprowski wrote: > > Hello, > > > > On 2016-01-12 15:10, Sakari Ailus wrote: > > >On Mon, Jan 11, 2016 at 06:23:11PM +0530, Sudip Mukherjee wrote: > > >>On Wed, Dec 30, 2015 at 06:56:03PM +0530, Sudip Mukherjee wrote: > > >>>The build of m32r allmodconfig fails with the error: > > >>>drivers/media/v4l2-core/videobuf2-dma-contig.c:484:2: > > >>> error: implicit declaration of function 'dma_get_cache_alignment' > > >>> > > >>>The build of videobuf2-dma-contig.c depends on HAS_DMA and it is > > >>>correctly mentioned in the Kconfig but the symbol VIDEO_STI_BDISP also > > >>>selects VIDEOBUF2_DMA_CONTIG, so it is trying to compile > > >>>videobuf2-dma-contig.c even though HAS_DMA is not defined. > > >>> > > >>>Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> > > >>>--- > > >>A gentle ping. m32r allmodconfig still fails with next-20160111. Build > > >>log is at: > > >>https://travis-ci.org/sudipm-mukherjee/parport/jobs/101536379 > > >Hi Sudip, > > > > > >Even though the issue now manifests itself on m32r, the problem is wider > > >than that: dma_get_cache_alignment() is only defined if CONFIG_HAS_DMA is > > >set. > > > > > >I wonder if using videobuf2-dma-contig makes any sense if HAS_DMA is > > >disabled, so perhaps it'd be possible to make it depend on HAS_DMA. > > > > VIDEOBUF2_DMA_CONTIG already depends on HAS_DMA, but when driver use select > > directive for enabling support for VIDEOBUF2_DMA_CONTIG, the dependencies > > are not checked further. This is known limitation/feature of kconfig system. > > Thanks for the insight. Sounds like this is the right thing to do then. > > Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com> I got an update from patchwork that it has been accepted, but I still do not see it in linux-next or in rc2. m32r allmodconfig build still fails. build log of next-20160203 is at https://travis-ci.org/sudipm-mukherjee/parport/jobs/106657434 regards sudip -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi Sudip, On Wed, Feb 03, 2016 at 01:31:03PM +0530, Sudip Mukherjee wrote: > Hi Mauro, > > On Thu, Jan 14, 2016 at 10:46:59AM +0200, Sakari Ailus wrote: > > Hi Marek and Sudip, > > > > On Wed, Jan 13, 2016 at 03:36:39PM +0100, Marek Szyprowski wrote: > > > Hello, > > > > > > On 2016-01-12 15:10, Sakari Ailus wrote: > > > >On Mon, Jan 11, 2016 at 06:23:11PM +0530, Sudip Mukherjee wrote: > > > >>On Wed, Dec 30, 2015 at 06:56:03PM +0530, Sudip Mukherjee wrote: > > > >>>The build of m32r allmodconfig fails with the error: > > > >>>drivers/media/v4l2-core/videobuf2-dma-contig.c:484:2: > > > >>> error: implicit declaration of function 'dma_get_cache_alignment' > > > >>> > > > >>>The build of videobuf2-dma-contig.c depends on HAS_DMA and it is > > > >>>correctly mentioned in the Kconfig but the symbol VIDEO_STI_BDISP also > > > >>>selects VIDEOBUF2_DMA_CONTIG, so it is trying to compile > > > >>>videobuf2-dma-contig.c even though HAS_DMA is not defined. > > > >>> > > > >>>Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> > > > >>>--- > > > >>A gentle ping. m32r allmodconfig still fails with next-20160111. Build > > > >>log is at: > > > >>https://travis-ci.org/sudipm-mukherjee/parport/jobs/101536379 > > > >Hi Sudip, > > > > > > > >Even though the issue now manifests itself on m32r, the problem is wider > > > >than that: dma_get_cache_alignment() is only defined if CONFIG_HAS_DMA is > > > >set. > > > > > > > >I wonder if using videobuf2-dma-contig makes any sense if HAS_DMA is > > > >disabled, so perhaps it'd be possible to make it depend on HAS_DMA. > > > > > > VIDEOBUF2_DMA_CONTIG already depends on HAS_DMA, but when driver use select > > > directive for enabling support for VIDEOBUF2_DMA_CONTIG, the dependencies > > > are not checked further. This is known limitation/feature of kconfig system. > > > > Thanks for the insight. Sounds like this is the right thing to do then. > > > > Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com> > > I got an update from patchwork that it has been accepted, but I still do > not see it in linux-next or in rc2. m32r allmodconfig build still fails. > build log of next-20160203 is at > https://travis-ci.org/sudipm-mukherjee/parport/jobs/106657434 Your patch is in the fixes branch of media-tree. It'll end up to mainline eventually (4.5 I presume).
diff --git a/drivers/media/platform/Kconfig b/drivers/media/platform/Kconfig index 5263594..8b89ebe1 100644 --- a/drivers/media/platform/Kconfig +++ b/drivers/media/platform/Kconfig @@ -215,6 +215,7 @@ config VIDEO_SAMSUNG_EXYNOS_GSC config VIDEO_STI_BDISP tristate "STMicroelectronics BDISP 2D blitter driver" depends on VIDEO_DEV && VIDEO_V4L2 + depends on HAS_DMA depends on ARCH_STI || COMPILE_TEST select VIDEOBUF2_DMA_CONTIG select V4L2_MEM2MEM_DEV