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 0D24AC433DB for ; Sun, 21 Feb 2021 15:32:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D03CD64EF1 for ; Sun, 21 Feb 2021 15:32:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229933AbhBUPb4 (ORCPT ); Sun, 21 Feb 2021 10:31:56 -0500 Received: from mail-pj1-f45.google.com ([209.85.216.45]:51207 "EHLO mail-pj1-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229966AbhBUPbw (ORCPT ); Sun, 21 Feb 2021 10:31:52 -0500 Received: by mail-pj1-f45.google.com with SMTP id gm18so1754854pjb.1 for ; Sun, 21 Feb 2021 07:31:36 -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=rp3BpP8KP81s7pZzWCzMJiPOOmiunF3vaojcQhBQVlrTLVqsthDAiwZmkBEcYVJjf5 FEgku8/evxL5aX1ysEuzXXgycRZcqCpWNS7rO6jE6MWpsWTL85sS0AmQJzu2ulicm6tF akCyOs0zSribwg6vF0BkfZwzWJxQCJxTP7Cso2OhamjecRJZewwMFt+20lJxXul2DXwe staQYbItdQqDYj4gDmsZQEZj15ZvyPUzzt1QjUFkzYlWOvW/1OocdRk9u162kDeUlNgW 1b3NKoJA0OcEzrSOMGrkRJBT5ExCV2zY//58odtQAc8P88XkkHHRAuaGAs+r1pWP04/C 28OA== X-Gm-Message-State: AOAM533tQSFPLYsIDAxxGTPAkDoxluZInob2umD4dEuL58S32FfneXnN rvXtf/RzD8GhweP0O0PTXZs= X-Google-Smtp-Source: ABdhPJxWm8B6PhdNK6eHSyEJYmv+ol5YYlcRFrGhdJvgf86fc8srcahaizaIN4OpNqiN/lY6Uuycug== X-Received: by 2002:a17:902:bf03:b029:e3:ac31:9c6 with SMTP id bi3-20020a170902bf03b02900e3ac3109c6mr15725830plb.55.1613921470823; Sun, 21 Feb 2021 07:31:10 -0800 (PST) Received: from karthik-strix-linux.karthek.com ([192.140.154.12]) by smtp.gmail.com with ESMTPSA id c8sm5418812pjv.18.2021.02.21.07.31.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Feb 2021 07:31:10 -0800 (PST) Date: Sun, 21 Feb 2021 21:01:05 +0530 From: karthik alapati To: Greg Kroah-Hartman , Lee Jones , Jakub Kicinski , Arnd Bergmann , Johannes Berg Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] staging: wimax/i2400m: fix byte-order issue Message-ID: <0ae5c5c4c646506d8be871e7be5705542671a1d5.1613921277.git.mail@karthek.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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 B52DAC433E6 for ; Sun, 21 Feb 2021 15:31:18 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (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 2DAC364EEF for ; Sun, 21 Feb 2021 15:31:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2DAC364EEF 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 smtp1.osuosl.org (Postfix) with ESMTP id DE85283267 for ; Sun, 21 Feb 2021 15:31:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id r2IQ7bAsiTBC for ; Sun, 21 Feb 2021 15:31:16 +0000 (UTC) Received: by smtp1.osuosl.org (Postfix, from userid 1001) id 6E71083396; Sun, 21 Feb 2021 15:31:16 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 89E82833CE; Sun, 21 Feb 2021 15:31:13 +0000 (UTC) Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id B24861BF954 for ; Sun, 21 Feb 2021 15:31:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id AF0B586FDC for ; Sun, 21 Feb 2021 15:31:11 +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 IMpChU2mKHNN for ; Sun, 21 Feb 2021 15:31:11 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) by hemlock.osuosl.org (Postfix) with ESMTPS id 3033F86BC1 for ; Sun, 21 Feb 2021 15:31:11 +0000 (UTC) Received: by mail-pj1-f51.google.com with SMTP id kr16so6566264pjb.2 for ; Sun, 21 Feb 2021 07:31:11 -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=W26YAow7MCQOmEFMxjjUMX0vE81zHxsrUpaNwBouWxpBWnhvSEursJ4W6H3/3iXs+j 7dU+0L31S345sQJfvF7MezO/FDRaIrKHwTxTIBewBq3IAlWmbaIm4qDP+dZ1sKY8H7uT HzZDkcx/Gp9Akn3UQexGQDhYyN17hyxESb3WQZ87CUn7n2cKpKFzskgV0Xo5pcvU9g4P l/tWztQrZap0jbVbE15GLk79wdHsxWkviYaqyqmqM6LHSBaHefsh6YQrMi2fU/URngn/ HR6tWIac4Rpd3tcTiCeeBy5p8sDnQ/XtdWn6cVY96on5cBrnpERfeltOWzvyVkBuf19D F9Aw== X-Gm-Message-State: AOAM530+oKtXY0uOEzE8s7mQtuOPLV3wxG2UkrnZfd2WJDLYpaTLlRPZ urwo+Ck0YlbNMvYlCTOX6Pc= X-Google-Smtp-Source: ABdhPJxWm8B6PhdNK6eHSyEJYmv+ol5YYlcRFrGhdJvgf86fc8srcahaizaIN4OpNqiN/lY6Uuycug== X-Received: by 2002:a17:902:bf03:b029:e3:ac31:9c6 with SMTP id bi3-20020a170902bf03b02900e3ac3109c6mr15725830plb.55.1613921470823; Sun, 21 Feb 2021 07:31:10 -0800 (PST) Received: from karthik-strix-linux.karthek.com ([192.140.154.12]) by smtp.gmail.com with ESMTPSA id c8sm5418812pjv.18.2021.02.21.07.31.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Feb 2021 07:31:10 -0800 (PST) Date: Sun, 21 Feb 2021 21:01:05 +0530 From: karthik alapati To: Greg Kroah-Hartman , Lee Jones , Jakub Kicinski , Arnd Bergmann , Johannes Berg Subject: [PATCH 1/2] staging: wimax/i2400m: fix byte-order issue Message-ID: <0ae5c5c4c646506d8be871e7be5705542671a1d5.1613921277.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