Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754266AbbDMRGc (ORCPT ); Mon, 13 Apr 2015 13:06:32 -0400 Received: from avon.wwwdotorg.org ([70.85.31.133]:50444 "EHLO avon.wwwdotorg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753083AbbDMRG3 (ORCPT ); Mon, 13 Apr 2015 13:06:29 -0400 Message-ID: <552BF791.1040309@wwwdotorg.org> Date: Mon, 13 Apr 2015 11:06:25 -0600 From: Stephen Warren User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Martin Sperl CC: Jim Davis , Stephen Rothwell , linux-next , linux-kernel , broonie , lee@kernel.org, linux-spi@vger.kernel.org, linux-rpi-kernel@lists.infradead.org Subject: Re: randconfig build error with next-20150413, in drivers/spi/spi-bcm2835.c References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1426 Lines: 36 On 04/13/2015 10:52 AM, Jim Davis wrote: > Building with the attached random configuration file, > > drivers/spi/spi-bcm2835.c: In function 'chip_match_name': > drivers/spi/spi-bcm2835.c:356:21: error: dereferencing pointer to > incomplete type > return !strcmp(chip->label, data); > ^ > drivers/spi/spi-bcm2835.c: In function 'bcm2835_spi_setup': > drivers/spi/spi-bcm2835.c:382:2: error: implicit declaration of > function 'gpiochip_find' [-Werror=implicit-function-declaration] > chip = gpiochip_find("pinctrl-bcm2835", chip_match_name); > ^ > drivers/spi/spi-bcm2835.c:382:7: warning: assignment makes pointer > from integer without a cast > chip = gpiochip_find("pinctrl-bcm2835", chip_match_name); > ^ > drivers/spi/spi-bcm2835.c:387:21: error: dereferencing pointer to > incomplete type > spi->cs_gpio = chip->base + 8 - spi->chip_select; > ^ > drivers/spi/spi-bcm2835.c: In function 'chip_match_name': > drivers/spi/spi-bcm2835.c:357:1: warning: control reaches end of > non-void function [-Wreturn-type] > } > ^ Martin, I think you need to update spi-bcm2835's Kconfig to add a dependency on GPIO. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/