[PATCH 24.11 1/3] [PATCH 24.11] vhost: fix compile error when without vduse.h

fengchengwen fengchengwen at huawei.com
Wed Nov 26 01:39:56 CET 2025


On 11/25/2025 6:30 PM, Kevin Traynor wrote:
> On 25/11/2025 01:51, Chengwen Feng wrote:
>> Fix compile error when don't set VHOST_HAS_VDUSE.
>>
>> Fixes: 0ea4b51e84ce ("vhost: fix external buffer in VDUSE")
>>
>> Signed-off-by: Chengwen Feng <fengchengwen at huawei.com>
>> ---
>>  lib/vhost/vduse.h | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/lib/vhost/vduse.h b/lib/vhost/vduse.h
>> index 353f297d5a..e923aeac56 100644
>> --- a/lib/vhost/vduse.h
>> +++ b/lib/vhost/vduse.h
>> @@ -17,7 +17,7 @@ int vduse_device_destroy(const char *path);
>>  #else
>>  
>>  static inline int
>> -vduse_device_create(const char *path, bool compliant_ol_flags, bool extbuf, bool linearbuf);
>> +vduse_device_create(const char *path, bool compliant_ol_flags, bool extbuf, bool linearbuf)
>>  {
>>  	RTE_SET_USED(compliant_ol_flags);
>>  	RTE_SET_USED(extbuf);
> 
> Ah, thanks for finding this. This was a mistake in rebasing for 24.11
> that was not caught as the VHOST_HAS_VDUSE is set.
> 
> The commit referenced is not pushed yet, so I will fix it directly there
> before push, rather than introducing the issue and then fixing it.

Okay, I happened to compile dpdk on the old kernel which don't support vduse.

> 
> Thanks again for catching it,
> Kevin.
> 
> 



More information about the stable mailing list