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: 12741882 X-Patchwork-Delegate: kuba@kernel.org 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8C1EFC433F5 for ; Thu, 10 Feb 2022 12:48:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241704AbiBJMr6 (ORCPT ); Thu, 10 Feb 2022 07:47:58 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:32890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240903AbiBJMr5 (ORCPT ); Thu, 10 Feb 2022 07:47:57 -0500 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B1E925C7; Thu, 10 Feb 2022 04:47:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644497279; x=1676033279; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=HWZWWxDxk4N9yJjPiALC8RWNE2WvZgl6l+ofOOfgvk0=; b=Ikrpjh1vqL9aE8IIqhyKRCFpWyxZ9xnQ4vpdUAyjmveJ6ZzLfjo3KeI2 VLOGDwoqW23f/PR88V5XZwfVHNN/x33pBWbmt2cZ4lmGu3r67HOkpbKLA eBTa5LcivQe2+zROpjpyVlxABuGyu8CAdEwvPOSExY3/3aVS6Rg/f2Mtv iKQBfqph8iduSx9fMJphYKhzFeLClPfh1xqQzcOfDCFuS0WmOlHbulJvB HZlS6oBABPyz1hGuFg2gsyUFVvukJSaGbXron/mYa8vlsVtc9/zDdoP6S KCus+xJHbo+TG5OXXw/JoCuaft0H0bdwWLCP5LHi0gyo63cZK3gzgh/bw w==; X-IronPort-AV: E=McAfee;i="6200,9189,10253"; a="249689041" X-IronPort-AV: E=Sophos;i="5.88,358,1635231600"; d="scan'208";a="249689041" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.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) Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org 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);