Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2517102imu; Thu, 29 Nov 2018 06:17:56 -0800 (PST) X-Google-Smtp-Source: AFSGD/VNIi735FjQ2upt2+FJX2LKSArtdJZSK4KhR7ng005+dT7jyr67esTZ3+UDT+IikLjTGvp3 X-Received: by 2002:a63:dd55:: with SMTP id g21mr1386027pgj.86.1543501076544; Thu, 29 Nov 2018 06:17:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543501076; cv=none; d=google.com; s=arc-20160816; b=Mkob1Kq20gm0ku92KFPokZ+quY+PsyVVb7mzVQLikE/eOGjtUinsuRMzj5UXfSEkEa UIc7+RBWkwIIWmuGdun7yxxccgQqH5y6YAQRN5D0uO8Q0Md3uI54FEuHrMZd3s7IOJ0g OxeYDom8qTbGSIHmBI74Ar5vpaUU90g4Jg78LYE4kcV8W42j+7IgETJ1/762J0gNg/Yv FMD5p0iH05Jog+vPDCoUajPZNbA7o7Z4TncIo9elMwq453UfbqK5UU/75vDKr8l/xP9M HwuixcmpO4jXRB9IMdPbvejFFP5AHeykCBYknsIzlv++nlp+LUBDECSLnaajyH3jNnXP /RjQ== 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=FObaIyDFnCfYkRXYIQKHprWPlfkHvxz82ThuWmBWma4=; b=j3DHrUNIntQG3Or3DQkTKAwMcKHupEfCnC6hZTJiuY0bIrf+9Y+joFdU6SB8OVHr4I pVCF7AfQzp8kpGHhHM5K0rwVQfxOEb871RibiIT/wlK53OoLQZZa5kEwefeQKbznT02w LixVIbPR1M1zN+ZlilV91c8X6c2qaVvSWC1P/jS9HNamY+2OX5+uKuJaihIZUG5XomCK Ffj7oMnh5Zay5RT7hB2bQOFKfUz7GaumyhsrWQmlfW8Un/ZIisULZCTUXrwfCqjKhw8/ Fv4eL1qwyf0+x+R1G79qIcTfJi5sH/GlfWecPgJBvLVa+CWMMU5YdkI4ZSNGQaDKa2UU kkOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=smMzbfBX; 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 76si2360097pfw.66.2018.11.29.06.17.41; Thu, 29 Nov 2018 06:17:56 -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=smMzbfBX; 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 S1729968AbeK3BVt (ORCPT + 99 others); Thu, 29 Nov 2018 20:21:49 -0500 Received: from mail.kernel.org ([198.145.29.99]:43286 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728865AbeK3BVt (ORCPT ); Thu, 29 Nov 2018 20:21:49 -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 8AFD8205C9; Thu, 29 Nov 2018 14:16:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543500979; bh=7onxcm5tR06KG/6w6qQXjSIKBgjtTTEzHsQozDQ5fkA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=smMzbfBXa9fUkr+L/y3QrA8x+8cXJFjXSJkv4sBMyS9vzO0x2X3MjWPpGAF61uLSx kEK9Fmoctdwrtjh+qmAoswJnKmtVSQNxNvqQ5nl+k4BRjaZegu8lIPJrmJoOBScpCG fFgfixcPy8N+5qQb/sV7RgEMlWE/1DJLZH/9ggUE= 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 3.18 41/83] Input: xpad - remove unused function Date: Thu, 29 Nov 2018 15:11:59 +0100 Message-Id: <20181129140140.118587085@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181129140138.002176596@linuxfoundation.org> References: <20181129140138.002176596@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 3.18-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 02a9fe950f3f..5dc818aef2d1 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