All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/9] Do some atomisp cleanups
@ 2018-04-16 16:37 Mauro Carvalho Chehab
  2018-04-16 16:37 ` [PATCH 1/9] media: staging: atomisp: get rid of __KERNEL macros Mauro Carvalho Chehab
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Mauro Carvalho Chehab @ 2018-04-16 16:37 UTC (permalink / raw)
  Cc: Mauro Carvalho Chehab, Linux Media Mailing List,
	Mauro Carvalho Chehab, Kate Stewart, Guillermo O. Freschi,
	Hans de Goede, Dan Carpenter, Thomas Gleixner, Hans Verkuil,
	Alan Cox, Sakari Ailus, Julia Lawall, devel, Rene Hickersberger,
	Arvind Yadav, Greg Kroah-Hartman, Luis Oliveira, Andy Shevchenko,
	Arnd Bergmann, Aishwarya Pant

When I started building media subsystem with the atomisp driver,
I ended by adding several hacks on their Makefiles, in order to
get rid of thousands of warnings. I felt a little guty of hiding how
broken is this driver, so I decided t remove two Makefile hacks that
affect sensors and fix the warnings. 

Yet, there's still one such hack at 
drivers/staging/media/atomisp/pci/atomisp2/Makefile, with:

# 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, implicit-fallthrough)
ccflags-y += $(call cc-disable-warning, missing-prototypes)
ccflags-y += $(call cc-disable-warning, missing-declarations)
ccflags-y += $(call cc-disable-warning, suggest-attribute=format)
ccflags-y += $(call cc-disable-warning, unused-const-variable)
ccflags-y += $(call cc-disable-warning, unused-but-set-variable)

Getting his of those is a big task, as there are thousands of warnings
hidden there. In order to seriously get rid of them, one should start
getting rid of the several abstraction layers at the driver and have
hardware for test.

As I don't have any hardware to test, nor any reason why
dedicating myself to such task, I'll just leave this task for others
to do.

Mauro Carvalho Chehab (9):
  media: staging: atomisp: get rid of __KERNEL macros
  media: staging: atomisp: reenable warnings for I2C
  media: atomisp: ov2680.h: fix identation
  media: staging: atomisp-gc2235: don't fill an unused var
  media: staging: atomisp: Comment out several unused sensor resolutions
  media: atomisp: ov2680: don't declare unused vars
  media: atomisp-gc0310: return errors at gc0310_init()
  media: atomisp-mt9m114: remove dead data
  media: atomisp-mt9m114: comment out unused stuff

 drivers/staging/media/atomisp/i2c/Makefile         |   7 -
 drivers/staging/media/atomisp/i2c/atomisp-gc0310.c |   2 +-
 drivers/staging/media/atomisp/i2c/atomisp-gc2235.c |   6 +-
 .../staging/media/atomisp/i2c/atomisp-mt9m114.c    |  11 +-
 drivers/staging/media/atomisp/i2c/atomisp-ov2680.c |   6 +-
 drivers/staging/media/atomisp/i2c/gc2235.h         |   9 +-
 drivers/staging/media/atomisp/i2c/mt9m114.h        |  13 +-
 drivers/staging/media/atomisp/i2c/ov2680.h         | 900 +++++++++++----------
 drivers/staging/media/atomisp/i2c/ov2722.h         |   6 +
 drivers/staging/media/atomisp/i2c/ov5693/Makefile  |   7 -
 drivers/staging/media/atomisp/i2c/ov5693/ov5693.h  |  18 +-
 .../css_2401_csi2p_system/host/system_local.h      |  15 -
 .../hive_isp_css_common/host/system_local.h        |  15 -
 .../css2400/hive_isp_css_include/math_support.h    |   5 -
 .../css2400/hive_isp_css_include/print_support.h   |   3 -
 .../media/atomisp/pci/atomisp2/css2400/sh_css_sp.c |   4 -
 16 files changed, 503 insertions(+), 524 deletions(-)

-- 
2.14.3

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2018-04-26  8:20 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-16 16:37 [PATCH 0/9] Do some atomisp cleanups Mauro Carvalho Chehab
2018-04-16 16:37 ` [PATCH 1/9] media: staging: atomisp: get rid of __KERNEL macros Mauro Carvalho Chehab
2018-04-16 16:37 ` [PATCH 2/9] media: staging: atomisp: reenable warnings for I2C Mauro Carvalho Chehab
2018-04-16 16:37 ` [PATCH 3/9] media: atomisp: ov2680.h: fix identation Mauro Carvalho Chehab
2018-04-16 16:37 ` [PATCH 4/9] media: staging: atomisp-gc2235: don't fill an unused var Mauro Carvalho Chehab
2018-04-16 16:37 ` [PATCH 5/9] media: staging: atomisp: Comment out several unused sensor resolutions Mauro Carvalho Chehab
2018-04-16 16:37 ` [PATCH 6/9] media: atomisp: ov2680: don't declare unused vars Mauro Carvalho Chehab
2018-04-16 16:37 ` [PATCH 7/9] media: atomisp-gc0310: return errors at gc0310_init() Mauro Carvalho Chehab
2018-04-16 16:37 ` [PATCH 8/9] media: atomisp-mt9m114: remove dead data Mauro Carvalho Chehab
2018-04-16 16:37 ` [PATCH 9/9] media: atomisp-mt9m114: comment out unused stuff Mauro Carvalho Chehab
2018-04-26  8:20 ` [PATCH 0/9] Do some atomisp cleanups Sakari Ailus

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.