[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <23763bba-5524-fe6d-4b6c-53ed2af12e82@nfschina.com>
Date: Tue, 11 Feb 2025 09:44:58 +0800
From: Su Hui <suhui@...china.com>
To: Jacek Lawrynowicz <jacek.lawrynowicz@...ux.intel.com>, min.ma@....com,
lizhi.hou@....com, ogabbay@...nel.org
Cc: quic_jhugo@...cinc.com, George.Yang@....com,
dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: Re: [PATCH] accel/amdxdna: Add missing include linux/slab.h
On 2025/2/10 17:43, Jacek Lawrynowicz wrote:
> Hi,
>
> please move the header to the include block above an keep it sorted:
> #include <linux/iopoll.h>
> -->#include <linux/slab.h><--
> #include <linux/xarray.h>
Ok, I will send a v2 patch for this.
Su Hui
> On 2/8/2025 9:05 AM, Su Hui wrote:
>> When compiling without CONFIG_IA32_EMULATION, there are some errors:
>>
>> drivers/accel/amdxdna/amdxdna_mailbox.c: In function ‘mailbox_release_msg’:
>> drivers/accel/amdxdna/amdxdna_mailbox.c:197:2: error: implicit declaration
>> of function ‘kfree’.
>> 197 | kfree(mb_msg);
>> | ^~~~~
>> drivers/accel/amdxdna/amdxdna_mailbox.c: In function ‘xdna_mailbox_send_msg’:
>> drivers/accel/amdxdna/amdxdna_mailbox.c:418:11: error:implicit declaration
>> of function ‘kzalloc’.
>> 418 | mb_msg = kzalloc(sizeof(*mb_msg) + pkg_size, GFP_KERNEL);
>> | ^~~~~~~
>>
>> Add the missing include.
>>
>> Fixes: b87f920b9344 ("accel/amdxdna: Support hardware mailbox")
>> Signed-off-by: Su Hui <suhui@...china.com>
>> ---
>> drivers/accel/amdxdna/amdxdna_mailbox.c | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/accel/amdxdna/amdxdna_mailbox.c b/drivers/accel/amdxdna/amdxdna_mailbox.c
>> index 814b16bb1953..80b4b20addd6 100644
>> --- a/drivers/accel/amdxdna/amdxdna_mailbox.c
>> +++ b/drivers/accel/amdxdna/amdxdna_mailbox.c
>> @@ -12,6 +12,7 @@
>>
>> #define CREATE_TRACE_POINTS
>> #include <trace/events/amdxdna.h>
>> +#include <linux/slab.h>
>>
>> #include "amdxdna_mailbox.h"
>>
Powered by blists - more mailing lists