]> git.droids-corp.org - dpdk.git/commit
raw/ioat: fix build when ioat dmadev enabled
authorBruce Richardson <bruce.richardson@intel.com>
Thu, 23 Jun 2022 13:49:32 +0000 (14:49 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 26 Jun 2022 08:26:36 +0000 (10:26 +0200)
commit7580f35ea7a6f56f3fb65a3fa8601a6c21515805
treefe58c5ad1320db0ed932d0183af8dfca7034b2e7
parentdd51b7bd66f4994ca50ba071f2b70dc18eed59a1
raw/ioat: fix build when ioat dmadev enabled

The build of the raw/ioat driver only occurs when the equivalent dmadev
drivers are disabled. Complications occur when the ioat dmadev is being
built but not the idxd. In this case, only the idxd part of raw/ioat
gets built, but the definition of the logtype is in the ioat part,
causing build errors.

  .../raw_ioat_idxd_bus.c.o: In function `idxd_vdev_mmap_wq':
  idxd_bus.c:(.text+0x116): undefined reference to `ioat_pmd_logtype'

Fix this by moving the logtype definition to the common C file, and
renaming it to avoid conflicts with a similarly named value in the
dma/ioat driver.

Fixes: ff06fa2cf3ba ("raw/ioat: probe idxd PCI")
Cc: stable@dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
drivers/raw/ioat/ioat_common.c
drivers/raw/ioat/ioat_private.h
drivers/raw/ioat/ioat_rawdev.c