Hi Guangshuo,

kernel test robot noticed the following build errors:

[auto build test ERROR on drm-xe/drm-xe-next]
[also build test ERROR on linus/master v7.2-rc6 next-20260804]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    
https://github.com/intel-lab-lkp/linux/commits/Guangshuo-Li/drm-xe-pf-clear-pending-packet-on-header-init-failure/20260805-104621
base:   https://gitlab.freedesktop.org/drm/xe/kernel.git drm-xe-next
patch link:    
https://lore.kernel.org/r/20260708071502.722393-1-lgs201920130244%40gmail.com
patch subject: [PATCH] drm/xe/pf: clear pending packet on header init failure
config: powerpc-allmodconfig 
(https://download.01.org/0day-ci/archive/20260805/[email protected]/config)
compiler: powerpc64-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20260805/[email protected]/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 <[email protected]>
| Closes: 
https://lore.kernel.org/oe-kbuild-all/[email protected]/

All error/warnings (new ones prefixed by >>):

   drivers/gpu/drm/xe/xe_sriov_packet.c: In function 
'xe_sriov_packet_write_single':
>> drivers/gpu/drm/xe/xe_sriov_packet.c:350:17: error: unknown type name 'rturn'
     350 |                 rturn copied;
         |                 ^~~~~
>> drivers/gpu/drm/xe/xe_sriov_packet.c:350:23: warning: unused variable 
>> 'copied' [-Wunused-variable]
     350 |                 rturn copied;
         |                       ^~~~~~


vim +/rturn +350 drivers/gpu/drm/xe/xe_sriov_packet.c

   313  
   314  /**
   315   * xe_sriov_packet_write_single() - Write migration data to a single 
packet.
   316   * @xe: the &xe_device
   317   * @vfid: the VF identifier
   318   * @buf: start address of userspace buffer
   319   * @len: requested write size from userspace
   320   *
   321   * Return: number of bytes that has been successfully written,
   322   *         -errno on failure.
   323   */
   324  ssize_t xe_sriov_packet_write_single(struct xe_device *xe, unsigned int 
vfid,
   325                                       const char __user *buf, size_t len)
   326  {
   327          struct xe_sriov_packet **data = pf_pick_pending(xe, vfid);
   328          ssize_t copied;
   329          bool writing_hdr;
   330          int ret;
   331  
   332          if (IS_ERR_OR_NULL(*data)) {
   333                  *data = xe_sriov_packet_alloc(xe);
   334                  if (!*data)
   335                          return -ENOMEM;
   336          }
   337  
   338          writing_hdr = (*data)->hdr_remaining;
   339          if (writing_hdr)
   340                  copied = pkt_hdr_write(*data, buf, len);
   341          else
   342                  copied = pkt_data_write(*data, buf, len);
   343  
   344          if (copied < 0) {
   345                  if (writing_hdr && !(*data)->hdr_remaining) {
   346                          kfree(*data);
   347                          *data = NULL;
   348                  }
   349  
 > 350                  rturn copied;
   351          }
   352  
   353          if ((*data)->hdr_remaining == 0 && (*data)->remaining == 0) {
   354                  ret = xe_sriov_pf_migration_restore_produce(xe, vfid, 
*data);
   355                  if (ret) {
   356                          xe_sriov_packet_free(*data);
   357                          *data = NULL;
   358  
   359                          return ret;
   360                  }
   361  
   362                  *data = NULL;
   363          }
   364  
   365          return copied;
   366  }
   367  

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

Reply via email to