Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1633232ybi; Wed, 17 Jul 2019 19:08:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqx3VEHkH6bCdPs65LUYIxAJT3+DyNZwfUH81Jf0NUwVnzdXmKZLcs6h9NtB1ZR1Lozw6u+2 X-Received: by 2002:a17:90a:3463:: with SMTP id o90mr49091109pjb.15.1563415693834; Wed, 17 Jul 2019 19:08:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563415693; cv=none; d=google.com; s=arc-20160816; b=XbVSXMbjFwYuaELDJDFlZPxyDfROneB4TGcw8QMGv9GkGh4wjyiKk6drwQK6LE99Wh hjH5y3FoQuVUpMwSDmJghwxGEXNnafWUMXRMZieZKBqk/IwTOzuVO7zUk9LJ/VA4ylg6 4dfUPXGuTLkeDbUkP+0M6NCZBiCrVZ/dsXCOv7zXShyDsaZOrHl4kdMufqKeekXCD9aP WKg4ja6nmvAUskGEXhysftOd5psfvuKQhxJx6xnNKT/g8pdnfVF9mGnEbCAcd/ovXCZw 58/8p09SH7eqRepRqEC4BTRYieNiMM5I4RhZlgP2vawhrDVl/TUz5nG+wXbbarS9t+o9 s3wQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=jcKYSNtF8zJRkLfOK6/mIqmxbiYxGuZyutbk3BnydBE=; b=TLVrNEDpewoA6PedQgzjn1m7KpweM2lgzuPf43/yGwnWi42KyVq6Cx0qVWZYcyZr0T f+hRnMZQnyI1PMsu0yqOINUR3YNibM3d4TKLpqK1wRvnBcEFVom9xCnlcjjRtX3Ub2f5 pBnGc02baItlsWZ8U7sqCXZ1BihetrwPluOBE6RSlkL1CrlqURU8U20zZMrUEudCKtgV EqMEiQz12ADRIXYNWmqF0hHu/2Srov0BiUuZrLDzA5KXM3gU3T7gGgHysTBWRExqrb6F i4VCYycOPIzpryxqfpuusEGTcZbif3+OrdvqYSS0Jk0mq8GlJz6PurG8OU2CtpJkIq7S Ni4A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q23si633125pfc.179.2019.07.17.19.07.57; Wed, 17 Jul 2019 19:08:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731542AbfGRCH0 (ORCPT + 99 others); Wed, 17 Jul 2019 22:07:26 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:2676 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727541AbfGRCH0 (ORCPT ); Wed, 17 Jul 2019 22:07:26 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 615E2D74EC604C7DB965; Thu, 18 Jul 2019 10:07:24 +0800 (CST) Received: from localhost (10.133.213.239) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.439.0; Thu, 18 Jul 2019 10:07:18 +0800 From: YueHaibing To: , , , , , CC: , , YueHaibing Subject: [PATCH] Input: applespi: Fix build error without CONFIG_PCI Date: Thu, 18 Jul 2019 10:06:54 +0800 Message-ID: <20190718020654.39860-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.133.213.239] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If CONFIG_KEYBOARD_APPLESPI is set to y, but CONFIG_PCI is not set, building will fails: drivers/spi/spi-pxa2xx-pci.c: In function pxa2xx_spi_pci_probe: drivers/spi/spi-pxa2xx-pci.c:208: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:239: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); ^~~~~~~~~~~~~~~~~~~~~ Make CONFIG_KEYBOARD_APPLESPI depends on CONFIG_PCI to fix this. Reported-by: Hulk Robot Fixes: b426ac045209 ("Input: add Apple SPI keyboard and trackpad driver") Signed-off-by: YueHaibing --- drivers/input/keyboard/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/keyboard/Kconfig b/drivers/input/keyboard/Kconfig index dd934c4..fefcc46 100644 --- a/drivers/input/keyboard/Kconfig +++ b/drivers/input/keyboard/Kconfig @@ -74,7 +74,7 @@ config ATARI_KBD_CORE config KEYBOARD_APPLESPI tristate "Apple SPI keyboard and trackpad" depends on ACPI && EFI - depends on SPI + depends on SPI && PCI depends on X86 || COMPILE_TEST imply SPI_PXA2XX imply SPI_PXA2XX_PCI -- 2.7.4