Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp63787ybl; Thu, 22 Aug 2019 19:53:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqwU5CN7qZ/A9GQlgI6BtVct+q2Vg3wjMKi8Ec1WGtEd9x9vzM+kIO142JNqs68KUbbbsUcW X-Received: by 2002:a05:6a00:46:: with SMTP id i6mr2670834pfk.196.1566528804611; Thu, 22 Aug 2019 19:53:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566528804; cv=none; d=google.com; s=arc-20160816; b=aHHPv9WeebQ9kPlrxQne5BUDcmR1EueY+weF0ctE8yR+yOUDC9Tu0aw3zbr8pgm7l3 jKK6x/s4zAYnLRAv5HnSRwXLHWbB3iuWfqhlT5SJTi8X5EI4Mjv73L5FCXeUqJ7opaU0 xn/WcfF2EMzgSUxnU24ocmRqrJJfF4nE71rol7Adx2UKzfD1pLbDfOyU4dioEJ+RsHXP hni0Tvlwz1Ru2/UcvXZx6aJmTDjj+jnCLzVszxzm3gyBKh9ywto4hnyphI6cW2sFLxHv xQ+m8dcYoTS5qnLeg/QM6xYOMuzUvcFbPruGI1mdMgRYHHAlCELjYFjh6k9svIbH9PU4 wkrA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=OjQye0xd0MDy00VOsTCmaKBf5K0ch7bPyoc+p+AvKiE=; b=iE3LPXOhFuJUrQQJDo5VISGlEit5U5v3MSZzEW3S3lo8qTlDMxiyBNJprzx5jgBODK sPvFjImBUeS378JZs89wAF7tvyOY8H6/MB0Q5ui+F46YJYg1gDk+RXzTe/E6lRAW3l+E tr9ZTi8vwPgBcIy+f4PWrXBtwf0h+fpJ35xJUT0j1c3hM9M3SvuHwS3GmEtn+od6c2uA Vul1qH1EJlbgjKP+FsmY8b1AcnW+JCj1H+E/0dR0eyuoQ27YpZX3UTRPauV0Fy3StCli JSV/61vFHsD3UgK2+Cg9wd8ZsfO9B4Dm5CYDNUUGfPFKbttBzQ5+qXSfGLYELHwVLj9X AvFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=VkKaI8NT; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u2si834274pgr.284.2019.08.22.19.53.06; Thu, 22 Aug 2019 19:53:24 -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=VkKaI8NT; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392162AbfHVRaj (ORCPT + 99 others); Thu, 22 Aug 2019 13:30:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:50902 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404623AbfHVR0I (ORCPT ); Thu, 22 Aug 2019 13:26:08 -0400 Received: from localhost (wsip-184-188-36-2.sd.sd.cox.net [184.188.36.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D68BA2341B; Thu, 22 Aug 2019 17:26:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566494768; bh=Lqhqryb78B7k7zekpbzy+H9JJH5FFlViKcIlItaGoIA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VkKaI8NTWaWspYsRJ+ep4IVsRkuJ8zvvied7RS9hGRVE33Z8AECnNsZYUyMQ5lfD5 UyPnGq9yZtS2gemPNQ1u6RFAmpT9tOQwx9ZTusQhjQZfh2K8G+2uqJ1youc7F8Pkck V4xDfyeq9xzVGFmvt0xOZNtthsBHIK6CDlPJVI4Q= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hulk Robot , YueHaibing , Dmitry Torokhov , Hui Wang Subject: [PATCH 4.19 71/85] Input: psmouse - fix build error of multiple definition Date: Thu, 22 Aug 2019 10:19:44 -0700 Message-Id: <20190822171734.247155329@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190822171731.012687054@linuxfoundation.org> References: <20190822171731.012687054@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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(-) --- a/drivers/input/mouse/trackpoint.h +++ b/drivers/input/mouse/trackpoint.h @@ -161,7 +161,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; }