Skip to contentSkip to conversation

linux-next: build failure after merge of the drm-misc tree

PATCH Stephen Rothwell 2 participants 2 messages Dec 9, 2024

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the drm-misc tree, today's linux-next build (x86_64 allmodconfig) failed like this:

In file included from include/linux/module.h:22,
from include/linux/device/driver.h:21,
from include/linux/device.h:32,
from include/linux/dma-mapping.h:5,
from include/linux/dma-buf.h:21,
from include/linux/virtio_dma_buf.h:11,
from drivers/gpu/drm/virtio/virtgpu_prime.c:26:
drivers/gpu/drm/virtio/virtgpu_prime.c:30:18: error: expected ',' or ';' before 'DMA_BUF'

   30 | MODULE_IMPORT_NS(DMA_BUF);
      |                  ^~~~~~~

include/linux/moduleparam.h:26:61: note: in definition of macro '__MODULE_INFO'
26 | = __MODULE_INFO_PREFIX __stringify(tag) "=" info
| ^~~~
include/linux/module.h:299:33: note: in expansion of macro 'MODULE_INFO'

  299 | #define MODULE_IMPORT_NS(ns)    MODULE_INFO(import_ns, ns)
      |                                 ^~~~~~~~~~~
drivers/gpu/drm/virtio/virtgpu_prime.c:30:1: note: in expansion of macro 'MODULE_IMPORT_NS'
   30 | MODULE_IMPORT_NS(DMA_BUF);
      | ^~~~~~~~~~~~~~~~

Caused by commit

25c3fd1183c0 ("drm/virtio: Add a helper to map and note the dma addrs and lengths")

Interacting with commit

cdd30ebb1b9f ("module: Convert symbol namespace to string literal")

from Linus' tree.

I have applied the following merge fix patch for today.

From: Stephen Rothwell <[email protected]>
Date: Mon, 9 Dec 2024 12:08:24 +1100
Subject: [PATCH] fix up for "drm/virtio: Add a helper to map and note the dma
addrs and lengths"

interacting with commit

cdd30ebb1b9f ("module: Convert symbol namespace to string literal")

from Linus' tree.

---
 drivers/gpu/drm/virtio/virtgpu_prime.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/virtio/virtgpu_prime.c +1 -1
index 688810d1b611..b3664c12843d 100644
@@ -27,7 +27,7 @@
 
 #include "virtgpu_drv.h"
 
-MODULE_IMPORT_NS(DMA_BUF);
+MODULE_IMPORT_NS("DMA_BUF");
 
 static int virtgpu_virtio_get_uuid(struct dma_buf *buf,
 				   uuid_t *uuid)
Signature · 5 lines
2.45.2

-- 
Cheers,
Stephen Rothwell
#1 lore raw

✗ Fi.CI.BUILD: failure for linux-next: build failure after merge of the drm-misc tree

== Series Details ==

== Series Details ==

Series: linux-next: build failure after merge of the drm-misc tree
URL : https://patchwork.freedesktop.org/series/142270/
State : failure

== Summary ==

Error: make failed
CALL scripts/checksyscalls.sh
DESCEND objtool
INSTALL libsubcmd_headers
CHK kernel/kheaders_data.tar.xz
HDRTEST drivers/gpu/drm/xe/generated/xe_wa_oob.h
MODPOST Module.symvers
ERROR: modpost: module virtio-gpu uses symbol dma_buf_unpin from namespace DMA_BUF, but does not import it.
ERROR: modpost: module virtio-gpu uses symbol dma_buf_dynamic_attach from namespace DMA_BUF, but does not import it.
ERROR: modpost: module virtio-gpu uses symbol dma_buf_map_attachment from namespace DMA_BUF, but does not import it.
ERROR: modpost: module virtio-gpu uses symbol dma_buf_unmap_attachment from namespace DMA_BUF, but does not import it.
ERROR: modpost: module virtio-gpu uses symbol dma_buf_put from namespace DMA_BUF, but does not import it.
ERROR: modpost: module virtio-gpu uses symbol dma_buf_pin from namespace DMA_BUF, but does not import it.
ERROR: modpost: module virtio-gpu uses symbol dma_buf_detach from namespace DMA_BUF, but does not import it. make[2]: *** [scripts/Makefile.modpost:145: Module.symvers] Error 1
make[1]: *** [/home/kbuild/kernel/Makefile:1939: modpost] Error 2
make: *** [Makefile:251: __sub-make] Error 2
Build failed, no error log produced