From patchwork Mon Jan 14 09:57:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 155417 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3468635jaa; Mon, 14 Jan 2019 01:58:01 -0800 (PST) X-Google-Smtp-Source: ALg8bN6tG9DcfHQhq5bUC6m+SwME9rP1tohxot4Kp6gid2137knn/zstygiVf/EgsgsF7RoHiQxd X-Received: by 2002:a63:6d48:: with SMTP id i69mr21248044pgc.215.1547459881255; Mon, 14 Jan 2019 01:58:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547459881; cv=none; d=google.com; s=arc-20160816; b=Wbs462WHjsUSnsYpUJc78WsK2JqDXPKz5VxnBZE0Zsh4H7Qn936q2DLvHUme+Av3sm UbLvQXhChn0q+8xbvl69YsnixlUFm0szHK3Tf6OmWF7K0znkCMt5W8VyatZmehTPYN8l AHYpMnS/j/giQ5cDJT7Vd8QHp7NQ0/zyNo0wpFMJpibwS2p7uIK7uN/mOmp0h9Dn/IF/ 6gu5aMHKC7VirlSb8ENhoGICegOd7EpAR84EC/G+MGmG8D3cbM0RHsaG/SEuww8KIcuS sUG1ySqarIv81hNpwH1cDNZeSSeyyxI7Ni/e3CoyAhUSRDv2HNaZaDSOafH1SsCwXTng whAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=TZeGN3rlRP+BY2QvEk3qQEzkoTkwqoKfmJP5E6E9R+U=; b=h1PkfjTSIHUVmbUIf6gdSW8AjWY+GUNIpUbbrVMmOkKbp4laGohfidZcfxRRaq+dkL gBpjYVvaEBXBw1y/WpS/yFb3FptM5txy6Ygkgdi+7oflOC9Y/LmF31+EGjCFVrwa/m/X 0aAnCNgEI0GifoMVJJsluVgrX17fNLBJBCPvvsTCvzkhczopdsT5gE19SBsKYviBhZcR 43skyMwU+B16rKEPshE8PmwylcEsM+autEJuGy3QTVMRr5W/VL3LP6dkhto+S5qXnuqP LpJNLHyRk87aUnPci1fCi2liF+KN0teL7ZyA23wxyEsTN+3YnilciDNz3uhUC5/ck43p xqIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BAHt31rl; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z5si24501985pgh.469.2019.01.14.01.58.00; Mon, 14 Jan 2019 01:58:01 -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=@linaro.org header.s=google header.b=BAHt31rl; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726657AbfANJ6A (ORCPT + 31 others); Mon, 14 Jan 2019 04:58:00 -0500 Received: from mail-lf1-f67.google.com ([209.85.167.67]:41793 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726513AbfANJ57 (ORCPT ); Mon, 14 Jan 2019 04:57:59 -0500 Received: by mail-lf1-f67.google.com with SMTP id c16so15101609lfj.8 for ; Mon, 14 Jan 2019 01:57:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=TZeGN3rlRP+BY2QvEk3qQEzkoTkwqoKfmJP5E6E9R+U=; b=BAHt31rlG9ugX7GNkSQ9IQMxQXOCNsAl+g2MFZgDG1d35EKxagIDsIaPKF3jB2BQ9F BQIh1bzTmWWLRSQZXu7H6fBgtTuNOERB7JS2MqG5JxBUAl+ga/gL72fwDFy7/lm+Trk0 RtMlLl/ZdNGx7FtNfiKbRQRaT4LQrOh4QRIqQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=TZeGN3rlRP+BY2QvEk3qQEzkoTkwqoKfmJP5E6E9R+U=; b=G7pOv+ccTuQ9o0hvMJQ27UZvnCYgRpmMsn+ToDH3DoW7bWfL4YSrzyJ2nvtsX74gDf pKAE9ROixxbZcZuJ8UXVfmntzn6VybeKn3ESDnowmnKV7Jy1TXTSTNEjjAHoCaC4el4b MHYfn43Tiw9xtQwE4L8KwAL18ctcDBtW/vxRbIxSpyc1Hkuf9U0HDW0/LjlV+T8ksfsX ieC2YzDsVQqTXNZl1mcfTVSlbn+ZMZ07GxyWusUrbrr4iZ0Mko4DLFGIUijeTQ/IqF5u GBrWcKgSWgHtDNa4m2XsSxE2U/0gHgVYCsf5xPviggmCrXxpKxrvh8ILF4KRl76vs7tG JYOw== X-Gm-Message-State: AJcUukfR6Vo4xbFBo0psnEmi/hL41SqRj/lgF8ssfqhRfmCIsIv6+jsN nfXUIyX5ZzpyDQyiK9ZsGXpsWg== X-Received: by 2002:a19:ee08:: with SMTP id g8mr13283753lfb.72.1547459877456; Mon, 14 Jan 2019 01:57:57 -0800 (PST) Received: from localhost (c-573670d5.07-21-73746f28.bbcust.telenor.se. [213.112.54.87]) by smtp.gmail.com with ESMTPSA id u12-v6sm17389497ljk.79.2019.01.14.01.57.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Jan 2019 01:57:56 -0800 (PST) From: Anders Roxell To: dmitry.torokhov@gmail.com Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Anders Roxell Subject: [PATCH 3/3] input: touchscreen: fix link error Date: Mon, 14 Jan 2019 10:57:54 +0100 Message-Id: <20190114095754.23175-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/input/touchscreen/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.19.2 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.