Re: [PATCH -next v8 2/3] rust: gpu: Add GPU buddy allocator bindings

From: kernel test robot

Date: Tue Feb 10 2026 - 02:26:50 EST


Hi Joel,

kernel test robot noticed the following build errors:

[auto build test ERROR on next-20260209]

url: https://github.com/intel-lab-lkp/linux/commits/Joel-Fernandes/rust-clist-Add-support-to-interface-with-C-linked-lists/20260210-054655
base: next-20260209
patch link: https://lore.kernel.org/r/20260209214246.2783990-3-joelagnelf%40nvidia.com
patch subject: [PATCH -next v8 2/3] rust: gpu: Add GPU buddy allocator bindings
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20260210/202602100828.yiR4khw2-lkp@xxxxxxxxx/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
rustc: rustc 1.88.0 (6b00bc388 2025-06-23)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260210/202602100828.yiR4khw2-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202602100828.yiR4khw2-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> rust/bindings/bindings_helper.h:32:10: fatal error: 'linux/gpu_buddy.h' file not found
>> Unable to generate bindings: clang diagnosed error: rust/bindings/bindings_helper.h:32:10: fatal error: 'linux/gpu_buddy.h' file not found
--
>> rust/helpers/gpu.c:3:10: fatal error: 'linux/gpu_buddy.h' file not found
>> Unable to generate bindings: clang diagnosed error: rust/helpers/gpu.c:3:10: fatal error: 'linux/gpu_buddy.h' file not found
--
In file included from rust/helpers/helpers.c:35:
>> rust/helpers/gpu.c:3:10: fatal error: 'linux/gpu_buddy.h' file not found
3 | #include <linux/gpu_buddy.h>
| ^~~~~~~~~~~~~~~~~~~
1 error generated.


vim +32 rust/bindings/bindings_helper.h

30
31 #include <linux/acpi.h>
> 32 #include <linux/gpu_buddy.h>
33 #include <drm/drm_device.h>
34 #include <drm/drm_drv.h>
35 #include <drm/drm_file.h>
36 #include <drm/drm_gem.h>
37 #include <drm/drm_ioctl.h>
38 #include <kunit/test.h>
39 #include <linux/auxiliary_bus.h>
40 #include <linux/bitmap.h>
41 #include <linux/blk-mq.h>
42 #include <linux/blk_types.h>
43 #include <linux/blkdev.h>
44 #include <linux/clk.h>
45 #include <linux/completion.h>
46 #include <linux/configfs.h>
47 #include <linux/cpu.h>
48 #include <linux/cpufreq.h>
49 #include <linux/cpumask.h>
50 #include <linux/cred.h>
51 #include <linux/debugfs.h>
52 #include <linux/device/faux.h>
53 #include <linux/dma-direction.h>
54 #include <linux/dma-mapping.h>
55 #include <linux/errname.h>
56 #include <linux/ethtool.h>
57 #include <linux/fdtable.h>
58 #include <linux/file.h>
59 #include <linux/firmware.h>
60 #include <linux/fs.h>
61 #include <linux/i2c.h>
62 #include <linux/interrupt.h>
63 #include <linux/io-pgtable.h>
64 #include <linux/ioport.h>
65 #include <linux/jiffies.h>
66 #include <linux/jump_label.h>
67 #include <linux/mdio.h>
68 #include <linux/mm.h>
69 #include <linux/miscdevice.h>
70 #include <linux/of_device.h>
71 #include <linux/pci.h>
72 #include <linux/phy.h>
73 #include <linux/pid_namespace.h>
74 #include <linux/platform_device.h>
75 #include <linux/pm_opp.h>
76 #include <linux/poll.h>
77 #include <linux/property.h>
78 #include <linux/pwm.h>
79 #include <linux/random.h>
80 #include <linux/refcount.h>
81 #include <linux/regulator/consumer.h>
82 #include <linux/sched.h>
83 #include <linux/security.h>
84 #include <linux/slab.h>
85 #include <linux/sys_soc.h>
86 #include <linux/task_work.h>
87 #include <linux/tracepoint.h>
88 #include <linux/usb.h>
89 #include <linux/wait.h>
90 #include <linux/workqueue.h>
91 #include <linux/xarray.h>
92 #include <trace/events/rust_sample.h>
93

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki