Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp3168732pxb; Tue, 20 Apr 2021 02:03:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWXQET2Sxo7fvrCjmXZdRorIT8yNwhQ0z4VXmQq1wvJccbezHyc1p423zRokoLVW1YcoHD X-Received: by 2002:a17:907:10d8:: with SMTP id rv24mr26101678ejb.542.1618909403493; Tue, 20 Apr 2021 02:03:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618909403; cv=none; d=google.com; s=arc-20160816; b=inSs8Y/w26aUSgYBN3YsCAPQfIkYKBchwJj6lBL8honhNwQX+SHGyDCR47rlIxrMwm oh+6O4uTc1mfkGJSAvdqnSgKT+DG8+xEk/wbIUzP+dgs2jsCj4fOmKhLcbuCkb6+tC4f uOgZXE57QNH36l+IqcVsF6DOfbiAw2sVVIqHyNP2Azdh4Wc+reOZCEnf3dmLM/bqF5sc AOgcRAJamPexJRKcdAiYahzLvexEY262Miy5HdwScEH94mnGcLms3+Kc5Y0Ln0iURQPn 0+WsV/3RWhfFg6OGFGTeTmZzxc2mMf8M6wt1RYikTD6iJqtwQfLqhRC1XsYluIA6QeBj SwXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=nUTxD83tk99lAvG8V7zJLQuPHa5YvvReXL8ln/DNe9Y=; b=A/IRn3Kiacty4juB4eocx6OHfZ5unzGt1j6mW84udQT1dk55AlVRBcsB60iuRvnHIQ vMA8hzclvK4lrJb/yts45AN2l1lft/HpxUpZsuUuCD8XtXsj8MO5vg9mQm9Go7vfOfHA LahVz/Sg8o2un/8kSe2emvCmPf4knHFFqn/fKHONka//qNZx+dzTEzBwPhN7nqZdXQSZ SkslT1u7MulEuV7i+g5W9efvF6JYy/htkn6UhRmmYPlYhg4axp6R/o4XsX0tHYHkd65s fNjQhrXq8Pt6tyz4R3Q97eEhK4akyTpZl0CM3uJmgsIhqU3CG/XffVjVswL0yh+dUD0f 9zfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UXB94sY2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id p9si13793785ejx.574.2021.04.20.02.02.58; Tue, 20 Apr 2021 02:03:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UXB94sY2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S231146AbhDTJCX (ORCPT + 99 others); Tue, 20 Apr 2021 05:02:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230168AbhDTJCW (ORCPT ); Tue, 20 Apr 2021 05:02:22 -0400 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF658C06174A for ; Tue, 20 Apr 2021 02:01:49 -0700 (PDT) Received: by mail-pl1-x62b.google.com with SMTP id o16so5713484plg.5 for ; Tue, 20 Apr 2021 02:01:49 -0700 (PDT) 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; bh=nUTxD83tk99lAvG8V7zJLQuPHa5YvvReXL8ln/DNe9Y=; b=UXB94sY2D5CrMsl/iyK72EuZFmC2BeVYULg6Jqcf1+ZBz65O7ld1bEnRlB27uBFlg7 WrlJCEIHwR6kfZQBU8v42GlPUDNkoxZ4OduJbGFNz1DLGBld7Tg/mAGBKGjaOfv7DsAe ZGiIw9KvjY8XTElYID/+3+iYRz4fqLopaveo3Hzshp00TDPjMaV2BuFFypHt6o4aRkz1 McAGrnGAbP81yu1bxXPDHQNnrKUGwz2NXCk5OXhMr31PALMwZ9z8HLRRPTmWXmxQLHuj kDQ4DXfv4ONi06CkLxJND+i5uqln2GJk8tzrfD0E/TAmoohjeKBMvfQJCQfkgLXx8I9I qYnQ== 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; bh=nUTxD83tk99lAvG8V7zJLQuPHa5YvvReXL8ln/DNe9Y=; b=FLL0/NCmwctvhCeDvr+1eI88NvfVYQ5+YYVyEjBO8uYcNUakEtIWPcSfizQkr3U9dh HdqA3SS0rfmP+IICCDVzU+edmizt81QQlLm/pncvUiWhyDpCAxV3MFXNDfi5WW+qy5BI zo6EcMHiyVKwbr+FxvMO3maOhJLaYKObJ6cHoTxLC7diqSUJDfvprV8UsEc4cv9dKmTw owEylhQ4B8DwHbGoMhNk3xolhJkWxVRpHx4S0x/sXT47B8upBte8NznY94NY4VXuMV+v I+wK5yeMvpytVPgkZpXfvlY/cf7Bs6JEjH1k7oNd90imnaGj8hOwHnVVsJoAYA2+1rvd fN+g== X-Gm-Message-State: AOAM531fMB2sPYkedX+h4Z7t8Y77b77244T3NX4Q5NrvV4yDa2BGxgx8 TRjGVMLwfAHwpEq1DterQug= X-Received: by 2002:a17:90b:4b86:: with SMTP id lr6mr3872498pjb.77.1618909309084; Tue, 20 Apr 2021 02:01:49 -0700 (PDT) Received: from ashish-NUC8i5BEH ([182.77.14.23]) by smtp.gmail.com with ESMTPSA id n20sm14733914pgv.15.2021.04.20.02.01.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Apr 2021 02:01:48 -0700 (PDT) Date: Tue, 20 Apr 2021 14:31:42 +0530 From: Ashish Kalra To: Greg Kroah-Hartman , Abheek Dhawan , Johannes Weiner , Romain Perier , Waiman Long , Allen Pais , Ivan Safonov , Ashish Kalra , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: eashishkalra@gmail.com Subject: [PATCH] staging: wlan-ng: silence incorrect type in argument 1 (different address spaces) warning Message-ID: <20210420090142.GA4086@ashish-NUC8i5BEH> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Upon running sparse, "warning: incorrect type in argument 1 (different address spaces) is brought to notice for this file.let's add correct typecast to make it cleaner and silence the Sparse warning. Signed-off-by: Ashish Kalra --- drivers/staging/wlan-ng/p80211netdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wlan-ng/p80211netdev.c b/drivers/staging/wlan-ng/p80211netdev.c index 6f9666dc0277..70570e8a5ad2 100644 --- a/drivers/staging/wlan-ng/p80211netdev.c +++ b/drivers/staging/wlan-ng/p80211netdev.c @@ -569,7 +569,7 @@ static int p80211knetdev_do_ioctl(struct net_device *dev, goto bail; } - msgbuf = memdup_user(req->data, req->len); + msgbuf = memdup_user((void __user *)req->data, req->len); if (IS_ERR(msgbuf)) { result = PTR_ERR(msgbuf); goto bail; -- 2.25.1