Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3851010pxb; Tue, 17 Nov 2020 05:23:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJw6lj6Nd2lbDcQUhvyn2PaGBrxnK5FNiGzIZZ8RwHTS95cVczubwZwiy2G2rN8EijoWGN+7 X-Received: by 2002:aa7:d711:: with SMTP id t17mr20845223edq.83.1605619382257; Tue, 17 Nov 2020 05:23:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605619382; cv=none; d=google.com; s=arc-20160816; b=ATtDn5UP/RWv3mTIcwojwy8z4P7SGOB3zIgFgxDCmuxUIGpOSGD8JO5H8jAhy9GZYT DbZexjKktr1f12Lg9lgUeTSmJM6PvLPyk/6zRgqDf5UExRELkS9FiM53SwMqs5QRiBH5 DUChmaPjc/HisLq6+yFoebIdJPpLmF95DhsLxc+Bsj5FZ6tPwz3Na2LTiCDNQg+5r09K 5y8UGbr5/TrgntuVhSoUzKrZa91J+cT+hVwT4bS8wMzQkcEI7aUiiQh65P7rmJK5wZhV 5F0urm5iYxB+EQKjGJrx7TQIWrbo4RcCODM+5PPLw8QNt86gvdrN9qWLdNdL7pKhgJdB ea6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=6e435GgnJlOKELY4nk3WiQ72//vtympukp5V/IX54cE=; b=TGgwXMibWlR3dZgWMFSJ5p0zxWvU2pC+YYTLrB9clmbbQxeTpETpOJoGRGIbX+DpCI RssGDnlTmXHBGRp1aZQDNf3TY98+ytaT+XPYllRb6coNRsGRIpEah7uvBarxM2bOggNR 6F41VoQ8XZOMwzkMdBgjDMzOqnvACysTUyUrSJzbzpkdS0n/uU7ZTBT44Qo8U1Q5i50N DCbSkqTEJ1/OuSVGNP4yux1hux+RwFDSsAQmJhzZe3mYMmbAosNVUFnx0lXPykuFCOxP 9+XKbanwX/HI+nOjoxSWaQA9i4vffSxCnl/yK0YNV0eaucI44Y8MDZq2qjawrU+1Pq6Z lnNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WB8GryTw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a20si4598553ejd.75.2020.11.17.05.22.37; Tue, 17 Nov 2020 05:23:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WB8GryTw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730678AbgKQNS1 (ORCPT + 99 others); Tue, 17 Nov 2020 08:18:27 -0500 Received: from mail.kernel.org ([198.145.29.99]:50744 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730665AbgKQNSU (ORCPT ); Tue, 17 Nov 2020 08:18:20 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 70CBF206D5; Tue, 17 Nov 2020 13:18:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605619100; bh=xeYpaxuO47D45EWr6Jn+S2bY+bmGk0f0UFnMwkgkJlE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WB8GryTwil2VdGSsQEtx5Ti2N8nHSE4GY0+gICzK1qHwb97QDtgZAGOxZlkRiNfZa rruIKSp1eflYz6DJp2NrcaXvfF8F6S1K5SYmwVRV9VSkBZf60h/XiOT/SiNTpj/VzJ UnEkRx/Npw6L2nrXHM71VXub640lwZHfTeByzdfc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Masashi Honma , Kalle Valo Subject: [PATCH 4.19 027/101] ath9k_htc: Use appropriate rs_datalen type Date: Tue, 17 Nov 2020 14:04:54 +0100 Message-Id: <20201117122114.416518225@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201117122113.128215851@linuxfoundation.org> References: <20201117122113.128215851@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Masashi Honma commit 5024f21c159f8c1668f581fff37140741c0b1ba9 upstream. kernel test robot says: drivers/net/wireless/ath/ath9k/htc_drv_txrx.c:987:20: sparse: warning: incorrect type in assignment (different base types) drivers/net/wireless/ath/ath9k/htc_drv_txrx.c:987:20: sparse: expected restricted __be16 [usertype] rs_datalen drivers/net/wireless/ath/ath9k/htc_drv_txrx.c:987:20: sparse: got unsigned short [usertype] drivers/net/wireless/ath/ath9k/htc_drv_txrx.c:988:13: sparse: warning: restricted __be16 degrades to integer drivers/net/wireless/ath/ath9k/htc_drv_txrx.c:1001:13: sparse: warning: restricted __be16 degrades to integer Indeed rs_datalen has host byte order, so modify it's own type. Reported-by: kernel test robot Fixes: cd486e627e67 ("ath9k_htc: Discard undersized packets") Signed-off-by: Masashi Honma Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/20200808233258.4596-1-masashi.honma@gmail.com Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/ath/ath9k/htc_drv_txrx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c +++ b/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c @@ -973,7 +973,7 @@ static bool ath9k_rx_prepare(struct ath9 struct ath_htc_rx_status *rxstatus; struct ath_rx_status rx_stats; bool decrypt_error = false; - __be16 rs_datalen; + u16 rs_datalen; bool is_phyerr; if (skb->len < HTC_RX_FRAME_HEADER_SIZE) {