From patchwork Wed Feb 27 14:52:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bo YU X-Patchwork-Id: 10831783 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 2011D922 for ; Wed, 27 Feb 2019 14:52:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0C2BB2E107 for ; Wed, 27 Feb 2019 14:52:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 001282E109; Wed, 27 Feb 2019 14:52:48 +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 871912E107 for ; Wed, 27 Feb 2019 14:52:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730595AbfB0Owm (ORCPT ); Wed, 27 Feb 2019 09:52:42 -0500 Received: from mail-yw1-f68.google.com ([209.85.161.68]:38641 "EHLO mail-yw1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726590AbfB0Owm (ORCPT ); Wed, 27 Feb 2019 09:52:42 -0500 Received: by mail-yw1-f68.google.com with SMTP id o184so8274068ywo.5; Wed, 27 Feb 2019 06:52:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=wwnyuv2OrFB8ni+eefpvorhS1IOuudyLxlyXqWEaiGg=; b=ZOP9em5G+X85wFTwcUve3RF3/mHK1EJ5khqoJwEBOX91+cnjU2GQ1FPHVeFV8rTPXb fXYYA77BRqHzByPkebU3gJvxvObWLgxCr+FyhWyvVdCYh9pv/7GJZvfz5tT4gIVDu2vP AJwpzl9YjOh6j86PXkrkjGyvDCaQJ5aczNz/wp8MqLQt7yh7pW/AYRWvAGfhTKLwTjJh nygN7BRvHb/eooYTYIz2q6l46oCD+RmbSsTnqeu1srtmx1GJo4x1b7DrA2JrhtpS+5Qg 09/BTWzkbASTJyuD4RS5mbWg3INB4dMiry7D2mz0G6kSjh0R27fe0sqyKn7XF0FiNW97 MKCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=wwnyuv2OrFB8ni+eefpvorhS1IOuudyLxlyXqWEaiGg=; b=TX630OFmGdFlPBv4qlM+egOb0rxKK32iYcYKCjjl5Cf/6p8g7fWJ2tZz3sKR00CpQ7 4mZqxGJDmirs1n0i//glYbvsBJdrHrcIo88NMwabNuj7BGgtkf6f//0+buCkdmGkq22J 2KCwsiNg34KqgN4gzjlZbs8JdEueZGVKC8+0S1tS75YXEwAiuvpZL1gv/BSfpNWrpYrJ bIMsa+AfZSIJVRXL+/SxyOvpzQch3bFikTczWmLo+UF7XUBIScV/4fcTjnDP4QUrnKax lWwg4tnKYsVFBxxWzQmvxxog5EpylHoIlI0sy7FczRqeJLiaeH0Af7NH25xXq6/jMPQD CDlQ== X-Gm-Message-State: AHQUAuaJ1RgR12wJjoU4LLnGOSKDskPCxktIi3uQJCEcSTXBJxAP5ac2 fM6zbHkJ0WgR6ofPhxzvwDA= X-Google-Smtp-Source: AHgI3IbxzJhMv5Q6NiJWDxuSvwgiFdcPkcxGMn+cwwm5oqfYLmTkT+H9a6k81fF2M0aQk09b++rnAw== X-Received: by 2002:a25:257:: with SMTP id 84mr2328664ybc.276.1551279161419; Wed, 27 Feb 2019 06:52:41 -0800 (PST) Received: from localhost.localdomain ([191.101.9.198]) by smtp.gmail.com with ESMTPSA id z201sm5548456ywd.23.2019.02.27.06.52.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Feb 2019 06:52:40 -0800 (PST) From: Bo YU To: adham.abozaeid@microchip.com, ajay.kathat@microchip.com, gregkh@linuxfoundation.org Cc: Bo YU , linux-wireless@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, yuzibode@126.com Subject: [PATCH V2] staging: wilc1000: fix incorrent type in initializer Date: Wed, 27 Feb 2019 09:52:36 -0500 Message-Id: <20190227145236.30324-1-tsu.yubo@gmail.com> X-Mailer: git-send-email 2.11.0 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 Fix sparse warning: drivers/staging/wilc1000//host_interface.c:444:49: warning: incorrect type in initializer (different address spaces) drivers/staging/wilc1000//host_interface.c:444:49: expected struct cfg80211_bss_ies const *ies drivers/staging/wilc1000//host_interface.c:444:49: got struct cfg80211_bss_ies const [noderef] *ies Signed-off-by: Bo YU --- V2: Adding cc wireless-list --- 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 20349af2ed30..4dd9a20f6a0b 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -441,7 +441,7 @@ void *wilc_parse_join_bss_param(struct cfg80211_bss *bss, const u8 *tim_elm, *ssid_elm, *rates_ie, *supp_rates_ie; const u8 *ht_ie, *wpa_ie, *wmm_ie, *rsn_ie; int ret; - const struct cfg80211_bss_ies *ies = bss->ies; + const struct cfg80211_bss_ies *ies = rcu_dereference(bss->ies); param = kzalloc(sizeof(*param), GFP_KERNEL); if (!param)