mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 18:21:24 +02:00
drm/xe/xe_sriov_packet: Return int from pf_descriptor_init
pf_descriptor_init currently returns a size_t, which is an unsigned integer data type. This conflicts with it returning a negative errno value on failure. Make it return an int instead. This mirrors how pf_trailer_init is used later. Signed-off-by: Jonathan Cavitt <jonathan.cavitt@intel.com> Cc: Michał Winiarski <michal.winiarski@intel.com> Reviewed-by: Alex Zuo <alex.zuo@intel.com> Link: https://patch.msgid.link/20251117190114.69953-2-jonathan.cavitt@intel.com Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
This commit is contained in:
parent
6028f59620
commit
8b8a6456ac
|
|
@ -358,7 +358,7 @@ ssize_t xe_sriov_packet_write_single(struct xe_device *xe, unsigned int vfid,
|
|||
|
||||
#define MIGRATION_DESCRIPTOR_DWORDS (GUC_KLV_LEN_MIN + MIGRATION_KLV_DEVICE_DEVID_LEN + \
|
||||
GUC_KLV_LEN_MIN + MIGRATION_KLV_DEVICE_REVID_LEN)
|
||||
static size_t pf_descriptor_init(struct xe_device *xe, unsigned int vfid)
|
||||
static int pf_descriptor_init(struct xe_device *xe, unsigned int vfid)
|
||||
{
|
||||
struct xe_sriov_packet **desc = pf_pick_descriptor(xe, vfid);
|
||||
struct xe_sriov_packet *data;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user