From patchwork Thu Feb 10 12:46:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kernel test robot X-Patchwork-Id: 12741884 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id DDE25C433EF for ; Thu, 10 Feb 2022 12:47:48 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6C8056B0073; Thu, 10 Feb 2022 07:47:48 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 677F76B0074; Thu, 10 Feb 2022 07:47:48 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 566746B0075; Thu, 10 Feb 2022 07:47:48 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.27]) by kanga.kvack.org (Postfix) with ESMTP id 474DB6B0073 for ; Thu, 10 Feb 2022 07:47:48 -0500 (EST) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 0C75E22796 for ; Thu, 10 Feb 2022 12:47:48 +0000 (UTC) X-FDA: 79126846974.04.1F51177 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by imf14.hostedemail.com (Postfix) with ESMTP id 1D881100005 for ; Thu, 10 Feb 2022 12:47:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644497267; x=1676033267; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=HWZWWxDxk4N9yJjPiALC8RWNE2WvZgl6l+ofOOfgvk0=; b=Jfi6lKlZuXB0fkNiXAJtWzE2w8kMI4ztNEV775U7avtZimjJ38ovY8q8 /Q8s5fMPeYzpZ0JPaqOS/g1SYxKmJEBqg0M5R50aTISqxAB5+Do5QaYFy dJ3L72RP5JsHPYO+DyoGNS5oKx8MRjKAr6wWdlU+wmtaZ1mVZRCZ61u9u mavfOAmOTh2sntzxApaHO7gCYTLSSwhU6IUIM27WDpkhgvgjuST8fLvYk 9eWOY+C3JkDqj7w3ikHAiSs6HcjkLGsoSI6U8NjZxgkLduJgSMJyKRmlH WMIZ+DDCxKPq7lA7aKIPJrjapk8oZSN83UGSrt7dZLld0f6OMBH6KjF51 g==; X-IronPort-AV: E=McAfee;i="6200,9189,10253"; a="233043162" X-IronPort-AV: E=Sophos;i="5.88,358,1635231600"; d="scan'208";a="233043162" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Feb 2022 04:47:45 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,358,1635231600"; d="scan'208";a="701679860" Received: from lkp-server01.sh.intel.com (HELO d95dc2dabeb1) ([10.239.97.150]) by orsmga005.jf.intel.com with ESMTP; 10 Feb 2022 04:47:43 -0800 Received: from kbuild by d95dc2dabeb1 with local (Exim 4.92) (envelope-from ) id 1nI8rO-0003Dp-AR; Thu, 10 Feb 2022 12:47:42 +0000 Date: Thu, 10 Feb 2022 20:46:58 +0800 From: kernel test robot To: Ansuel Smith Cc: kbuild-all@lists.01.org, Linux Memory Management List , Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , Jakub Kicinski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] net: dsa: qca8k: fix noderef.cocci warnings Message-ID: <20220210124658.GA27194@41bd5bfec107> References: <202202102036.lklvUIqh-lkp@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <202202102036.lklvUIqh-lkp@intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Jfi6lKlZ; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf14.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.126) smtp.mailfrom=lkp@intel.com X-Rspamd-Server: rspam03 X-Rspam-User: X-Stat-Signature: ox95eaz9t1dscttqzo6pgm8ctpm1dunk X-Rspamd-Queue-Id: 1D881100005 X-HE-Tag: 1644497266-808548 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: kernel test robot drivers/net/dsa/qca8k.c:422:37-43: ERROR: application of sizeof to pointer sizeof when applied to a pointer typed expression gives the size of the pointer Generated by: scripts/coccinelle/misc/noderef.cocci Fixes: 90386223f44e ("net: dsa: qca8k: add support for larger read/write size with mgmt Ethernet") CC: Ansuel Smith Reported-by: kernel test robot Signed-off-by: kernel test robot --- tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 395a61741f7ea29e1f4a0d6e160197fe8e377572 commit: 90386223f44e2a751d7e9e9ac8f78ea33358a891 [2956/4901] net: dsa: qca8k: add support for larger read/write size with mgmt Ethernet :::::: branch date: 5 hours ago :::::: commit date: 8 days ago qca8k.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/dsa/qca8k.c +++ b/drivers/net/dsa/qca8k.c @@ -419,7 +419,7 @@ qca8k_regmap_read(void *ctx, uint32_t re u16 r1, r2, page; int ret; - if (!qca8k_read_eth(priv, reg, val, sizeof(val))) + if (!qca8k_read_eth(priv, reg, val, sizeof(*val))) return 0; qca8k_split_addr(reg, &r1, &r2, &page);