Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1475501ybl; Thu, 22 Aug 2019 15:26:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqx8awU07iCmmcDSKW//DnJygPwe004gAK8SthsmFaxBQsmgeC7gDWe6j9kAKtUN9lpr/QZ2 X-Received: by 2002:a17:902:44c:: with SMTP id 70mr1139627ple.225.1566512806610; Thu, 22 Aug 2019 15:26:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566512806; cv=none; d=google.com; s=arc-20160816; b=nDGqV3EAAxhvKmu057hkyY+rOv4kO5jkhwketpe1RyrxMJQd66gorDGzYOYlZcoSfW w8rFBrT6fBZ00o48LEYkeZo55sWldaB5qybLdQMbKPYOb6lG8X6GEWMVBWcNTNPfTPNT wpmBN7zTMEbsBC0kaEpZuDptNReYBh153RQ3+hOIZ0PBTKi5sh1uObEhiiMEvJzJkTTS x540lehyryS6nyIKX1k7Gx8ymQEymq+tiLUdARbHyFCb0opA0tVptKnoCvnRhkMHrdwf mtTpJ+vTJXeh65gOECgDETtH1qZIqrVKen6A325K+oyTgDvQDFiqlsfvIBkup+R0wFFH 7ImQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=5hkHQgsPl4y+qhm6UGxpP60Vk07X7j9E2haDh/AMWlw=; b=oK/k3OySaKIO+XDPZKYJ4L85f9eHpfR1ydk7EnRn8W2/B/VBuE3uHo1Qnf1qEI+c1s iP/DFyEYr1LAbK66Z7zUlVTwMxwFXrjNHFjOuQAGJoY0q2vRurRadXuu1ILnRD7F5i3k m92+/hqe2zn6ZhSmrrUJtTm9QSivuevBcj7F1KAfWMYbjpGjmcwtrFmch4T/j+EJJo/r 055sW3iItnBpALBXAXlgqhbRCQHNWUFQ0wsFvXgoHrIT2dJ/TKgaQ492+z+q39QJfSzN WcTqO6suedw9DOAGDKzFdsKq4GtQZmmCK/EzjqWw5E9uoKtWAgCsPlg8tGHhoDxQynft 3DYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=p8FKBQrA; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r23si812697pfg.124.2019.08.22.15.26.32; Thu, 22 Aug 2019 15:26:46 -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=@kernel.org header.s=default header.b=p8FKBQrA; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388961AbfHVRJX (ORCPT + 99 others); Thu, 22 Aug 2019 13:09:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:59506 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390697AbfHVRJM (ORCPT ); Thu, 22 Aug 2019 13:09:12 -0400 Received: from sasha-vm.mshome.net (wsip-184-188-36-2.sd.sd.cox.net [184.188.36.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8362E2342F; Thu, 22 Aug 2019 17:09:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566493751; bh=pEYPkZqlavPya5XXQTmozjCedN/vAJk5AiBNMwSLs/I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=p8FKBQrAAJSGYpuOeOm58xjWjHekDZVTLrO8CnuYgBtbUo5fvGpgmoPqA7k8WuMUl cOJRefd4TncSj5Q3E7Vaj81/Kn/rZDjG2DwLZB7SiO/P/9pqfboiLSMWr9LISiXndn HuZZiX5B6WuHqgHRzrRb58/srR4TKQzPwCnvOmrY= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: YueHaibing , Hulk Robot , Dmitry Torokhov , Hui Wang , Greg Kroah-Hartman Subject: [PATCH 5.2 106/135] Input: psmouse - fix build error of multiple definition Date: Thu, 22 Aug 2019 13:07:42 -0400 Message-Id: <20190822170811.13303-107-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190822170811.13303-1-sashal@kernel.org> References: <20190822170811.13303-1-sashal@kernel.org> MIME-Version: 1.0 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.2.10-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-5.2.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 5.2.10-rc1 X-KernelTest-Deadline: 2019-08-24T17:07+00:00 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: YueHaibing commit 49e6979e7e92cf496105b5636f1df0ac17c159c0 upstream. trackpoint_detect() should be static inline while CONFIG_MOUSE_PS2_TRACKPOINT is not set, otherwise, we build fails: drivers/input/mouse/alps.o: In function `trackpoint_detect': alps.c:(.text+0x8e00): multiple definition of `trackpoint_detect' drivers/input/mouse/psmouse-base.o:psmouse-base.c:(.text+0x1b50): first defined here Reported-by: Hulk Robot Fixes: 55e3d9224b60 ("Input: psmouse - allow disabing certain protocol extensions") Signed-off-by: YueHaibing Signed-off-by: Dmitry Torokhov Cc: Hui Wang Signed-off-by: Greg Kroah-Hartman --- drivers/input/mouse/trackpoint.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/input/mouse/trackpoint.h b/drivers/input/mouse/trackpoint.h index 0afffe8d824fa..77110f3ec21da 100644 --- a/drivers/input/mouse/trackpoint.h +++ b/drivers/input/mouse/trackpoint.h @@ -158,7 +158,8 @@ struct trackpoint_data { #ifdef CONFIG_MOUSE_PS2_TRACKPOINT int trackpoint_detect(struct psmouse *psmouse, bool set_properties); #else -inline int trackpoint_detect(struct psmouse *psmouse, bool set_properties) +static inline int trackpoint_detect(struct psmouse *psmouse, + bool set_properties) { return -ENOSYS; } -- 2.20.1