From patchwork Thu Mar 7 21:36:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julia Lawall X-Patchwork-Id: 10843867 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 60D8617E4 for ; Thu, 7 Mar 2019 21:36:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4514F2F5F4 for ; Thu, 7 Mar 2019 21:36:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 395D82F5F7; Thu, 7 Mar 2019 21:36:19 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CC61A2F5F4 for ; Thu, 7 Mar 2019 21:36:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:To:From :Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=1rxzvycdmDFR5zCYe6yn/auDeYv+RZza2vw+8ZxFGKc=; b=E79aDn0/P4+Axh 1tClnpsS15YFm4Z4iI2FZgbhEW7DTkhcjuPHZysazzHmDf8JGcgS+5psYbcRltkFDYbpWM6yV6SpV Dp58fnTdtb0Hrt88xZ095hZ72A45vRITCH7dbgBjwzdRV7nuGQNePcDXdqnJVPPqKu3OxX9mObvr4 YaNvH69a7Gb3HcIFNky7cxElJrIIFi3Jt6PxXTVHZbMj+fzgtUCHLdqX2jUr3PVk16SRKJGwR3yQo cE+YeiSyyLO1x5ji7jYDhciv6C6Nkz+oo7tqn5rfvp0yQkrh9Y6ajSMLXk8JCSuPrvqnpozJfhn7I sy6UOWvz/xjBj195/kjg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h20gb-0004g1-AK; Thu, 07 Mar 2019 21:36:17 +0000 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h20gY-0004fU-O6 for ath10k@lists.infradead.org; Thu, 07 Mar 2019 21:36:16 +0000 X-IronPort-AV: E=Sophos;i="5.58,453,1544482800"; d="scan'208";a="372414167" Received: from abo-58-107-68.mrs.modulonet.fr (HELO hadrien) ([85.68.107.58]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Mar 2019 22:36:13 +0100 Date: Thu, 7 Mar 2019 22:36:13 +0100 (CET) From: Julia Lawall X-X-Sender: jll@hadrien To: Kalle Valo Subject: [PATCH] ath11k: fix noderef.cocci warnings Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190307_133615_055953_06ECF1AC X-CRM114-Status: UNSURE ( 8.56 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kbuild-all@01.org, ath10k@lists.infradead.org Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: kbuild test robot sizeof when applied to a pointer typed expression gives the size of the pointer Generated by: scripts/coccinelle/misc/noderef.cocci Fixes: 258bbf525e65 ("ath11k: add driver") Signed-off-by: kbuild test robot Signed-off-by: Julia Lawall --- tree: https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git ath11k-bringup head: e7daa3ec639f390e383dae0db9e6b143bcc7b5bc commit: 258bbf525e652e244aa8b2331f55fda573fbe926 [3/42] ath11k: add driver :::::: branch date: 5 hours ago :::::: commit date: 4 weeks ago dp_rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/wireless/ath/ath11k/dp_rx.c +++ b/drivers/net/wireless/ath/ath11k/dp_rx.c @@ -275,7 +275,7 @@ static void ath11k_dp_rx_tid_del_func(st if (status == HAL_REO_CMD_DRAIN) goto free_desc; - elem = kzalloc(sizeof(elem), GFP_ATOMIC); + elem = kzalloc(sizeof(*elem), GFP_ATOMIC); if (!elem) { ath11k_warn(ab, "failed to allocate memory for cache flush element\n"); goto free_desc;