mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: "Ronald Tschalär" <ronald@innovation.ch>
Cc: kbuild-all@01.org, Dmitry Torokhov <dmitry.torokhov@gmail.com>,
	Henrik Rydberg <rydberg@bitmath.org>,
	Lukas Wunner <lukas@wunner.de>,
	Federico Lorenzi <federico@travelground.com>,
	Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
	linux-input@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2] Input: add Apple SPI keyboard and trackpad driver.
Date: Tue, 5 Feb 2019 02:20:40 +0800	[thread overview]
Message-ID: <201902050235.lJpl9A0U%fengguang.wu@intel.com> (raw)
In-Reply-To: <20190204081947.25152-3-ronald@innovation.ch>

[-- Attachment #1: Type: text/plain, Size: 5350 bytes --]

Hi Ronald,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on input/next]
[also build test ERROR on v5.0-rc4]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Ronald-Tschal-r/drm-bridge-sil_sii8620-depend-on-INPUT-instead-of-selecting-it/20190205-003319
base:   https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git next
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gnu-gcc (Debian 8.2.0-11) 8.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        GCC_VERSION=8.2.0 make.cross ARCH=sh 

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

   drivers/input/keyboard/applespi.c: In function 'applespi_enable_spi':
>> drivers/input/keyboard/applespi.c:692:11: error: implicit declaration of function 'acpi_evaluate_integer'; did you mean 'acpi_evaluate_object'? [-Werror=implicit-function-declaration]
     result = acpi_evaluate_integer(applespi->sist, NULL, NULL, &spi_status);
              ^~~~~~~~~~~~~~~~~~~~~
              acpi_evaluate_object
>> drivers/input/keyboard/applespi.c:697:11: error: implicit declaration of function 'acpi_execute_simple_method'; did you mean 'acpi_install_method'? [-Werror=implicit-function-declaration]
     result = acpi_execute_simple_method(applespi->sien, NULL, 1);
              ^~~~~~~~~~~~~~~~~~~~~~~~~~
              acpi_install_method
   At top level:
   drivers/input/keyboard/applespi.c:1851:12: warning: 'applespi_resume' defined but not used [-Wunused-function]
    static int applespi_resume(struct device *dev)
               ^~~~~~~~~~~~~~~
   drivers/input/keyboard/applespi.c:1808:12: warning: 'applespi_suspend' defined but not used [-Wunused-function]
    static int applespi_suspend(struct device *dev)
               ^~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
--
   drivers/spi/spi-pxa2xx-pci.c: In function 'pxa2xx_spi_pci_probe':
>> drivers/spi/spi-pxa2xx-pci.c:205:8: error: implicit declaration of function 'pcim_enable_device'; did you mean 'pci_enable_device'? [-Werror=implicit-function-declaration]
     ret = pcim_enable_device(dev);
           ^~~~~~~~~~~~~~~~~~
           pci_enable_device
>> drivers/spi/spi-pxa2xx-pci.c:235:8: error: implicit declaration of function 'pci_alloc_irq_vectors'; did you mean 'pci_alloc_consistent'? [-Werror=implicit-function-declaration]
     ret = pci_alloc_irq_vectors(dev, 1, 1, PCI_IRQ_ALL_TYPES);
           ^~~~~~~~~~~~~~~~~~~~~
           pci_alloc_consistent
   drivers/spi/spi-pxa2xx-pci.c:235:41: error: 'PCI_IRQ_ALL_TYPES' undeclared (first use in this function); did you mean 'PCI_PRI_ALLOC_REQ'?
     ret = pci_alloc_irq_vectors(dev, 1, 1, PCI_IRQ_ALL_TYPES);
                                            ^~~~~~~~~~~~~~~~~
                                            PCI_PRI_ALLOC_REQ
   drivers/spi/spi-pxa2xx-pci.c:235:41: note: each undeclared identifier is reported only once for each function it appears in
>> drivers/spi/spi-pxa2xx-pci.c:238:13: error: implicit declaration of function 'pci_irq_vector'; did you mean 'rcu_irq_enter'? [-Werror=implicit-function-declaration]
     ssp->irq = pci_irq_vector(dev, 0);
                ^~~~~~~~~~~~~~
                rcu_irq_enter
   drivers/spi/spi-pxa2xx-pci.c: At top level:
>> drivers/spi/spi-pxa2xx-pci.c:296:1: warning: data definition has no type or storage class
    module_pci_driver(pxa2xx_spi_pci_driver);
    ^~~~~~~~~~~~~~~~~
>> drivers/spi/spi-pxa2xx-pci.c:296:1: error: type defaults to 'int' in declaration of 'module_pci_driver' [-Werror=implicit-int]
>> drivers/spi/spi-pxa2xx-pci.c:296:1: warning: parameter names (without types) in function declaration
   drivers/spi/spi-pxa2xx-pci.c:289:26: warning: 'pxa2xx_spi_pci_driver' defined but not used [-Wunused-variable]
    static struct pci_driver pxa2xx_spi_pci_driver = {
                             ^~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +692 drivers/input/keyboard/applespi.c

   685	
   686	static int applespi_enable_spi(struct applespi_data *applespi)
   687	{
   688		int result;
   689		unsigned long long spi_status;
   690	
   691		/* check if SPI is already enabled, so we can skip the delay below */
 > 692		result = acpi_evaluate_integer(applespi->sist, NULL, NULL, &spi_status);
   693		if (ACPI_SUCCESS(result) && spi_status)
   694			return 0;
   695	
   696		/* SIEN(1) will enable SPI communication */
 > 697		result = acpi_execute_simple_method(applespi->sien, NULL, 1);
   698		if (ACPI_FAILURE(result)) {
   699			pr_err("SIEN failed: %s\n", acpi_format_exception(result));
   700			return -ENODEV;
   701		}
   702	
   703		/*
   704		 * Allow the SPI interface to come up before returning. Without this
   705		 * delay, the SPI commands to enable multitouch mode may not reach
   706		 * the trackpad controller, causing pointer movement to break upon
   707		 * resume from sleep.
   708		 */
   709		msleep(50);
   710	
   711		return 0;
   712	}
   713	

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 50436 bytes --]

  reply	other threads:[~2019-02-04 18:24 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-04  8:19 [PATCH 0/2] Add " Ronald Tschalär
2019-02-04  8:19 ` [PATCH 1/2] drm/bridge: sil_sii8620: depend on INPUT instead of selecting it Ronald Tschalär
2019-02-04  8:19 ` [PATCH 2/2] Input: add Apple SPI keyboard and trackpad driver Ronald Tschalär
2019-02-04 18:20   ` kbuild test robot [this message]
2019-02-04 18:44   ` kbuild test robot
2019-02-05 10:21   ` Dan Carpenter
2019-02-05 13:15     ` Life is hard, and then you die
2019-02-05 11:45   ` Andy Shevchenko
2019-02-05 13:18     ` Life is hard, and then you die
2019-02-05 15:32       ` Andy Shevchenko
2019-02-06 20:22   ` Andy Shevchenko
2019-02-10 11:18     ` Life is hard, and then you die
2019-02-16  0:44       ` Andy Shevchenko
2019-02-18  9:08         ` Life is hard, and then you die
2019-02-18 12:00           ` Andy Shevchenko
2019-02-04 20:47 ` [PATCH 0/2] Add " Henrik Rydberg
2019-02-05 13:14   ` Life is hard, and then you die

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201902050235.lJpl9A0U%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=dmitry.torokhov@gmail.com \
    --cc=federico@travelground.com \
    --cc=kbuild-all@01.org \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lukas@wunner.de \
    --cc=ronald@innovation.ch \
    --cc=rydberg@bitmath.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®