OpenCloudOS-Kernel/tools/virtio/linux
Joel Stanley 6abb2dd928 tools/virtio: fix missing kmemleak_ignore symbol
In commit bb478d8b16 virtio_ring: plug kmemleak false positive,
kmemleak_ignore was introduced. This broke compilation of virtio_test:

  cc -g -O2 -Wall -I. -I ../../usr/include/ -Wno-pointer-sign
    -fno-strict-overflow -fno-strict-aliasing -fno-common -MMD
    -U_FORTIFY_SOURCE   -c -o virtio_ring.o ../../drivers/virtio/virtio_ring.c
  ../../drivers/virtio/virtio_ring.c: In function ‘vring_add_indirect’:
  ../../drivers/virtio/virtio_ring.c:177:2: warning: implicit declaration
  of function ‘kmemleak_ignore’ [-Wimplicit-function-declaration]
    kmemleak_ignore(desc);
    ^
  cc   virtio_test.o virtio_ring.o   -o virtio_test
  virtio_ring.o: In function `vring_add_indirect':
  tools/virtio/../../drivers/virtio/virtio_ring.c:177:
  undefined reference to `kmemleak_ignore'

Add a dummy header for tools/virtio, and add #incldue <linux/kmemleak.h>
to drivers/virtio/virtio_ring.c so it is picked up by the userspace
tools.

Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2014-03-13 11:23:25 +10:30
..
bug.h tools/virtio: separate headers more. 2013-03-20 14:00:42 +10:30
device.h tools/virtio: virtio_test tool 2010-12-09 16:00:22 +02:00
err.h tools/virtio: separate headers more. 2013-03-20 14:00:42 +10:30
export.h tools/virtio: separate headers more. 2013-03-20 14:00:42 +10:30
hrtimer.h tools/virtio: add linux/hrtimer.h stub 2012-02-28 09:13:14 +02:00
irqreturn.h tools/virtio: separate headers more. 2013-03-20 14:00:42 +10:30
kernel.h tools/virtio: separate headers more. 2013-03-20 14:00:42 +10:30
kmemleak.h tools/virtio: fix missing kmemleak_ignore symbol 2014-03-13 11:23:25 +10:30
module.h tools/virtio: move module license stub to module.h 2013-07-09 10:47:53 +09:30
printk.h tools/virtio: separate headers more. 2013-03-20 14:00:42 +10:30
ratelimit.h tools/virtio: separate headers more. 2013-03-20 14:00:42 +10:30
scatterlist.h virtio_ring: virtqueue_add_sgs, to add multiple sgs. 2013-03-20 15:43:29 +10:30
slab.h tools/virtio: virtio_test tool 2010-12-09 16:00:22 +02:00
types.h tools/virtio: separate headers more. 2013-03-20 14:00:42 +10:30
uaccess.h tools/virtio: separate headers more. 2013-03-20 14:00:42 +10:30
uio.h tools/virtio: add vring_test. 2013-03-20 14:06:04 +10:30
virtio.h tools/virtio: update internal copies of headers 2014-03-13 11:23:25 +10:30
virtio_config.h tools/virtio: separate headers more. 2013-03-20 14:00:42 +10:30
virtio_ring.h tools/virtio: separate headers more. 2013-03-20 14:00:42 +10:30
vringh.h tools/virtio: separate headers more. 2013-03-20 14:00:42 +10:30