summaryrefslogtreecommitdiff
path: root/drivers/media/platform/omap
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-07-25 18:39:14 +0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-08-08 13:34:36 +0300
commitf57cdbd34cb435ed3b7d38be6276f7f389e8d0e9 (patch)
tree76074e4b894066706508d5e22c37b19114cb2300 /drivers/media/platform/omap
parentfa31c1175f0ef7c9b2820d122c77ee1ed50f20c8 (diff)
downloadlinux-f57cdbd34cb435ed3b7d38be6276f7f389e8d0e9.tar.xz
media: v4l: use WARN_ON(1) instead of __WARN()
__WARN() cannot be used in portable code, since it is only available on some architectures and configurations: drivers/media/platform/pxa_camera.c: In function 'pxa_mbus_config_compatible': drivers/media/platform/pxa_camera.c:642:3: error: implicit declaration of function '__WARN'; did you mean '__WALL'? [-Werror=implicit-function-declaration] The common way to express an unconditional warning is WARN_ON(1), so let's use that here. Fixes: 97bbdf02d905 ("media: v4l: Add support for CSI-1 and CCP2 busses") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/platform/omap')
0 files changed, 0 insertions, 0 deletions