From patchwork Wed Mar 11 17:21:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcus Folkesson X-Patchwork-Id: 5987841 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C8F52BF90F for ; Wed, 11 Mar 2015 17:22:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EA43620375 for ; Wed, 11 Mar 2015 17:22:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3028F20374 for ; Wed, 11 Mar 2015 17:22:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752011AbbCKRVx (ORCPT ); Wed, 11 Mar 2015 13:21:53 -0400 Received: from mail-la0-f48.google.com ([209.85.215.48]:45310 "EHLO mail-la0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751555AbbCKRVw (ORCPT ); Wed, 11 Mar 2015 13:21:52 -0400 Received: by lamq1 with SMTP id q1so10296199lam.12; Wed, 11 Mar 2015 10:21:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=gFw+VMOti9ceo19oWeqPLN6PAEogPsJt5BTz2mTpon8=; b=dXMX4fZoiFSAiJCAoIVIyp3/1Qjq2EN/hwHheRgxm5d2FF3k668m5jO/s5HMnz2/Wn yuCx4Tru5s2EEXvSPhPVGZ9wFInCYtGpm4efiviSl8Mcv5KVa8HwiNwnxxYhsbaeiYzj 8wCQpweaCWH8TgiaaErMH2l+jt8gsc/I8pXTUZA2yImVKuZkhusbyWUPL7f1ou5iRaJD PxWK3hYBcADNfZzRrE763RNXCZjJqAB8Gb4/4dpwwgNBn+oOJs7B/whd6RQvyEmNLEH3 pBbde+jWEyWewYQgmIVBMtXHUlcJV5X8TTGNQFtWMFNjZPvv0R1260gZyEfjvM14D2CO c5Gw== X-Received: by 10.152.207.72 with SMTP id lu8mr35405165lac.90.1426094510369; Wed, 11 Mar 2015 10:21:50 -0700 (PDT) Received: from localhost.localdomain (host-206-12.wetternet.net. [80.244.206.12]) by mx.google.com with ESMTPSA id h7sm838068laf.19.2015.03.11.10.21.49 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 11 Mar 2015 10:21:49 -0700 (PDT) From: Marcus Folkesson To: Larry Finger , Jes Sorensen , Greg Kroah-Hartman , Marcus Folkesson Cc: linux-wireless@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging: rtl8723au: Fix sparse warning cast to restricted __le16 Date: Wed, 11 Mar 2015 18:21:30 +0100 Message-Id: <1426094490-17065-1-git-send-email-marcus.folkesson@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch fixes the following sparse warnings: CHECK drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:265:37: warning: cast to restricted __le16 drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:267:39: warning: cast to restricted __le16 Signed-off-by: Marcus Folkesson --- drivers/staging/rtl8723au/include/rtl8723a_hal.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8723au/include/rtl8723a_hal.h b/drivers/staging/rtl8723au/include/rtl8723a_hal.h index e146336..f642b11 100644 --- a/drivers/staging/rtl8723au/include/rtl8723a_hal.h +++ b/drivers/staging/rtl8723au/include/rtl8723a_hal.h @@ -255,10 +255,10 @@ struct hal_data_8723a { struct hal_version VersionID; enum rt_customer_id CustomerID; - u16 FirmwareVersion; - u16 FirmwareVersionRev; - u16 FirmwareSubVersion; - u16 FirmwareSignature; + __le16 FirmwareVersion; + __le16 FirmwareVersionRev; + __le16 FirmwareSubVersion; + __le16 FirmwareSignature; /* current WIFI_PHY values */ u32 ReceiveConfig;