From: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
To: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>,
linux-fbdev@vger.kernel.org
Cc: Linux Media Mailing List <linux-media@vger.kernel.org>,
Mauro Carvalho Chehab <mchehab@infradead.org>,
Florian Tobias Schandinat <FlorianSchandinat@gmx.de>,
Hans Verkuil <hans.verkuil@cisco.com>,
Arnd Bergmann <arnd@arndb.de>,
Sakari Ailus <sakari.ailus@linux.intel.com>,
Stanimir Varbanov <stanimir.varbanov@linaro.org>,
Philipp Zabel <p.zabel@pengutronix.de>,
Ramesh Shanmugasundaram <ramesh.shanmugasundaram@bp.renesas.com>,
Jacob Chen <jacob-chen@iotwrt.com>,
Bhumika Goyal <bhumirks@gmail.com>,
Al Viro <viro@zeniv.linux.org.uk>
Subject: Re: [PATCH v2 7/7] media: via-camera: allow build on non-x86 archs with COMPILE_TEST
Date: Fri, 04 May 2018 14:07:01 +0000 [thread overview]
Message-ID: <20180504110701.5436d05c@vento.lan> (raw)
In-Reply-To: <5323943.SkjzUNBk3k@amdc3058>
Em Mon, 23 Apr 2018 14:19:31 +0200
Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> escreveu:
> How's about just allowing COMPILE_TEST for FB_VIA instead of adding
> all these stubs?
Works for me.
Do you want to apply it via your tree or via the media one?
If you prefer to apply on yours:
Reviewed-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thanks!
Mauro
>
>
> From: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
> Subject: [PATCH] video: fbdev: via: allow COMPILE_TEST build
>
> This patch allows viafb driver to be build on !X86 archs
> using COMPILE_TEST config option.
>
> Since via-camera driver (VIDEO_VIA_CAMERA) depends on viafb
> it also needs a little fixup.
>
> Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
> Cc: Mauro Carvalho Chehab <mchehab@s-opensource.com>
> Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
> ---
> drivers/media/platform/via-camera.c | 5 +++++
> drivers/video/fbdev/Kconfig | 2 +-
> drivers/video/fbdev/via/global.h | 6 ++++++
> drivers/video/fbdev/via/hw.c | 1 -
> drivers/video/fbdev/via/via-core.c | 1 -
> drivers/video/fbdev/via/via_clock.c | 2 +-
> drivers/video/fbdev/via/viafbdev.c | 1 -
> 7 files changed, 13 insertions(+), 5 deletions(-)
>
> Index: b/drivers/media/platform/via-camera.c
> =================================> --- a/drivers/media/platform/via-camera.c 2018-04-23 13:46:37.000000000 +0200
> +++ b/drivers/media/platform/via-camera.c 2018-04-23 14:01:07.873322815 +0200
> @@ -27,7 +27,12 @@
> #include <linux/via-core.h>
> #include <linux/via-gpio.h>
> #include <linux/via_i2c.h>
> +
> +#ifdef CONFIG_X86
> #include <asm/olpc.h>
> +#else
> +#define machine_is_olpc(x) 0
> +#endif
>
> #include "via-camera.h"
>
> Index: b/drivers/video/fbdev/Kconfig
> =================================> --- a/drivers/video/fbdev/Kconfig 2018-04-10 12:34:26.618867549 +0200
> +++ b/drivers/video/fbdev/Kconfig 2018-04-23 13:55:41.389314593 +0200
> @@ -1437,7 +1437,7 @@ config FB_SIS_315
>
> config FB_VIA
> tristate "VIA UniChrome (Pro) and Chrome9 display support"
> - depends on FB && PCI && X86 && GPIOLIB && I2C
> + depends on FB && PCI && GPIOLIB && I2C && (X86 || COMPILE_TEST)
> select FB_CFB_FILLRECT
> select FB_CFB_COPYAREA
> select FB_CFB_IMAGEBLIT
> Index: b/drivers/video/fbdev/via/global.h
> =================================> --- a/drivers/video/fbdev/via/global.h 2017-10-18 14:35:22.079448310 +0200
> +++ b/drivers/video/fbdev/via/global.h 2018-04-23 13:52:57.121310456 +0200
> @@ -33,6 +33,12 @@
> #include <linux/console.h>
> #include <linux/timer.h>
>
> +#ifdef CONFIG_X86
> +#include <asm/olpc.h>
> +#else
> +#define machine_is_olpc(x) 0
> +#endif
> +
> #include "debug.h"
>
> #include "viafbdev.h"
> Index: b/drivers/video/fbdev/via/hw.c
> =================================> --- a/drivers/video/fbdev/via/hw.c 2017-10-18 14:35:22.079448310 +0200
> +++ b/drivers/video/fbdev/via/hw.c 2018-04-23 13:54:24.881312666 +0200
> @@ -20,7 +20,6 @@
> */
>
> #include <linux/via-core.h>
> -#include <asm/olpc.h>
> #include "global.h"
> #include "via_clock.h"
>
> Index: b/drivers/video/fbdev/via/via-core.c
> =================================> --- a/drivers/video/fbdev/via/via-core.c 2017-11-22 14:11:59.852728679 +0100
> +++ b/drivers/video/fbdev/via/via-core.c 2018-04-23 13:53:24.893311156 +0200
> @@ -17,7 +17,6 @@
> #include <linux/platform_device.h>
> #include <linux/list.h>
> #include <linux/pm.h>
> -#include <asm/olpc.h>
>
> /*
> * The default port config.
> Index: b/drivers/video/fbdev/via/via_clock.c
> =================================> --- a/drivers/video/fbdev/via/via_clock.c 2017-10-18 14:35:22.083448309 +0200
> +++ b/drivers/video/fbdev/via/via_clock.c 2018-04-23 13:53:45.389311672 +0200
> @@ -25,7 +25,7 @@
>
> #include <linux/kernel.h>
> #include <linux/via-core.h>
> -#include <asm/olpc.h>
> +
> #include "via_clock.h"
> #include "global.h"
> #include "debug.h"
> Index: b/drivers/video/fbdev/via/viafbdev.c
> =================================> --- a/drivers/video/fbdev/via/viafbdev.c 2017-11-22 14:11:59.852728679 +0100
> +++ b/drivers/video/fbdev/via/viafbdev.c 2018-04-23 13:53:55.325311922 +0200
> @@ -25,7 +25,6 @@
> #include <linux/stat.h>
> #include <linux/via-core.h>
> #include <linux/via_i2c.h>
> -#include <asm/olpc.h>
>
> #define _MASTER_FILE
> #include "global.h"
>
>
Thanks,
Mauro
WARNING: multiple messages have this Message-ID (diff)
From: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
To: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>,
linux-fbdev@vger.kernel.org
Cc: Linux Media Mailing List <linux-media@vger.kernel.org>,
Mauro Carvalho Chehab <mchehab@infradead.org>,
Florian Tobias Schandinat <FlorianSchandinat@gmx.de>,
Hans Verkuil <hans.verkuil@cisco.com>,
Arnd Bergmann <arnd@arndb.de>,
Sakari Ailus <sakari.ailus@linux.intel.com>,
Stanimir Varbanov <stanimir.varbanov@linaro.org>,
Philipp Zabel <p.zabel@pengutronix.de>,
Ramesh Shanmugasundaram <ramesh.shanmugasundaram@bp.renesas.com>,
Jacob Chen <jacob-chen@iotwrt.com>,
Bhumika Goyal <bhumirks@gmail.com>,
Al Viro <viro@zeniv.linux.org.uk>
Subject: Re: [PATCH v2 7/7] media: via-camera: allow build on non-x86 archs with COMPILE_TEST
Date: Fri, 4 May 2018 11:07:01 -0300 [thread overview]
Message-ID: <20180504110701.5436d05c@vento.lan> (raw)
In-Reply-To: <5323943.SkjzUNBk3k@amdc3058>
Em Mon, 23 Apr 2018 14:19:31 +0200
Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> escreveu:
> How's about just allowing COMPILE_TEST for FB_VIA instead of adding
> all these stubs?
Works for me.
Do you want to apply it via your tree or via the media one?
If you prefer to apply on yours:
Reviewed-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thanks!
Mauro
>
>
> From: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
> Subject: [PATCH] video: fbdev: via: allow COMPILE_TEST build
>
> This patch allows viafb driver to be build on !X86 archs
> using COMPILE_TEST config option.
>
> Since via-camera driver (VIDEO_VIA_CAMERA) depends on viafb
> it also needs a little fixup.
>
> Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
> Cc: Mauro Carvalho Chehab <mchehab@s-opensource.com>
> Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
> ---
> drivers/media/platform/via-camera.c | 5 +++++
> drivers/video/fbdev/Kconfig | 2 +-
> drivers/video/fbdev/via/global.h | 6 ++++++
> drivers/video/fbdev/via/hw.c | 1 -
> drivers/video/fbdev/via/via-core.c | 1 -
> drivers/video/fbdev/via/via_clock.c | 2 +-
> drivers/video/fbdev/via/viafbdev.c | 1 -
> 7 files changed, 13 insertions(+), 5 deletions(-)
>
> Index: b/drivers/media/platform/via-camera.c
> ===================================================================
> --- a/drivers/media/platform/via-camera.c 2018-04-23 13:46:37.000000000 +0200
> +++ b/drivers/media/platform/via-camera.c 2018-04-23 14:01:07.873322815 +0200
> @@ -27,7 +27,12 @@
> #include <linux/via-core.h>
> #include <linux/via-gpio.h>
> #include <linux/via_i2c.h>
> +
> +#ifdef CONFIG_X86
> #include <asm/olpc.h>
> +#else
> +#define machine_is_olpc(x) 0
> +#endif
>
> #include "via-camera.h"
>
> Index: b/drivers/video/fbdev/Kconfig
> ===================================================================
> --- a/drivers/video/fbdev/Kconfig 2018-04-10 12:34:26.618867549 +0200
> +++ b/drivers/video/fbdev/Kconfig 2018-04-23 13:55:41.389314593 +0200
> @@ -1437,7 +1437,7 @@ config FB_SIS_315
>
> config FB_VIA
> tristate "VIA UniChrome (Pro) and Chrome9 display support"
> - depends on FB && PCI && X86 && GPIOLIB && I2C
> + depends on FB && PCI && GPIOLIB && I2C && (X86 || COMPILE_TEST)
> select FB_CFB_FILLRECT
> select FB_CFB_COPYAREA
> select FB_CFB_IMAGEBLIT
> Index: b/drivers/video/fbdev/via/global.h
> ===================================================================
> --- a/drivers/video/fbdev/via/global.h 2017-10-18 14:35:22.079448310 +0200
> +++ b/drivers/video/fbdev/via/global.h 2018-04-23 13:52:57.121310456 +0200
> @@ -33,6 +33,12 @@
> #include <linux/console.h>
> #include <linux/timer.h>
>
> +#ifdef CONFIG_X86
> +#include <asm/olpc.h>
> +#else
> +#define machine_is_olpc(x) 0
> +#endif
> +
> #include "debug.h"
>
> #include "viafbdev.h"
> Index: b/drivers/video/fbdev/via/hw.c
> ===================================================================
> --- a/drivers/video/fbdev/via/hw.c 2017-10-18 14:35:22.079448310 +0200
> +++ b/drivers/video/fbdev/via/hw.c 2018-04-23 13:54:24.881312666 +0200
> @@ -20,7 +20,6 @@
> */
>
> #include <linux/via-core.h>
> -#include <asm/olpc.h>
> #include "global.h"
> #include "via_clock.h"
>
> Index: b/drivers/video/fbdev/via/via-core.c
> ===================================================================
> --- a/drivers/video/fbdev/via/via-core.c 2017-11-22 14:11:59.852728679 +0100
> +++ b/drivers/video/fbdev/via/via-core.c 2018-04-23 13:53:24.893311156 +0200
> @@ -17,7 +17,6 @@
> #include <linux/platform_device.h>
> #include <linux/list.h>
> #include <linux/pm.h>
> -#include <asm/olpc.h>
>
> /*
> * The default port config.
> Index: b/drivers/video/fbdev/via/via_clock.c
> ===================================================================
> --- a/drivers/video/fbdev/via/via_clock.c 2017-10-18 14:35:22.083448309 +0200
> +++ b/drivers/video/fbdev/via/via_clock.c 2018-04-23 13:53:45.389311672 +0200
> @@ -25,7 +25,7 @@
>
> #include <linux/kernel.h>
> #include <linux/via-core.h>
> -#include <asm/olpc.h>
> +
> #include "via_clock.h"
> #include "global.h"
> #include "debug.h"
> Index: b/drivers/video/fbdev/via/viafbdev.c
> ===================================================================
> --- a/drivers/video/fbdev/via/viafbdev.c 2017-11-22 14:11:59.852728679 +0100
> +++ b/drivers/video/fbdev/via/viafbdev.c 2018-04-23 13:53:55.325311922 +0200
> @@ -25,7 +25,6 @@
> #include <linux/stat.h>
> #include <linux/via-core.h>
> #include <linux/via_i2c.h>
> -#include <asm/olpc.h>
>
> #define _MASTER_FILE
> #include "global.h"
>
>
Thanks,
Mauro
next prev parent reply other threads:[~2018-05-04 14:07 UTC|newest]
Thread overview: 94+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-20 17:42 [PATCH 0/7] Enable most media drivers to build on ARM Mauro Carvalho Chehab
2018-04-20 17:42 ` Mauro Carvalho Chehab
2018-04-20 17:42 ` Mauro Carvalho Chehab
2018-04-20 17:42 ` Mauro Carvalho Chehab
2018-04-20 17:42 ` [PATCH 1/7] asm-generic, media: allow COMPILE_TEST with virt_to_bus Mauro Carvalho Chehab
2018-04-20 17:42 ` Mauro Carvalho Chehab
2018-04-24 7:33 ` Geert Uytterhoeven
2018-04-24 7:33 ` Geert Uytterhoeven
2018-04-24 7:55 ` Arnd Bergmann
2018-04-24 7:55 ` Arnd Bergmann
2018-04-24 10:25 ` Mauro Carvalho Chehab
2018-04-24 10:25 ` Mauro Carvalho Chehab
2018-04-20 17:42 ` [PATCH 2/7] media: meye: allow building it with COMPILE_TEST on non-x86 Mauro Carvalho Chehab
2018-04-22 18:12 ` Andy Shevchenko
2018-05-04 14:12 ` [PATCH 2/7 v2] " Mauro Carvalho Chehab
2018-04-20 17:42 ` [PATCH 3/7] media: rc: allow build pnp-dependent drivers with COMPILE_TEST Mauro Carvalho Chehab
2018-04-23 8:56 ` Sean Young
2018-04-20 17:42 ` [PATCH 4/7] media: ipu3: allow building it with COMPILE_TEST on non-x86 archs Mauro Carvalho Chehab
2018-04-23 20:32 ` Sakari Ailus
2018-04-20 17:42 ` [PATCH 5/7] omapfb: omapfb_dss.h: add stubs to build with COMPILE_TEST && DRM_OMAP Mauro Carvalho Chehab
2018-04-20 17:42 ` Mauro Carvalho Chehab
2018-04-20 17:42 ` Mauro Carvalho Chehab
2018-04-23 12:47 ` Bartlomiej Zolnierkiewicz
2018-04-23 12:47 ` Bartlomiej Zolnierkiewicz
2018-04-23 12:47 ` Bartlomiej Zolnierkiewicz
2018-04-23 13:55 ` Mauro Carvalho Chehab
2018-04-23 13:55 ` Mauro Carvalho Chehab
2018-04-23 13:55 ` Mauro Carvalho Chehab
2018-04-25 10:47 ` Bartlomiej Zolnierkiewicz
2018-04-25 10:47 ` Bartlomiej Zolnierkiewicz
2018-04-25 10:47 ` Bartlomiej Zolnierkiewicz
2018-05-04 13:52 ` Mauro Carvalho Chehab
2018-05-04 13:52 ` Mauro Carvalho Chehab
2018-05-04 13:52 ` Mauro Carvalho Chehab
2018-04-23 13:56 ` Bartlomiej Zolnierkiewicz
2018-04-23 13:56 ` Bartlomiej Zolnierkiewicz
2018-04-23 13:56 ` Bartlomiej Zolnierkiewicz
2018-04-23 14:11 ` Tomi Valkeinen
2018-04-23 14:11 ` Tomi Valkeinen
2018-04-23 14:11 ` Tomi Valkeinen
2018-04-23 14:25 ` Mauro Carvalho Chehab
2018-04-23 14:25 ` Mauro Carvalho Chehab
2018-04-23 14:25 ` Mauro Carvalho Chehab
2018-04-25 11:13 ` Bartlomiej Zolnierkiewicz
2018-04-25 11:13 ` Bartlomiej Zolnierkiewicz
2018-04-25 11:13 ` Bartlomiej Zolnierkiewicz
2018-04-26 6:36 ` Tomi Valkeinen
2018-04-26 6:36 ` Tomi Valkeinen
2018-04-26 6:36 ` Tomi Valkeinen
2018-04-23 14:22 ` Mauro Carvalho Chehab
2018-04-23 14:22 ` Mauro Carvalho Chehab
2018-04-23 14:22 ` Mauro Carvalho Chehab
2018-04-23 19:48 ` Laurent Pinchart
2018-04-23 19:48 ` Laurent Pinchart
2018-04-23 19:48 ` Laurent Pinchart
2018-04-23 20:09 ` Mauro Carvalho Chehab
2018-04-23 20:09 ` Mauro Carvalho Chehab
2018-04-23 20:09 ` Mauro Carvalho Chehab
2018-04-23 20:22 ` Laurent Pinchart
2018-04-23 20:22 ` Laurent Pinchart
2018-04-23 20:22 ` Laurent Pinchart
2018-04-25 6:24 ` Tomi Valkeinen
2018-04-25 6:24 ` Tomi Valkeinen
2018-04-25 6:24 ` Tomi Valkeinen
2018-04-25 9:03 ` Laurent Pinchart
2018-04-25 9:03 ` Laurent Pinchart
2018-04-25 9:03 ` Laurent Pinchart
2018-04-25 9:33 ` Tomi Valkeinen
2018-04-25 9:33 ` Tomi Valkeinen
2018-04-25 9:33 ` Tomi Valkeinen
2018-04-25 10:02 ` Laurent Pinchart
2018-04-25 10:02 ` Laurent Pinchart
2018-04-25 10:02 ` Laurent Pinchart
2018-04-25 10:10 ` Tomi Valkeinen
2018-04-25 10:10 ` Tomi Valkeinen
2018-04-25 10:10 ` Tomi Valkeinen
2018-04-25 10:28 ` Laurent Pinchart
2018-04-25 10:28 ` Laurent Pinchart
2018-04-25 10:28 ` Laurent Pinchart
2018-04-20 17:42 ` [PATCH 6/7] media: omap2: allow building it " Mauro Carvalho Chehab
2018-04-20 17:42 ` [PATCH 7/7] media: via-camera: allow build on non-x86 archs with COMPILE_TEST Mauro Carvalho Chehab
2018-04-20 17:42 ` Mauro Carvalho Chehab
2018-04-20 19:03 ` [PATCH v2 " Mauro Carvalho Chehab
2018-04-20 19:03 ` Mauro Carvalho Chehab
2018-04-23 12:19 ` Bartlomiej Zolnierkiewicz
2018-04-23 12:19 ` Bartlomiej Zolnierkiewicz
2018-05-04 14:02 ` Mauro Carvalho Chehab
2018-05-04 14:02 ` Mauro Carvalho Chehab
2018-05-04 14:07 ` Mauro Carvalho Chehab [this message]
2018-05-04 14:07 ` Mauro Carvalho Chehab
2018-05-04 14:24 ` Bartlomiej Zolnierkiewicz
2018-05-04 14:24 ` Bartlomiej Zolnierkiewicz
2018-05-15 10:26 ` Bartlomiej Zolnierkiewicz
2018-05-15 10:26 ` Bartlomiej Zolnierkiewicz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180504110701.5436d05c@vento.lan \
--to=mchehab+samsung@kernel.org \
--cc=FlorianSchandinat@gmx.de \
--cc=arnd@arndb.de \
--cc=b.zolnierkie@samsung.com \
--cc=bhumirks@gmail.com \
--cc=hans.verkuil@cisco.com \
--cc=jacob-chen@iotwrt.com \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@infradead.org \
--cc=p.zabel@pengutronix.de \
--cc=ramesh.shanmugasundaram@bp.renesas.com \
--cc=sakari.ailus@linux.intel.com \
--cc=stanimir.varbanov@linaro.org \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.