Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp822100imu; Fri, 11 Jan 2019 09:37:29 -0800 (PST) X-Google-Smtp-Source: ALg8bN7mnzM0gyzShOlFcLT1qdHFJEZ0nCq9/BjjcnJqjKlhXfFZXbOdqVv/94+MKl/2NYzRauTB X-Received: by 2002:a63:f844:: with SMTP id v4mr14093325pgj.82.1547228249761; Fri, 11 Jan 2019 09:37:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547228249; cv=none; d=google.com; s=arc-20160816; b=bIKNynrsWBQr89EPwXzRa/06N0X+rlKJgnJlta2pahbMU8Gj9/0YLdFBNeZ5UcB07A FHTrwKq4T5VIo9sahzQyLqjJAEp83PEpNONFiH9VOF2dyqu9i7kt67dAMTNS51pXW4e5 BoHyhTfFijq1Sy+MFYCm27Gea/8vj1qw4btcAPgnOb/fbwZgA50oEdfhQpAQfOsiND9u UasQCI1jgjiTbRxqHVOWit/+vo/wdsJBPzPkqx38IYgSyJip4V53r/gxq/lpDoPKrWQR p3P/ikjxLqJv0WwSG7Pk4eDcu20GUGRxSQNVuGfjIDpKbKMZftNZLpIMRjxJoij1bSX+ nwww== 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=G9WPcYTV7nkJrKYGsKhbl78sFo+4c3bzmzI2QhD9S7o=; b=rx9rQCu2HL6MbH1e3HVZTLIZPrHMhxmn5MMlCzIWXBu+qyOOZ+dMQGkVkftfCnSlLX +I7CWDGXWH294fSAYSlHJ1FFUoLx6MFADxgDrw63Xiva4OhSIvuyYeqAlOWXhLzP/AZV TusW/E4A0Brw4CLlpCvhQWSzr6XHtyR00Xt0lgH6UXvJhgsddHnK5TyXPidxrk4Z0ro/ yoZhHRf+s7FR1Hx8pAl/uCIBPt9Jej5GCw0mGXPVFovYT9k1+Bn/xibWK4ABEUMDjpy5 J8vRwwJccYmVL2bAAYdiphhs2ZR6HYWzjbFEZN0R9boYvpU80+jr8Btj/hZDTPd2R9MN NQRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iRTZ9o5w; 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 i5si15537279pgn.243.2019.01.11.09.37.14; Fri, 11 Jan 2019 09:37:29 -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=iRTZ9o5w; 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 S1731639AbfAKOSi (ORCPT + 99 others); Fri, 11 Jan 2019 09:18:38 -0500 Received: from mail.kernel.org ([198.145.29.99]:35056 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729027AbfAKOSf (ORCPT ); Fri, 11 Jan 2019 09:18:35 -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 4E45C21783; Fri, 11 Jan 2019 14:18:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547216314; bh=xk6sFxtVy1X01Qsq9hSE8m0dNfjWI3QMkYpgtRqB+Qs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iRTZ9o5wzTfn3Hqv0hM+QmrugtTra74weX5t9Ab482IGa1Tvf+w9d9s59Dd01Elom p0V+K+QYZWRk2Tbqv88oM4XeVdUsg0uS/WKvQhplo6mEKlZ7YTv1c+tRIpjgwiwtS9 rGt4h52JDYnQ4ke7X0jfHsRpjmG+ZNmynwZ6dQjE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Lukas Wunner , Mark Brown , Frank Pavlic , Martin Sperl , =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= , Sudip Mukherjee Subject: [PATCH 4.4 55/88] spi: bcm2835: Unbreak the build of esoteric configs Date: Fri, 11 Jan 2019 15:08:24 +0100 Message-Id: <20190111131054.347142784@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190111131045.137499039@linuxfoundation.org> References: <20190111131045.137499039@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.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Lukas Wunner commit 29bdedfd9cf40e59456110ca417a8cb672ac9b92 upstream. Commit e82b0b382845 ("spi: bcm2835: Fix race on DMA termination") broke the build with COMPILE_TEST=y on arches whose cmpxchg() requires 32-bit operands (xtensa, older arm ISAs). Fix by changing the dma_pending flag's type from bool to unsigned int. Fixes: e82b0b382845 ("spi: bcm2835: Fix race on DMA termination") Signed-off-by: Lukas Wunner Signed-off-by: Mark Brown Cc: Frank Pavlic Cc: Martin Sperl Cc: Noralf Trønnes Cc: Sudip Mukherjee Signed-off-by: Greg Kroah-Hartman --- drivers/spi/spi-bcm2835.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/spi/spi-bcm2835.c +++ b/drivers/spi/spi-bcm2835.c @@ -88,7 +88,7 @@ struct bcm2835_spi { u8 *rx_buf; int tx_len; int rx_len; - bool dma_pending; + unsigned int dma_pending; }; static inline u32 bcm2835_rd(struct bcm2835_spi *bs, unsigned reg)