2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-18 18:23:53 +08:00
linux-next/tools/virtio
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
..
asm tools/virtio: separate headers more. 2013-03-20 14:00:42 +10:30
linux tools/virtio: fix missing kmemleak_ignore symbol 2014-03-13 11:23:25 +10:30
uapi/linux tools/virtio: separate headers more. 2013-03-20 14:00:42 +10:30
vhost_test vhost test module 2010-12-09 16:00:21 +02:00
virtio-trace tools: Fix pthread flag for Makefile of trace-agent used by virtio-trace 2012-09-28 15:05:13 +09:30
.gitignore virtio tools: add .gitignore 2013-07-15 11:18:31 +09:30
Makefile tools/virtio: add vring_test. 2013-03-20 14:06:04 +10:30
virtio_test.c virtio_test: verify if virtqueue_kick() succeeded 2013-10-29 11:28:16 +10:30
vringh_test.c virtio_ring: change host notification API 2013-10-29 11:28:11 +10:30