Received: by 10.223.185.116 with SMTP id b49csp1129645wrg; Fri, 23 Feb 2018 12:27:14 -0800 (PST) X-Google-Smtp-Source: AH8x227jTA0qAZQyGJDK0uxX/TJ5Xbgasaqf55JvTP8nOzmepMmb3CcJXK9B82qinOwlHnMgdMFJ X-Received: by 10.99.9.195 with SMTP id 186mr2322763pgj.152.1519417634148; Fri, 23 Feb 2018 12:27:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519417634; cv=none; d=google.com; s=arc-20160816; b=YyH0bXhwdL0oWYxeevVQoZbzkDJcOOMpmTOateGfBb02VkqVP5mVyeTH0E0oHtTJ4B r+VcReBpvZ95RRQ5lao+Cz0cLVnEj8b5FOlNCbc9xSqb6JNWR3KoIuNns7W6hfRqYalt vZGyTHlkIyZOgbpzyUrGlnnU840yAHeUnM3Pcl2bFjiREaUCdC4mTeEaq7Vd8IfmDnHz 69KAzGkJZ+K9gG1IWDXsoW5P5cLh36G8Kt2zMwUqGpxDeMkIRjzzDuZ2a+qo5/fsqK+7 nfIxZLyjxllxrA1MvqE3Wgobhc05QgkkkZpuGgA8TedgF0O5bxFZzLLPS5jQxRen9f0G IfDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=vH3l9/jq+bGCArAJGIoiPj4OZUQRHkKKhIJqwYC6hSE=; b=ZhJbPDEqq6jXdKtacuUHQlIuCqMaxFeohQmnEruWcF/f+2cfl6+rz3QAksjkNW7Yp1 DYZ8WC8D0Ai7KuqlASqEQPgXoOpmPJhl8EvGEQJ1Pl7Af4htkNskQ+8mdO7+kLiAu9ul pdHFi78OC72GxOdl9CbpQ4gxnwPKg3grG/dTQIPIA2NaP/zJ0tOZpXS2bQaxvYQQ8QLB ZMkKWB8vLjfG1+/Y8m8RaX9vVeieWctHCbiccoR0C7wzWVosvTuYKX/OHaVv/O4W+7N2 9VBoHfkTWTIAjwlqyQ6kVqyMffv+2eh7yz74tmSM+gsVV6tUUGU8CeD578obYQfkh1SN HSsw== ARC-Authentication-Results: i=1; mx.google.com; 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 l67si2318047pfb.329.2018.02.23.12.26.59; Fri, 23 Feb 2018 12:27:14 -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; 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 S1755103AbeBWU0Y (ORCPT + 99 others); Fri, 23 Feb 2018 15:26:24 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:38672 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753303AbeBWShW (ORCPT ); Fri, 23 Feb 2018 13:37:22 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id C17BEBBF; Fri, 23 Feb 2018 18:37:21 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann Subject: [PATCH 4.4 101/193] tty: hvc_xen: hide xen_console_remove when unused Date: Fri, 23 Feb 2018 19:25:34 +0100 Message-Id: <20180223170341.829892060@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180223170325.997716448@linuxfoundation.org> References: <20180223170325.997716448@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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. ------------------ From: Arnd Bergmann commit e36ae3439936e13c33f5841c7c2c1a9875acbb6d upstream. xencons_disconnect_backend() is only called from xen_console_remove(), which is conditionally compiled, so we get a harmless warning when CONFIG_HVC_XEN_FRONTEND is unset: hvc/hvc_xen.c:350:12: error: 'xen_console_remove' defined but not used [-Werror=unused-function] This moves the function down into the same #ifdef section to silence the warning. Signed-off-by: Arnd Bergmann Signed-off-by: Greg Kroah-Hartman Signed-off-by: Greg Kroah-Hartman --- drivers/tty/hvc/hvc_xen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/tty/hvc/hvc_xen.c +++ b/drivers/tty/hvc/hvc_xen.c @@ -323,6 +323,7 @@ void xen_console_resume(void) } } +#ifdef CONFIG_HVC_XEN_FRONTEND static void xencons_disconnect_backend(struct xencons_info *info) { if (info->irq > 0) @@ -363,7 +364,6 @@ static int xen_console_remove(struct xen return 0; } -#ifdef CONFIG_HVC_XEN_FRONTEND static int xencons_remove(struct xenbus_device *dev) { return xen_console_remove(dev_get_drvdata(&dev->dev));