[balbi-usb:testing/next 89/89] drivers/usb/dwc3/dwc3-pci.c:118:4: error: implicit declaration of function 'acpi_str_to_uuid'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git testing/next
head:   acad1a1ec5cfc468edee11904f497ba9d0980bdf
commit: acad1a1ec5cfc468edee11904f497ba9d0980bdf [89/89] usb: dwc3: pci: call _DSM for suspend/resume
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout acad1a1ec5cfc468edee11904f497ba9d0980bdf
        # save the attached .config to linux build tree
        make.cross ARCH=arm 

All errors (new ones prefixed by >>):

   drivers/usb/dwc3/dwc3-pci.c: In function 'dwc3_pci_quirks':
>> drivers/usb/dwc3/dwc3-pci.c:118:4: error: implicit declaration of function 'acpi_str_to_uuid' [-Werror=implicit-function-declaration]
       acpi_str_to_uuid(PCI_INTEL_BXT_DSM_UUID, dwc->uuid);
       ^~~~~~~~~~~~~~~~
   drivers/usb/dwc3/dwc3-pci.c: In function 'dwc3_pci_dsm':
>> drivers/usb/dwc3/dwc3-pci.c:173:28: error: implicit declaration of function 'ACPI_INIT_DSM_ARGV4' [-Werror=implicit-function-declaration]
     union acpi_object argv4 = ACPI_INIT_DSM_ARGV4(1, &tmp);
                               ^~~~~~~~~~~~~~~~~~~
>> drivers/usb/dwc3/dwc3-pci.c:173:28: error: invalid initializer
   cc1: some warnings being treated as errors

vim +/acpi_str_to_uuid +118 drivers/usb/dwc3/dwc3-pci.c

   112			ret = platform_device_add_properties(dwc3, properties);
   113			if (ret < 0)
   114				return ret;
   115	
   116			if (pdev->device == PCI_DEVICE_ID_INTEL_BXT ||
   117					pdev->device == PCI_DEVICE_ID_INTEL_BXT_M) {
 > 118				acpi_str_to_uuid(PCI_INTEL_BXT_DSM_UUID, dwc->uuid);
   119				dwc->has_dsm_for_pm = true;
   120			}
   121	
   122			if (pdev->device == PCI_DEVICE_ID_INTEL_BYT) {
   123				struct gpio_desc *gpio;
   124	
   125				acpi_dev_add_driver_gpios(ACPI_COMPANION(&pdev->dev),
   126						acpi_dwc3_byt_gpios);
   127	
   128				/*
   129				 * These GPIOs will turn on the USB2 PHY. Note that we have to
   130				 * put the gpio descriptors again here because the phy driver
   131				 * might want to grab them, too.
   132				 */
   133				gpio = gpiod_get_optional(&pdev->dev, "cs", GPIOD_OUT_LOW);
   134				if (IS_ERR(gpio))
   135					return PTR_ERR(gpio);
   136	
   137				gpiod_set_value_cansleep(gpio, 1);
   138				gpiod_put(gpio);
   139	
   140				gpio = gpiod_get_optional(&pdev->dev, "reset", GPIOD_OUT_LOW);
   141				if (IS_ERR(gpio))
   142					return PTR_ERR(gpio);
   143	
   144				if (gpio) {
   145					gpiod_set_value_cansleep(gpio, 1);
   146					gpiod_put(gpio);
   147					usleep_range(10000, 11000);
   148				}
   149			}
   150		}
   151	
   152		if (pdev->vendor == PCI_VENDOR_ID_SYNOPSYS &&
   153		    (pdev->device == PCI_DEVICE_ID_SYNOPSYS_HAPSUSB3 ||
   154		     pdev->device == PCI_DEVICE_ID_SYNOPSYS_HAPSUSB3_AXI ||
   155		     pdev->device == PCI_DEVICE_ID_SYNOPSYS_HAPSUSB31)) {
   156			struct property_entry properties[] = {
   157				PROPERTY_ENTRY_BOOL("snps,usb3_lpm_capable"),
   158				PROPERTY_ENTRY_BOOL("snps,has-lpm-erratum"),
   159				PROPERTY_ENTRY_BOOL("snps,dis_enblslpm_quirk"),
   160				{ },
   161			};
   162	
   163			return platform_device_add_properties(dwc3, properties);
   164		}
   165	
   166		return 0;
   167	}
   168	
   169	static int dwc3_pci_dsm(struct dwc3_pci *dwc, int param)
   170	{
   171		union acpi_object *obj;
   172		union acpi_object tmp;
 > 173		union acpi_object argv4 = ACPI_INIT_DSM_ARGV4(1, &tmp);
   174	
   175		if (!dwc->has_dsm_for_pm)
   176			return 0;

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux