From patchwork Sat Jan 5 08:32:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=C3=BAlius_Milan?= X-Patchwork-Id: 10749189 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 646461399 for ; Sat, 5 Jan 2019 08:32:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3DA7028762 for ; Sat, 5 Jan 2019 08:32:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 180672878C; Sat, 5 Jan 2019 08:32:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E373328762 for ; Sat, 5 Jan 2019 08:32:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726200AbfAEIcV (ORCPT ); Sat, 5 Jan 2019 03:32:21 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:36700 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726126AbfAEIcV (ORCPT ); Sat, 5 Jan 2019 03:32:21 -0500 Received: by mail-wr1-f68.google.com with SMTP id u4so38458284wrp.3; Sat, 05 Jan 2019 00:32:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:user-agent; bh=+rLfGMG1douxX9tiNwu/aG4jUvk5DpaW4pxLJqerjfY=; b=YiRBOpgEAYGOVkJrBtcdGSckWMkEXHVD052b5Sp7V0bfQ5L2tRyErhnHIVwfYkl4bK otfM9qrc3FYoKv/H1cItFRkoHtkEk/Nh4c5RQti7n5Mx4C2r74OwkYX9gb8T3Iy/ngrC 9RE8XaDK88Sx7yxv1uboaF3T7mnCBF9LAMiCailxGM5CCeGs8mz79IJoFAA9E5IMgs8H ebD5bPGpetsvhs2vgfrBH8NAnd2YVuX1TeTTCcY3X5w+KQRgRGarx4FrFJFfbCFamid9 Z6GxFQGlJK6iDb0CItj2p31aiZPKmJITBGqpwUjovXZzHwxQ4AYYCd5gD98en03wJXrM 1ZUQ== 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:content-transfer-encoding:user-agent; bh=+rLfGMG1douxX9tiNwu/aG4jUvk5DpaW4pxLJqerjfY=; b=m0ZGyotCzTuOLGwjK3WOiPjeZCqGobovfKIXcjUbHQyxWuRBHLJx15rByF4D3dNjm0 67zW1TMSStm6+pi0olLuomG9q44Zq9q9kKAcAXIwAvJtCHWl9/1wGwLs5JcP4fOgH38i 7FxdTfftl+q2gee89IaFp/pnAjaWlEu0ru0tsAzHt0rlaJaEyUQlW5hSII46XguRpPx1 r6p6p4x01a2Jdc2aiv1Lt+lpNqCno6n3k6GkoP61opG+dV12+rIjWl2OZvdjn72Hf7EQ 4oIdcEQh7knHBNT1BtMucVI6tsl0n4812V2F/gOg/sWdsWbSa8rp1pV6y0TrxNT1rTTN HQ3g== X-Gm-Message-State: AJcUukepl/G0q2ZcL+eTQXuSRdCv640KwSngHk8MsTQCbS7dALnpdkZ0 rm5Y0Mcfq7J/wHMTa9dkFgPSvUs3CwU= X-Google-Smtp-Source: ALg8bN5YCKimEOD2LwjwBL+8PG50bugb2cXke0e6cLKjlEFWdlI+ubxnnKp1mJEjy8b8GZWixTdCPA== X-Received: by 2002:adf:f052:: with SMTP id t18mr49302938wro.112.1546677139207; Sat, 05 Jan 2019 00:32:19 -0800 (PST) Received: from localhost.localdomain ([185.140.29.250]) by smtp.gmail.com with ESMTPSA id q9sm66282701wrp.0.2019.01.05.00.32.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 05 Jan 2019 00:32:18 -0800 (PST) Date: Sat, 5 Jan 2019 09:32:16 +0100 From: =?iso-8859-1?q?J=FAlius?= Milan To: linux-kernel@vger.kernel.org Cc: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org, gregkh@linuxfoundation.org, ajay.kathat@microchip.com, adham.abozaeid@microchip.com Subject: [PATCH] staging: wilc1000: fix cast to restricted __le32 Message-ID: <20190105083216.GA28108@localhost.localdomain> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fixes the following sparse warnings: drivers/staging/wilc1000/host_interface.c:2360:30: warning: incorrect type in assignment (different base types) expected restricted __le32 [addressable] [assigned] [usertype] frame_type got restricted __le16 [usertype] Fixes: 147ccfd451024 ("staging: wilc1000: handle mgmt_frame_register ops from cfg82011 context") Signed-off-by: JĂșlius Milan --- drivers/staging/wilc1000/host_interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c index 5dae6e7155d3..07c3d6293573 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -2357,7 +2357,7 @@ void wilc_frame_register(struct wilc_vif *vif, u16 frame_type, bool reg) default: break; } - reg_frame.frame_type = cpu_to_le16(frame_type); + reg_frame.frame_type = cpu_to_le32(frame_type); result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1, wilc_get_vif_idx(vif)); if (result)