Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2566832imu; Thu, 29 Nov 2018 07:01:21 -0800 (PST) X-Google-Smtp-Source: AFSGD/VKZmcCEZbo13SY9Ra6OJHhe6EDU78RvoWvoIBMaDa9kZ/hYR7OknhvneozLt/8TsBpR2S3 X-Received: by 2002:a62:5486:: with SMTP id i128mr1644619pfb.215.1543503681685; Thu, 29 Nov 2018 07:01:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543503681; cv=none; d=google.com; s=arc-20160816; b=UjND8DR1R5hRwPLdaB1UnY62nlROvPL5CL7JLtKi83QEdtbiXmgkj2wV/+1oeGQ3Fn s49af9DLojgZwOe3HdymcBLKBVLna8r+d98z95dmottGSsHPf0rzGWNoXEssMZciXL5q Cbx6ByegFUZmciyMDuU2g35s+bfA+OIIQBMFPsg+Q3WNRW8q/tzgQmOEnEFDvoCaUSXZ tHXVDJ8TqERYBLjwitEHZe+pt+3iSr941c3rHozf2wNJSgyVaPQop+aFSn5ScNl8FHnt 7gw9U/Z5sYoovkZ9GJ67yajY8R3I8duE69KIDUFGtLm9PJrkchJgUg3S2gNAig+rmElp QzXA== 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=YMNeF8r6gBFSRnmbDBG9sfYdmDU6QnXRds9lyahBrqQ=; b=d0T2jMOxebzioq70BofZ6gx5pQ/zHlDvkBdEa5x0pxucocLoIs0NC3hs/8Y0IpPMAb EGFaRCh+d9DphqKlEMegMKqaYGgSFJ2ydnXw/MN2mBeLrey4SY7W5L7L6HoabEQBqLHc Iz0CcSQQc+U9qXA+hPNrBhosCns4s5iz8m7P+wi3iVOuFGdz6AoWaKhZ5W8InBgxYRNp PIDZr8H5kTCsfXzc/Q2FkAYfKc1T5Suxc+YWVaQzOkYJQ63sGiCdIDWmlU46+k2UI0Pr YU024EVlr7RK3334cwHKWpwQC5kCOljTgd1j2vPsyRuK86tPqy6HOlMHkttJ+TRmbYqS VhSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kOfq9gNO; 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 h14si2193628pgd.189.2018.11.29.07.00.52; Thu, 29 Nov 2018 07:01:21 -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=@kernel.org header.s=default header.b=kOfq9gNO; 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 S1731157AbeK3BZK (ORCPT + 99 others); Thu, 29 Nov 2018 20:25:10 -0500 Received: from mail.kernel.org ([198.145.29.99]:48388 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731125AbeK3BZH (ORCPT ); Thu, 29 Nov 2018 20:25:07 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (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 7C98D205C9; Thu, 29 Nov 2018 14:19:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543501176; bh=2xhxOuqljGZhGbfB62xVA1yWEw/ufRkYiNz1XjsSoXc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kOfq9gNOVYgU3W51rDyfMUV+t1QYYpXbEWy0A0a82i+q80Jtt8RpCVo1v7I9ZGVO1 VPQC31JM+Iqq++Z4mjKzm93LFMtju01pOKYVTBRVKaNH7hBWMIxjgOsbMI4EBkhvvS 3MY2obUn6TAkxv+Mzkh5bzXX1FyDp5dGZoaFkzWQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Dmitry Torokhov , Sasha Levin Subject: [PATCH 4.4 38/86] Input: xpad - remove unused function Date: Thu, 29 Nov 2018 15:12:03 +0100 Message-Id: <20181129140113.311747833@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181129140109.832117862@linuxfoundation.org> References: <20181129140109.832117862@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review 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 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit a6ed4a18ba6a6f5a01e024b9d221d6439bf6ca4c ] There are two definitions of xpad_identify_controller(), one is used when CONFIG_JOYSTICK_XPAD_LEDS is set, but the other one is empty and never used, and we get a gcc warning about it: drivers/input/joystick/xpad.c:1210:13: warning: 'xpad_identify_controller' defined but not used [-Wunused-function] This removes the second definition. Signed-off-by: Arnd Bergmann Fixes: cae705baa40b ("Input: xpad - re-send LED command on present event") Signed-off-by: Dmitry Torokhov Signed-off-by: Sasha Levin --- drivers/input/joystick/xpad.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c index 2f481ce2c8b0..cd1de2851f1d 100644 --- a/drivers/input/joystick/xpad.c +++ b/drivers/input/joystick/xpad.c @@ -1209,7 +1209,6 @@ static void xpad_led_disconnect(struct usb_xpad *xpad) #else static int xpad_led_probe(struct usb_xpad *xpad) { return 0; } static void xpad_led_disconnect(struct usb_xpad *xpad) { } -static void xpad_identify_controller(struct usb_xpad *xpad) { } #endif static int xpad_start_input(struct usb_xpad *xpad) -- 2.17.1