Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2201573ybi; Thu, 18 Jul 2019 04:59:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqxj3oP9s0vW2oTnbY+pVGCSJ3gcwQ5lS0V3FEYiXa3inJO9UIOGl2znW/I69eXhcJZdxzMe X-Received: by 2002:a63:fb14:: with SMTP id o20mr36100733pgh.136.1563451182168; Thu, 18 Jul 2019 04:59:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563451182; cv=none; d=google.com; s=arc-20160816; b=fy92UmcH/ZPv6EhTsfPuOPy5BtI7OBMY2/xLmdPZpnNw41oqv1xIm9BjZu2pljr9X2 +bQnJIuL9KdzBOoqxFLe3cq2JoYNWsQHPCsHDAvCjM5l3a7b/nEC/AvZ/ll0MIrxd8XW 19L1C08UeM0vhGCMeYVbj0Qo8/fEk//yxaoFeaQembCaUFofi5fWaf1pU4778zVgJdyi dbGD8SLct6mv3O2FCUklwBLaIg0CpE7hq0qRFWn12Yqo7G+VjiDS4dBLuBNA+pVC7h2W 0X/rlyHCZcQtUu85OzwngqYqv2YfrARnDm1VJ4rmlvEqjYmOn0vt2j14aFAKJbPmhKJs 4Swg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature:dkim-filter :date; bh=ik0okPy9JA/b0aUoSm3HKYQLFraB8wAkbCLvHmB/+30=; b=oDTqHVzvaTs32HblOHTtL9ojOZAmP++Bku/33HUFFHvzozkuDH+OGQQzDOEMDuRc+0 3DDaKQTznFYeaO0D0bbjQayqRYNXTLwVROWtc4EV+YygZYC8gRsn9hcya7d1Yl+GleE+ f3Evz89cwpEaduLEWLdpGgq9rKmdx1WtVZfVLZv9rGst2o6YjuCzqIY0bOq/LcPAXaRw Jh/dnIDXRuqc7SMObR9+DXPEATye/ieH9Op+TN9bZZLlFOKDb1rLw2pAb7HtaydN3K1T LcK2oHngNKjrW+jhLXiWr/FRhxfjlc1I0A28doIVup6Wnnk92028kpFI5auVpzoYRYRb i/Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@innovation.ch header.s=default header.b=Cb1k3R1E; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=innovation.ch Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z5si378301pgj.213.2019.07.18.04.59.25; Thu, 18 Jul 2019 04:59:42 -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; dkim=pass header.i=@innovation.ch header.s=default header.b=Cb1k3R1E; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=innovation.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390136AbfGRL62 (ORCPT + 99 others); Thu, 18 Jul 2019 07:58:28 -0400 Received: from chill.innovation.ch ([216.218.245.220]:59910 "EHLO chill.innovation.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727685AbfGRL61 (ORCPT ); Thu, 18 Jul 2019 07:58:27 -0400 Date: Thu, 18 Jul 2019 04:58:27 -0700 DKIM-Filter: OpenDKIM Filter v2.10.3 chill.innovation.ch 4891B640133 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=innovation.ch; s=default; t=1563451107; bh=ik0okPy9JA/b0aUoSm3HKYQLFraB8wAkbCLvHmB/+30=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Cb1k3R1EGs763vCFTXUSVAvExrN7vDSZsoB1uBp2szmudiRlNULCeDaXYWf3t3naz gzk6+xx0o2eg1yBr1s091UhCYP+xNaisNFakufwO5Votp/j88L4QUdZZonBTqNS7LU QWQlE+mNW+pIzwwTpIAKUD7VcTs2St32qgIZl8YWLU4bEF/lIrbSwqXr4vzWekgi4o cN67ny9hApTpSsJWJOdGM25baJUWFKmiMEEKxNTJWi64J+ypqL/iSrFv9YRJiGSvaJ DGCE081FQ3KEShy9Mjlq23Q1eZ0AUMGjDsPwuGcrv1DKTEmb+fr/3Rmr1D7GSq2T+2 EX1ykPKjjsqYg== From: "Life is hard, and then you die" To: Arnd Bergmann Cc: YueHaibing , Dmitry Torokhov , Hartley Sweeten , Rob Herring , Andy Shevchenko , Linux Kernel Mailing List , "open list:HID CORE LAYER" Subject: Re: [PATCH] Input: applespi: Fix build error without CONFIG_PCI Message-ID: <20190718115827.GB2872@innovation.ch> References: <20190718020654.39860-1-yuehaibing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnd, On Thu, Jul 18, 2019 at 09:15:59AM +0200, Arnd Bergmann wrote: > On Thu, Jul 18, 2019 at 4:07 AM YueHaibing wrote: > > > > 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 > > I found the same build bug, plus another issue: > > arch/arm/Kconfig:1942:error: recursive dependency detected! > arch/arm/Kconfig:1942: symbol XIP_KERNEL depends on KASAN > lib/Kconfig.kasan:15: symbol KASAN depends on SYSFS > fs/sysfs/Kconfig:2: symbol SYSFS is selected by CONFIGFS_FS > fs/configfs/Kconfig:2: symbol CONFIGFS_FS is selected by USB_LIBCOMPOSITE > drivers/usb/gadget/Kconfig:145: symbol USB_LIBCOMPOSITE is > selected by USB_ZERO > drivers/usb/gadget/legacy/Kconfig:17: symbol USB_ZERO is part of > choice > drivers/usb/gadget/Kconfig:486: choice contains symbol USB_G_WEBCAM > drivers/usb/gadget/legacy/Kconfig:479: symbol USB_G_WEBCAM is > part of choice VIDEO_V4L2 > drivers/media/v4l2-core/Kconfig:7: symbol VIDEO_V4L2 depends on I2C > drivers/i2c/Kconfig:8: symbol I2C is selected by FB_DDC > drivers/video/fbdev/Kconfig:63: symbol FB_DDC depends on FB > drivers/video/fbdev/Kconfig:12: symbol FB is selected by DRM_KMS_FB_HELPER > drivers/gpu/drm/Kconfig:75: symbol DRM_KMS_FB_HELPER depends > on DRM_KMS_HELPER > drivers/gpu/drm/Kconfig:69: symbol DRM_KMS_HELPER is selected > by DRM_ARMADA > drivers/gpu/drm/armada/Kconfig:2: symbol DRM_ARMADA depends > on HAVE_CLK > arch/Kconfig:314: symbol HAVE_CLK is selected by CLKDEV_LOOKUP > drivers/clk/Kconfig:3: symbol CLKDEV_LOOKUP is selected by COMMON_CLK > drivers/clk/Kconfig:10: symbol COMMON_CLK is selected by MFD_INTEL_LPSS > drivers/mfd/Kconfig:600: symbol MFD_INTEL_LPSS is selected > by MFD_INTEL_LPSS_PCI > drivers/mfd/Kconfig:614: symbol MFD_INTEL_LPSS_PCI is > implied by KEYBOARD_APPLESPI > drivers/input/keyboard/Kconfig:74: symbol KEYBOARD_APPLESPI > depends on EFI > arch/arm/Kconfig:2031: symbol EFI depends on XIP_KERNEL > > Your patch correctly solves the spi_pxa2xx issue, but I'd prefer to instead > drop the three 'imply' statements altogether, they seem to do more harm > than good. > > (the circular dependency I saw might only happen when applying the > arm32 KASAN patches, but I expect to see them merged for linux-5.4) Isn't there more generally a problem here that this is selecting MFD_INTEL_LPSS_PCI even though that depends on X86? I.e. are both ARM and X86 selected at the same time? (sorry if I'm being na?ve, but I assumed only one arch can be selected at a time) Cheers, Ronald