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 3BD55C433DB for ; Sun, 21 Feb 2021 14:04:30 +0000 (UTC) Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (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 C4A1D61481 for ; Sun, 21 Feb 2021 14:04:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C4A1D61481 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 fraxinus.osuosl.org (Postfix) with ESMTP id AAB5781A25; Sun, 21 Feb 2021 14:04:29 +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 YZU1xvWamvyG; Sun, 21 Feb 2021 14:04:26 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 680DF84C13; Sun, 21 Feb 2021 14:04:26 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 22DB71BF981 for ; Sun, 21 Feb 2021 14:04:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 11BD66F47A for ; Sun, 21 Feb 2021 14:04:25 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id p_dCjfcfihWQ for ; Sun, 21 Feb 2021 14:04:22 +0000 (UTC) Received: by smtp3.osuosl.org (Postfix, from userid 1001) id 6583C6ED68; Sun, 21 Feb 2021 14:04:22 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) by smtp3.osuosl.org (Postfix) with ESMTPS id 33D4C6F47A for ; Sun, 21 Feb 2021 14:04:21 +0000 (UTC) Received: by mail-pj1-f51.google.com with SMTP id kr16so6496412pjb.2 for ; Sun, 21 Feb 2021 06:04:21 -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:references :mime-version:content-disposition:in-reply-to; bh=j4mC5MODCK06jyeNOqSfzPWm9rkZjhjLLWSUaFuOWeQ=; b=S6fBeIpLGAnamIkVOix6UB2vGT9T8wHIS/4SI7VnqhwCpg/Uj55ZFvZ7bcknkWLF0I /TGBjcscK1EG9FY7b2XoZwdSlwiXhiRPB3xSs3qyUYRdYkSTOWh/fEt0V8NYEQJwACDY bqKxRvjS2ECnG+pac522h1l1zbz9E57FQUPa7FdJkaxn4vEDbTjR3RRCbSlLyru25aPJ +9kAJNQOc5DDCYONrbWGlNBjANxNVG7B0y99Uc/H/CwhctKdq+AXxZ+BX/pW8HPgdAGd BseErs7N8l69B14+ZcRJtluLOmsek12Jan3IHb0H7yU/jLjO+wTAk1Grp6aVQ6/fJRbR K4YA== X-Gm-Message-State: AOAM531FBNy+PzhgFc5gbFWleE2zGZj++Z5IY2f+zyIULEAXRS2JNpxG qcm6hjzJ3i19ZfhEWS4EOXQ= X-Google-Smtp-Source: ABdhPJxe8j4ShuC/BDyNc7tnbifTWbXEkS+8meATRydYNQBC75uMQoB0LKzc3om4fjnA7LjH31PYVQ== X-Received: by 2002:a17:90a:9918:: with SMTP id b24mr19001146pjp.127.1613916260664; Sun, 21 Feb 2021 06:04:20 -0800 (PST) Received: from karthik-strix-linux.karthek.com ([192.140.154.12]) by smtp.gmail.com with ESMTPSA id d12sm14376906pgm.83.2021.02.21.06.04.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Feb 2021 06:04:20 -0800 (PST) Date: Sun, 21 Feb 2021 19:34:16 +0530 From: karthik alapati To: Greg Kroah-Hartman Subject: [PATCH 1/3] staging: wimax/i2400m: fix byte-order issue Message-ID: <0ae5c5c4c646506d8be871e7be5705542671a1d5.1613915981.git.mail@karthek.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: 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 type to __le16 byte-order types before assigning to hdr.length 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