From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9D6CBC3A5A2 for ; Thu, 22 Aug 2019 17:23:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6B3BD23407 for ; Thu, 22 Aug 2019 17:23:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566494582; bh=LDLY9fVEYlckPoMp5njUIgWaniUMPrNb/kq0sauyZjI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=MBNG2VpcbSl2pCRPb8PmeZpckEtS1pX94oI+ztru31R8VIyk1ZkieQ9G9GrWdg9YU 5HQlI/7QKjuKLveCbxMYwtJrJYVIng/5XA9vjUHE7j8I49ppuwjGDF8dKn1A1nZ+uo F4iJHcWsJ0Cxr8MVLu9iws5mBRWu6zRwcCRH1M6U= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403778AbfHVRXB (ORCPT ); Thu, 22 Aug 2019 13:23:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:41934 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390121AbfHVRW4 (ORCPT ); Thu, 22 Aug 2019 13:22:56 -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 2B18A233FC; Thu, 22 Aug 2019 17:22:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566494575; bh=LDLY9fVEYlckPoMp5njUIgWaniUMPrNb/kq0sauyZjI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qDWjcUIcwGcFrJxJMIIdjom+HAeyWPtef2TFB4qf5ce9mMc4QC0FADH9M8VGBjTVi 9OVCTLk1nYuJ7Sz4BKlUCKxeQ8YGOJtaLC3edqSLcwzdBLhO9vTNfZun94eN7tiGEm wsycixNIIc3m1w63A13ENSIMmPCdGV7dSCAQGyR4= 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.4 66/78] Input: psmouse - fix build error of multiple definition Date: Thu, 22 Aug 2019 10:19:10 -0700 Message-Id: <20190822171833.942626155@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190822171832.012773482@linuxfoundation.org> References: <20190822171832.012773482@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 @@ -153,7 +153,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; }