tree:   git://people.freedesktop.org/~gabbayo/linux habanalabs-next
head:   fd467452d554d95e0294e6e34781028f6d3f69f5
commit: 6c57cab11132dcddb91af2ff98bcb8c5f3d2da89 [5/21] habanalabs: Move device 
CPU code into common file
config: i386-randconfig-x018-201913 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        git checkout 6c57cab11132dcddb91af2ff98bcb8c5f3d2da89
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   drivers/misc//habanalabs/firmware_if.c: In function 
'hl_fw_push_fw_to_device':
>> drivers/misc//habanalabs/firmware_if.c:58:3: error: implicit declaration of 
>> function 'writeq'; did you mean 'writel'? 
>> [-Werror=implicit-function-declaration]
      writeq(*fw_data, dst);
      ^~~~~~
      writel
   cc1: some warnings being treated as errors

vim +58 drivers/misc//habanalabs/firmware_if.c

    12  
    13  /**
    14   * hl_fw_push_fw_to_device() - Push FW code to device.
    15   * @hdev: pointer to hl_device structure.
    16   *
    17   * Copy fw code from firmware file to device memory.
    18   *
    19   * Return: 0 on success, non-zero for failure.
    20   */
    21  int hl_fw_push_fw_to_device(struct hl_device *hdev, const char *fw_name,
    22                                  void __iomem *dst)
    23  {
    24          const struct firmware *fw;
    25          const u64 *fw_data;
    26          size_t fw_size, i;
    27          int rc;
    28  
    29          rc = request_firmware(&fw, fw_name, hdev->dev);
    30          if (rc) {
    31                  dev_err(hdev->dev, "Failed to request %s\n", fw_name);
    32                  goto out;
    33          }
    34  
    35          fw_size = fw->size;
    36          if ((fw_size % 4) != 0) {
    37                  dev_err(hdev->dev, "illegal %s firmware size %zu\n",
    38                          fw_name, fw_size);
    39                  rc = -EINVAL;
    40                  goto out;
    41          }
    42  
    43          dev_dbg(hdev->dev, "%s firmware size == %zu\n", fw_name, 
fw_size);
    44  
    45          fw_data = (const u64 *) fw->data;
    46  
    47          if ((fw->size % 8) != 0)
    48                  fw_size -= 8;
    49  
    50          for (i = 0 ; i < fw_size ; i += 8, fw_data++, dst += 8) {
    51                  if (!(i & (0x80000 - 1))) {
    52                          dev_dbg(hdev->dev,
    53                                  "copied so far %zu out of %zu for %s 
firmware",
    54                                  i, fw_size, fw_name);
    55                          usleep_range(20, 100);
    56                  }
    57  
  > 58                  writeq(*fw_data, dst);
    59          }
    60  
    61          if ((fw->size % 8) != 0)
    62                  writel(*(const u32 *) fw_data, dst);
    63  
    64  out:
    65          release_firmware(fw);
    66          return rc;
    67  }
    68  

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Reply via email to