Received: by 10.213.65.68 with SMTP id h4csp1723000imn; Mon, 19 Mar 2018 11:27:59 -0700 (PDT) X-Google-Smtp-Source: AG47ELtu+i9ssB6RbOxuvTVooZWGczneIm7l2BEhAxUiIzGsFxSfodZC4w25GsULneBu3o2BCa20 X-Received: by 2002:a17:902:6001:: with SMTP id r1-v6mr13457381plj.330.1521484079893; Mon, 19 Mar 2018 11:27:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521484079; cv=none; d=google.com; s=arc-20160816; b=taMKPaSryrtqwe2NHk7pH8rLme77bPBcL1m05kNITWYptb6+sIqef41tL1biy6/Jvi MyrR8LacHJyJnXIpQnjema9arGcxzU+JiUiSUXj+L6uSEleqm3rAdq3DF/72x/d3cXD6 zFR3woCuuewz3Gp37l0TtPskVS2/IXxa6foOcPEoN18sNJah/nU5kIz8fN+HX1jTj0ms byt14nfeMXpGorhNgIycyVNR5j3Ejvfbofwy98Dike4zbE6kryo3KbJVMD1PFuNbx7ZB gjd/rBaaLH4JeFRWJhgoUhxSQ/LUrtUQ5aXApFl4AVBXxMwznNwwBijRaIM09TeHGqhh bSTw== 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=sRgtz8BxhObzQxQksFUzqwlO/vJFumKFt1fkR0fs0us=; b=N7VgzeFE07VHfTbhqMHxFYq3uIzY7kQrwFJYQX0dJgIr8jNviS6RKCAIAqFKoQ+FoD 7Pk29UII4onzKIwvclTnp0kheK5dgIB4zlb4LCQ+u/oQmkH94S6zyCn4ucxtqvXKOiRF 0BEJ0zm2p+PTKyCfqlFvEG7u58itjcErcG3RgC//t47SIcJ537EhTuUbw0rguBYuiEJY N9XShyOWyywAQ20DJe8V773xYWeLNcICKA+WmiX+ZmLO2qvLppG1Gm62qvHHY6IAcpyQ pGJ48rUFL/YLTUnajqrSOQkxFzZPmi1Qifdzqk0m9uA+ZcacLCZwQz4KmhXW9s4k6/c9 4k9A== 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 g8-v6si351289plt.235.2018.03.19.11.27.45; Mon, 19 Mar 2018 11:27:59 -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; 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 S1031596AbeCSSZK (ORCPT + 99 others); Mon, 19 Mar 2018 14:25:10 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:50214 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031358AbeCSSZD (ORCPT ); Mon, 19 Mar 2018 14:25:03 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 945E0FDA; Mon, 19 Mar 2018 18:25:02 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Michal Kazior , Mohammed Shafi Shajakhan , Kalle Valo , Sasha Levin Subject: [PATCH 4.9 159/241] ath10k: fix compile time sanity check for CE4 buffer size Date: Mon, 19 Mar 2018 19:07:04 +0100 Message-Id: <20180319180757.744894218@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180319180751.172155436@linuxfoundation.org> References: <20180319180751.172155436@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.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Mohammed Shafi Shajakhan [ Upstream commit 62ca0690cd495bb7c1414cdf0cf790c2922a1d79 ] In 'ath10k_ce_alloc_pipe' the compile time sanity check to ensure that there is sufficient buffers in CE4 for HTT Tx MSDU descriptors, but this did not take into account of the case with 'peer flow control' enabled, fix this. Cc: Michal Kazior Signed-off-by: Mohammed Shafi Shajakhan Signed-off-by: Kalle Valo Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/ath/ath10k/ce.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/wireless/ath/ath10k/ce.c +++ b/drivers/net/wireless/ath/ath10k/ce.c @@ -1059,7 +1059,7 @@ int ath10k_ce_alloc_pipe(struct ath10k * */ BUILD_BUG_ON(2 * TARGET_NUM_MSDU_DESC > (CE_HTT_H2T_MSG_SRC_NENTRIES - 1)); - BUILD_BUG_ON(2 * TARGET_10X_NUM_MSDU_DESC > + BUILD_BUG_ON(2 * TARGET_10_4_NUM_MSDU_DESC_PFC > (CE_HTT_H2T_MSG_SRC_NENTRIES - 1)); BUILD_BUG_ON(2 * TARGET_TLV_NUM_MSDU_DESC > (CE_HTT_H2T_MSG_SRC_NENTRIES - 1));