#ifndef _TOOLS_ASM_BUG_H #define _TOOLS_ASM_BUG_H #include #define __WARN_printf(arg...) do { fprintf(stderr, arg); } while (0) #define WARN(condition, format...) ({ \ int __ret_warn_on = !!(condition); \ if (unlikely(__ret_warn_on)) \ __WARN_printf(format); \ unlikely(__ret_warn_on); \ }) #define WARN_ON_ONCE(condition) ({ \ static int __warned; \ int __ret_warn_once = !!(condition); \ \ if (unlikely(__ret_warn_once && !__warned)) { \ __warned = true; \ WARN_ON(1); \ } \ unlikely(__ret_warn_once); \ }) #define WARN_ONCE(condition, format...) ({ \ static int __warned; \ int __ret_warn_once = !!(condition); \ \ if (unlikely(__ret_warn_once)) \ if (WARN(!__warned, format)) \ __warned = 1; \ unlikely(__ret_warn_once); \ }) #endif /* _TOOLS_ASM_BUG_H */ ss='main'>index : net-next.git
net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/drivers/usb/misc/chaoskey.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2017-01-23 09:25:53 +1000
committerDave Airlie <airlied@redhat.com>2017-01-23 09:25:53 +1000
commit932790109f62aa52bdb4bb62aa66653c0b51bc75 (patch)
tree4bedb54f139d1e74637707eae2b04978a85243bf /drivers/usb/misc/chaoskey.c
parent2f39258e5744d34db5db27a1272fd41ac9d2397d (diff)
parentaf3076e67c31ceb3e314933dd61cb68a1d5120cf (diff)
Merge tag 'drm-qemu-20170110' of git://git.kraxel.org/linux into drm-fixes
drm-qemu: virtio sparse fix, MAINTAINERS updates. * tag 'drm-qemu-20170110' of git://git.kraxel.org/linux: drm: flip cirrus driver status to "obsolete". drm: update MAINTAINERS for qemu drivers (bochs, cirrus, qxl, virtio-gpu) drm/virtio: fix framebuffer sparse warning
Diffstat (limited to 'drivers/usb/misc/chaoskey.c')