* [PATCH v2 00/35] Enable compilation test for several drivers
@ 2014-08-26 21:54 Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 01/35] [media] vpif_display: get rid of some unused vars Mauro Carvalho Chehab
` (34 more replies)
0 siblings, 35 replies; 39+ messages in thread
From: Mauro Carvalho Chehab @ 2014-08-26 21:54 UTC (permalink / raw)
Cc: Mauro Carvalho Chehab, Linux Media Mailing List,
Mauro Carvalho Chehab
There are several platform drivers that compile on x86.
Let them to be compiled, if COMPILE_TEST is enabled. This
helped to identify several issues on those drivers.
Also, by doing that, Coverity and other static source code
analyzers can help to identify other issues on those drivers.
I moved the patches that enables the build to the end, in order
to avoid having lots of report from kbuildtest about
potential breakages and/or warnings.
Mauro Carvalho Chehab (35):
[media] vpif_display: get rid of some unused vars
[media] vpif_capture: get rid of some unused vars
[media] dm644x_ccdc: declare some functions as static
[media] dm355_ccdc: declare a function as static
[media] gsc-core: Remove useless test
[media] gsc-m2m: Remove an unused var.
[media] ti-vpe: use %pad for dma address
[media] ti-vpe: shut up a casting warning message
[media] atmel-isi: tag dma_addr_t as such
[media] atmel-isi: Fix a truncate warning
[media] s5p_mfc: don't use an external symbol called 'debug'
[media] vpif: don't cast pointers to int
[media] dm644x_ccdc: use unsigned long for fpc_table_addr
[media] dvb_frontend: estimate bandwidth also for DVB-S/S2/Turbo
[media] gsc: Use %pad for dma_addr_t
[media] omap: fix compilation if !VIDEO_OMAP2_VOUT_VRFB
[media] omap_vout: Get rid of a few warnings
[media] s5p-jpeg: get rid of some warnings
[media] g2d: remove unused var
[media] fimc-is-param: get rid of warnings
[media] s5p_mfc_ctrl: add missing s5p_mfc_ctrl.h header
[media] s5p_mfc: get rid of several warnings
[media] mipi-csis: get rid of a warning
[media] exynos4-is/media-dev: get rid of a warning for a dead code
[media] mx2_camera: get rid of a warning
[media] atmel-isi: get rid of a warning
[media] s5p-jpeg: Get rid of a warning
Revert "[media] staging: omap4iss: copy paste error in iss_get_clocks"
[media] enable COMPILE_TEST for MX2 eMMa-PrP driver
[media] enable COMPILE_TEST for ti-vbe
[media] allow COMPILE_TEST for SAMSUNG_EXYNOS4_IS
[media] enable COMPILE_TEST for OMAP2 vout
[media] enable COMPILE_TEST for media drivers
[media] be sure that HAS_DMA is enabled for vb2-dma-contig
[media] omap: be sure that MMU is there for COMPILE_TEST
drivers/media/dvb-core/dvb_frontend.c | 17 ++++++++++
drivers/media/pci/solo6x10/Kconfig | 1 +
drivers/media/pci/sta2x11/Kconfig | 1 +
drivers/media/platform/Kconfig | 39 +++++++++++++++++-----
drivers/media/platform/Makefile | 2 +-
drivers/media/platform/blackfin/Kconfig | 1 +
drivers/media/platform/davinci/Kconfig | 18 +++++++---
drivers/media/platform/davinci/dm355_ccdc.c | 2 +-
drivers/media/platform/davinci/dm644x_ccdc.c | 14 ++++----
drivers/media/platform/davinci/vpfe_capture.c | 2 +-
drivers/media/platform/davinci/vpif_capture.c | 6 +---
drivers/media/platform/davinci/vpif_display.c | 14 +++-----
drivers/media/platform/exynos-gsc/gsc-core.c | 6 ++--
drivers/media/platform/exynos-gsc/gsc-m2m.c | 3 --
drivers/media/platform/exynos-gsc/gsc-regs.c | 8 ++---
drivers/media/platform/exynos4-is/Kconfig | 5 ++-
drivers/media/platform/exynos4-is/fimc-is-errno.c | 4 +--
drivers/media/platform/exynos4-is/fimc-is-errno.h | 4 +--
drivers/media/platform/exynos4-is/fimc-is-param.c | 2 --
drivers/media/platform/exynos4-is/media-dev.c | 4 ++-
drivers/media/platform/exynos4-is/mipi-csis.c | 3 +-
drivers/media/platform/marvell-ccic/Kconfig | 2 ++
drivers/media/platform/mx2_emmaprp.c | 2 +-
drivers/media/platform/omap/Kconfig | 2 +-
drivers/media/platform/omap/omap_vout.c | 8 ++---
drivers/media/platform/omap/omap_vout_vrfb.h | 18 +++++-----
drivers/media/platform/s5p-g2d/g2d.c | 7 ++--
drivers/media/platform/s5p-jpeg/jpeg-core.c | 2 +-
.../media/platform/s5p-jpeg/jpeg-hw-exynos3250.c | 2 ++
drivers/media/platform/s5p-jpeg/jpeg-hw-s5p.c | 2 +-
drivers/media/platform/s5p-mfc/s5p_mfc.c | 6 ++--
drivers/media/platform/s5p-mfc/s5p_mfc_cmd_v5.c | 1 +
drivers/media/platform/s5p-mfc/s5p_mfc_cmd_v6.c | 1 +
drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c | 1 +
drivers/media/platform/s5p-mfc/s5p_mfc_debug.h | 6 ++--
drivers/media/platform/s5p-mfc/s5p_mfc_dec.c | 4 +--
drivers/media/platform/s5p-mfc/s5p_mfc_enc.c | 7 ++--
drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c | 2 --
drivers/media/platform/s5p-tv/Kconfig | 4 ++-
drivers/media/platform/soc_camera/Kconfig | 16 +++++++--
drivers/media/platform/soc_camera/atmel-isi.c | 13 ++++----
drivers/media/platform/soc_camera/mx2_camera.c | 3 +-
drivers/media/platform/ti-vpe/vpdma.c | 4 +--
drivers/media/platform/ti-vpe/vpe.c | 1 +
drivers/media/rc/Kconfig | 5 +--
drivers/staging/media/davinci_vpfe/Kconfig | 1 +
drivers/staging/media/dt3155v4l/Kconfig | 1 +
drivers/staging/media/omap4iss/Kconfig | 1 +
drivers/staging/media/omap4iss/iss.c | 1 -
include/media/davinci/dm644x_ccdc.h | 2 +-
50 files changed, 166 insertions(+), 115 deletions(-)
--
1.9.3
^ permalink raw reply [flat|nested] 39+ messages in thread
* [PATCH v2 01/35] [media] vpif_display: get rid of some unused vars
2014-08-26 21:54 [PATCH v2 00/35] Enable compilation test for several drivers Mauro Carvalho Chehab
@ 2014-08-26 21:54 ` Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 02/35] [media] vpif_capture: " Mauro Carvalho Chehab
` (33 subsequent siblings)
34 siblings, 0 replies; 39+ messages in thread
From: Mauro Carvalho Chehab @ 2014-08-26 21:54 UTC (permalink / raw)
Cc: Mauro Carvalho Chehab, Linux Media Mailing List,
Mauro Carvalho Chehab
drivers/media/platform/davinci/vpif_display.c: In function 'vpif_channel_isr':
drivers/media/platform/davinci/vpif_display.c:363:18: warning: variable 'field'
set but not used [-Wunused-but-set-variable]
enum v4l2_field field;
^
drivers/media/platform/davinci/vpif_display.c: In function 'vpif_calculate_offs
ets':
drivers/media/platform/davinci/vpif_display.c:505:23: warning: variable 'vpitch
' set but not used [-Wunused-but-set-variable]
unsigned int hpitch, vpitch, sizeimage;
^
drivers/media/platform/davinci/vpif_display.c: In function 'vpif_set_output':
drivers/media/platform/davinci/vpif_display.c:816:27: warning: variable 'subdev
_info' set but not used [-Wunused-but-set-variable]
struct vpif_subdev_info *subdev_info = NULL;
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
---
drivers/media/platform/davinci/vpif_display.c | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/drivers/media/platform/davinci/vpif_display.c b/drivers/media/platform/davinci/vpif_display.c
index a03ec7381cfe..aaa9ec06630f 100644
--- a/drivers/media/platform/davinci/vpif_display.c
+++ b/drivers/media/platform/davinci/vpif_display.c
@@ -360,7 +360,6 @@ static irqreturn_t vpif_channel_isr(int irq, void *dev_id)
struct vpif_device *dev = &vpif_obj;
struct channel_obj *ch;
struct common_obj *common;
- enum v4l2_field field;
int fid = -1, i;
int channel_id = 0;
@@ -369,7 +368,6 @@ static irqreturn_t vpif_channel_isr(int irq, void *dev_id)
return IRQ_NONE;
ch = dev->dev[channel_id];
- field = ch->common[VPIF_VIDEO_INDEX].fmt.fmt.pix.field;
for (i = 0; i < VPIF_NUMOBJECTS; i++) {
common = &ch->common[i];
/* If streaming is started in this channel */
@@ -502,7 +500,7 @@ static void vpif_calculate_offsets(struct channel_obj *ch)
struct vpif_params *vpifparams = &ch->vpifparams;
enum v4l2_field field = common->fmt.fmt.pix.field;
struct video_obj *vid_ch = &ch->video;
- unsigned int hpitch, vpitch, sizeimage;
+ unsigned int hpitch, sizeimage;
if (V4L2_FIELD_ANY == common->fmt.fmt.pix.field) {
if (ch->vpifparams.std_info.frm_fmt)
@@ -516,7 +514,6 @@ static void vpif_calculate_offsets(struct channel_obj *ch)
sizeimage = common->fmt.fmt.pix.sizeimage;
hpitch = common->fmt.fmt.pix.bytesperline;
- vpitch = sizeimage / (hpitch * 2);
if ((V4L2_FIELD_NONE == vid_ch->buf_field) ||
(V4L2_FIELD_INTERLACED == vid_ch->buf_field)) {
common->ytop_off = 0;
@@ -813,17 +810,14 @@ static int vpif_set_output(struct vpif_display_config *vpif_cfg,
{
struct vpif_display_chan_config *chan_cfg =
&vpif_cfg->chan_config[ch->channel_id];
- struct vpif_subdev_info *subdev_info = NULL;
struct v4l2_subdev *sd = NULL;
u32 input = 0, output = 0;
int sd_index;
int ret;
sd_index = vpif_output_to_subdev(vpif_cfg, chan_cfg, index);
- if (sd_index >= 0) {
+ if (sd_index >= 0)
sd = vpif_obj.sd[sd_index];
- subdev_info = &vpif_cfg->subdevinfo[sd_index];
- }
if (sd) {
input = chan_cfg->outputs[index].input_route;
--
1.9.3
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH v2 02/35] [media] vpif_capture: get rid of some unused vars
2014-08-26 21:54 [PATCH v2 00/35] Enable compilation test for several drivers Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 01/35] [media] vpif_display: get rid of some unused vars Mauro Carvalho Chehab
@ 2014-08-26 21:54 ` Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 03/35] [media] dm644x_ccdc: declare some functions as static Mauro Carvalho Chehab
` (32 subsequent siblings)
34 siblings, 0 replies; 39+ messages in thread
From: Mauro Carvalho Chehab @ 2014-08-26 21:54 UTC (permalink / raw)
Cc: Mauro Carvalho Chehab, Linux Media Mailing List,
Mauro Carvalho Chehab
drivers/media/platform/davinci/vpif_capture.c: In function 'vpif_channel_isr':
drivers/media/platform/davinci/vpif_capture.c:376:18: warning: variable 'field'
set but not used [-Wunused-but-set-variable]
enum v4l2_field field;
^
drivers/media/platform/davinci/vpif_capture.c: In function 'vpif_calculate_offs
ets':
drivers/media/platform/davinci/vpif_capture.c:536:23: warning: variable 'vpitch
' set but not used [-Wunused-but-set-variable]
unsigned int hpitch, vpitch, sizeimage;
^
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
---
drivers/media/platform/davinci/vpif_capture.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/drivers/media/platform/davinci/vpif_capture.c b/drivers/media/platform/davinci/vpif_capture.c
index b054b7eec53d..cf15bb1962ef 100644
--- a/drivers/media/platform/davinci/vpif_capture.c
+++ b/drivers/media/platform/davinci/vpif_capture.c
@@ -373,7 +373,6 @@ static irqreturn_t vpif_channel_isr(int irq, void *dev_id)
struct vpif_device *dev = &vpif_obj;
struct common_obj *common;
struct channel_obj *ch;
- enum v4l2_field field;
int channel_id = 0;
int fid = -1, i;
@@ -383,8 +382,6 @@ static irqreturn_t vpif_channel_isr(int irq, void *dev_id)
ch = dev->dev[channel_id];
- field = ch->common[VPIF_VIDEO_INDEX].fmt.fmt.pix.field;
-
for (i = 0; i < VPIF_NUMBER_OF_OBJECTS; i++) {
common = &ch->common[i];
/* skip If streaming is not started in this channel */
@@ -533,7 +530,7 @@ static int vpif_update_std_info(struct channel_obj *ch)
*/
static void vpif_calculate_offsets(struct channel_obj *ch)
{
- unsigned int hpitch, vpitch, sizeimage;
+ unsigned int hpitch, sizeimage;
struct video_obj *vid_ch = &(ch->video);
struct vpif_params *vpifparams = &ch->vpifparams;
struct common_obj *common = &ch->common[VPIF_VIDEO_INDEX];
@@ -552,7 +549,6 @@ static void vpif_calculate_offsets(struct channel_obj *ch)
sizeimage = common->fmt.fmt.pix.sizeimage;
hpitch = common->fmt.fmt.pix.bytesperline;
- vpitch = sizeimage / (hpitch * 2);
if ((V4L2_FIELD_NONE == vid_ch->buf_field) ||
(V4L2_FIELD_INTERLACED == vid_ch->buf_field)) {
--
1.9.3
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH v2 03/35] [media] dm644x_ccdc: declare some functions as static
2014-08-26 21:54 [PATCH v2 00/35] Enable compilation test for several drivers Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 01/35] [media] vpif_display: get rid of some unused vars Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 02/35] [media] vpif_capture: " Mauro Carvalho Chehab
@ 2014-08-26 21:54 ` Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 04/35] [media] dm355_ccdc: declare a function " Mauro Carvalho Chehab
` (31 subsequent siblings)
34 siblings, 0 replies; 39+ messages in thread
From: Mauro Carvalho Chehab @ 2014-08-26 21:54 UTC (permalink / raw)
Cc: Mauro Carvalho Chehab, Linux Media Mailing List,
Mauro Carvalho Chehab
drivers/media/platform/davinci/dm644x_ccdc.c:133:6: warning: no previous protot
ype for 'ccdc_setwin' [-Wmissing-prototypes]
void ccdc_setwin(struct v4l2_rect *image_win,
^
drivers/media/platform/davinci/dm644x_ccdc.c:373:6: warning: no previous protot
ype for 'ccdc_config_ycbcr' [-Wmissing-prototypes]
void ccdc_config_ycbcr(void)
^
drivers/media/platform/davinci/dm644x_ccdc.c:526:6: warning: no previous protot
ype for 'ccdc_config_raw' [-Wmissing-prototypes]
void ccdc_config_raw(void)
^
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
---
drivers/media/platform/davinci/dm644x_ccdc.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/media/platform/davinci/dm644x_ccdc.c b/drivers/media/platform/davinci/dm644x_ccdc.c
index 07e98df3d867..b0b9cd54e9e9 100644
--- a/drivers/media/platform/davinci/dm644x_ccdc.c
+++ b/drivers/media/platform/davinci/dm644x_ccdc.c
@@ -130,9 +130,9 @@ static void ccdc_enable_vport(int flag)
* This function will configure the window size
* to be capture in CCDC reg
*/
-void ccdc_setwin(struct v4l2_rect *image_win,
- enum ccdc_frmfmt frm_fmt,
- int ppc)
+static void ccdc_setwin(struct v4l2_rect *image_win,
+ enum ccdc_frmfmt frm_fmt,
+ int ppc)
{
int horz_start, horz_nr_pixels;
int vert_start, vert_nr_lines;
@@ -370,7 +370,7 @@ static int ccdc_set_params(void __user *params)
* ccdc_config_ycbcr()
* This function will configure CCDC for YCbCr video capture
*/
-void ccdc_config_ycbcr(void)
+static void ccdc_config_ycbcr(void)
{
struct ccdc_params_ycbcr *params = &ccdc_cfg.ycbcr;
u32 syn_mode;
@@ -523,7 +523,7 @@ static void ccdc_config_fpc(struct ccdc_fault_pixel *fpc)
* ccdc_config_raw()
* This function will configure CCDC for Raw capture mode
*/
-void ccdc_config_raw(void)
+static void ccdc_config_raw(void)
{
struct ccdc_params_raw *params = &ccdc_cfg.bayer;
struct ccdc_config_params_raw *config_params =
--
1.9.3
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH v2 04/35] [media] dm355_ccdc: declare a function as static
2014-08-26 21:54 [PATCH v2 00/35] Enable compilation test for several drivers Mauro Carvalho Chehab
` (2 preceding siblings ...)
2014-08-26 21:54 ` [PATCH v2 03/35] [media] dm644x_ccdc: declare some functions as static Mauro Carvalho Chehab
@ 2014-08-26 21:54 ` Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 05/35] [media] gsc-core: Remove useless test Mauro Carvalho Chehab
` (30 subsequent siblings)
34 siblings, 0 replies; 39+ messages in thread
From: Mauro Carvalho Chehab @ 2014-08-26 21:54 UTC (permalink / raw)
Cc: Mauro Carvalho Chehab, Linux Media Mailing List,
Mauro Carvalho Chehab
drivers/media/platform/davinci/dm355_ccdc.c:463:5: warning: no previous prototy
pe for 'ccdc_write_dfc_entry' [-Wmissing-prototypes]
int ccdc_write_dfc_entry(int index, struct ccdc_vertical_dft *dfc)
^
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
---
drivers/media/platform/davinci/dm355_ccdc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/platform/davinci/dm355_ccdc.c b/drivers/media/platform/davinci/dm355_ccdc.c
index 05f8fb7f7b70..3f44deb5b7a7 100644
--- a/drivers/media/platform/davinci/dm355_ccdc.c
+++ b/drivers/media/platform/davinci/dm355_ccdc.c
@@ -460,7 +460,7 @@ static void ccdc_config_black_compense(struct ccdc_black_compensation *bcomp)
* ccdc_write_dfc_entry()
* write an entry in the dfc table.
*/
-int ccdc_write_dfc_entry(int index, struct ccdc_vertical_dft *dfc)
+static int ccdc_write_dfc_entry(int index, struct ccdc_vertical_dft *dfc)
{
/* TODO This is to be re-visited and adjusted */
#define DFC_WRITE_WAIT_COUNT 1000
--
1.9.3
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH v2 05/35] [media] gsc-core: Remove useless test
2014-08-26 21:54 [PATCH v2 00/35] Enable compilation test for several drivers Mauro Carvalho Chehab
` (3 preceding siblings ...)
2014-08-26 21:54 ` [PATCH v2 04/35] [media] dm355_ccdc: declare a function " Mauro Carvalho Chehab
@ 2014-08-26 21:54 ` Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 06/35] [media] gsc-m2m: Remove an unused var Mauro Carvalho Chehab
` (29 subsequent siblings)
34 siblings, 0 replies; 39+ messages in thread
From: Mauro Carvalho Chehab @ 2014-08-26 21:54 UTC (permalink / raw)
Cc: Mauro Carvalho Chehab, Linux Media Mailing List,
Mauro Carvalho Chehab
drivers/media/platform/exynos-gsc/gsc-core.c: In function 'gsc_probe':
drivers/media/platform/exynos-gsc/gsc-core.c:1089:2: warning: comparison is alw
ays false due to limited range of data type [-Wtype-limits]
if (gsc->id < 0 || gsc->id >= drv_data->num_entities) {
^
gsc->id is declared as u16, so it should always be a positive
value.
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
---
drivers/media/platform/exynos-gsc/gsc-core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/platform/exynos-gsc/gsc-core.c b/drivers/media/platform/exynos-gsc/gsc-core.c
index 9d0cc04d7ab7..8d8b3cff8212 100644
--- a/drivers/media/platform/exynos-gsc/gsc-core.c
+++ b/drivers/media/platform/exynos-gsc/gsc-core.c
@@ -1086,7 +1086,7 @@ static int gsc_probe(struct platform_device *pdev)
else
gsc->id = pdev->id;
- if (gsc->id < 0 || gsc->id >= drv_data->num_entities) {
+ if (gsc->id >= drv_data->num_entities) {
dev_err(dev, "Invalid platform device id: %d\n", gsc->id);
return -EINVAL;
}
--
1.9.3
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH v2 06/35] [media] gsc-m2m: Remove an unused var.
2014-08-26 21:54 [PATCH v2 00/35] Enable compilation test for several drivers Mauro Carvalho Chehab
` (4 preceding siblings ...)
2014-08-26 21:54 ` [PATCH v2 05/35] [media] gsc-core: Remove useless test Mauro Carvalho Chehab
@ 2014-08-26 21:54 ` Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 07/35] [media] ti-vpe: use %pad for dma address Mauro Carvalho Chehab
` (28 subsequent siblings)
34 siblings, 0 replies; 39+ messages in thread
From: Mauro Carvalho Chehab @ 2014-08-26 21:54 UTC (permalink / raw)
Cc: Mauro Carvalho Chehab, Linux Media Mailing List,
Mauro Carvalho Chehab
drivers/media/platform/exynos-gsc/gsc-m2m.c: In function 'gsc_m2m_reqbufs':
drivers/media/platform/exynos-gsc/gsc-m2m.c:365:20: warning: variable 'frame' s
et but not used [-Wunused-but-set-variable]
struct gsc_frame *frame;
^
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
---
drivers/media/platform/exynos-gsc/gsc-m2m.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/media/platform/exynos-gsc/gsc-m2m.c b/drivers/media/platform/exynos-gsc/gsc-m2m.c
index e434f1f03d7b..74e1de637e8f 100644
--- a/drivers/media/platform/exynos-gsc/gsc-m2m.c
+++ b/drivers/media/platform/exynos-gsc/gsc-m2m.c
@@ -362,7 +362,6 @@ static int gsc_m2m_reqbufs(struct file *file, void *fh,
{
struct gsc_ctx *ctx = fh_to_ctx(fh);
struct gsc_dev *gsc = ctx->gsc_dev;
- struct gsc_frame *frame;
u32 max_cnt;
max_cnt = (reqbufs->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) ?
@@ -376,8 +375,6 @@ static int gsc_m2m_reqbufs(struct file *file, void *fh,
gsc_ctx_state_lock_clear(GSC_DST_FMT, ctx);
}
- frame = ctx_get_frame(ctx, reqbufs->type);
-
return v4l2_m2m_reqbufs(file, ctx->m2m_ctx, reqbufs);
}
--
1.9.3
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH v2 07/35] [media] ti-vpe: use %pad for dma address
2014-08-26 21:54 [PATCH v2 00/35] Enable compilation test for several drivers Mauro Carvalho Chehab
` (5 preceding siblings ...)
2014-08-26 21:54 ` [PATCH v2 06/35] [media] gsc-m2m: Remove an unused var Mauro Carvalho Chehab
@ 2014-08-26 21:54 ` Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 08/35] [media] ti-vpe: shut up a casting warning message Mauro Carvalho Chehab
` (27 subsequent siblings)
34 siblings, 0 replies; 39+ messages in thread
From: Mauro Carvalho Chehab @ 2014-08-26 21:54 UTC (permalink / raw)
Cc: Mauro Carvalho Chehab, Linux Media Mailing List,
Mauro Carvalho Chehab
drivers/media/platform/ti-vpe/vpdma.c: In function 'dump_dtd':
include/linux/dynamic_debug.h:64:16: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'dma_addr_t' [-Wformat=]
static struct _ddebug __aligned(8) \
^
include/linux/dynamic_debug.h:76:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \
^
include/linux/printk.h:263:2: note: in expansion of macro 'dynamic_pr_debug'
dynamic_pr_debug(fmt, ##__VA_ARGS__)
^
>> drivers/media/platform/ti-vpe/vpdma.c:587:2: note: in expansion of macro 'pr_debug'
pr_debug("word2: start_addr = 0x%08x\n", dtd->start_addr);
^
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
---
drivers/media/platform/ti-vpe/vpdma.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/platform/ti-vpe/vpdma.c b/drivers/media/platform/ti-vpe/vpdma.c
index a51a01359805..6121a0b3c754 100644
--- a/drivers/media/platform/ti-vpe/vpdma.c
+++ b/drivers/media/platform/ti-vpe/vpdma.c
@@ -584,7 +584,7 @@ static void dump_dtd(struct vpdma_dtd *dtd)
pr_debug("word1: line_length = %d, xfer_height = %d\n",
dtd_get_line_length(dtd), dtd_get_xfer_height(dtd));
- pr_debug("word2: start_addr = 0x%08x\n", dtd->start_addr);
+ pr_debug("word2: start_addr = %pad\n", &dtd->start_addr);
pr_debug("word3: pkt_type = %d, mode = %d, dir = %d, chan = %d, "
"pri = %d, next_chan = %d\n", dtd_get_pkt_type(dtd),
--
1.9.3
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH v2 08/35] [media] ti-vpe: shut up a casting warning message
2014-08-26 21:54 [PATCH v2 00/35] Enable compilation test for several drivers Mauro Carvalho Chehab
` (6 preceding siblings ...)
2014-08-26 21:54 ` [PATCH v2 07/35] [media] ti-vpe: use %pad for dma address Mauro Carvalho Chehab
@ 2014-08-26 21:54 ` Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 09/35] [media] atmel-isi: tag dma_addr_t as such Mauro Carvalho Chehab
` (26 subsequent siblings)
34 siblings, 0 replies; 39+ messages in thread
From: Mauro Carvalho Chehab @ 2014-08-26 21:54 UTC (permalink / raw)
Cc: Mauro Carvalho Chehab, Linux Media Mailing List,
Mauro Carvalho Chehab
drivers/media/platform/ti-vpe/vpdma.c: In function 'vpdma_alloc_desc_buf':
>> drivers/media/platform/ti-vpe/vpdma.c:332:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
WARN_ON((u32) buf->addr & VPDMA_DESC_ALIGN);
^
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
---
drivers/media/platform/ti-vpe/vpdma.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/platform/ti-vpe/vpdma.c b/drivers/media/platform/ti-vpe/vpdma.c
index 6121a0b3c754..684ba19bbedd 100644
--- a/drivers/media/platform/ti-vpe/vpdma.c
+++ b/drivers/media/platform/ti-vpe/vpdma.c
@@ -329,7 +329,7 @@ int vpdma_alloc_desc_buf(struct vpdma_buf *buf, size_t size)
if (!buf->addr)
return -ENOMEM;
- WARN_ON((u32) buf->addr & VPDMA_DESC_ALIGN);
+ WARN_ON(((u32) buf->addr & VPDMA_DESC_ALIGN) != 0);
return 0;
}
--
1.9.3
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH v2 09/35] [media] atmel-isi: tag dma_addr_t as such
2014-08-26 21:54 [PATCH v2 00/35] Enable compilation test for several drivers Mauro Carvalho Chehab
` (7 preceding siblings ...)
2014-08-26 21:54 ` [PATCH v2 08/35] [media] ti-vpe: shut up a casting warning message Mauro Carvalho Chehab
@ 2014-08-26 21:54 ` Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 10/35] [media] atmel-isi: Fix a truncate warning Mauro Carvalho Chehab
` (25 subsequent siblings)
34 siblings, 0 replies; 39+ messages in thread
From: Mauro Carvalho Chehab @ 2014-08-26 21:54 UTC (permalink / raw)
Cc: Mauro Carvalho Chehab, Linux Media Mailing List,
Mauro Carvalho Chehab
Instead of using u32 for DMA address, use the proper
Kernel type for it.
drivers/media/platform/soc_camera/atmel-isi.c: In function 'atmel_isi_probe':
>> drivers/media/platform/soc_camera/atmel-isi.c:981:26: warning: passing argument 3 of 'dma_alloc_attrs' from incompatible pointer type
isi->p_fb_descriptors = dma_alloc_coherent(&pdev->dev,
^
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
---
drivers/media/platform/soc_camera/atmel-isi.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/media/platform/soc_camera/atmel-isi.c b/drivers/media/platform/soc_camera/atmel-isi.c
index 3408b045b3f1..f87012b15b28 100644
--- a/drivers/media/platform/soc_camera/atmel-isi.c
+++ b/drivers/media/platform/soc_camera/atmel-isi.c
@@ -54,7 +54,7 @@ static void set_dma_ctrl(struct fbd *fb_desc, u32 ctrl)
struct isi_dma_desc {
struct list_head list;
struct fbd *p_fbd;
- u32 fbd_phys;
+ dma_addr_t fbd_phys;
};
/* Frame buffer data */
@@ -75,7 +75,7 @@ struct atmel_isi {
/* Allocate descriptors for dma buffer use */
struct fbd *p_fb_descriptors;
- u32 fb_descriptors_phys;
+ dma_addr_t fb_descriptors_phys;
struct list_head dma_desc_head;
struct isi_dma_desc dma_desc[MAX_BUFFER_NUM];
@@ -169,7 +169,7 @@ static irqreturn_t atmel_isi_handle_streaming(struct atmel_isi *isi)
isi->active = list_entry(isi->video_buffer_list.next,
struct frame_buffer, list);
isi_writel(isi, ISI_DMA_C_DSCR,
- isi->active->p_dma_desc->fbd_phys);
+ (u32)isi->active->p_dma_desc->fbd_phys);
isi_writel(isi, ISI_DMA_C_CTRL,
ISI_DMA_CTRL_FETCH | ISI_DMA_CTRL_DONE);
isi_writel(isi, ISI_DMA_CHER, ISI_DMA_CHSR_C_CH);
@@ -346,7 +346,7 @@ static void start_dma(struct atmel_isi *isi, struct frame_buffer *buffer)
return;
}
- isi_writel(isi, ISI_DMA_C_DSCR, buffer->p_dma_desc->fbd_phys);
+ isi_writel(isi, ISI_DMA_C_DSCR, (u32)buffer->p_dma_desc->fbd_phys);
isi_writel(isi, ISI_DMA_C_CTRL, ISI_DMA_CTRL_FETCH | ISI_DMA_CTRL_DONE);
isi_writel(isi, ISI_DMA_CHER, ISI_DMA_CHSR_C_CH);
--
1.9.3
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH v2 10/35] [media] atmel-isi: Fix a truncate warning
2014-08-26 21:54 [PATCH v2 00/35] Enable compilation test for several drivers Mauro Carvalho Chehab
` (8 preceding siblings ...)
2014-08-26 21:54 ` [PATCH v2 09/35] [media] atmel-isi: tag dma_addr_t as such Mauro Carvalho Chehab
@ 2014-08-26 21:54 ` Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 11/35] [media] s5p_mfc: don't use an external symbol called 'debug' Mauro Carvalho Chehab
` (24 subsequent siblings)
34 siblings, 0 replies; 39+ messages in thread
From: Mauro Carvalho Chehab @ 2014-08-26 21:54 UTC (permalink / raw)
Cc: Mauro Carvalho Chehab, Linux Media Mailing List,
Mauro Carvalho Chehab
drivers/media/platform/soc_camera/atmel-isi.c: In function 'start_streaming':
drivers/media/platform/soc_camera/atmel-isi.c:397:26: warning: large integer implicitly truncated to unsigned type [-Woverflow]
isi_writel(isi, ISI_INTDIS, ~0UL);
^
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
---
drivers/media/platform/soc_camera/atmel-isi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/platform/soc_camera/atmel-isi.c b/drivers/media/platform/soc_camera/atmel-isi.c
index f87012b15b28..96a4b112e1ca 100644
--- a/drivers/media/platform/soc_camera/atmel-isi.c
+++ b/drivers/media/platform/soc_camera/atmel-isi.c
@@ -394,7 +394,7 @@ static int start_streaming(struct vb2_queue *vq, unsigned int count)
return ret;
}
/* Disable all interrupts */
- isi_writel(isi, ISI_INTDIS, ~0UL);
+ isi_writel(isi, ISI_INTDIS, (u32)~0UL);
spin_lock_irq(&isi->lock);
/* Clear any pending interrupt */
--
1.9.3
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH v2 11/35] [media] s5p_mfc: don't use an external symbol called 'debug'
2014-08-26 21:54 [PATCH v2 00/35] Enable compilation test for several drivers Mauro Carvalho Chehab
` (9 preceding siblings ...)
2014-08-26 21:54 ` [PATCH v2 10/35] [media] atmel-isi: Fix a truncate warning Mauro Carvalho Chehab
@ 2014-08-26 21:54 ` Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 12/35] [media] vpif: don't cast pointers to int Mauro Carvalho Chehab
` (23 subsequent siblings)
34 siblings, 0 replies; 39+ messages in thread
From: Mauro Carvalho Chehab @ 2014-08-26 21:54 UTC (permalink / raw)
Cc: Mauro Carvalho Chehab, Linux Media Mailing List,
Mauro Carvalho Chehab
The 'debug' name is known to cause conflicts with allyesconfig
on several archs. So, localize its name.
>> drivers/built-in.o:(.bss+0xc7ee2c): multiple definition of `debug'
arch/x86/built-in.o:(.entry.text+0xf78): first defined here
ld: Warning: size of symbol `debug' changed from 86 in arch/x86/built-in.o to 4 in drivers/built-in.o
While here, fix a wrong file name reference
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
---
drivers/media/platform/s5p-mfc/s5p_mfc.c | 4 ++--
drivers/media/platform/s5p-mfc/s5p_mfc_debug.h | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc.c b/drivers/media/platform/s5p-mfc/s5p_mfc.c
index d35b0418ab37..89b5b4ad34d3 100644
--- a/drivers/media/platform/s5p-mfc/s5p_mfc.c
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc.c
@@ -37,8 +37,8 @@
#define S5P_MFC_DEC_NAME "s5p-mfc-dec"
#define S5P_MFC_ENC_NAME "s5p-mfc-enc"
-int debug;
-module_param(debug, int, S_IRUGO | S_IWUSR);
+int mfc_debug_level;
+module_param_named(debug, mfc_debug_level, int, S_IRUGO | S_IWUSR);
MODULE_PARM_DESC(debug, "Debug level - higher value produces more verbose messages");
/* Helper functions for interrupt processing */
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_debug.h b/drivers/media/platform/s5p-mfc/s5p_mfc_debug.h
index 8e608f5aa0d7..5936923c631c 100644
--- a/drivers/media/platform/s5p-mfc/s5p_mfc_debug.h
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc_debug.h
@@ -1,5 +1,5 @@
/*
- * drivers/media/platform/samsung/mfc5/s5p_mfc_debug.h
+ * drivers/media/platform/s5p-mfc/s5p_mfc_debug.h
*
* Header file for Samsung MFC (Multi Function Codec - FIMV) driver
* This file contains debug macros
@@ -18,11 +18,11 @@
#define DEBUG
#ifdef DEBUG
-extern int debug;
+extern int mfc_debug_level;
#define mfc_debug(level, fmt, args...) \
do { \
- if (debug >= level) \
+ if (mfc_debug_level >= level) \
printk(KERN_DEBUG "%s:%d: " fmt, \
__func__, __LINE__, ##args); \
} while (0)
--
1.9.3
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH v2 12/35] [media] vpif: don't cast pointers to int
2014-08-26 21:54 [PATCH v2 00/35] Enable compilation test for several drivers Mauro Carvalho Chehab
` (10 preceding siblings ...)
2014-08-26 21:54 ` [PATCH v2 11/35] [media] s5p_mfc: don't use an external symbol called 'debug' Mauro Carvalho Chehab
@ 2014-08-26 21:54 ` Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 13/35] [media] dm644x_ccdc: use unsigned long for fpc_table_addr Mauro Carvalho Chehab
` (22 subsequent siblings)
34 siblings, 0 replies; 39+ messages in thread
From: Mauro Carvalho Chehab @ 2014-08-26 21:54 UTC (permalink / raw)
Cc: Mauro Carvalho Chehab, Linux Media Mailing List,
Mauro Carvalho Chehab
Shut up several warnings about invalid casting when printing
the values of two pointers.
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
---
drivers/media/platform/davinci/vpfe_capture.c | 2 +-
drivers/media/platform/davinci/vpif_display.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/media/platform/davinci/vpfe_capture.c b/drivers/media/platform/davinci/vpfe_capture.c
index ea7661a27479..ed9dd27e3c63 100644
--- a/drivers/media/platform/davinci/vpfe_capture.c
+++ b/drivers/media/platform/davinci/vpfe_capture.c
@@ -1914,7 +1914,7 @@ static int vpfe_probe(struct platform_device *pdev)
v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev,
"trying to register vpfe device.\n");
v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev,
- "video_dev=%x\n", (int)&vpfe_dev->video_dev);
+ "video_dev=%p\n", &vpfe_dev->video_dev);
vpfe_dev->fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
ret = video_register_device(vpfe_dev->video_dev,
VFL_TYPE_GRABBER, -1);
diff --git a/drivers/media/platform/davinci/vpif_display.c b/drivers/media/platform/davinci/vpif_display.c
index aaa9ec06630f..2ce3ddfcca80 100644
--- a/drivers/media/platform/davinci/vpif_display.c
+++ b/drivers/media/platform/davinci/vpif_display.c
@@ -1204,8 +1204,8 @@ static int vpif_probe_complete(void)
INIT_LIST_HEAD(&common->dma_queue);
/* register video device */
- vpif_dbg(1, debug, "channel=%x,channel->video_dev=%x\n",
- (int)ch, (int)&ch->video_dev);
+ vpif_dbg(1, debug, "channel=%p,channel->video_dev=%p\n",
+ ch, &ch->video_dev);
/* Initialize the video_device structure */
vdev = ch->video_dev;
--
1.9.3
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH v2 13/35] [media] dm644x_ccdc: use unsigned long for fpc_table_addr
2014-08-26 21:54 [PATCH v2 00/35] Enable compilation test for several drivers Mauro Carvalho Chehab
` (11 preceding siblings ...)
2014-08-26 21:54 ` [PATCH v2 12/35] [media] vpif: don't cast pointers to int Mauro Carvalho Chehab
@ 2014-08-26 21:54 ` Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 14/35] [media] dvb_frontend: estimate bandwidth also for DVB-S/S2/Turbo Mauro Carvalho Chehab
` (21 subsequent siblings)
34 siblings, 0 replies; 39+ messages in thread
From: Mauro Carvalho Chehab @ 2014-08-26 21:54 UTC (permalink / raw)
Cc: Mauro Carvalho Chehab, Linux Media Mailing List,
Mauro Carvalho Chehab
The fpc_table_addr is used as an unsigned integer that stores
an address. At the Kernel, the proper type for such integers
is unsigned long.
This generates lots of warnings when compiling on 64 bits.
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
---
drivers/media/platform/davinci/dm644x_ccdc.c | 4 ++--
include/media/davinci/dm644x_ccdc.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/media/platform/davinci/dm644x_ccdc.c b/drivers/media/platform/davinci/dm644x_ccdc.c
index b0b9cd54e9e9..62a0ebb01056 100644
--- a/drivers/media/platform/davinci/dm644x_ccdc.c
+++ b/drivers/media/platform/davinci/dm644x_ccdc.c
@@ -291,7 +291,7 @@ static int ccdc_update_raw_params(struct ccdc_config_params_raw *raw_params)
dev_dbg(ccdc_cfg.dev, "\n copy_from_user failed");
return -EFAULT;
}
- config_params->fault_pxl.fpc_table_addr = (unsigned int)fpc_physaddr;
+ config_params->fault_pxl.fpc_table_addr = (unsigned long)fpc_physaddr;
return 0;
}
@@ -506,7 +506,7 @@ static void ccdc_config_fpc(struct ccdc_fault_pixel *fpc)
/* Configure Fault pixel if needed */
regw(fpc->fpc_table_addr, CCDC_FPC_ADDR);
- dev_dbg(ccdc_cfg.dev, "\nWriting 0x%x to FPC_ADDR...\n",
+ dev_dbg(ccdc_cfg.dev, "\nWriting 0x%lx to FPC_ADDR...\n",
(fpc->fpc_table_addr));
/* Write the FPC params with FPC disable */
val = fpc->fp_num & CCDC_FPC_FPC_NUM_MASK;
diff --git a/include/media/davinci/dm644x_ccdc.h b/include/media/davinci/dm644x_ccdc.h
index 852e96c4bb46..984fb79031de 100644
--- a/include/media/davinci/dm644x_ccdc.h
+++ b/include/media/davinci/dm644x_ccdc.h
@@ -114,7 +114,7 @@ struct ccdc_fault_pixel {
/* Number of fault pixel */
unsigned short fp_num;
/* Address of fault pixel table */
- unsigned int fpc_table_addr;
+ unsigned long fpc_table_addr;
};
/* Structure for CCDC configuration parameters for raw capture mode passed
--
1.9.3
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH v2 14/35] [media] dvb_frontend: estimate bandwidth also for DVB-S/S2/Turbo
2014-08-26 21:54 [PATCH v2 00/35] Enable compilation test for several drivers Mauro Carvalho Chehab
` (12 preceding siblings ...)
2014-08-26 21:54 ` [PATCH v2 13/35] [media] dm644x_ccdc: use unsigned long for fpc_table_addr Mauro Carvalho Chehab
@ 2014-08-26 21:54 ` Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 15/35] [media] gsc: Use %pad for dma_addr_t Mauro Carvalho Chehab
` (20 subsequent siblings)
34 siblings, 0 replies; 39+ messages in thread
From: Mauro Carvalho Chehab @ 2014-08-26 21:54 UTC (permalink / raw)
Cc: Mauro Carvalho Chehab, Linux Media Mailing List,
Mauro Carvalho Chehab
The needed bandwidth can be estimated using the symbol rate and
the rolloff factor. This could be useful for the frontend drivers,
as they don't need to calculate it themselves.
Reported-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
---
drivers/media/dvb-core/dvb_frontend.c | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/drivers/media/dvb-core/dvb_frontend.c b/drivers/media/dvb-core/dvb_frontend.c
index a5810391af61..c862ad732d9e 100644
--- a/drivers/media/dvb-core/dvb_frontend.c
+++ b/drivers/media/dvb-core/dvb_frontend.c
@@ -2072,6 +2072,23 @@ static int dtv_set_frontend(struct dvb_frontend *fe)
case SYS_DVBC_ANNEX_C:
rolloff = 113;
break;
+ case SYS_DVBS:
+ case SYS_TURBO:
+ rolloff = 135;
+ break;
+ case SYS_DVBS2:
+ switch (c->rolloff) {
+ case ROLLOFF_20:
+ rolloff = 120;
+ break;
+ case ROLLOFF_25:
+ rolloff = 125;
+ break;
+ default:
+ case ROLLOFF_35:
+ rolloff = 135;
+ }
+ break;
default:
break;
}
--
1.9.3
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH v2 15/35] [media] gsc: Use %pad for dma_addr_t
2014-08-26 21:54 [PATCH v2 00/35] Enable compilation test for several drivers Mauro Carvalho Chehab
` (13 preceding siblings ...)
2014-08-26 21:54 ` [PATCH v2 14/35] [media] dvb_frontend: estimate bandwidth also for DVB-S/S2/Turbo Mauro Carvalho Chehab
@ 2014-08-26 21:54 ` Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 16/35] [media] omap: fix compilation if !VIDEO_OMAP2_VOUT_VRFB Mauro Carvalho Chehab
` (19 subsequent siblings)
34 siblings, 0 replies; 39+ messages in thread
From: Mauro Carvalho Chehab @ 2014-08-26 21:54 UTC (permalink / raw)
Cc: Mauro Carvalho Chehab, Linux Media Mailing List,
Mauro Carvalho Chehab
drivers/media/platform/exynos-gsc/gsc-core.c:855:2: note: in expansion of macro 'pr_debug'
pr_debug("ADDR: y= 0x%X cb= 0x%X cr= 0x%X ret= %d",
^
include/linux/dynamic_debug.h:64:16: warning: format '%X' expects argument of type 'unsigned int', but argument 4 has type 'dma
_addr_t' [-Wformat=]
static struct _ddebug __aligned(8) \
^
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
---
drivers/media/platform/exynos-gsc/gsc-core.c | 4 ++--
drivers/media/platform/exynos-gsc/gsc-regs.c | 8 ++++----
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/media/platform/exynos-gsc/gsc-core.c b/drivers/media/platform/exynos-gsc/gsc-core.c
index 8d8b3cff8212..b4c9f1d08968 100644
--- a/drivers/media/platform/exynos-gsc/gsc-core.c
+++ b/drivers/media/platform/exynos-gsc/gsc-core.c
@@ -852,8 +852,8 @@ int gsc_prepare_addr(struct gsc_ctx *ctx, struct vb2_buffer *vb,
(frame->fmt->pixelformat == V4L2_PIX_FMT_YVU420M))
swap(addr->cb, addr->cr);
- pr_debug("ADDR: y= 0x%X cb= 0x%X cr= 0x%X ret= %d",
- addr->y, addr->cb, addr->cr, ret);
+ pr_debug("ADDR: y= %pad cb= %pad cr= %pad ret= %d",
+ &addr->y, &addr->cb, &addr->cr, ret);
return ret;
}
diff --git a/drivers/media/platform/exynos-gsc/gsc-regs.c b/drivers/media/platform/exynos-gsc/gsc-regs.c
index e22d147a6940..ce12a1100511 100644
--- a/drivers/media/platform/exynos-gsc/gsc-regs.c
+++ b/drivers/media/platform/exynos-gsc/gsc-regs.c
@@ -90,8 +90,8 @@ void gsc_hw_set_output_buf_masking(struct gsc_dev *dev, u32 shift,
void gsc_hw_set_input_addr(struct gsc_dev *dev, struct gsc_addr *addr,
int index)
{
- pr_debug("src_buf[%d]: 0x%X, cb: 0x%X, cr: 0x%X", index,
- addr->y, addr->cb, addr->cr);
+ pr_debug("src_buf[%d]: %pad, cb: %pad, cr: %pad", index,
+ &addr->y, &addr->cb, &addr->cr);
writel(addr->y, dev->regs + GSC_IN_BASE_ADDR_Y(index));
writel(addr->cb, dev->regs + GSC_IN_BASE_ADDR_CB(index));
writel(addr->cr, dev->regs + GSC_IN_BASE_ADDR_CR(index));
@@ -101,8 +101,8 @@ void gsc_hw_set_input_addr(struct gsc_dev *dev, struct gsc_addr *addr,
void gsc_hw_set_output_addr(struct gsc_dev *dev,
struct gsc_addr *addr, int index)
{
- pr_debug("dst_buf[%d]: 0x%X, cb: 0x%X, cr: 0x%X",
- index, addr->y, addr->cb, addr->cr);
+ pr_debug("dst_buf[%d]: %pad, cb: %pad, cr: %pad",
+ index, &addr->y, &addr->cb, &addr->cr);
writel(addr->y, dev->regs + GSC_OUT_BASE_ADDR_Y(index));
writel(addr->cb, dev->regs + GSC_OUT_BASE_ADDR_CB(index));
writel(addr->cr, dev->regs + GSC_OUT_BASE_ADDR_CR(index));
--
1.9.3
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH v2 16/35] [media] omap: fix compilation if !VIDEO_OMAP2_VOUT_VRFB
2014-08-26 21:54 [PATCH v2 00/35] Enable compilation test for several drivers Mauro Carvalho Chehab
` (14 preceding siblings ...)
2014-08-26 21:54 ` [PATCH v2 15/35] [media] gsc: Use %pad for dma_addr_t Mauro Carvalho Chehab
@ 2014-08-26 21:54 ` Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 17/35] [media] omap_vout: Get rid of a few warnings Mauro Carvalho Chehab
` (18 subsequent siblings)
34 siblings, 0 replies; 39+ messages in thread
From: Mauro Carvalho Chehab @ 2014-08-26 21:54 UTC (permalink / raw)
Cc: Mauro Carvalho Chehab, Linux Media Mailing List,
Mauro Carvalho Chehab
When CONFIG_VIDEO_OMAP2_VOUT_VRFB is disabled, the compilation
will fail, as the function stubs are wrong. Also, as they weren't
declared as static inline, lots of warnings will be generated.
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
---
drivers/media/platform/omap/omap_vout_vrfb.h | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/drivers/media/platform/omap/omap_vout_vrfb.h b/drivers/media/platform/omap/omap_vout_vrfb.h
index ffde741e0590..4c2314839b48 100644
--- a/drivers/media/platform/omap/omap_vout_vrfb.h
+++ b/drivers/media/platform/omap/omap_vout_vrfb.h
@@ -23,18 +23,18 @@ int omap_vout_prepare_vrfb(struct omap_vout_device *vout,
struct videobuf_buffer *vb);
void omap_vout_calculate_vrfb_offset(struct omap_vout_device *vout);
#else
-void omap_vout_free_vrfb_buffers(struct omap_vout_device *vout) { }
-int omap_vout_setup_vrfb_bufs(struct platform_device *pdev, int vid_num,
+static inline void omap_vout_free_vrfb_buffers(struct omap_vout_device *vout) { };
+static inline int omap_vout_setup_vrfb_bufs(struct platform_device *pdev, int vid_num,
u32 static_vrfb_allocation)
- { return 0; }
-void omap_vout_release_vrfb(struct omap_vout_device *vout) { }
-int omap_vout_vrfb_buffer_setup(struct omap_vout_device *vout,
+ { return 0; };
+static inline void omap_vout_release_vrfb(struct omap_vout_device *vout) { };
+static inline int omap_vout_vrfb_buffer_setup(struct omap_vout_device *vout,
unsigned int *count, unsigned int startindex)
- { return 0; }
-int omap_vout_prepare_vrfb(struct omap_vout_device *vout,
+ { return 0; };
+static inline int omap_vout_prepare_vrfb(struct omap_vout_device *vout,
struct videobuf_buffer *vb)
- { return 0; }
-void omap_vout_calculate_vrfb_offset(struct omap_vout_device *vout) { }
+ { return 0; };
+static inline void omap_vout_calculate_vrfb_offset(struct omap_vout_device *vout) { };
#endif
#endif
--
1.9.3
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH v2 17/35] [media] omap_vout: Get rid of a few warnings
2014-08-26 21:54 [PATCH v2 00/35] Enable compilation test for several drivers Mauro Carvalho Chehab
` (15 preceding siblings ...)
2014-08-26 21:54 ` [PATCH v2 16/35] [media] omap: fix compilation if !VIDEO_OMAP2_VOUT_VRFB Mauro Carvalho Chehab
@ 2014-08-26 21:54 ` Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 18/35] [media] s5p-jpeg: get rid of some warnings Mauro Carvalho Chehab
` (17 subsequent siblings)
34 siblings, 0 replies; 39+ messages in thread
From: Mauro Carvalho Chehab @ 2014-08-26 21:54 UTC (permalink / raw)
Cc: Mauro Carvalho Chehab, Linux Media Mailing List,
Mauro Carvalho Chehab
drivers/media/platform/omap/omap_vout.c: In function 'omapvid_setup_overlay':
drivers/media/platform/omap/omap_vout.c:372:29: warning: variable 'pixheight' set but not used [-Wunused-but-set-variable]
int cropheight, cropwidth, pixheight, pixwidth;
^
drivers/media/platform/omap/omap_vout.c: In function 'vidioc_s_ctrl':
drivers/media/platform/omap/omap_vout.c:1454:24: warning: variable 'ovl' set but not used [-Wunused-but-set-variable]
struct omap_overlay *ovl;
^
drivers/media/platform/omap/omap_vout.c: In function 'vidioc_reqbufs':
drivers/media/platform/omap/omap_vout.c:1492:55: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
if ((req->type != V4L2_BUF_TYPE_VIDEO_OUTPUT) || (req->count < 0))
^
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
---
drivers/media/platform/omap/omap_vout.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/drivers/media/platform/omap/omap_vout.c b/drivers/media/platform/omap/omap_vout.c
index 2d177fa58471..d9258f3d0f8e 100644
--- a/drivers/media/platform/omap/omap_vout.c
+++ b/drivers/media/platform/omap/omap_vout.c
@@ -369,7 +369,7 @@ static int omapvid_setup_overlay(struct omap_vout_device *vout,
{
int ret = 0;
struct omap_overlay_info info;
- int cropheight, cropwidth, pixheight, pixwidth;
+ int cropheight, cropwidth, pixwidth;
if ((ovl->caps & OMAP_DSS_OVL_CAP_SCALE) == 0 &&
(outw != vout->pix.width || outh != vout->pix.height)) {
@@ -389,12 +389,10 @@ static int omapvid_setup_overlay(struct omap_vout_device *vout,
if (is_rotation_90_or_270(vout)) {
cropheight = vout->crop.width;
cropwidth = vout->crop.height;
- pixheight = vout->pix.width;
pixwidth = vout->pix.height;
} else {
cropheight = vout->crop.height;
cropwidth = vout->crop.width;
- pixheight = vout->pix.height;
pixwidth = vout->pix.width;
}
@@ -1451,12 +1449,10 @@ static int vidioc_s_ctrl(struct file *file, void *fh, struct v4l2_control *a)
}
case V4L2_CID_VFLIP:
{
- struct omap_overlay *ovl;
struct omapvideo_info *ovid;
unsigned int mirror = a->value;
ovid = &vout->vid_info;
- ovl = ovid->overlays[0];
mutex_lock(&vout->lock);
if (mirror && ovid->rotation_type == VOUT_ROT_NONE) {
@@ -1489,7 +1485,7 @@ static int vidioc_reqbufs(struct file *file, void *fh,
struct omap_vout_device *vout = fh;
struct videobuf_queue *q = &vout->vbq;
- if ((req->type != V4L2_BUF_TYPE_VIDEO_OUTPUT) || (req->count < 0))
+ if (req->type != V4L2_BUF_TYPE_VIDEO_OUTPUT)
return -EINVAL;
/* if memory is not mmp or userptr
return error */
--
1.9.3
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH v2 18/35] [media] s5p-jpeg: get rid of some warnings
2014-08-26 21:54 [PATCH v2 00/35] Enable compilation test for several drivers Mauro Carvalho Chehab
` (16 preceding siblings ...)
2014-08-26 21:54 ` [PATCH v2 17/35] [media] omap_vout: Get rid of a few warnings Mauro Carvalho Chehab
@ 2014-08-26 21:54 ` Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 19/35] [media] g2d: remove unused var Mauro Carvalho Chehab
` (16 subsequent siblings)
34 siblings, 0 replies; 39+ messages in thread
From: Mauro Carvalho Chehab @ 2014-08-26 21:54 UTC (permalink / raw)
Cc: Mauro Carvalho Chehab, Linux Media Mailing List,
Mauro Carvalho Chehab
Declare this as static:
drivers/media/platform/s5p-jpeg/jpeg-core.c:732:6: warning: no previous prototype for 'exynos4_jpeg_set_huff_tbl' [-Wmissing-prototypes]
void exynos4_jpeg_set_huff_tbl(void __iomem *base)
^
And don't compile this dead code, while not needed:
drivers/media/platform/s5p-jpeg/jpeg-hw-exynos3250.c:236:14: warning: no previous prototype for 'exynos3250_jpeg_get_y' [-Wmissing-prototypes]
unsigned int exynos3250_jpeg_get_y(void __iomem *regs)
^
drivers/media/platform/s5p-jpeg/jpeg-hw-exynos3250.c:241:14: warning: no previous prototype for 'exynos3250_jpeg_get_x' [-Wmissing-prototypes]
unsigned int exynos3250_jpeg_get_x(void __iomem *regs)
^
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
---
drivers/media/platform/s5p-jpeg/jpeg-core.c | 2 +-
drivers/media/platform/s5p-jpeg/jpeg-hw-exynos3250.c | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/media/platform/s5p-jpeg/jpeg-core.c b/drivers/media/platform/s5p-jpeg/jpeg-core.c
index e66acbc2a82d..e525a7c8d885 100644
--- a/drivers/media/platform/s5p-jpeg/jpeg-core.c
+++ b/drivers/media/platform/s5p-jpeg/jpeg-core.c
@@ -729,7 +729,7 @@ static inline void exynos4_jpeg_set_qtbl_chr(void __iomem *regs, int quality)
ARRAY_SIZE(qtbl_chrominance[quality]));
}
-void exynos4_jpeg_set_huff_tbl(void __iomem *base)
+static void exynos4_jpeg_set_huff_tbl(void __iomem *base)
{
exynos4_jpeg_set_tbl(base, hdctbl0, EXYNOS4_HUFF_TBL_HDCLL,
ARRAY_SIZE(hdctbl0));
diff --git a/drivers/media/platform/s5p-jpeg/jpeg-hw-exynos3250.c b/drivers/media/platform/s5p-jpeg/jpeg-hw-exynos3250.c
index d26e1f846553..e8c2cad93962 100644
--- a/drivers/media/platform/s5p-jpeg/jpeg-hw-exynos3250.c
+++ b/drivers/media/platform/s5p-jpeg/jpeg-hw-exynos3250.c
@@ -233,6 +233,7 @@ void exynos3250_jpeg_set_x(void __iomem *regs, unsigned int x)
writel(reg, regs + EXYNOS3250_JPGX);
}
+#if 0 /* Currently unused */
unsigned int exynos3250_jpeg_get_y(void __iomem *regs)
{
return readl(regs + EXYNOS3250_JPGY);
@@ -242,6 +243,7 @@ unsigned int exynos3250_jpeg_get_x(void __iomem *regs)
{
return readl(regs + EXYNOS3250_JPGX);
}
+#endif
void exynos3250_jpeg_interrupts_enable(void __iomem *regs)
{
--
1.9.3
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH v2 19/35] [media] g2d: remove unused var
2014-08-26 21:54 [PATCH v2 00/35] Enable compilation test for several drivers Mauro Carvalho Chehab
` (17 preceding siblings ...)
2014-08-26 21:54 ` [PATCH v2 18/35] [media] s5p-jpeg: get rid of some warnings Mauro Carvalho Chehab
@ 2014-08-26 21:54 ` Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 20/35] [media] fimc-is-param: get rid of warnings Mauro Carvalho Chehab
` (15 subsequent siblings)
34 siblings, 0 replies; 39+ messages in thread
From: Mauro Carvalho Chehab @ 2014-08-26 21:54 UTC (permalink / raw)
Cc: Mauro Carvalho Chehab, Linux Media Mailing List,
Mauro Carvalho Chehab
drivers/media/platform/s5p-g2d/g2d.c: In function 'job_abort':
drivers/media/platform/s5p-g2d/g2d.c:493:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
int ret;
^
The job_abort function returns void. No sense to get the
returned argument, if this won't be used.
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
---
drivers/media/platform/s5p-g2d/g2d.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/drivers/media/platform/s5p-g2d/g2d.c b/drivers/media/platform/s5p-g2d/g2d.c
index 357af1ebaeda..d79e214ce8ce 100644
--- a/drivers/media/platform/s5p-g2d/g2d.c
+++ b/drivers/media/platform/s5p-g2d/g2d.c
@@ -490,14 +490,13 @@ static void job_abort(void *prv)
{
struct g2d_ctx *ctx = prv;
struct g2d_dev *dev = ctx->dev;
- int ret;
if (dev->curr == NULL) /* No job currently running */
return;
- ret = wait_event_timeout(dev->irq_queue,
- dev->curr == NULL,
- msecs_to_jiffies(G2D_TIMEOUT));
+ wait_event_timeout(dev->irq_queue,
+ dev->curr == NULL,
+ msecs_to_jiffies(G2D_TIMEOUT));
}
static void device_run(void *prv)
--
1.9.3
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH v2 20/35] [media] fimc-is-param: get rid of warnings
2014-08-26 21:54 [PATCH v2 00/35] Enable compilation test for several drivers Mauro Carvalho Chehab
` (18 preceding siblings ...)
2014-08-26 21:54 ` [PATCH v2 19/35] [media] g2d: remove unused var Mauro Carvalho Chehab
@ 2014-08-26 21:54 ` Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 21/35] [media] s5p_mfc_ctrl: add missing s5p_mfc_ctrl.h header Mauro Carvalho Chehab
` (14 subsequent siblings)
34 siblings, 0 replies; 39+ messages in thread
From: Mauro Carvalho Chehab @ 2014-08-26 21:54 UTC (permalink / raw)
Cc: Mauro Carvalho Chehab, Linux Media Mailing List,
Mauro Carvalho Chehab
In file included from drivers/media/platform/exynos4-is/fimc-is-param.c:31:0:
drivers/media/platform/exynos4-is/fimc-is-errno.h:245:20: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
const char * const fimc_is_strerr(unsigned int error);
^
drivers/media/platform/exynos4-is/fimc-is-errno.h:246:20: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
const char * const fimc_is_param_strerr(unsigned int error);
^
drivers/media/platform/exynos4-is/fimc-is-param.c: In function 'fimc_is_set_initial_params':
drivers/media/platform/exynos4-is/fimc-is-param.c:670:23: warning: variable 'sensor' set but not used [-Wunused-but-set-variable]
struct sensor_param *sensor;
^
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
---
drivers/media/platform/exynos4-is/fimc-is-errno.c | 4 ++--
drivers/media/platform/exynos4-is/fimc-is-errno.h | 4 ++--
drivers/media/platform/exynos4-is/fimc-is-param.c | 2 --
3 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/drivers/media/platform/exynos4-is/fimc-is-errno.c b/drivers/media/platform/exynos4-is/fimc-is-errno.c
index e8519e151c1a..e050e63fe358 100644
--- a/drivers/media/platform/exynos4-is/fimc-is-errno.c
+++ b/drivers/media/platform/exynos4-is/fimc-is-errno.c
@@ -15,7 +15,7 @@
#include "fimc-is-errno.h"
-const char * const fimc_is_param_strerr(unsigned int error)
+const char *fimc_is_param_strerr(unsigned int error)
{
switch (error) {
case ERROR_COMMON_CMD:
@@ -146,7 +146,7 @@ const char * const fimc_is_param_strerr(unsigned int error)
}
}
-const char * const fimc_is_strerr(unsigned int error)
+const char *fimc_is_strerr(unsigned int error)
{
error &= ~IS_ERROR_TIME_OUT_FLAG;
diff --git a/drivers/media/platform/exynos4-is/fimc-is-errno.h b/drivers/media/platform/exynos4-is/fimc-is-errno.h
index 3de6f6da6f87..ef981e74513a 100644
--- a/drivers/media/platform/exynos4-is/fimc-is-errno.h
+++ b/drivers/media/platform/exynos4-is/fimc-is-errno.h
@@ -242,7 +242,7 @@ enum fimc_is_error {
ERROR_SCALER_FLIP = 521,
};
-const char * const fimc_is_strerr(unsigned int error);
-const char * const fimc_is_param_strerr(unsigned int error);
+const char *fimc_is_strerr(unsigned int error);
+const char *fimc_is_param_strerr(unsigned int error);
#endif /* FIMC_IS_ERR_H_ */
diff --git a/drivers/media/platform/exynos4-is/fimc-is-param.c b/drivers/media/platform/exynos4-is/fimc-is-param.c
index bf1465d1bf6d..72b9b436c5c0 100644
--- a/drivers/media/platform/exynos4-is/fimc-is-param.c
+++ b/drivers/media/platform/exynos4-is/fimc-is-param.c
@@ -667,7 +667,6 @@ void __is_set_fd_config_orientation_val(struct fimc_is *is, u32 val)
void fimc_is_set_initial_params(struct fimc_is *is)
{
struct global_param *global;
- struct sensor_param *sensor;
struct isp_param *isp;
struct drc_param *drc;
struct fd_param *fd;
@@ -676,7 +675,6 @@ void fimc_is_set_initial_params(struct fimc_is *is)
index = is->config_index;
global = &is->config[index].global;
- sensor = &is->config[index].sensor;
isp = &is->config[index].isp;
drc = &is->config[index].drc;
fd = &is->config[index].fd;
--
1.9.3
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH v2 21/35] [media] s5p_mfc_ctrl: add missing s5p_mfc_ctrl.h header
2014-08-26 21:54 [PATCH v2 00/35] Enable compilation test for several drivers Mauro Carvalho Chehab
` (19 preceding siblings ...)
2014-08-26 21:54 ` [PATCH v2 20/35] [media] fimc-is-param: get rid of warnings Mauro Carvalho Chehab
@ 2014-08-26 21:54 ` Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 22/35] [media] s5p_mfc: get rid of several warnings Mauro Carvalho Chehab
` (13 subsequent siblings)
34 siblings, 0 replies; 39+ messages in thread
From: Mauro Carvalho Chehab @ 2014-08-26 21:54 UTC (permalink / raw)
Cc: Mauro Carvalho Chehab, Linux Media Mailing List,
Mauro Carvalho Chehab
That gets rid of the following warnings:
drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c:119:5: warning: no previous prototype for 's5p_mfc_release_firmware' [-Wmissing-prototypes]
int s5p_mfc_release_firmware(struct s5p_mfc_dev *dev)
^
drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c:132:5: warning: no previous prototype for 's5p_mfc_reset' [-Wmissing-prototypes]
int s5p_mfc_reset(struct s5p_mfc_dev *dev)
^
drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c:214:5: warning: no previous prototype for 's5p_mfc_init_hw' [-Wmissing-prototypes]
int s5p_mfc_init_hw(struct s5p_mfc_dev *dev)
^
drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c:291:6: warning: no previous prototype for 's5p_mfc_deinit_hw' [-Wmissing-prototypes]
void s5p_mfc_deinit_hw(struct s5p_mfc_dev *dev)
^
drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c:301:5: warning: no previous prototype for 's5p_mfc_sleep' [-Wmissing-prototypes]
int s5p_mfc_sleep(struct s5p_mfc_dev *dev)
^
drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c:330:5: warning: no previous prototype for 's5p_mfc_wakeup' [-Wmissing-prototypes]
int s5p_mfc_wakeup(struct s5p_mfc_dev *dev)
^
drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c:378:5: warning: no previous prototype for 's5p_mfc_open_mfc_inst' [-Wmissing-prototypes]
int s5p_mfc_open_mfc_inst(struct s5p_mfc_dev *dev, struct s5p_mfc_ctx *ctx)
^
drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c:420:6: warning: no previous prototype for 's5p_mfc_close_mfc_inst' [-Wmissing-prototypes]
void s5p_mfc_close_mfc_inst(struct s5p_mfc_dev *dev, struct s5p_mfc_ctx *ctx)
^
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
---
drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c b/drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c
index ca9f78922832..5289b8696c1e 100644
--- a/drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c
@@ -21,6 +21,7 @@
#include "s5p_mfc_intr.h"
#include "s5p_mfc_opr.h"
#include "s5p_mfc_pm.h"
+#include "s5p_mfc_ctrl.h"
/* Allocate memory for firmware */
int s5p_mfc_alloc_firmware(struct s5p_mfc_dev *dev)
--
1.9.3
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH v2 22/35] [media] s5p_mfc: get rid of several warnings
2014-08-26 21:54 [PATCH v2 00/35] Enable compilation test for several drivers Mauro Carvalho Chehab
` (20 preceding siblings ...)
2014-08-26 21:54 ` [PATCH v2 21/35] [media] s5p_mfc_ctrl: add missing s5p_mfc_ctrl.h header Mauro Carvalho Chehab
@ 2014-08-26 21:54 ` Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 23/35] [media] mipi-csis: get rid of a warning Mauro Carvalho Chehab
` (12 subsequent siblings)
34 siblings, 0 replies; 39+ messages in thread
From: Mauro Carvalho Chehab @ 2014-08-26 21:54 UTC (permalink / raw)
Cc: Mauro Carvalho Chehab, Linux Media Mailing List,
Mauro Carvalho Chehab
drivers/media/platform/s5p-mfc/s5p_mfc_dec.c:826:5: warning: no previous prototype for 'vidioc_decoder_cmd' [-Wmissing-prototypes]
int vidioc_decoder_cmd(struct file *file, void *priv,
^
drivers/media/platform/s5p-mfc/s5p_mfc.c: In function 's5p_mfc_runtime_resume':
drivers/media/platform/s5p-mfc/s5p_mfc.c:1314:6: warning: variable 'pre_power' set but not used [-Wunused-but-set-variable]
int pre_power;
^
drivers/media/platform/s5p-mfc/s5p_mfc_cmd_v5.c:163:25: warning: no previous prototype for 's5p_mfc_init_hw_cmds_v5' [-Wmissing-prototypes]
struct s5p_mfc_hw_cmds *s5p_mfc_init_hw_cmds_v5(void)
^
drivers/media/platform/s5p-mfc/s5p_mfc_cmd_v6.c:156:25: warning: no previous prototype for 's5p_mfc_init_hw_cmds_v6' [-Wmissing-prototypes]
struct s5p_mfc_hw_cmds *s5p_mfc_init_hw_cmds_v6(void)
^
drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c: In function 's5p_mfc_run_dec_frame':
drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c:1189:15: warning: variable 'index' set but not used [-Wunused-but-set-variable]
unsigned int index;
^
drivers/media/platform/s5p-mfc/s5p_mfc_enc.c: In function 'cleanup_ref_queue':
drivers/media/platform/s5p-mfc/s5p_mfc_enc.c:742:27: warning: variable 'mb_c_addr' set but not used [-Wunused-but-set-variable]
unsigned long mb_y_addr, mb_c_addr;
^
drivers/media/platform/s5p-mfc/s5p_mfc_enc.c:742:16: warning: variable 'mb_y_addr' set but not used [-Wunused-but-set-variable]
unsigned long mb_y_addr, mb_c_addr;
^
drivers/media/platform/s5p-mfc/s5p_mfc_enc.c: At top level:
drivers/media/platform/s5p-mfc/s5p_mfc_enc.c:1684:5: warning: no previous prototype for 'vidioc_encoder_cmd' [-Wmissing-prototypes]
int vidioc_encoder_cmd(struct file *file, void *priv,
^
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
---
drivers/media/platform/s5p-mfc/s5p_mfc.c | 2 --
drivers/media/platform/s5p-mfc/s5p_mfc_cmd_v5.c | 1 +
drivers/media/platform/s5p-mfc/s5p_mfc_cmd_v6.c | 1 +
drivers/media/platform/s5p-mfc/s5p_mfc_dec.c | 4 ++--
drivers/media/platform/s5p-mfc/s5p_mfc_enc.c | 7 ++-----
drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c | 2 --
6 files changed, 6 insertions(+), 11 deletions(-)
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc.c b/drivers/media/platform/s5p-mfc/s5p_mfc.c
index 89b5b4ad34d3..d180440ac43e 100644
--- a/drivers/media/platform/s5p-mfc/s5p_mfc.c
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc.c
@@ -1311,11 +1311,9 @@ static int s5p_mfc_runtime_resume(struct device *dev)
{
struct platform_device *pdev = to_platform_device(dev);
struct s5p_mfc_dev *m_dev = platform_get_drvdata(pdev);
- int pre_power;
if (!m_dev->alloc_ctx)
return 0;
- pre_power = atomic_read(&m_dev->pm.power);
atomic_set(&m_dev->pm.power, 1);
return 0;
}
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_cmd_v5.c b/drivers/media/platform/s5p-mfc/s5p_mfc_cmd_v5.c
index 9a6efd6c1329..8c4739ca16d6 100644
--- a/drivers/media/platform/s5p-mfc/s5p_mfc_cmd_v5.c
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc_cmd_v5.c
@@ -14,6 +14,7 @@
#include "s5p_mfc_cmd.h"
#include "s5p_mfc_common.h"
#include "s5p_mfc_debug.h"
+#include "s5p_mfc_cmd_v5.h"
/* This function is used to send a command to the MFC */
static int s5p_mfc_cmd_host2risc_v5(struct s5p_mfc_dev *dev, int cmd,
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_cmd_v6.c b/drivers/media/platform/s5p-mfc/s5p_mfc_cmd_v6.c
index ec1a5947ed7d..f17609669b96 100644
--- a/drivers/media/platform/s5p-mfc/s5p_mfc_cmd_v6.c
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc_cmd_v6.c
@@ -16,6 +16,7 @@
#include "s5p_mfc_debug.h"
#include "s5p_mfc_intr.h"
#include "s5p_mfc_opr.h"
+#include "s5p_mfc_cmd_v6.h"
static int s5p_mfc_cmd_host2risc_v6(struct s5p_mfc_dev *dev, int cmd,
struct s5p_mfc_cmd_args *args)
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c b/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c
index 9103258b7df3..fe4d21ccfd49 100644
--- a/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c
@@ -823,8 +823,8 @@ static int vidioc_g_crop(struct file *file, void *priv,
return 0;
}
-int vidioc_decoder_cmd(struct file *file, void *priv,
- struct v4l2_decoder_cmd *cmd)
+static int vidioc_decoder_cmd(struct file *file, void *priv,
+ struct v4l2_decoder_cmd *cmd)
{
struct s5p_mfc_ctx *ctx = fh_to_ctx(priv);
struct s5p_mfc_dev *dev = ctx->dev;
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c b/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c
index d26b2484ca10..41f3b7f512fa 100644
--- a/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c
@@ -739,14 +739,11 @@ static int s5p_mfc_ctx_ready(struct s5p_mfc_ctx *ctx)
static void cleanup_ref_queue(struct s5p_mfc_ctx *ctx)
{
struct s5p_mfc_buf *mb_entry;
- unsigned long mb_y_addr, mb_c_addr;
/* move buffers in ref queue to src queue */
while (!list_empty(&ctx->ref_queue)) {
mb_entry = list_entry((&ctx->ref_queue)->next,
struct s5p_mfc_buf, list);
- mb_y_addr = vb2_dma_contig_plane_dma_addr(mb_entry->b, 0);
- mb_c_addr = vb2_dma_contig_plane_dma_addr(mb_entry->b, 1);
list_del(&mb_entry->list);
ctx->ref_queue_cnt--;
list_add_tail(&mb_entry->list, &ctx->src_queue);
@@ -1681,8 +1678,8 @@ static int vidioc_g_parm(struct file *file, void *priv,
return 0;
}
-int vidioc_encoder_cmd(struct file *file, void *priv,
- struct v4l2_encoder_cmd *cmd)
+static int vidioc_encoder_cmd(struct file *file, void *priv,
+ struct v4l2_encoder_cmd *cmd)
{
struct s5p_mfc_ctx *ctx = fh_to_ctx(priv);
struct s5p_mfc_dev *dev = ctx->dev;
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c b/drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c
index 58ec7bb26ebc..31688cddfead 100644
--- a/drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c
@@ -1186,7 +1186,6 @@ static int s5p_mfc_run_dec_frame(struct s5p_mfc_ctx *ctx, int last_frame)
struct s5p_mfc_dev *dev = ctx->dev;
struct s5p_mfc_buf *temp_vb;
unsigned long flags;
- unsigned int index;
if (ctx->state == MFCINST_FINISHING) {
last_frame = MFC_DEC_LAST_FRAME;
@@ -1211,7 +1210,6 @@ static int s5p_mfc_run_dec_frame(struct s5p_mfc_ctx *ctx, int last_frame)
vb2_dma_contig_plane_dma_addr(temp_vb->b, 0),
ctx->consumed_stream, temp_vb->b->v4l2_planes[0].bytesused);
spin_unlock_irqrestore(&dev->irqlock, flags);
- index = temp_vb->b->v4l2_buf.index;
dev->curr_ctx = ctx->num;
s5p_mfc_clean_ctx_int_flags(ctx);
if (temp_vb->b->v4l2_planes[0].bytesused == 0) {
--
1.9.3
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH v2 23/35] [media] mipi-csis: get rid of a warning
2014-08-26 21:54 [PATCH v2 00/35] Enable compilation test for several drivers Mauro Carvalho Chehab
` (21 preceding siblings ...)
2014-08-26 21:54 ` [PATCH v2 22/35] [media] s5p_mfc: get rid of several warnings Mauro Carvalho Chehab
@ 2014-08-26 21:54 ` Mauro Carvalho Chehab
2014-08-26 21:55 ` [PATCH v2 24/35] [media] exynos4-is/media-dev: get rid of a warning for a dead code Mauro Carvalho Chehab
` (11 subsequent siblings)
34 siblings, 0 replies; 39+ messages in thread
From: Mauro Carvalho Chehab @ 2014-08-26 21:54 UTC (permalink / raw)
Cc: Mauro Carvalho Chehab, Linux Media Mailing List,
Mauro Carvalho Chehab
drivers/media/platform/exynos4-is/mipi-csis.c: In function 's5pcsis_parse_dt':
drivers/media/platform/exynos4-is/mipi-csis.c:756:2: warning: comparison is always false due to limited range of data type [-Wtype-limits]
if (state->index < 0 || state->index >= CSIS_MAX_ENTITIES)
^
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
---
drivers/media/platform/exynos4-is/mipi-csis.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/platform/exynos4-is/mipi-csis.c b/drivers/media/platform/exynos4-is/mipi-csis.c
index ae54ef5f535d..8be8897bc6cd 100644
--- a/drivers/media/platform/exynos4-is/mipi-csis.c
+++ b/drivers/media/platform/exynos4-is/mipi-csis.c
@@ -752,7 +752,7 @@ static int s5pcsis_parse_dt(struct platform_device *pdev,
v4l2_of_parse_endpoint(node, &endpoint);
state->index = endpoint.base.port - FIMC_INPUT_MIPI_CSI2_0;
- if (state->index < 0 || state->index >= CSIS_MAX_ENTITIES)
+ if (state->index >= CSIS_MAX_ENTITIES)
return -ENXIO;
/* Get MIPI CSI-2 bus configration from the endpoint node. */
--
1.9.3
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH v2 24/35] [media] exynos4-is/media-dev: get rid of a warning for a dead code
2014-08-26 21:54 [PATCH v2 00/35] Enable compilation test for several drivers Mauro Carvalho Chehab
` (22 preceding siblings ...)
2014-08-26 21:54 ` [PATCH v2 23/35] [media] mipi-csis: get rid of a warning Mauro Carvalho Chehab
@ 2014-08-26 21:55 ` Mauro Carvalho Chehab
2014-08-26 21:55 ` [PATCH v2 25/35] [media] mx2_camera: get rid of a warning Mauro Carvalho Chehab
` (10 subsequent siblings)
34 siblings, 0 replies; 39+ messages in thread
From: Mauro Carvalho Chehab @ 2014-08-26 21:55 UTC (permalink / raw)
Cc: Mauro Carvalho Chehab, Linux Media Mailing List,
Mauro Carvalho Chehab
drivers/media/platform/exynos4-is/media-dev.c: In function 'fimc_md_link_notify':
drivers/media/platform/exynos4-is/media-dev.c:1102:4: warning: suggest braces around empty body in an 'else' statement [-Wempty-body]
; /* TODO: Link state change validation */
^
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
---
drivers/media/platform/exynos4-is/media-dev.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/media/platform/exynos4-is/media-dev.c b/drivers/media/platform/exynos4-is/media-dev.c
index 344718df5c62..54c49d5e7690 100644
--- a/drivers/media/platform/exynos4-is/media-dev.c
+++ b/drivers/media/platform/exynos4-is/media-dev.c
@@ -1098,8 +1098,10 @@ static int fimc_md_link_notify(struct media_link *link, unsigned int flags,
if (notification == MEDIA_DEV_NOTIFY_PRE_LINK_CH) {
if (!(flags & MEDIA_LNK_FL_ENABLED))
ret = __fimc_md_modify_pipelines(sink, false);
+#if 0
else
- ; /* TODO: Link state change validation */
+ /* TODO: Link state change validation */
+#endif
/* After link activation */
} else if (notification == MEDIA_DEV_NOTIFY_POST_LINK_CH &&
(link->flags & MEDIA_LNK_FL_ENABLED)) {
--
1.9.3
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH v2 25/35] [media] mx2_camera: get rid of a warning
2014-08-26 21:54 [PATCH v2 00/35] Enable compilation test for several drivers Mauro Carvalho Chehab
` (23 preceding siblings ...)
2014-08-26 21:55 ` [PATCH v2 24/35] [media] exynos4-is/media-dev: get rid of a warning for a dead code Mauro Carvalho Chehab
@ 2014-08-26 21:55 ` Mauro Carvalho Chehab
2014-08-26 21:55 ` [PATCH v2 26/35] [media] atmel-isi: " Mauro Carvalho Chehab
` (9 subsequent siblings)
34 siblings, 0 replies; 39+ messages in thread
From: Mauro Carvalho Chehab @ 2014-08-26 21:55 UTC (permalink / raw)
Cc: Mauro Carvalho Chehab, Linux Media Mailing List,
Mauro Carvalho Chehab
drivers/media/platform/soc_camera/mx2_camera.c: In function 'mx27_camera_emma_prp_reset':
drivers/media/platform/soc_camera/mx2_camera.c:812:6: warning: variable 'cntl' set but not used [-Wunused-but-set-variable]
u32 cntl;
^
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
---
drivers/media/platform/soc_camera/mx2_camera.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/media/platform/soc_camera/mx2_camera.c b/drivers/media/platform/soc_camera/mx2_camera.c
index b40bc2e5ba47..2d57c1d272b8 100644
--- a/drivers/media/platform/soc_camera/mx2_camera.c
+++ b/drivers/media/platform/soc_camera/mx2_camera.c
@@ -809,10 +809,9 @@ static int mx2_camera_init_videobuf(struct vb2_queue *q,
static int mx27_camera_emma_prp_reset(struct mx2_camera_dev *pcdev)
{
- u32 cntl;
int count = 0;
- cntl = readl(pcdev->base_emma + PRP_CNTL);
+ readl(pcdev->base_emma + PRP_CNTL);
writel(PRP_CNTL_SWRST, pcdev->base_emma + PRP_CNTL);
while (count++ < 100) {
if (!(readl(pcdev->base_emma + PRP_CNTL) & PRP_CNTL_SWRST))
--
1.9.3
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH v2 26/35] [media] atmel-isi: get rid of a warning
2014-08-26 21:54 [PATCH v2 00/35] Enable compilation test for several drivers Mauro Carvalho Chehab
` (24 preceding siblings ...)
2014-08-26 21:55 ` [PATCH v2 25/35] [media] mx2_camera: get rid of a warning Mauro Carvalho Chehab
@ 2014-08-26 21:55 ` Mauro Carvalho Chehab
2014-08-26 21:55 ` [PATCH v2 27/35] [media] s5p-jpeg: Get " Mauro Carvalho Chehab
` (8 subsequent siblings)
34 siblings, 0 replies; 39+ messages in thread
From: Mauro Carvalho Chehab @ 2014-08-26 21:55 UTC (permalink / raw)
Cc: Mauro Carvalho Chehab, Linux Media Mailing List,
Mauro Carvalho Chehab
drivers/media/platform/soc_camera/atmel-isi.c: In function 'start_streaming':
drivers/media/platform/soc_camera/atmel-isi.c:387:6: warning: variable 'sr' set but not used [-Wunused-but-set-variable]
u32 sr = 0;
^
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
---
drivers/media/platform/soc_camera/atmel-isi.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/media/platform/soc_camera/atmel-isi.c b/drivers/media/platform/soc_camera/atmel-isi.c
index 96a4b112e1ca..c5291b001057 100644
--- a/drivers/media/platform/soc_camera/atmel-isi.c
+++ b/drivers/media/platform/soc_camera/atmel-isi.c
@@ -384,7 +384,6 @@ static int start_streaming(struct vb2_queue *vq, unsigned int count)
struct soc_camera_device *icd = soc_camera_from_vb2q(vq);
struct soc_camera_host *ici = to_soc_camera_host(icd->parent);
struct atmel_isi *isi = ici->priv;
- u32 sr = 0;
int ret;
/* Reset ISI */
@@ -398,7 +397,7 @@ static int start_streaming(struct vb2_queue *vq, unsigned int count)
spin_lock_irq(&isi->lock);
/* Clear any pending interrupt */
- sr = isi_readl(isi, ISI_STATUS);
+ isi_readl(isi, ISI_STATUS);
if (count)
start_dma(isi, isi->active);
--
1.9.3
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH v2 27/35] [media] s5p-jpeg: Get rid of a warning
2014-08-26 21:54 [PATCH v2 00/35] Enable compilation test for several drivers Mauro Carvalho Chehab
` (25 preceding siblings ...)
2014-08-26 21:55 ` [PATCH v2 26/35] [media] atmel-isi: " Mauro Carvalho Chehab
@ 2014-08-26 21:55 ` Mauro Carvalho Chehab
2014-09-02 13:02 ` Kamil Debski
2014-08-26 21:55 ` [PATCH v2 28/35] Revert "[media] staging: omap4iss: copy paste error in iss_get_clocks" Mauro Carvalho Chehab
` (7 subsequent siblings)
34 siblings, 1 reply; 39+ messages in thread
From: Mauro Carvalho Chehab @ 2014-08-26 21:55 UTC (permalink / raw)
Cc: Mauro Carvalho Chehab, Linux Media Mailing List,
Mauro Carvalho Chehab
drivers/media/platform/s5p-jpeg/jpeg-hw-s5p.c: In function 's5p_jpeg_clear_int':
drivers/media/platform/s5p-jpeg/jpeg-hw-s5p.c:327:16: warning: variable 'reg' set but not used [-Wunused-but-set-variable]
unsigned long reg;
^
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
---
drivers/media/platform/s5p-jpeg/jpeg-hw-s5p.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/platform/s5p-jpeg/jpeg-hw-s5p.c b/drivers/media/platform/s5p-jpeg/jpeg-hw-s5p.c
index 52407d790726..0d37bed088df 100644
--- a/drivers/media/platform/s5p-jpeg/jpeg-hw-s5p.c
+++ b/drivers/media/platform/s5p-jpeg/jpeg-hw-s5p.c
@@ -326,7 +326,7 @@ void s5p_jpeg_clear_int(void __iomem *regs)
{
unsigned long reg;
- reg = readl(regs + S5P_JPGINTST);
+ readl(regs + S5P_JPGINTST);
writel(S5P_INT_RELEASE, regs + S5P_JPGCOM);
reg = readl(regs + S5P_JPGOPR);
}
--
1.9.3
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH v2 28/35] Revert "[media] staging: omap4iss: copy paste error in iss_get_clocks"
2014-08-26 21:54 [PATCH v2 00/35] Enable compilation test for several drivers Mauro Carvalho Chehab
` (26 preceding siblings ...)
2014-08-26 21:55 ` [PATCH v2 27/35] [media] s5p-jpeg: Get " Mauro Carvalho Chehab
@ 2014-08-26 21:55 ` Mauro Carvalho Chehab
2014-08-26 21:55 ` [PATCH v2 29/35] [media] enable COMPILE_TEST for MX2 eMMa-PrP driver Mauro Carvalho Chehab
` (6 subsequent siblings)
34 siblings, 0 replies; 39+ messages in thread
From: Mauro Carvalho Chehab @ 2014-08-26 21:55 UTC (permalink / raw)
Cc: Mauro Carvalho Chehab, Linux Media Mailing List,
Mauro Carvalho Chehab
This patch readded a call to iss_put_clocks(), with was removed
by changeset 1153be56a105, causing a compilation breakage.
This reverts commit d4b32646468088323f27a7788ce3b07191015142.
---
drivers/staging/media/omap4iss/iss.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/staging/media/omap4iss/iss.c b/drivers/staging/media/omap4iss/iss.c
index 8a23d164e847..d548371db65a 100644
--- a/drivers/staging/media/omap4iss/iss.c
+++ b/drivers/staging/media/omap4iss/iss.c
@@ -1014,7 +1014,6 @@ static int iss_get_clocks(struct iss_device *iss)
iss->iss_ctrlclk = devm_clk_get(iss->dev, "iss_ctrlclk");
if (IS_ERR(iss->iss_ctrlclk)) {
dev_err(iss->dev, "Unable to get iss_ctrlclk clock info\n");
- iss_put_clocks(iss);
return PTR_ERR(iss->iss_ctrlclk);
}
--
1.9.3
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH v2 29/35] [media] enable COMPILE_TEST for MX2 eMMa-PrP driver
2014-08-26 21:54 [PATCH v2 00/35] Enable compilation test for several drivers Mauro Carvalho Chehab
` (27 preceding siblings ...)
2014-08-26 21:55 ` [PATCH v2 28/35] Revert "[media] staging: omap4iss: copy paste error in iss_get_clocks" Mauro Carvalho Chehab
@ 2014-08-26 21:55 ` Mauro Carvalho Chehab
2014-08-26 21:55 ` [PATCH v2 30/35] [media] enable COMPILE_TEST for ti-vbe Mauro Carvalho Chehab
` (5 subsequent siblings)
34 siblings, 0 replies; 39+ messages in thread
From: Mauro Carvalho Chehab @ 2014-08-26 21:55 UTC (permalink / raw)
Cc: Mauro Carvalho Chehab, Linux Media Mailing List,
Mauro Carvalho Chehab
By allowing compilation on all archs, we can use static
analysis tools to test this driver.
In order to do that, replace asm/sizes.h by its generic
name (linux/sizes.h), with should keep doing the right
thing.
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
---
drivers/media/platform/Kconfig | 3 ++-
drivers/media/platform/mx2_emmaprp.c | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/media/platform/Kconfig b/drivers/media/platform/Kconfig
index 6d86646d9743..66566c920fe9 100644
--- a/drivers/media/platform/Kconfig
+++ b/drivers/media/platform/Kconfig
@@ -185,7 +185,8 @@ config VIDEO_SAMSUNG_S5P_MFC
config VIDEO_MX2_EMMAPRP
tristate "MX2 eMMa-PrP support"
- depends on VIDEO_DEV && VIDEO_V4L2 && SOC_IMX27
+ depends on VIDEO_DEV && VIDEO_V4L2
+ depends on SOC_IMX27 || COMPILE_TEST
select VIDEOBUF2_DMA_CONTIG
select V4L2_MEM2MEM_DEV
help
diff --git a/drivers/media/platform/mx2_emmaprp.c b/drivers/media/platform/mx2_emmaprp.c
index fa8f7cabe364..4971ff21f82b 100644
--- a/drivers/media/platform/mx2_emmaprp.c
+++ b/drivers/media/platform/mx2_emmaprp.c
@@ -27,7 +27,7 @@
#include <media/v4l2-device.h>
#include <media/v4l2-ioctl.h>
#include <media/videobuf2-dma-contig.h>
-#include <asm/sizes.h>
+#include <linux/sizes.h>
#define EMMAPRP_MODULE_NAME "mem2mem-emmaprp"
--
1.9.3
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH v2 30/35] [media] enable COMPILE_TEST for ti-vbe
2014-08-26 21:54 [PATCH v2 00/35] Enable compilation test for several drivers Mauro Carvalho Chehab
` (28 preceding siblings ...)
2014-08-26 21:55 ` [PATCH v2 29/35] [media] enable COMPILE_TEST for MX2 eMMa-PrP driver Mauro Carvalho Chehab
@ 2014-08-26 21:55 ` Mauro Carvalho Chehab
2014-08-26 21:55 ` [PATCH v2 31/35] [media] allow COMPILE_TEST for SAMSUNG_EXYNOS4_IS Mauro Carvalho Chehab
` (4 subsequent siblings)
34 siblings, 0 replies; 39+ messages in thread
From: Mauro Carvalho Chehab @ 2014-08-26 21:55 UTC (permalink / raw)
Cc: Mauro Carvalho Chehab, Linux Media Mailing List,
Mauro Carvalho Chehab
Allowing COMPILE_TEST here is trivial, but there's one missing
header to be added:
drivers/media/platform/ti-vpe/vpe.c: In function ‘vpe_probe’:
drivers/media/platform/ti-vpe/vpe.c:2266:56: error: ‘SZ_32K’ undeclared (first use in this function)
dev->base = devm_ioremap(&pdev->dev, dev->res->start, SZ_32K);
^
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
---
drivers/media/platform/Kconfig | 3 ++-
drivers/media/platform/ti-vpe/vpe.c | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/media/platform/Kconfig b/drivers/media/platform/Kconfig
index 66566c920fe9..6d0a0df6d818 100644
--- a/drivers/media/platform/Kconfig
+++ b/drivers/media/platform/Kconfig
@@ -223,7 +223,8 @@ config VIDEO_RENESAS_VSP1
config VIDEO_TI_VPE
tristate "TI VPE (Video Processing Engine) driver"
- depends on VIDEO_DEV && VIDEO_V4L2 && SOC_DRA7XX
+ depends on VIDEO_DEV && VIDEO_V4L2
+ depends on SOC_DRA7XX || COMPILE_TEST
select VIDEOBUF2_DMA_CONTIG
select V4L2_MEM2MEM_DEV
default n
diff --git a/drivers/media/platform/ti-vpe/vpe.c b/drivers/media/platform/ti-vpe/vpe.c
index 972f43f69206..773b1fbf3269 100644
--- a/drivers/media/platform/ti-vpe/vpe.c
+++ b/drivers/media/platform/ti-vpe/vpe.c
@@ -31,6 +31,7 @@
#include <linux/slab.h>
#include <linux/videodev2.h>
#include <linux/log2.h>
+#include <linux/sizes.h>
#include <media/v4l2-common.h>
#include <media/v4l2-ctrls.h>
--
1.9.3
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH v2 31/35] [media] allow COMPILE_TEST for SAMSUNG_EXYNOS4_IS
2014-08-26 21:54 [PATCH v2 00/35] Enable compilation test for several drivers Mauro Carvalho Chehab
` (29 preceding siblings ...)
2014-08-26 21:55 ` [PATCH v2 30/35] [media] enable COMPILE_TEST for ti-vbe Mauro Carvalho Chehab
@ 2014-08-26 21:55 ` Mauro Carvalho Chehab
2014-08-26 21:55 ` [PATCH v2 32/35] [media] enable COMPILE_TEST for OMAP2 vout Mauro Carvalho Chehab
` (3 subsequent siblings)
34 siblings, 0 replies; 39+ messages in thread
From: Mauro Carvalho Chehab @ 2014-08-26 21:55 UTC (permalink / raw)
Cc: Mauro Carvalho Chehab, Linux Media Mailing List,
Mauro Carvalho Chehab
That helps some static checks, so enable it. While there, it was
noticed that linux/sizes.h was missing:
drivers/media/platform/exynos4-is/mipi-csis.c: In function ‘s5pcsis_s_rx_buffer’:
drivers/media/platform/exynos4-is/mipi-csis.c:114:31: error: ‘SZ_4K’ undeclared (first use in this function)
#define S5PCSIS_PKTDATA_SIZE SZ_4K
^
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
---
drivers/media/platform/exynos4-is/Kconfig | 2 +-
drivers/media/platform/exynos4-is/mipi-csis.c | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig
index 5dcaa0a80540..811872195f36 100644
--- a/drivers/media/platform/exynos4-is/Kconfig
+++ b/drivers/media/platform/exynos4-is/Kconfig
@@ -2,7 +2,7 @@
config VIDEO_SAMSUNG_EXYNOS4_IS
bool "Samsung S5P/EXYNOS4 SoC series Camera Subsystem driver"
depends on VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API
- depends on (PLAT_S5P || ARCH_EXYNOS)
+ depends on (PLAT_S5P || ARCH_EXYNOS || COMPILE_TEST)
depends on OF && COMMON_CLK
help
Say Y here to enable camera host interface devices for
diff --git a/drivers/media/platform/exynos4-is/mipi-csis.c b/drivers/media/platform/exynos4-is/mipi-csis.c
index 8be8897bc6cd..db6fd14d1936 100644
--- a/drivers/media/platform/exynos4-is/mipi-csis.c
+++ b/drivers/media/platform/exynos4-is/mipi-csis.c
@@ -25,6 +25,7 @@
#include <linux/platform_device.h>
#include <linux/pm_runtime.h>
#include <linux/regulator/consumer.h>
+#include <linux/sizes.h>
#include <linux/slab.h>
#include <linux/spinlock.h>
#include <linux/videodev2.h>
--
1.9.3
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH v2 32/35] [media] enable COMPILE_TEST for OMAP2 vout
2014-08-26 21:54 [PATCH v2 00/35] Enable compilation test for several drivers Mauro Carvalho Chehab
` (30 preceding siblings ...)
2014-08-26 21:55 ` [PATCH v2 31/35] [media] allow COMPILE_TEST for SAMSUNG_EXYNOS4_IS Mauro Carvalho Chehab
@ 2014-08-26 21:55 ` Mauro Carvalho Chehab
2014-08-26 21:55 ` [PATCH v2 33/35] [media] enable COMPILE_TEST for media drivers Mauro Carvalho Chehab
` (2 subsequent siblings)
34 siblings, 0 replies; 39+ messages in thread
From: Mauro Carvalho Chehab @ 2014-08-26 21:55 UTC (permalink / raw)
Cc: Mauro Carvalho Chehab, Linux Media Mailing List,
Mauro Carvalho Chehab
We don't need anything special to enable COMPILE_TEST for
this driver.
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
---
drivers/media/platform/Makefile | 2 +-
drivers/media/platform/omap/Kconfig | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/media/platform/Makefile b/drivers/media/platform/Makefile
index 4ac4c91b4415..b598b3bb2645 100644
--- a/drivers/media/platform/Makefile
+++ b/drivers/media/platform/Makefile
@@ -49,6 +49,6 @@ obj-$(CONFIG_VIDEO_RENESAS_VSP1) += vsp1/
obj-y += davinci/
-obj-$(CONFIG_ARCH_OMAP) += omap/
+obj-y += omap/
ccflags-y += -I$(srctree)/drivers/media/i2c
diff --git a/drivers/media/platform/omap/Kconfig b/drivers/media/platform/omap/Kconfig
index 37ad446b35b3..2253bf102ed9 100644
--- a/drivers/media/platform/omap/Kconfig
+++ b/drivers/media/platform/omap/Kconfig
@@ -3,7 +3,7 @@ config VIDEO_OMAP2_VOUT_VRFB
config VIDEO_OMAP2_VOUT
tristate "OMAP2/OMAP3 V4L2-Display driver"
- depends on ARCH_OMAP2 || ARCH_OMAP3
+ depends on ARCH_OMAP2 || ARCH_OMAP3 || COMPILE_TEST
select VIDEOBUF_GEN
select VIDEOBUF_DMA_CONTIG
select OMAP2_DSS if HAS_IOMEM && ARCH_OMAP2PLUS
--
1.9.3
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH v2 33/35] [media] enable COMPILE_TEST for media drivers
2014-08-26 21:54 [PATCH v2 00/35] Enable compilation test for several drivers Mauro Carvalho Chehab
` (31 preceding siblings ...)
2014-08-26 21:55 ` [PATCH v2 32/35] [media] enable COMPILE_TEST for OMAP2 vout Mauro Carvalho Chehab
@ 2014-08-26 21:55 ` Mauro Carvalho Chehab
2014-08-26 21:55 ` [PATCH v2 34/35] [media] be sure that HAS_DMA is enabled for vb2-dma-contig Mauro Carvalho Chehab
2014-08-26 21:55 ` [PATCH v2 35/35] [media] omap: be sure that MMU is there for COMPILE_TEST Mauro Carvalho Chehab
34 siblings, 0 replies; 39+ messages in thread
From: Mauro Carvalho Chehab @ 2014-08-26 21:55 UTC (permalink / raw)
Cc: Mauro Carvalho Chehab, Linux Media Mailing List,
Mauro Carvalho Chehab
There are several arch-specific media drivers that don't
require asm-specific includes and can be successfully
compiled on x86. Add COMPILE_TEST dependency for them, in
order to allow a broader test on those drivers.
That helps static analysis tools like Coverity to discover
eventual troubles there.
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
---
drivers/media/platform/Kconfig | 21 ++++++++++++++-------
drivers/media/platform/davinci/Kconfig | 12 ++++++++----
drivers/media/platform/s5p-tv/Kconfig | 3 ++-
drivers/media/platform/soc_camera/Kconfig | 10 +++++++---
drivers/media/rc/Kconfig | 5 +++--
5 files changed, 34 insertions(+), 17 deletions(-)
diff --git a/drivers/media/platform/Kconfig b/drivers/media/platform/Kconfig
index 6d0a0df6d818..a8ae457f8a02 100644
--- a/drivers/media/platform/Kconfig
+++ b/drivers/media/platform/Kconfig
@@ -56,7 +56,8 @@ config VIDEO_VIU
config VIDEO_TIMBERDALE
tristate "Support for timberdale Video In/LogiWIN"
- depends on MFD_TIMBERDALE && VIDEO_V4L2 && I2C && DMADEVICES
+ depends on VIDEO_V4L2 && I2C && DMADEVICES
+ depends on MFD_TIMBERDALE || COMPILE_TEST
select DMA_ENGINE
select TIMB_DMA
select VIDEO_ADV7180
@@ -74,7 +75,8 @@ config VIDEO_VINO
config VIDEO_M32R_AR
tristate "AR devices"
- depends on M32R && VIDEO_V4L2
+ depends on VIDEO_V4L2
+ depends on M32R || COMPILE_TEST
---help---
This is a video4linux driver for the Renesas AR (Artificial Retina)
camera module.
@@ -109,7 +111,8 @@ config VIDEO_OMAP3_DEBUG
config VIDEO_S3C_CAMIF
tristate "Samsung S3C24XX/S3C64XX SoC Camera Interface driver"
depends on VIDEO_V4L2 && I2C && VIDEO_V4L2_SUBDEV_API
- depends on (ARCH_S3C64XX || PLAT_S3C24XX) && PM_RUNTIME
+ depends on PM_RUNTIME
+ depends on ARCH_S3C64XX || PLAT_S3C24XX || COMPILE_TEST
select VIDEOBUF2_DMA_CONTIG
---help---
This is a v4l2 driver for s3c24xx and s3c64xx SoC series camera
@@ -158,7 +161,8 @@ config VIDEO_MEM2MEM_DEINTERLACE
config VIDEO_SAMSUNG_S5P_G2D
tristate "Samsung S5P and EXYNOS4 G2D 2d graphics accelerator driver"
- depends on VIDEO_DEV && VIDEO_V4L2 && (PLAT_S5P || ARCH_EXYNOS)
+ depends on VIDEO_DEV && VIDEO_V4L2
+ depends on PLAT_S5P || ARCH_EXYNOS || COMPILE_TEST
select VIDEOBUF2_DMA_CONTIG
select V4L2_MEM2MEM_DEV
default n
@@ -168,7 +172,8 @@ config VIDEO_SAMSUNG_S5P_G2D
config VIDEO_SAMSUNG_S5P_JPEG
tristate "Samsung S5P/Exynos3250/Exynos4 JPEG codec driver"
- depends on VIDEO_DEV && VIDEO_V4L2 && (PLAT_S5P || ARCH_EXYNOS)
+ depends on VIDEO_DEV && VIDEO_V4L2
+ depends on PLAT_S5P || ARCH_EXYNOS || COMPILE_TEST
select VIDEOBUF2_DMA_CONTIG
select V4L2_MEM2MEM_DEV
---help---
@@ -177,7 +182,8 @@ config VIDEO_SAMSUNG_S5P_JPEG
config VIDEO_SAMSUNG_S5P_MFC
tristate "Samsung S5P MFC Video Codec"
- depends on VIDEO_DEV && VIDEO_V4L2 && (PLAT_S5P || ARCH_EXYNOS)
+ depends on VIDEO_DEV && VIDEO_V4L2
+ depends on PLAT_S5P || ARCH_EXYNOS || COMPILE_TEST
select VIDEOBUF2_DMA_CONTIG
default n
help
@@ -196,7 +202,8 @@ config VIDEO_MX2_EMMAPRP
config VIDEO_SAMSUNG_EXYNOS_GSC
tristate "Samsung Exynos G-Scaler driver"
- depends on VIDEO_DEV && VIDEO_V4L2 && ARCH_EXYNOS5
+ depends on VIDEO_DEV && VIDEO_V4L2
+ depends on ARCH_EXYNOS5 || COMPILE_TEST
select VIDEOBUF2_DMA_CONTIG
select V4L2_MEM2MEM_DEV
help
diff --git a/drivers/media/platform/davinci/Kconfig b/drivers/media/platform/davinci/Kconfig
index afb3aec1320e..35809278e349 100644
--- a/drivers/media/platform/davinci/Kconfig
+++ b/drivers/media/platform/davinci/Kconfig
@@ -1,6 +1,7 @@
config VIDEO_DAVINCI_VPIF_DISPLAY
tristate "TI DaVinci VPIF V4L2-Display driver"
- depends on VIDEO_DEV && ARCH_DAVINCI
+ depends on VIDEO_DEV
+ depends on ARCH_DAVINCI || COMPILE_TEST
select VIDEOBUF2_DMA_CONTIG
select VIDEO_ADV7343 if MEDIA_SUBDRV_AUTOSELECT
select VIDEO_THS7303 if MEDIA_SUBDRV_AUTOSELECT
@@ -14,7 +15,8 @@ config VIDEO_DAVINCI_VPIF_DISPLAY
config VIDEO_DAVINCI_VPIF_CAPTURE
tristate "TI DaVinci VPIF video capture driver"
- depends on VIDEO_DEV && ARCH_DAVINCI
+ depends on VIDEO_DEV
+ depends on ARCH_DAVINCI || COMPILE_TEST
select VIDEOBUF2_DMA_CONTIG
help
Enables Davinci VPIF module used for capture devices.
@@ -26,7 +28,8 @@ config VIDEO_DAVINCI_VPIF_CAPTURE
config VIDEO_DM6446_CCDC
tristate "TI DM6446 CCDC video capture driver"
- depends on VIDEO_V4L2 && (ARCH_DAVINCI || ARCH_OMAP3)
+ depends on VIDEO_V4L2
+ depends on ARCH_DAVINCI || ARCH_OMAP3 || COMPILE_TEST
select VIDEOBUF_DMA_CONTIG
help
Enables DaVinci CCD hw module. DaVinci CCDC hw interfaces
@@ -40,7 +43,8 @@ config VIDEO_DM6446_CCDC
config VIDEO_DM355_CCDC
tristate "TI DM355 CCDC video capture driver"
- depends on VIDEO_V4L2 && ARCH_DAVINCI
+ depends on VIDEO_V4L2
+ depends on ARCH_DAVINCI || COMPILE_TEST
select VIDEOBUF_DMA_CONTIG
help
Enables DM355 CCD hw module. DM355 CCDC hw interfaces
diff --git a/drivers/media/platform/s5p-tv/Kconfig b/drivers/media/platform/s5p-tv/Kconfig
index 369a4c191e18..9f38b3dbe0a8 100644
--- a/drivers/media/platform/s5p-tv/Kconfig
+++ b/drivers/media/platform/s5p-tv/Kconfig
@@ -8,7 +8,8 @@
config VIDEO_SAMSUNG_S5P_TV
bool "Samsung TV driver for S5P platform"
- depends on (PLAT_S5P || ARCH_EXYNOS) && PM_RUNTIME
+ depends on PM_RUNTIME
+ depends on PLAT_S5P || ARCH_EXYNOS || COMPILE_TEST
default n
---help---
Say Y here to enable selecting the TV output devices for
diff --git a/drivers/media/platform/soc_camera/Kconfig b/drivers/media/platform/soc_camera/Kconfig
index 6540847f4e1d..c0d4c0f822ea 100644
--- a/drivers/media/platform/soc_camera/Kconfig
+++ b/drivers/media/platform/soc_camera/Kconfig
@@ -20,6 +20,7 @@ config SOC_CAMERA_PLATFORM
config VIDEO_MX3
tristate "i.MX3x Camera Sensor Interface driver"
depends on VIDEO_DEV && MX3_IPU && SOC_CAMERA
+ depends on MX3_IPU || COMPILE_TEST
select VIDEOBUF2_DMA_CONTIG
---help---
This is a v4l2 driver for the i.MX3x Camera Sensor Interface
@@ -58,7 +59,8 @@ config VIDEO_SH_MOBILE_CEU
config VIDEO_OMAP1
tristate "OMAP1 Camera Interface driver"
- depends on VIDEO_DEV && ARCH_OMAP1 && SOC_CAMERA
+ depends on VIDEO_DEV && SOC_CAMERA
+ depends on ARCH_OMAP1 || COMPILE_TEST
select VIDEOBUF_DMA_CONTIG
select VIDEOBUF_DMA_SG
---help---
@@ -66,14 +68,16 @@ config VIDEO_OMAP1
config VIDEO_MX2
tristate "i.MX27 Camera Sensor Interface driver"
- depends on VIDEO_DEV && SOC_CAMERA && SOC_IMX27
+ depends on VIDEO_DEV && SOC_CAMERA
+ depends on SOC_IMX27 || COMPILE_TEST
select VIDEOBUF2_DMA_CONTIG
---help---
This is a v4l2 driver for the i.MX27 Camera Sensor Interface
config VIDEO_ATMEL_ISI
tristate "ATMEL Image Sensor Interface (ISI) support"
- depends on VIDEO_DEV && SOC_CAMERA && ARCH_AT91
+ depends on VIDEO_DEV && SOC_CAMERA
+ depends on ARCH_AT91 || COMPILE_TEST
select VIDEOBUF2_DMA_CONTIG
---help---
This module makes the ATMEL Image Sensor Interface available
diff --git a/drivers/media/rc/Kconfig b/drivers/media/rc/Kconfig
index 5e626af8e313..2b0cc4a98e88 100644
--- a/drivers/media/rc/Kconfig
+++ b/drivers/media/rc/Kconfig
@@ -333,7 +333,8 @@ config IR_GPIO_CIR
config RC_ST
tristate "ST remote control receiver"
- depends on ARCH_STI && RC_CORE
+ depends on RC_CORE
+ depends on ARCH_STI || COMPILE_TEST
help
Say Y here if you want support for ST remote control driver
which allows both IR and UHF RX.
@@ -344,7 +345,7 @@ config RC_ST
config IR_SUNXI
tristate "SUNXI IR remote control"
depends on RC_CORE
- depends on ARCH_SUNXI
+ depends on ARCH_SUNXI || COMPILE_TEST
---help---
Say Y if you want to use sunXi internal IR Controller
--
1.9.3
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH v2 34/35] [media] be sure that HAS_DMA is enabled for vb2-dma-contig
2014-08-26 21:54 [PATCH v2 00/35] Enable compilation test for several drivers Mauro Carvalho Chehab
` (32 preceding siblings ...)
2014-08-26 21:55 ` [PATCH v2 33/35] [media] enable COMPILE_TEST for media drivers Mauro Carvalho Chehab
@ 2014-08-26 21:55 ` Mauro Carvalho Chehab
2014-08-26 21:55 ` [PATCH v2 35/35] [media] omap: be sure that MMU is there for COMPILE_TEST Mauro Carvalho Chehab
34 siblings, 0 replies; 39+ messages in thread
From: Mauro Carvalho Chehab @ 2014-08-26 21:55 UTC (permalink / raw)
Cc: Mauro Carvalho Chehab, Linux Media Mailing List,
Mauro Carvalho Chehab
vb2-dma-contig depends on HAS_DMA, but the Kbuild doesn't take
it into account at select.
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
---
drivers/media/pci/solo6x10/Kconfig | 1 +
drivers/media/pci/sta2x11/Kconfig | 1 +
drivers/media/platform/Kconfig | 12 ++++++++++++
drivers/media/platform/blackfin/Kconfig | 1 +
drivers/media/platform/davinci/Kconfig | 6 ++++++
drivers/media/platform/exynos4-is/Kconfig | 3 +++
drivers/media/platform/marvell-ccic/Kconfig | 2 ++
drivers/media/platform/s5p-tv/Kconfig | 1 +
drivers/media/platform/soc_camera/Kconfig | 6 ++++++
drivers/staging/media/davinci_vpfe/Kconfig | 1 +
drivers/staging/media/dt3155v4l/Kconfig | 1 +
drivers/staging/media/omap4iss/Kconfig | 1 +
12 files changed, 36 insertions(+)
diff --git a/drivers/media/pci/solo6x10/Kconfig b/drivers/media/pci/solo6x10/Kconfig
index d9e06a6bf1eb..0fb91dc7ca73 100644
--- a/drivers/media/pci/solo6x10/Kconfig
+++ b/drivers/media/pci/solo6x10/Kconfig
@@ -1,6 +1,7 @@
config VIDEO_SOLO6X10
tristate "Bluecherry / Softlogic 6x10 capture cards (MPEG-4/H.264)"
depends on PCI && VIDEO_DEV && SND && I2C
+ depends on HAS_DMA
select BITREVERSE
select FONT_SUPPORT
select FONT_8x16
diff --git a/drivers/media/pci/sta2x11/Kconfig b/drivers/media/pci/sta2x11/Kconfig
index 03130157db83..f6f30abc088b 100644
--- a/drivers/media/pci/sta2x11/Kconfig
+++ b/drivers/media/pci/sta2x11/Kconfig
@@ -1,6 +1,7 @@
config STA2X11_VIP
tristate "STA2X11 VIP Video For Linux"
depends on STA2X11
+ depends on HAS_DMA
select VIDEO_ADV7180 if MEDIA_SUBDRV_AUTOSELECT
select VIDEOBUF2_DMA_CONTIG
depends on PCI && VIDEO_V4L2 && VIRT_TO_BUS
diff --git a/drivers/media/platform/Kconfig b/drivers/media/platform/Kconfig
index a8ae457f8a02..ae021faf7a42 100644
--- a/drivers/media/platform/Kconfig
+++ b/drivers/media/platform/Kconfig
@@ -96,6 +96,7 @@ config VIDEO_M32R_AR_M64278
config VIDEO_OMAP3
tristate "OMAP 3 Camera support"
depends on VIDEO_V4L2 && I2C && VIDEO_V4L2_SUBDEV_API && ARCH_OMAP3
+ depends on HAS_DMA
select ARM_DMA_USE_IOMMU
select OMAP_IOMMU
select VIDEOBUF2_DMA_CONTIG
@@ -113,6 +114,7 @@ config VIDEO_S3C_CAMIF
depends on VIDEO_V4L2 && I2C && VIDEO_V4L2_SUBDEV_API
depends on PM_RUNTIME
depends on ARCH_S3C64XX || PLAT_S3C24XX || COMPILE_TEST
+ depends on HAS_DMA
select VIDEOBUF2_DMA_CONTIG
---help---
This is a v4l2 driver for s3c24xx and s3c64xx SoC series camera
@@ -143,6 +145,7 @@ if V4L_MEM2MEM_DRIVERS
config VIDEO_CODA
tristate "Chips&Media Coda multi-standard codec IP"
depends on VIDEO_DEV && VIDEO_V4L2 && ARCH_MXC
+ depends on HAS_DMA
select SRAM
select VIDEOBUF2_DMA_CONTIG
select V4L2_MEM2MEM_DEV
@@ -154,6 +157,7 @@ config VIDEO_CODA
config VIDEO_MEM2MEM_DEINTERLACE
tristate "Deinterlace support"
depends on VIDEO_DEV && VIDEO_V4L2 && DMA_ENGINE
+ depends on HAS_DMA
select VIDEOBUF2_DMA_CONTIG
select V4L2_MEM2MEM_DEV
help
@@ -163,6 +167,7 @@ config VIDEO_SAMSUNG_S5P_G2D
tristate "Samsung S5P and EXYNOS4 G2D 2d graphics accelerator driver"
depends on VIDEO_DEV && VIDEO_V4L2
depends on PLAT_S5P || ARCH_EXYNOS || COMPILE_TEST
+ depends on HAS_DMA
select VIDEOBUF2_DMA_CONTIG
select V4L2_MEM2MEM_DEV
default n
@@ -174,6 +179,7 @@ config VIDEO_SAMSUNG_S5P_JPEG
tristate "Samsung S5P/Exynos3250/Exynos4 JPEG codec driver"
depends on VIDEO_DEV && VIDEO_V4L2
depends on PLAT_S5P || ARCH_EXYNOS || COMPILE_TEST
+ depends on HAS_DMA
select VIDEOBUF2_DMA_CONTIG
select V4L2_MEM2MEM_DEV
---help---
@@ -184,6 +190,7 @@ config VIDEO_SAMSUNG_S5P_MFC
tristate "Samsung S5P MFC Video Codec"
depends on VIDEO_DEV && VIDEO_V4L2
depends on PLAT_S5P || ARCH_EXYNOS || COMPILE_TEST
+ depends on HAS_DMA
select VIDEOBUF2_DMA_CONTIG
default n
help
@@ -193,6 +200,7 @@ config VIDEO_MX2_EMMAPRP
tristate "MX2 eMMa-PrP support"
depends on VIDEO_DEV && VIDEO_V4L2
depends on SOC_IMX27 || COMPILE_TEST
+ depends on HAS_DMA
select VIDEOBUF2_DMA_CONTIG
select V4L2_MEM2MEM_DEV
help
@@ -204,6 +212,7 @@ config VIDEO_SAMSUNG_EXYNOS_GSC
tristate "Samsung Exynos G-Scaler driver"
depends on VIDEO_DEV && VIDEO_V4L2
depends on ARCH_EXYNOS5 || COMPILE_TEST
+ depends on HAS_DMA
select VIDEOBUF2_DMA_CONTIG
select V4L2_MEM2MEM_DEV
help
@@ -212,6 +221,7 @@ config VIDEO_SAMSUNG_EXYNOS_GSC
config VIDEO_SH_VEU
tristate "SuperH VEU mem2mem video processing driver"
depends on VIDEO_DEV && VIDEO_V4L2 && HAS_DMA
+ depends on HAS_DMA
select VIDEOBUF2_DMA_CONTIG
select V4L2_MEM2MEM_DEV
help
@@ -221,6 +231,7 @@ config VIDEO_SH_VEU
config VIDEO_RENESAS_VSP1
tristate "Renesas VSP1 Video Processing Engine"
depends on VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API && HAS_DMA
+ depends on HAS_DMA
select VIDEOBUF2_DMA_CONTIG
---help---
This is a V4L2 driver for the Renesas VSP1 video processing engine.
@@ -232,6 +243,7 @@ config VIDEO_TI_VPE
tristate "TI VPE (Video Processing Engine) driver"
depends on VIDEO_DEV && VIDEO_V4L2
depends on SOC_DRA7XX || COMPILE_TEST
+ depends on HAS_DMA
select VIDEOBUF2_DMA_CONTIG
select V4L2_MEM2MEM_DEV
default n
diff --git a/drivers/media/platform/blackfin/Kconfig b/drivers/media/platform/blackfin/Kconfig
index cc239972fa2c..68fa90151b8f 100644
--- a/drivers/media/platform/blackfin/Kconfig
+++ b/drivers/media/platform/blackfin/Kconfig
@@ -1,6 +1,7 @@
config VIDEO_BLACKFIN_CAPTURE
tristate "Blackfin Video Capture Driver"
depends on VIDEO_V4L2 && BLACKFIN && I2C
+ depends on HAS_DMA
select VIDEOBUF2_DMA_CONTIG
help
V4L2 bridge driver for Blackfin video capture device.
diff --git a/drivers/media/platform/davinci/Kconfig b/drivers/media/platform/davinci/Kconfig
index 35809278e349..b04016e8532d 100644
--- a/drivers/media/platform/davinci/Kconfig
+++ b/drivers/media/platform/davinci/Kconfig
@@ -2,6 +2,7 @@ config VIDEO_DAVINCI_VPIF_DISPLAY
tristate "TI DaVinci VPIF V4L2-Display driver"
depends on VIDEO_DEV
depends on ARCH_DAVINCI || COMPILE_TEST
+ depends on HAS_DMA
select VIDEOBUF2_DMA_CONTIG
select VIDEO_ADV7343 if MEDIA_SUBDRV_AUTOSELECT
select VIDEO_THS7303 if MEDIA_SUBDRV_AUTOSELECT
@@ -17,6 +18,7 @@ config VIDEO_DAVINCI_VPIF_CAPTURE
tristate "TI DaVinci VPIF video capture driver"
depends on VIDEO_DEV
depends on ARCH_DAVINCI || COMPILE_TEST
+ depends on HAS_DMA
select VIDEOBUF2_DMA_CONTIG
help
Enables Davinci VPIF module used for capture devices.
@@ -30,6 +32,7 @@ config VIDEO_DM6446_CCDC
tristate "TI DM6446 CCDC video capture driver"
depends on VIDEO_V4L2
depends on ARCH_DAVINCI || ARCH_OMAP3 || COMPILE_TEST
+ depends on HAS_DMA
select VIDEOBUF_DMA_CONTIG
help
Enables DaVinci CCD hw module. DaVinci CCDC hw interfaces
@@ -45,6 +48,7 @@ config VIDEO_DM355_CCDC
tristate "TI DM355 CCDC video capture driver"
depends on VIDEO_V4L2
depends on ARCH_DAVINCI || COMPILE_TEST
+ depends on HAS_DMA
select VIDEOBUF_DMA_CONTIG
help
Enables DM355 CCD hw module. DM355 CCDC hw interfaces
@@ -59,6 +63,7 @@ config VIDEO_DM355_CCDC
config VIDEO_DM365_ISIF
tristate "TI DM365 ISIF video capture driver"
depends on VIDEO_V4L2 && ARCH_DAVINCI
+ depends on HAS_DMA
select VIDEOBUF_DMA_CONTIG
help
Enables ISIF hw module. This is the hardware module for
@@ -71,6 +76,7 @@ config VIDEO_DM365_ISIF
config VIDEO_DAVINCI_VPBE_DISPLAY
tristate "TI DaVinci VPBE V4L2-Display driver"
depends on ARCH_DAVINCI
+ depends on HAS_DMA
select VIDEOBUF2_DMA_CONTIG
help
Enables Davinci VPBE module used for display devices.
diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig
index 811872195f36..77c951237744 100644
--- a/drivers/media/platform/exynos4-is/Kconfig
+++ b/drivers/media/platform/exynos4-is/Kconfig
@@ -16,6 +16,7 @@ config VIDEO_EXYNOS4_IS_COMMON
config VIDEO_S5P_FIMC
tristate "S5P/EXYNOS4 FIMC/CAMIF camera interface driver"
depends on I2C
+ depends on HAS_DMA
select VIDEOBUF2_DMA_CONTIG
select V4L2_MEM2MEM_DEV
select MFD_SYSCON
@@ -43,6 +44,7 @@ if SOC_EXYNOS4212 || SOC_EXYNOS4412 || SOC_EXYNOS5250
config VIDEO_EXYNOS_FIMC_LITE
tristate "EXYNOS FIMC-LITE camera interface driver"
depends on I2C
+ depends on HAS_DMA
select VIDEOBUF2_DMA_CONTIG
select VIDEO_EXYNOS4_IS_COMMON
help
@@ -55,6 +57,7 @@ endif
config VIDEO_EXYNOS4_FIMC_IS
tristate "EXYNOS4x12 FIMC-IS (Imaging Subsystem) driver"
+ depends on HAS_DMA
select VIDEOBUF2_DMA_CONTIG
depends on OF
select FW_LOADER
diff --git a/drivers/media/platform/marvell-ccic/Kconfig b/drivers/media/platform/marvell-ccic/Kconfig
index bf739e3b3398..6265d36adceb 100644
--- a/drivers/media/platform/marvell-ccic/Kconfig
+++ b/drivers/media/platform/marvell-ccic/Kconfig
@@ -1,6 +1,7 @@
config VIDEO_CAFE_CCIC
tristate "Marvell 88ALP01 (Cafe) CMOS Camera Controller support"
depends on PCI && I2C && VIDEO_V4L2
+ depends on HAS_DMA
select VIDEO_OV7670
select VIDEOBUF2_VMALLOC
select VIDEOBUF2_DMA_CONTIG
@@ -12,6 +13,7 @@ config VIDEO_CAFE_CCIC
config VIDEO_MMP_CAMERA
tristate "Marvell Armada 610 integrated camera controller support"
depends on ARCH_MMP && I2C && VIDEO_V4L2
+ depends on HAS_DMA
select VIDEO_OV7670
select I2C_GPIO
select VIDEOBUF2_DMA_SG
diff --git a/drivers/media/platform/s5p-tv/Kconfig b/drivers/media/platform/s5p-tv/Kconfig
index 9f38b3dbe0a8..a9d56f8936b4 100644
--- a/drivers/media/platform/s5p-tv/Kconfig
+++ b/drivers/media/platform/s5p-tv/Kconfig
@@ -71,6 +71,7 @@ config VIDEO_SAMSUNG_S5P_MIXER
tristate "Samsung Mixer and Video Processor Driver"
depends on VIDEO_DEV && VIDEO_V4L2
depends on VIDEO_SAMSUNG_S5P_TV
+ depends on HAS_DMA
select VIDEOBUF2_DMA_CONTIG
help
Say Y here if you want support for the Mixer in Samsung S5P SoCs.
diff --git a/drivers/media/platform/soc_camera/Kconfig b/drivers/media/platform/soc_camera/Kconfig
index c0d4c0f822ea..6af6c6dccda8 100644
--- a/drivers/media/platform/soc_camera/Kconfig
+++ b/drivers/media/platform/soc_camera/Kconfig
@@ -21,6 +21,7 @@ config VIDEO_MX3
tristate "i.MX3x Camera Sensor Interface driver"
depends on VIDEO_DEV && MX3_IPU && SOC_CAMERA
depends on MX3_IPU || COMPILE_TEST
+ depends on HAS_DMA
select VIDEOBUF2_DMA_CONTIG
---help---
This is a v4l2 driver for the i.MX3x Camera Sensor Interface
@@ -36,6 +37,7 @@ config VIDEO_RCAR_VIN
tristate "R-Car Video Input (VIN) support"
depends on VIDEO_DEV && SOC_CAMERA
depends on ARCH_SHMOBILE || COMPILE_TEST
+ depends on HAS_DMA
select VIDEOBUF2_DMA_CONTIG
select SOC_CAMERA_SCALE_CROP
---help---
@@ -52,6 +54,7 @@ config VIDEO_SH_MOBILE_CEU
tristate "SuperH Mobile CEU Interface driver"
depends on VIDEO_DEV && SOC_CAMERA && HAS_DMA && HAVE_CLK
depends on ARCH_SHMOBILE || SUPERH || COMPILE_TEST
+ depends on HAS_DMA
select VIDEOBUF2_DMA_CONTIG
select SOC_CAMERA_SCALE_CROP
---help---
@@ -61,6 +64,7 @@ config VIDEO_OMAP1
tristate "OMAP1 Camera Interface driver"
depends on VIDEO_DEV && SOC_CAMERA
depends on ARCH_OMAP1 || COMPILE_TEST
+ depends on HAS_DMA
select VIDEOBUF_DMA_CONTIG
select VIDEOBUF_DMA_SG
---help---
@@ -70,6 +74,7 @@ config VIDEO_MX2
tristate "i.MX27 Camera Sensor Interface driver"
depends on VIDEO_DEV && SOC_CAMERA
depends on SOC_IMX27 || COMPILE_TEST
+ depends on HAS_DMA
select VIDEOBUF2_DMA_CONTIG
---help---
This is a v4l2 driver for the i.MX27 Camera Sensor Interface
@@ -78,6 +83,7 @@ config VIDEO_ATMEL_ISI
tristate "ATMEL Image Sensor Interface (ISI) support"
depends on VIDEO_DEV && SOC_CAMERA
depends on ARCH_AT91 || COMPILE_TEST
+ depends on HAS_DMA
select VIDEOBUF2_DMA_CONTIG
---help---
This module makes the ATMEL Image Sensor Interface available
diff --git a/drivers/staging/media/davinci_vpfe/Kconfig b/drivers/staging/media/davinci_vpfe/Kconfig
index 12f321dd2399..4de2f082491d 100644
--- a/drivers/staging/media/davinci_vpfe/Kconfig
+++ b/drivers/staging/media/davinci_vpfe/Kconfig
@@ -1,6 +1,7 @@
config VIDEO_DM365_VPFE
tristate "DM365 VPFE Media Controller Capture Driver"
depends on VIDEO_V4L2 && ARCH_DAVINCI_DM365 && !VIDEO_DM365_ISIF
+ depends on HAS_DMA
select VIDEOBUF2_DMA_CONTIG
help
Support for DM365 VPFE based Media Controller Capture driver.
diff --git a/drivers/staging/media/dt3155v4l/Kconfig b/drivers/staging/media/dt3155v4l/Kconfig
index 226a1ca90b3c..2d496001b6e8 100644
--- a/drivers/staging/media/dt3155v4l/Kconfig
+++ b/drivers/staging/media/dt3155v4l/Kconfig
@@ -1,6 +1,7 @@
config VIDEO_DT3155
tristate "DT3155 frame grabber, Video4Linux interface"
depends on PCI && VIDEO_DEV && VIDEO_V4L2
+ depends on HAS_DMA
select VIDEOBUF2_DMA_CONTIG
default n
---help---
diff --git a/drivers/staging/media/omap4iss/Kconfig b/drivers/staging/media/omap4iss/Kconfig
index 8afc6fee40c5..b78643f907e7 100644
--- a/drivers/staging/media/omap4iss/Kconfig
+++ b/drivers/staging/media/omap4iss/Kconfig
@@ -1,6 +1,7 @@
config VIDEO_OMAP4
bool "OMAP 4 Camera support"
depends on VIDEO_V4L2=y && VIDEO_V4L2_SUBDEV_API && I2C=y && ARCH_OMAP4
+ depends on HAS_DMA
select VIDEOBUF2_DMA_CONTIG
---help---
Driver for an OMAP 4 ISS controller.
--
1.9.3
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH v2 35/35] [media] omap: be sure that MMU is there for COMPILE_TEST
2014-08-26 21:54 [PATCH v2 00/35] Enable compilation test for several drivers Mauro Carvalho Chehab
` (33 preceding siblings ...)
2014-08-26 21:55 ` [PATCH v2 34/35] [media] be sure that HAS_DMA is enabled for vb2-dma-contig Mauro Carvalho Chehab
@ 2014-08-26 21:55 ` Mauro Carvalho Chehab
2014-09-19 7:23 ` [v2,35/35,media] " Paul Bolle
34 siblings, 1 reply; 39+ messages in thread
From: Mauro Carvalho Chehab @ 2014-08-26 21:55 UTC (permalink / raw)
Cc: Mauro Carvalho Chehab, Linux Media Mailing List,
Mauro Carvalho Chehab
COMPILE_TEST fail on (some) archs without MMU.
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
---
drivers/media/platform/omap/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/platform/omap/Kconfig b/drivers/media/platform/omap/Kconfig
index 2253bf102ed9..05de442d24e4 100644
--- a/drivers/media/platform/omap/Kconfig
+++ b/drivers/media/platform/omap/Kconfig
@@ -3,7 +3,7 @@ config VIDEO_OMAP2_VOUT_VRFB
config VIDEO_OMAP2_VOUT
tristate "OMAP2/OMAP3 V4L2-Display driver"
- depends on ARCH_OMAP2 || ARCH_OMAP3 || COMPILE_TEST
+ depends on ARCH_OMAP2 || ARCH_OMAP3 || (COMPILE_TEST && HAS_MMU)
select VIDEOBUF_GEN
select VIDEOBUF_DMA_CONTIG
select OMAP2_DSS if HAS_IOMEM && ARCH_OMAP2PLUS
--
1.9.3
^ permalink raw reply related [flat|nested] 39+ messages in thread
* RE: [PATCH v2 27/35] [media] s5p-jpeg: Get rid of a warning
2014-08-26 21:55 ` [PATCH v2 27/35] [media] s5p-jpeg: Get " Mauro Carvalho Chehab
@ 2014-09-02 13:02 ` Kamil Debski
2014-09-02 13:51 ` Mauro Carvalho Chehab
0 siblings, 1 reply; 39+ messages in thread
From: Kamil Debski @ 2014-09-02 13:02 UTC (permalink / raw)
To: 'Mauro Carvalho Chehab'
Cc: 'Linux Media Mailing List',
'Mauro Carvalho Chehab'
Hi Mauro,
A subsequent patch by Jacek Anaszewski [1] is resoling this problem in
a better way. If you don't mind I will take his patch.
[1] [1/4] s5p-jpeg: Avoid assigning readl result
https://patchwork.linuxtv.org/patch/25661/
Best wishes,
--
Kamil Debski
Samsung R&D Institute Poland
> From: linux-media-owner@vger.kernel.org [mailto:linux-media-
> owner@vger.kernel.org] On Behalf Of Mauro Carvalho Chehab
> Sent: Tuesday, August 26, 2014 11:55 PM
>
> drivers/media/platform/s5p-jpeg/jpeg-hw-s5p.c: In function
> 's5p_jpeg_clear_int':
> drivers/media/platform/s5p-jpeg/jpeg-hw-s5p.c:327:16: warning: variable
> 'reg' set but not used [-Wunused-but-set-variable]
> unsigned long reg;
> ^
>
> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
> ---
> drivers/media/platform/s5p-jpeg/jpeg-hw-s5p.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/media/platform/s5p-jpeg/jpeg-hw-s5p.c
> b/drivers/media/platform/s5p-jpeg/jpeg-hw-s5p.c
> index 52407d790726..0d37bed088df 100644
> --- a/drivers/media/platform/s5p-jpeg/jpeg-hw-s5p.c
> +++ b/drivers/media/platform/s5p-jpeg/jpeg-hw-s5p.c
> @@ -326,7 +326,7 @@ void s5p_jpeg_clear_int(void __iomem *regs) {
> unsigned long reg;
>
> - reg = readl(regs + S5P_JPGINTST);
> + readl(regs + S5P_JPGINTST);
> writel(S5P_INT_RELEASE, regs + S5P_JPGCOM);
> reg = readl(regs + S5P_JPGOPR);
> }
> --
> 1.9.3
>
> --
> 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
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: [PATCH v2 27/35] [media] s5p-jpeg: Get rid of a warning
2014-09-02 13:02 ` Kamil Debski
@ 2014-09-02 13:51 ` Mauro Carvalho Chehab
0 siblings, 0 replies; 39+ messages in thread
From: Mauro Carvalho Chehab @ 2014-09-02 13:51 UTC (permalink / raw)
To: Kamil Debski
Cc: 'Linux Media Mailing List',
'Mauro Carvalho Chehab'
Em Tue, 02 Sep 2014 15:02:43 +0200
Kamil Debski <k.debski@samsung.com> escreveu:
> Hi Mauro,
>
> A subsequent patch by Jacek Anaszewski [1] is resoling this problem in
> a better way. If you don't mind I will take his patch.
No Problem.
> [1] [1/4] s5p-jpeg: Avoid assigning readl result
> https://patchwork.linuxtv.org/patch/25661/
>
> Best wishes,
Regards,
Mauro
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: [v2,35/35,media] omap: be sure that MMU is there for COMPILE_TEST
2014-08-26 21:55 ` [PATCH v2 35/35] [media] omap: be sure that MMU is there for COMPILE_TEST Mauro Carvalho Chehab
@ 2014-09-19 7:23 ` Paul Bolle
0 siblings, 0 replies; 39+ messages in thread
From: Paul Bolle @ 2014-09-19 7:23 UTC (permalink / raw)
To: Mauro Carvalho Chehab; +Cc: linux-media, Mauro Carvalho Chehab
Hi Mauro,
On Tue, 2014-08-26 at 18:55 -0300, Mauro Carvalho Chehab wrote:
> COMPILE_TEST fail on (some) archs without MMU.
>
> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This patch just landed in next-20140919 as commit 38a073116525 ("[media]
omap: be sure that MMU is there for COMPILE_TEST").
> ---
> drivers/media/platform/omap/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/media/platform/omap/Kconfig b/drivers/media/platform/omap/Kconfig
> index 2253bf102ed9..05de442d24e4 100644
> --- a/drivers/media/platform/omap/Kconfig
> +++ b/drivers/media/platform/omap/Kconfig
> @@ -3,7 +3,7 @@ config VIDEO_OMAP2_VOUT_VRFB
>
> config VIDEO_OMAP2_VOUT
> tristate "OMAP2/OMAP3 V4L2-Display driver"
> - depends on ARCH_OMAP2 || ARCH_OMAP3 || COMPILE_TEST
> + depends on ARCH_OMAP2 || ARCH_OMAP3 || (COMPILE_TEST && HAS_MMU)
There's no Kconfig symbol HAS_MMU. So this last test will always fail.
Did you perhaps mean simply "MMU"?
> select VIDEOBUF_GEN
> select VIDEOBUF_DMA_CONTIG
Paul Bolle
^ permalink raw reply [flat|nested] 39+ messages in thread
end of thread, other threads:[~2014-09-19 7:23 UTC | newest]
Thread overview: 39+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-26 21:54 [PATCH v2 00/35] Enable compilation test for several drivers Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 01/35] [media] vpif_display: get rid of some unused vars Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 02/35] [media] vpif_capture: " Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 03/35] [media] dm644x_ccdc: declare some functions as static Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 04/35] [media] dm355_ccdc: declare a function " Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 05/35] [media] gsc-core: Remove useless test Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 06/35] [media] gsc-m2m: Remove an unused var Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 07/35] [media] ti-vpe: use %pad for dma address Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 08/35] [media] ti-vpe: shut up a casting warning message Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 09/35] [media] atmel-isi: tag dma_addr_t as such Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 10/35] [media] atmel-isi: Fix a truncate warning Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 11/35] [media] s5p_mfc: don't use an external symbol called 'debug' Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 12/35] [media] vpif: don't cast pointers to int Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 13/35] [media] dm644x_ccdc: use unsigned long for fpc_table_addr Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 14/35] [media] dvb_frontend: estimate bandwidth also for DVB-S/S2/Turbo Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 15/35] [media] gsc: Use %pad for dma_addr_t Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 16/35] [media] omap: fix compilation if !VIDEO_OMAP2_VOUT_VRFB Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 17/35] [media] omap_vout: Get rid of a few warnings Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 18/35] [media] s5p-jpeg: get rid of some warnings Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 19/35] [media] g2d: remove unused var Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 20/35] [media] fimc-is-param: get rid of warnings Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 21/35] [media] s5p_mfc_ctrl: add missing s5p_mfc_ctrl.h header Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 22/35] [media] s5p_mfc: get rid of several warnings Mauro Carvalho Chehab
2014-08-26 21:54 ` [PATCH v2 23/35] [media] mipi-csis: get rid of a warning Mauro Carvalho Chehab
2014-08-26 21:55 ` [PATCH v2 24/35] [media] exynos4-is/media-dev: get rid of a warning for a dead code Mauro Carvalho Chehab
2014-08-26 21:55 ` [PATCH v2 25/35] [media] mx2_camera: get rid of a warning Mauro Carvalho Chehab
2014-08-26 21:55 ` [PATCH v2 26/35] [media] atmel-isi: " Mauro Carvalho Chehab
2014-08-26 21:55 ` [PATCH v2 27/35] [media] s5p-jpeg: Get " Mauro Carvalho Chehab
2014-09-02 13:02 ` Kamil Debski
2014-09-02 13:51 ` Mauro Carvalho Chehab
2014-08-26 21:55 ` [PATCH v2 28/35] Revert "[media] staging: omap4iss: copy paste error in iss_get_clocks" Mauro Carvalho Chehab
2014-08-26 21:55 ` [PATCH v2 29/35] [media] enable COMPILE_TEST for MX2 eMMa-PrP driver Mauro Carvalho Chehab
2014-08-26 21:55 ` [PATCH v2 30/35] [media] enable COMPILE_TEST for ti-vbe Mauro Carvalho Chehab
2014-08-26 21:55 ` [PATCH v2 31/35] [media] allow COMPILE_TEST for SAMSUNG_EXYNOS4_IS Mauro Carvalho Chehab
2014-08-26 21:55 ` [PATCH v2 32/35] [media] enable COMPILE_TEST for OMAP2 vout Mauro Carvalho Chehab
2014-08-26 21:55 ` [PATCH v2 33/35] [media] enable COMPILE_TEST for media drivers Mauro Carvalho Chehab
2014-08-26 21:55 ` [PATCH v2 34/35] [media] be sure that HAS_DMA is enabled for vb2-dma-contig Mauro Carvalho Chehab
2014-08-26 21:55 ` [PATCH v2 35/35] [media] omap: be sure that MMU is there for COMPILE_TEST Mauro Carvalho Chehab
2014-09-19 7:23 ` [v2,35/35,media] " Paul Bolle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).