Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1538424imu; Sat, 5 Jan 2019 01:14:40 -0800 (PST) X-Google-Smtp-Source: ALg8bN5dUqdCQ154EUtzsZ55XyKrj3q6/0e38MZb9RLLVc3sjHVXbeArn4Fi9r2RwgPGKdK7GsJB X-Received: by 2002:a63:104d:: with SMTP id 13mr4356600pgq.303.1546679680658; Sat, 05 Jan 2019 01:14:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546679680; cv=none; d=google.com; s=arc-20160816; b=aRcmzVZfyv3YEf+X+ntsxC2AxwMIV89cfi/+WUbp3xu9qvKtEmclCtzXZH0MknZUJC bQN0Tzs9iZTgMsg2OLQNmObCvaxQipEEi1aLNMord5P9zxXKvZsntoNCDQz4xoklzNt3 pscg8b+Ze0CN7P/FJCDZT4GeRyK1D+dBPynwTrZ9p5NppgHUoCYASPKmcxvAQTCaPnjO Z5uXqkuXFJMBL9pVuaBek+YRTQcUFqqKabvxsHSkxfk978+UYYbCjjoNnPGxESrHX8KZ AJE34SufckZpCblBZfiBkicuSuQ4FMjKuxryZi+2L6hqLs0grLpbxL6zNMEn1JhRz19L EaUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=+rLfGMG1douxX9tiNwu/aG4jUvk5DpaW4pxLJqerjfY=; b=pN4xZ57bht8l8D2wo9ywyKn7OD2KDmj2M2hIcIxSXht9UrNlKt+LY4DK66KB5DU9qO 9DbSfxc+grV38ivvfCmZS+9lu9un60IFeSOxK7J8KspwfSFEbz1MyvB1JOomh3khqrmF JVuHn2Gc3W0w+84hqVFP32+KL46Bc2Wf+TsSoGmncUrN9XXDjejoVo6sDVoUn6aAzn2h 6Uoqsxldqh3XZYmvWq4EOIYPclZjYlpyv09YN9sHG0KnGcx1pap0LSmqJA/b/KOvtcp4 YDjwfOb+WNpscapwzvWk+9fafcCXU120A7E/ojfrp8nheZ/mgmnVby6hOytu04rJaV6L wSPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VaVBSqn4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k17si1352203pgl.62.2019.01.05.01.14.13; Sat, 05 Jan 2019 01:14:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VaVBSqn4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726235AbfAEJKb (ORCPT + 99 others); Sat, 5 Jan 2019 04:10:31 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:36508 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726141AbfAEJKa (ORCPT ); Sat, 5 Jan 2019 04:10:30 -0500 Received: by mail-wr1-f65.google.com with SMTP id u4so38505489wrp.3; Sat, 05 Jan 2019 01:10:29 -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=VaVBSqn4Id2RUaOZKJ7EwtHA7s2ANA5XXdgm+tJtEPdVyy0ZrMEGREWV84oIaOjyvO LbcqRunbKZCppr2fElC+7thMTQlpSPcxdIJ93ffd+L0bkWiRKijfNOwK59NzyQa6NCGN a8eLjBWT4yZeJLs0N6bU8SNSlfW6r0yu9wOObYK5s8gB7sp8oRnv8PS208dcLpBl9q7r Wy8npJxhn6PlKegnNWTWWLg0cHxWJFi1sW5jTPLVKXVPYxMUSu1JsvtLYa2BVmXO9u8Q G+bNLnHXSJYG7PrGSYFEKtp84Gm/na8Gko3/vsenplxkglrBIQjN88Ho45xUXQK6RQi4 aShA== 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=W/O+iTp2JvDab7eV3asfyQapE4T3kpWsOIgWdzXMn8MSzpAK+VbgguMgV+yWuaJJGg mQR5DzzWRek+3lPZcQnf2Q2ncJfl8jdZMld5y/K73mvyldH26o7PExhhFUyMj4HUXnkE 9oywmW0jo8ktP+oZUBLZXo7b71UWR6xrdKopO2jcFcBPvSWu6AE9BhWgjPmrp79QgYci WUBDDZEOJRg0YiDX8cWEjPX7CxsI/3BgvymmIzndS1DhWTFa9PvhGQjxGegE8pom3+bg AWE8VtstKmGBxqgD2V4Zx18l8Fxg5DCJ+bLr2t3PcCZFON+nyPbYkCAwwdW/Rdicz/4g XmJQ== X-Gm-Message-State: AJcUukeJ6XHlrSNer0oPNlWnQmPNmS5c8yfTmV+piLi5ZfnHKkYdYIUs ZZJngWw9aFjJAMa6Jm7Km8Tcv8y6UcI= X-Received: by 2002:a5d:660e:: with SMTP id n14mr45732739wru.19.1546679428480; Sat, 05 Jan 2019 01:10:28 -0800 (PST) Received: from localhost.localdomain ([185.140.29.250]) by smtp.gmail.com with ESMTPSA id m6sm38583842wrv.24.2019.01.05.01.10.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 05 Jan 2019 01:10:27 -0800 (PST) Date: Sat, 5 Jan 2019 10:10:25 +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 v2] staging: wilc1000: fix cast to restricted __le32 Message-ID: <20190105091025.GA28917@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) -- 2.14.5