]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
media: ipu3: shut up warnings produced with W=1
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 19 Feb 2019 13:54:52 +0000 (08:54 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 19 Feb 2019 13:59:37 +0000 (08:59 -0500)
There are lots of warnings produced by this driver. It is not
as much as atomisp, but it is still a lot.

So, use the same solution to hide most of them.
Those need to be fixed before promoting it out of staging,
so add it at the TODO list.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/staging/media/ipu3/Makefile
drivers/staging/media/ipu3/TODO

index fb146d178bd4b848f0904459fc5450f07ed7145a..fa7fa3372bcbe2086848910b5c0212ac19b38aa3 100644 (file)
@@ -9,3 +9,9 @@ ipu3-imgu-objs += \
                ipu3-css.o ipu3-v4l2.o ipu3.o
 
 obj-$(CONFIG_VIDEO_IPU3_IMGU) += ipu3-imgu.o
+
+# HACK! While this driver is in bad shape, don't enable several warnings
+#       that would be otherwise enabled with W=1
+ccflags-y += $(call cc-disable-warning, packed-not-aligned)
+ccflags-y += $(call cc-disable-warning, type-limits)
+ccflags-y += $(call cc-disable-warning, unused-const-variable)
index 8b95e74e43a0fc0cfd03d844458f04bc1d44e893..5e55baeaea1a32504555a1fba83c8188c5ee7de8 100644 (file)
@@ -27,3 +27,5 @@ staging directory.
 - Document different operation modes, and which buffer queues are relevant
   in each mode. To process an image, which queues require a buffer an in
   which ones is it optional?
+
+- Make sure it builds fine with no warnings with W=1