From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4F50BC433E0 for ; Sat, 20 Feb 2021 12:26:58 +0000 (UTC) Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D248064ED7 for ; Sat, 20 Feb 2021 12:26:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D248064ED7 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=karthek.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=driverdev-devel-bounces@linuxdriverproject.org Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id AF9E0870A7; Sat, 20 Feb 2021 12:26:57 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oIFUtLcHy86X; Sat, 20 Feb 2021 12:26:57 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 34916870BB; Sat, 20 Feb 2021 12:26:57 +0000 (UTC) Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id AC85B1BF2C6 for ; Sat, 20 Feb 2021 12:26:55 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id A949686B72 for ; Sat, 20 Feb 2021 12:26:55 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BInDXXH46WV9 for ; Sat, 20 Feb 2021 12:26:54 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 5F36786B68 for ; Sat, 20 Feb 2021 12:26:54 +0000 (UTC) Received: by mail-pj1-f42.google.com with SMTP id z9so5820595pjl.5 for ; Sat, 20 Feb 2021 04:26:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=H9Ru2ZbdAQdDUxPfVhs1CR+d0Ly3rgFfBwARSfwqmPA=; b=BwyoMiK1I5h6ZdkGGgA7G4bedoC7Q77F4KON3RnL61Rr9/J3Wa89viUobrSVYI0URS 861hHZufE3zVmDxlxHsvcQ3rY6hlLA0qOyMXmGTBVzUaz0Tcq6fNF8wkE6LzmUaHZBjW lfx0CV5c0X1vWAdhgNZ+9x2m16wsS/cVvxFehhKaaGfVbFfeEE6FOBAL6FWcBhoecsow dL3vInaG9xT8Csug4jiwhZ4BtPmBFLmDS7nrUuXuTy37/rlFM+uBZSvOtOf8wB+a0X3Q /W8Wo0Ajr2wX3LCG4r0TvnkubY8CCua1l/SmNk/hWW1wu8pZecFbl3QaehgPCt00uY90 NRJA== X-Gm-Message-State: AOAM5329hOc0C8iu8KMevJKf4M/5HiI9N/Jfx0azYqCDGWs7Cr6wo+Qx tJ10dvtA4qbQogNulYmciyY= X-Google-Smtp-Source: ABdhPJxGPL7qGyT4nK1k/eBERoAK5bAEIU4O4G67GioCeHqTih2Vi81fKawX7e/GFJxt7uobDSeONA== X-Received: by 2002:a17:902:b68f:b029:e3:b18:7a48 with SMTP id c15-20020a170902b68fb02900e30b187a48mr13549715pls.65.1613824014031; Sat, 20 Feb 2021 04:26:54 -0800 (PST) Received: from karthik-strix-linux.karthek.com ([192.140.155.84]) by smtp.gmail.com with ESMTPSA id x24sm11624615pjk.7.2021.02.20.04.26.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Feb 2021 04:26:53 -0800 (PST) Date: Sat, 20 Feb 2021 17:56:47 +0530 From: karthik alapati To: Greg Kroah-Hartman , shivang upadhyay Subject: [PATCH] staging: wimax/i2400m: fix byte-order issue Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-BeenThere: driverdev-devel@linuxdriverproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Driver Project Developer List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: driverdev-devel-bounces@linuxdriverproject.org Sender: "devel" fix sparse byte-order warnings by converting host byte-order types to le32 types Signed-off-by: karthik alapati --- drivers/staging/wimax/i2400m/op-rfkill.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wimax/i2400m/op-rfkill.c b/drivers/staging/wimax/i2400m/op-rfkill.c index a159808f0..0f438ae6a 100644 --- a/drivers/staging/wimax/i2400m/op-rfkill.c +++ b/drivers/staging/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.1 _______________________________________________ devel mailing list devel@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel