Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4082299imu; Tue, 18 Dec 2018 08:46:59 -0800 (PST) X-Google-Smtp-Source: AFSGD/WCu5ncYOh1g2OvzjKYpLYKhizGg7+aZ82Gqn5900HB+G9T++/9q2cpbT8IcqBf8nuuI1gb X-Received: by 2002:a63:e247:: with SMTP id y7mr12536103pgj.84.1545151619824; Tue, 18 Dec 2018 08:46:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545151619; cv=none; d=google.com; s=arc-20160816; b=I8Rixeld3LBbZAuITcuJcpLafpGahAYmVU6+7ANTOuDIgi2PxUHn2Y5DGcb6yBSJe6 +7/UeQqmQvPhKO9SP4exBBQuJzMcqH7kPdJaZ8dqYEAeOf45NgQUtwSQCG+BHcDMWfd+ Xk9ZdqVQHvAnVdqg9HLHND7pDXy2rf9AhtxzEvTWcy/8oag98a7WnCR4jqWcHZoKqvQg qtVpnQuLzkxlUE+vL+S3FtrDiVVss96GoFpe/po5IyIAwu4ispReTHqYkdHKT2U1mdfn GfI/Pkg70bUh1p1mMefRcSYDEswdgWwTTgbBWFvZab+OBUueOWPWNylxe3q/0AuUXA36 LhuA== 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=+t/NPkIdjn5yjfc+Fl97/1LYuifKo/Smtar82Tf6a+8=; b=PiTt+Y0vakR/5Lx2NDlzNCgNHjFrrQtDP5pslwvV1xZa2Y/nBD8FiglXLQrFMX7Tzg ChmbXzT6rlUgPwpmVgzERQhWKNez270fpYW9VyYhBN+YgG4vFJGUXSmoMjzxhMjsa8+G mHO9mjVX6OMKtQdwn5fi/BwhCuM4XtdNcfpMhCavD/RONcq3mx+FS0UrtMxGpt7v8pSy HdqNsAGhR8yqn1Ai75ZX0uk75ELV+GPzJSy+/n/ZjASwsdz3gMQSggYTMu11nHocSnZi dO3Kc+Tf6E+I06xmnPHXJn6ae8dHh/Yq0l0oSXtX7FCMjllRoRR6hJjbBBbh70Xg++L3 fBNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=UF3cPhkT; 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 97si13350504ple.389.2018.12.18.08.46.32; Tue, 18 Dec 2018 08:46:59 -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=UF3cPhkT; 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 S1727091AbeLRQkX (ORCPT + 99 others); Tue, 18 Dec 2018 11:40:23 -0500 Received: from mail.kernel.org ([198.145.29.99]:37268 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727052AbeLRQkS (ORCPT ); Tue, 18 Dec 2018 11:40:18 -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 8E053218A4; Tue, 18 Dec 2018 16:40:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1545151218; bh=JAz3KF9eotQYq14cZdWM9jc3/3OIqvKcqhwxtAL3HHo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UF3cPhkTULHRscYxi9Js4khZ33AQrqu6h+Y918bdzh/4npAs6txBQdHIM1bSDNiLq CkU0nZfor9Tmz7ksOg8x+w8w/+oJassBGKJkYGjrALOJ0XIy23vi70jf4qoD03VeWk uOO++8dNspEfOjCuCKbGNUM7I5Hw8FXFl0c7YAmQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Brendan Higgins , Sasha Levin Subject: [PATCH 4.19 05/44] i2c: aspeed: fix build warning Date: Tue, 18 Dec 2018 17:39:17 +0100 Message-Id: <20181218163927.733959335@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20181218163927.119623235@linuxfoundation.org> References: <20181218163927.119623235@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore 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.19-stable review patch. If anyone has any objections, please let me know. ------------------ Upstream commit 3e9efc3299dd ("i2c: aspeed: Handle master/slave combined irq events properly") reworked the interrupt handling and fixed a warning in the process: drivers/i2c/busses/i2c-aspeed.c: In function 'aspeed_i2c_bus_irq': drivers/i2c/busses/i2c-aspeed.c:567:1: error: label 'out' defined but not used [-Werror=unused-label] The warning is still present in v4.19.8 and can be fixed either by applying that original patch, or by adding a simple #ifdef. Here, I choose the second simpler option as the original patch seems too invasive for a stable backport. Signed-off-by: Arnd Bergmann Reviewed-by: Brendan Higgins Signed-off-by: Sasha Levin --- drivers/i2c/busses/i2c-aspeed.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-aspeed.c b/drivers/i2c/busses/i2c-aspeed.c index a4f956c6d567..a19fbff16861 100644 --- a/drivers/i2c/busses/i2c-aspeed.c +++ b/drivers/i2c/busses/i2c-aspeed.c @@ -555,7 +555,7 @@ static irqreturn_t aspeed_i2c_bus_irq(int irq, void *dev_id) spin_lock(&bus->lock); #if IS_ENABLED(CONFIG_I2C_SLAVE) - if (aspeed_i2c_slave_irq(bus)) { + if (IS_ENABLED(CONFIG_I2C_SLAVE) && aspeed_i2c_slave_irq(bus)) { dev_dbg(bus->dev, "irq handled by slave.\n"); ret = true; goto out; @@ -564,7 +564,9 @@ static irqreturn_t aspeed_i2c_bus_irq(int irq, void *dev_id) ret = aspeed_i2c_master_irq(bus); +#if IS_ENABLED(CONFIG_I2C_SLAVE) out: +#endif spin_unlock(&bus->lock); return ret ? IRQ_HANDLED : IRQ_NONE; } -- 2.19.1