Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2472598pxj; Mon, 10 May 2021 03:57:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNF+ZG/xMp9vNu43UyWfcGoms6zd9wDxoA58MnO/Yk1YiLIZsiw1lAveSyFDd77Id47nK6 X-Received: by 2002:a02:6d6c:: with SMTP id e44mr20653762jaf.81.1620644259449; Mon, 10 May 2021 03:57:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620644259; cv=none; d=google.com; s=arc-20160816; b=WJhUQ7ukaRkFSL3imW6v1qnZ0qIhOj+8ItvCU6hstWRV429Qg7KgDHeK21+wKNcEJk SxM1HmpIkM/TmnK3D2eSaUODa83CpnexdkfnEyyxFvFx/sXe3yVMSWKIRYjF0okD+obm dH/YUhatGr06hVKO2vQZu9alLYCRxHLuQll1Dj+xMqpqYHtlRBIgA2uaai7VMX8qk/Zw VZCGAWpzhZc73ZPaWlKI7Z+Iw4xMEBtmci1O9n9Y/LM0vBQRPafNoruMyS850k6znY6Y kvJ/4ZnbUyutgcUGOgBVWHIx6FyD1KBdGLT/poR/+CvlR2NAwIX9nu8LCSOz+5iT7K3w bkMQ== 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=x5P+z3JVLS2qda1nfR+l1NeBYL99wWobhXEPS7uwZB4=; b=QZBnNSMRerNYVaK6LLqFu1cvFaHYw2gGGVvVw8DEbmeXs2NL38kXGyX/Yw96FOrSZ5 guUXORRPuaSTq1skztVE4g1BEx6SKc9j41lKHAKubmPzn4EWXh3pJonybMJXYNS2GFry nToEp4a7qTorZXeFjvys4xiPq4Ku+E1Upu++NCW39lUcM1ENAZUDDaSeNnlvIEMVVT13 hQoZnTeINrvnOwh8ntD5l9PSrRg4hwowncCbSe7IchXSV0PlIg2n5WJZXJVc7klyRhAm xr8OX+xXTwsVXU4bEjxj+UqowxMhiWPJnG6Bc5nr2qMFdwbH0/XErof/L9LsRw1XGUgv B8dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mMi7vUHk; 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 w3si17844768iov.75.2021.05.10.03.57.27; Mon, 10 May 2021 03:57:39 -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=mMi7vUHk; 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 S234368AbhEJK4R (ORCPT + 99 others); Mon, 10 May 2021 06:56:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:59674 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233008AbhEJKo5 (ORCPT ); Mon, 10 May 2021 06:44:57 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3D8996191F; Mon, 10 May 2021 10:34:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620642872; bh=hmda4udHlhfXRGvjMOV2Sxko/NrL1F2an3CsQ1mgtCQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mMi7vUHkpKiA+psz4m6XRv4ENlpjRjToKYUGFmbBRVDmG2nwCgHtZnJZlWsMw1aV1 XCOkH5weGMQvLTV1+WIIq0FxM/3LhgOAf81PLT3azoDHHZ1xhDIs5W0GssqT/qF76M UCc18ySJ5SQtYba4cZtfDHgllBlvpAmWq1zPFpVs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, karthik alapati , Sasha Levin Subject: [PATCH 5.10 052/299] staging: wimax/i2400m: fix byte-order issue Date: Mon, 10 May 2021 12:17:29 +0200 Message-Id: <20210510102006.601971468@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210510102004.821838356@linuxfoundation.org> References: <20210510102004.821838356@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 5c79f052cad2..34f81f16b5a0 100644 --- a/drivers/net/wimax/i2400m/op-rfkill.c +++ b/drivers/net/wimax/i2400m/op-rfkill.c @@ -86,7 +86,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