Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3875791imu; Mon, 14 Jan 2019 10:33:58 -0800 (PST) X-Google-Smtp-Source: ALg8bN6bdPbnyNGV1XFKv3vcfpeKJHxOiA50onQmWTYKxPwntFOBdLLfBT3uL1T99jvp9Vvc39Qi X-Received: by 2002:a63:3d49:: with SMTP id k70mr24133955pga.191.1547490838637; Mon, 14 Jan 2019 10:33:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547490838; cv=none; d=google.com; s=arc-20160816; b=RESgf8bAFP6+1Xa6x/W01RadzejYASl5BqKgxblsV5ua6974HmVKeczIT4QZtW7Nv+ SDfzoP3MLHrRSv2w2xAhXzlkfCFPJ5ZsjDPfTxVx3bB3MStiubeaWTcZ756ic1WMfB4S cMHeZJ48H2asTcjgaw32/nWUCFrnIUZq/0H78I11hL9VWo+ogMyquSD+Aqw/6R/q94nd aGbXdMVKzC7i2KX7D/Opp9zQ47dHCXheiVXf3qzQRMxi9cnDhugwVbjiu2mOW5iMt+PO RTA0wVStyMzeAdwDZ/zT+GBKE21S3LdBUehRm7p73IDbOS+D/AklS+iCPveIbQW3YdHo 8p1A== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=XR5gtJAobwIyA7lYr0SPKFiQbtw7N6vkRr4/TFdvAPI=; b=a+4fNbGxSqxSEo+hHIa+nvkdZ+fKw3CSxyKrIIWxNv40yhnuE6rRSkVFcmK1uPxKSo lpONIiORQtgJBnHpVw2udf8Rf7723G5OdMbbqW7cfudwUbW875u140BBtVT0SgU86x7Q yMVoxFMsghmd+dCy1pTABRc2LuFDrVUECA5pMbSv1vThyMWfcqajsUsoDhhdXxIt8FDc FprvhOBTk/ZljSxvM25CjGm0NWpgy8YY495Zg//1EbHnUd+pn7f+b3vjF9mGr7WV2E0H m7W0yW3TzjB7AoCYaTnDpZZiPQcpsiDC2HKPkw5BBlr1EJiE3IVe4nPW3qp9lVPL9bRK G1QQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mGxIxpZk; 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=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d2si867370pla.81.2019.01.14.10.33.42; Mon, 14 Jan 2019 10:33:58 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=mGxIxpZk; 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=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726853AbfANSc2 (ORCPT + 99 others); Mon, 14 Jan 2019 13:32:28 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:43227 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726732AbfANSc2 (ORCPT ); Mon, 14 Jan 2019 13:32:28 -0500 Received: by mail-pf1-f195.google.com with SMTP id w73so10724492pfk.10; Mon, 14 Jan 2019 10:32:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=XR5gtJAobwIyA7lYr0SPKFiQbtw7N6vkRr4/TFdvAPI=; b=mGxIxpZkASyE6V1QhO8l3rS9FlMASaDNWcXNI2s8JEj3+7WZTWiFNsjEiQKlwmVz8T 8GZI5WCaoAlLIGj0oXi4G34TrGKd2+Irzm1Ll1uijWM1/VV5yz996R9uUELuAPUnXuTH r1RC455JAGW/iG4PLfIBizyfaG+xcvCbK5k4J94A+7ZA9c/2bueg4z8Ga9iee71I8OWK dOZxf7xmIJwOa9I/crW7uDDm0An4bS4SPhP+77P4wptF/o90OuTi3rlK/Po1Ul9uNcUP jS4YflZ9ZFvGuxYgCBoLpzCkFLcI2dCti0D54/pHPuE4bJFAjAvuYvOUZ2eo9ue5WnjE JNSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=XR5gtJAobwIyA7lYr0SPKFiQbtw7N6vkRr4/TFdvAPI=; b=KW9kF2DFH0xN2UwC/wt5LEUSb/17vzXaTe0M/8YBXyyloW9ftEAphpHNT1TNVPnAYV THchT7/qK8KtzFLuw31Sl194asGgO/9nbGvngjYPJk/VKghOI1lKvdt846pxKDlhYAfd rz5Loqcrk/+JGCz39P6gHKrwHfumJgPjFo0sMxMO+G3uVbHYiEfHFlsPUw5FU4vzH7Wy hZLdJyUv1DkJ08b7scbOz5ZdL4lr3IbM69YBwBELXD4XcMx0RtrO+PPhnFZstwEV+gHC VSuqB/Lp4jSSkpo3M0dGfaEMLrpjsoY3HKMsqt3xmIQ06lsKLVh4Wtn7HsM1NC8hd0Jx Un/Q== X-Gm-Message-State: AJcUukc67uGi6KQeFKb0eTsftOhymhk7IOdRfZPvzcuj1/COO0OI//7Q MNmqs4XRddznTJaHT4oFplnk32wo X-Received: by 2002:a65:49cd:: with SMTP id t13mr24355663pgs.376.1547490746948; Mon, 14 Jan 2019 10:32:26 -0800 (PST) Received: from dtor-ws ([2620:15c:202:201:3adc:b08c:7acc:b325]) by smtp.gmail.com with ESMTPSA id f64sm2670362pfh.0.2019.01.14.10.32.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Jan 2019 10:32:26 -0800 (PST) Date: Mon, 14 Jan 2019 10:32:24 -0800 From: Dmitry Torokhov To: Anders Roxell Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] input: touchscreen: fix link error Message-ID: <20190114183224.GB117329@dtor-ws> References: <20190114095754.23175-1-anders.roxell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190114095754.23175-1-anders.roxell@linaro.org> 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 On Mon, Jan 14, 2019 at 10:57:54AM +0100, Anders Roxell wrote: > Fix link error when TOUCHSCREEN_RASPBERRYPI_FW is enabled as a module > and the dependent module is built-in. > The 'depends on RASPBERRYPI_FIRMWARE' by itself prevents the touchscreen > driver from being built-in when the firmware is configured as a module. > However, the '|| COMPILE_TEST' still allows it unless we explicitly > prevent that configuration with '|| (RASPBERRYPI_FIRMWARE=n && > COMPILE_TEST)' > > ld: drivers/input/touchscreen/raspberrypi-ts.o: in function `rpi_ts_probe': > raspberrypi-ts.c:(.text+0x3a8): undefined reference to `rpi_firmware_get' > ld: raspberrypi-ts.c:(.text+0x3a8): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `rpi_firmware_get' > ld: raspberrypi-ts.c:(.text+0x4c8): undefined reference to `rpi_firmware_property' > ld: raspberrypi-ts.c:(.text+0x4c8): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `rpi_firmware_property' > > Rework so that TOUCHSCREEN_RASPBERRYPI_FW depends on > RASPBERRYPI_FIRMWARE=n if COMPILE_TEST is enabled. > > Suggested-by: Arnd Bergmann > Signed-off-by: Anders Roxell Applied, thank you. > --- > drivers/input/touchscreen/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/input/touchscreen/Kconfig b/drivers/input/touchscreen/Kconfig > index af6027cc7bbf..068dbbc610fc 100644 > --- a/drivers/input/touchscreen/Kconfig > +++ b/drivers/input/touchscreen/Kconfig > @@ -698,7 +698,7 @@ config TOUCHSCREEN_EDT_FT5X06 > > config TOUCHSCREEN_RASPBERRYPI_FW > tristate "Raspberry Pi's firmware base touch screen support" > - depends on RASPBERRYPI_FIRMWARE || COMPILE_TEST > + depends on RASPBERRYPI_FIRMWARE || (RASPBERRYPI_FIRMWARE=n && COMPILE_TEST) > help > Say Y here if you have the official Raspberry Pi 7 inch screen on > your system. > -- > 2.19.2 > -- Dmitry