From patchwork Wed Feb 9 22:13:04 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: 12740976 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 CB2FBC433F5 for ; Wed, 9 Feb 2022 22:13:19 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 486716B0073; Wed, 9 Feb 2022 17:13:19 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 40E5D6B0075; Wed, 9 Feb 2022 17:13:19 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 288076B0078; Wed, 9 Feb 2022 17:13:19 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0115.hostedemail.com [216.40.44.115]) by kanga.kvack.org (Postfix) with ESMTP id 1A93D6B0073 for ; Wed, 9 Feb 2022 17:13:19 -0500 (EST) Received: from smtpin19.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id B57879677D for ; Wed, 9 Feb 2022 22:13:18 +0000 (UTC) X-FDA: 79124643276.19.B204B19 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by imf18.hostedemail.com (Postfix) with ESMTP id 95C6A1C000C for ; Wed, 9 Feb 2022 22:13:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644444797; x=1675980797; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=unrXRUdzWi5D3/HjV3kwKy4i923Vtn2+Tei9MwW5b48=; b=dkxr/hp457kJZ9asgMJwO/4MEvdEkeB5P4uNLzJ1hHJh2Qw7ZpZSNALX kg25FwHLSs4uDN4113V2hm85RXX9RkL39PErlBZ0Hz/cizl+v6RCnszTb rCcA382W2hRZ+6ySsK9F4YI646/liqoxLojU6DAHQf4+bGi0ri5fcZqwo dVFsoGH4Y3MKQJXOEol8B4G4SldgaWotouuR0UxNNzomR3fXdoaAzEFow 2pv39Xiv5VAH3tS5tNBUXiD3jU1wB8xPA4i9/zKRzuureF9PVHq41q7Mn oKAPhZj04gmmMEyrRRvASQa7cOye2bdVL5Vs5JRhSwPaQY1+71Q+nc76g A==; X-IronPort-AV: E=McAfee;i="6200,9189,10253"; a="335764900" X-IronPort-AV: E=Sophos;i="5.88,356,1635231600"; d="scan'208";a="335764900" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Feb 2022 14:13:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,356,1635231600"; d="scan'208";a="568418305" Received: from lkp-server01.sh.intel.com (HELO d95dc2dabeb1) ([10.239.97.150]) by orsmga001.jf.intel.com with ESMTP; 09 Feb 2022 14:13:12 -0800 Received: from kbuild by d95dc2dabeb1 with local (Exim 4.92) (envelope-from ) id 1nHvD6-0002Kt-74; Wed, 09 Feb 2022 22:13:12 +0000 Date: Thu, 10 Feb 2022 06:13:04 +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: <20220209221304.GA17529@d2214a582157> References: <202202100634.l8CtrpzE-lkp@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <202202100634.l8CtrpzE-lkp@intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="dkxr/hp4"; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf18.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.43) smtp.mailfrom=lkp@intel.com X-Rspam-User: X-Rspamd-Queue-Id: 95C6A1C000C X-Stat-Signature: 1bd6s3rzkdt7sqojo1x1fjac1wayuxes X-Rspamd-Server: rspam07 X-HE-Tag: 1644444797-85145 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 Reviewed-by: Florian Fainelli --- tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 10207e3a840b47b5eae573486a88fb6e29884f77 commit: 90386223f44e2a751d7e9e9ac8f78ea33358a891 [2955/4656] net: dsa: qca8k: add support for larger read/write size with mgmt Ethernet :::::: branch date: 16 hours ago :::::: commit date: 7 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);