Received: by 2002:a05:6520:4211:b029:f4:110d:56bc with SMTP id o17csp2103600lkv; Thu, 20 May 2021 03:29:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWa5ABZ/1oEO6153SHWmkJL2uxSsy6V1EWK0rOZYecsiHWMM0Cnn1e1c6bwSrcTgcS5aSj X-Received: by 2002:a92:6902:: with SMTP id e2mr4834588ilc.172.1621506584533; Thu, 20 May 2021 03:29:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621506584; cv=none; d=google.com; s=arc-20160816; b=M8nwqF1uODp53oyv+j6beNzZmngMYdog2bnohw6EYXsfI+x7TB80VpE6qvwygadscP k8jOHzjTyyzI/B5hX8umN5j8JFHJya/9GSqXCHrUFrocc9xDaODNW0tUqhbFI8VwHDrq 9WXTwc9vA3mUw9ChVZZe1xCXlrC2QKuVyLd7Pa8u+tXO/xTefuC2KqeyQ5lC0a6/Gvsj o+JEyeWinaOQFhZQhHyjjHz45aXGJ8kQ5unG1vp9R3rHCyHhCAZ78F9wCFuh73vr04vB Evy7d4iJMEDdzHRbUd12vLSPfrEOrFwxMB8SRfpY8PqyIJnB68V8CwybLYXwMtkPz9Ea RinQ== 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=oeEtYvZ2hAPQw35naIfht7E9TW/gQqySs8Uen+VEf84=; b=rVvoiusjcbGn6Br/w6TzukCZ9x9RfPmsS9AL+erq68742NzuMoKqcoa1J9Wrl/jeUH rLbPPlDlQnIABvyhl8OGqErVBOhsNFRcq82UiUtP5qGDoQxRbbDJFcTFHhcKRnUS4g2/ s8qLELcz8DmDaVc1pwxBE6K9aoZuo1N50QKJ7sCkwYi+k8AUdGLlt+A14ZEgK8Ywz6Ul vRsRJ/V4n1ZYjCH8OLWAkFmfOLIQC/gUamuKLej3h3GXYvMBiluy7v5pvybV+zrKzL08 6rT4RDu1ZrQ+e3qj+CirTA723uwEmTPenaohPr3wn++6Tyjht/vDPBEdp8wB5ht5nSc7 YIdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="I2j8Q8l/"; 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=pass (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 s18si2226373ilh.102.2021.05.20.03.29.06; Thu, 20 May 2021 03:29:44 -0700 (PDT) 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=@linuxfoundation.org header.s=korg header.b="I2j8Q8l/"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236904AbhETK3O (ORCPT + 99 others); Thu, 20 May 2021 06:29:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:48888 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235442AbhETKPn (ORCPT ); Thu, 20 May 2021 06:15:43 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7085961991; Thu, 20 May 2021 09:45:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621503956; bh=i6nxWaGnI13Ya4iWXKJbLda0atge26fqRNEacbktChY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=I2j8Q8l/0U2gK2DvrdX5KbC787goXX6U4IywTV2NZsIP/Snhnx6NRN3sLWljrSlZp hpCl5Ip5pZnPlwYPX/9oHwWZLlQ5GFOgblKvdYIrkzst7k1hJlU+og70gT/6BkdEus XpzbGOe/xDwqHSqV/exttawysPSSspcaRb+MjxFE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, karthik alapati , Sasha Levin Subject: [PATCH 4.14 030/323] staging: wimax/i2400m: fix byte-order issue Date: Thu, 20 May 2021 11:18:42 +0200 Message-Id: <20210520092121.151753238@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092120.115153432@linuxfoundation.org> References: <20210520092120.115153432@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: karthik alapati [ Upstream commit 0c37baae130df39b19979bba88bde2ee70a33355 ] fix sparse byte-order warnings by converting host byte-order type to __le16 byte-order types before assigning to hdr.length Signed-off-by: karthik alapati Link: https://lore.kernel.org/r/0ae5c5c4c646506d8be871e7be5705542671a1d5.1613921277.git.mail@karthek.com Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/net/wimax/i2400m/op-rfkill.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wimax/i2400m/op-rfkill.c b/drivers/net/wimax/i2400m/op-rfkill.c index dc6fe93ce71f..e8473047b2d1 100644 --- a/drivers/net/wimax/i2400m/op-rfkill.c +++ b/drivers/net/wimax/i2400m/op-rfkill.c @@ -101,7 +101,7 @@ int i2400m_op_rfkill_sw_toggle(struct wimax_dev *wimax_dev, if (cmd == NULL) goto error_alloc; cmd->hdr.type = cpu_to_le16(I2400M_MT_CMD_RF_CONTROL); - cmd->hdr.length = sizeof(cmd->sw_rf); + cmd->hdr.length = cpu_to_le16(sizeof(cmd->sw_rf)); cmd->hdr.version = cpu_to_le16(I2400M_L3L4_VERSION); cmd->sw_rf.hdr.type = cpu_to_le16(I2400M_TLV_RF_OPERATION); cmd->sw_rf.hdr.length = cpu_to_le16(sizeof(cmd->sw_rf.status)); -- 2.30.2