Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7150344ybi; Mon, 8 Jul 2019 15:39:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqyu2AQGr426fGiRqMW2D+9vxWq+eTyblv0Cg1PaE0jMtTC6ZeBkG3Uy4hf4yV93FhGvZ3XM X-Received: by 2002:a63:5a4d:: with SMTP id k13mr25725440pgm.174.1562625569141; Mon, 08 Jul 2019 15:39:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562625569; cv=none; d=google.com; s=arc-20160816; b=nGAfJiHa8LinuHHpgnUm8/bOyA5v3dKSVgDBZW7OjzliRhUEpIUdGALudG0hWSG2gx mlb45jXedI354l4ze84wzEatEgCsDCJ2+7cWxHzlaloPBfnvhekbfDDIjPWN5JeVYo/G QwEGqFZUysQC7V2iRzjW2RzHFOqr0i8MXUCZNE3jUJUE2Nfx0API0EWkGPffd1DmFhQ4 CToO+GKLU1EDL6kYJ2m4zVjCuPWcSMl1gzRf7caVn6gsnTZFK6T+nvWkgrxfZIGyoK9p rxxqGpchDl69gnCh47cu9TzaBaBUuBWDuUw3OWpdvoMwWS/mob4HuSiogyggFyp9UK/T WMeg== 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=DkegI4OvrPiERGvv7dVZ1oCJi6cd7DrejW11jVxVyUk=; b=ClID0jA7G6bo6dGWVGfsyM6eAvv/lEtUQcR1EqxCZsDNRtDMEDSRytsFu52VKQsUq2 mjuaYK8p5npI1KAUjmRVUcEeYEcKHfN3odr8x2+ZBtKSwUuUZv4BYK+FZMeTX+Mgbus9 XzegM/8P/BC/PD4MJhx9Yc+9QJ+3pjVlYtG/ZhiRbeMnmwzE52XBuPUYKFwi3igX4KU7 HY3Wotu0pXHqP4+4XEqMkWmjppCE9w36w8xGXyCuZATd2wmTEJZpLaeT7E5zusDKJSXO VCtLnXiY/uvUjoAm5yLs32/8iXxsGr+YRPXe/xWxkFssuYkMKq2tszPVPryl4gpLmGZY u2UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="AVeuvxX/"; 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 67si9360622pfv.74.2019.07.08.15.39.14; Mon, 08 Jul 2019 15:39:29 -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="AVeuvxX/"; 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 S2389801AbfGHPaF (ORCPT + 99 others); Mon, 8 Jul 2019 11:30:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:58682 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389646AbfGHP3s (ORCPT ); Mon, 8 Jul 2019 11:29:48 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.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 A3D8821537; Mon, 8 Jul 2019 15:29:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562599787; bh=FhcM5VeW8ZZjsBlZDLj55rh8i7coumNg9yBxsPa8s8M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AVeuvxX/E+6tAPINuE22Kj3wsSy4ZK5YZE11pDKwYKj5JRT9xRLY1s3lV37FFTOBR DgFnnTu6u5lpbBOUfdq4RVxZYejdbqie/D5ByOsWbjy1tnnXoTr5KQK66eASvID43g JchCBFMPXX2VCs79u4jj1NY/Q/GLkyX8EoVbeHXE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Guoqing Jiang , Arnd Bergmann , Sasha Levin Subject: [PATCH 4.19 78/90] sc16is7xx: move label err_spi to correct section Date: Mon, 8 Jul 2019 17:13:45 +0200 Message-Id: <20190708150526.296761684@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190708150521.829733162@linuxfoundation.org> References: <20190708150521.829733162@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 [ Upstream commit e00164a0f000de893944981f41a568c981aca658 ] err_spi is used when SERIAL_SC16IS7XX_SPI is enabled, so make the label only available under SERIAL_SC16IS7XX_SPI option. Otherwise, the below warning appears. drivers/tty/serial/sc16is7xx.c:1523:1: warning: label ‘err_spi’ defined but not used [-Wunused-label] err_spi: ^~~~~~~ Signed-off-by: Guoqing Jiang Fixes: ac0cdb3d9901 ("sc16is7xx: missing unregister/delete driver on error in sc16is7xx_init()") Signed-off-by: Arnd Bergmann Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/tty/serial/sc16is7xx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/tty/serial/sc16is7xx.c b/drivers/tty/serial/sc16is7xx.c index 55b178c1bd65..372cc7ff228f 100644 --- a/drivers/tty/serial/sc16is7xx.c +++ b/drivers/tty/serial/sc16is7xx.c @@ -1494,10 +1494,12 @@ static int __init sc16is7xx_init(void) #endif return ret; +#ifdef CONFIG_SERIAL_SC16IS7XX_SPI err_spi: #ifdef CONFIG_SERIAL_SC16IS7XX_I2C i2c_del_driver(&sc16is7xx_i2c_uart_driver); #endif +#endif err_i2c: uart_unregister_driver(&sc16is7xx_uart); return ret; -- 2.20.1