Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp1371828imi; Sat, 23 Jul 2022 04:00:41 -0700 (PDT) X-Google-Smtp-Source: AGRyM1udB1GHHgM+tM9XqxNJ9E3fqBm3E917kfD+BB4+icUG3EmgzGfWJre41MyKrelywc2z4X1l X-Received: by 2002:a17:907:3e81:b0:726:9615:d14d with SMTP id hs1-20020a1709073e8100b007269615d14dmr3127650ejc.517.1658574041426; Sat, 23 Jul 2022 04:00:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658574041; cv=none; d=google.com; s=arc-20160816; b=I/oD18492nduZ12ufK12MfAb/CE3SuMISJuskY0YXBjJ1FOJH2OHqC5yi+wZ/UORap R4L09K6ttr6FQYnG55VWqdviVVgM+wSu6fyOw68sBYIkl+4NiKteD5blXzcj+JeXr5b/ RY3nh+oBPpWrj88ODpCpuJcqHLC7SRNp+6a2ENC7DyumvW7zbvrak/wmlD4kADuYzfDr 0G0IOsoudYm1JjZZFap/OVleWA7d0X3pUs2ROutwxTQFhUA4cSkJByhtM2hg0nbXndK5 YsgnYHsP4blUlhR4RSaTSjlFZYR/hThcHnML8pDq8DZR98Bi4TqFkaLgSdG0rQ+nW9YJ njyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/aYRsZl8OAKuKwyX0vWbYNzlw70efb84NYu9or47wdY=; b=w9Bdz+o7076WGNpfSNw9h2+4BcKfKUkMvZuY6hdT3W/VRVMKcBCqutKtQCGGyLDLqW MWrINXYFY5kvYyw24/tGXRh8STKLs06F6tMj2rraudXNSVRHRxvfE9VEFV9X/dmvlv9Z 0PI54g/yjEiRI/uSNn55PNVPeZVRHcALAZrjuLMCOizkoRLgEIlWtR+RpJZotbPmSqXN S8fZg8IkrU6ekDmFgCXiOjT7NlThnEF/whEFEU4kTnCKqXrFIORE3EDGiazjAXGE4iEs iE8P/7DGFjUVUrxe+r0Mu7aW64pXIjtgw1JlcjLf4pC0GAGSKQwvCvT88G/htfcBjbny zyrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PsVL7xjk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cw21-20020a170906479500b006e7fe1e4eb4si8774017ejc.847.2022.07.23.04.00.16; Sat, 23 Jul 2022 04:00:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PsVL7xjk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239613AbiGWKWt (ORCPT + 99 others); Sat, 23 Jul 2022 06:22:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239266AbiGWKWf (ORCPT ); Sat, 23 Jul 2022 06:22:35 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9531FF1D8A; Sat, 23 Jul 2022 03:11:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658571114; x=1690107114; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=rMa2OJS/UU2W2a1y38QJ76HuiC1jErjNS75ABX0n6eA=; b=PsVL7xjkU1AeYv5L+wcGltgGeiiua7+jH/fjUVeo3xD2yxdW2gD+9nQO 5gItBDuBYvr+j9nEtugYw1cazhSJtHPmXydlgPPHTe8qzC2K2vvykg4Fu XFTwqff2Kl+EyRul20AwG4cqIp8BxT26K0qsi3UFQ1LZiRJQL6FtVUtW2 G4eHLfpWEGrtSowhYqNaeIqNoyC76Dyr0AmyD7lns5pKz9OIi0Meswkbm 6SQYbrAk2YeHwNmOyj8FhUZJs+nQGPCcJ4eEuEOGmGqGaLv6CHQbgJymS mRGs9PjHMgXaLmkbt+8X1p5Q+/MokdPqMp4AM9Z+eL0KSS9a+hDfIJww5 w==; X-IronPort-AV: E=McAfee;i="6400,9594,10416"; a="286219664" X-IronPort-AV: E=Sophos;i="5.93,188,1654585200"; d="scan'208";a="286219664" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jul 2022 03:11:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,188,1654585200"; d="scan'208";a="666939418" Received: from lkp-server01.sh.intel.com (HELO e0eace57cfef) ([10.239.97.150]) by fmsmga004.fm.intel.com with ESMTP; 23 Jul 2022 03:11:17 -0700 Received: from kbuild by e0eace57cfef with local (Exim 4.96) (envelope-from ) id 1oFC6P-0002VN-0m; Sat, 23 Jul 2022 10:11:17 +0000 Date: Sat, 23 Jul 2022 18:11:12 +0800 From: kernel test robot To: Yevhen Orlov , netdev@vger.kernel.org Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Volodymyr Mytnyk , Taras Chornyi , Mickey Rachamim , Serhiy Pshyk , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andrew Lunn , Stephen Hemminger , linux-kernel@vger.kernel.org, Yevhen Orlov , Oleksandr Mazur Subject: Re: [PATCH net-next v2 6/9] net: marvell: prestera: Add heplers to interact with fib_notifier_info Message-ID: <202207231823.Q46D3E5G-lkp@intel.com> References: <20220721221148.18787-7-yevhen.orlov@plvision.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220721221148.18787-7-yevhen.orlov@plvision.eu> X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Yevhen, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on net-next/master] url: https://github.com/intel-lab-lkp/linux/commits/Yevhen-Orlov/net-marvell-prestera-add-nexthop-routes-offloading/20220722-061517 base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 5588d628027092e66195097bdf6835ddf64418b3 config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20220723/202207231823.Q46D3E5G-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 72686d68c137551cce816416190a18d45b4d4e2a) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel-lab-lkp/linux/commit/a6535f7f7b3aea14504cac208c170d413739d5f9 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Yevhen-Orlov/net-marvell-prestera-add-nexthop-routes-offloading/20220722-061517 git checkout a6535f7f7b3aea14504cac208c170d413739d5f9 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/net/ethernet/marvell/prestera/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/net/ethernet/marvell/prestera/prestera_router.c:274:25: warning: address of array 'fen6_info->rt->fib6_nh' will always evaluate to 'true' [-Wpointer-bool-conversion] return fen6_info->rt->fib6_nh ? ~~~~~~~~~~~~~~~^~~~~~~ ~ drivers/net/ethernet/marvell/prestera/prestera_router.c:466:10: warning: enumeration value 'PRESTERA_FIB_TYPE_UC_NH' not handled in switch [-Wswitch] switch (fc->lpm_info.fib_type) { ^~~~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/marvell/prestera/prestera_router.c:122:13: warning: unused function 'prestera_fib_info_is_direct' [-Wunused-function] static bool prestera_fib_info_is_direct(struct fib_notifier_info *info) ^ drivers/net/ethernet/marvell/prestera/prestera_router.c:135:13: warning: unused function 'prestera_fib_info_is_nh' [-Wunused-function] static bool prestera_fib_info_is_nh(struct fib_notifier_info *info) ^ drivers/net/ethernet/marvell/prestera/prestera_router.c:194:1: warning: unused function 'prestera_util_kern_n_is_reachable' [-Wunused-function] prestera_util_kern_n_is_reachable(u32 tb_id, ^ drivers/net/ethernet/marvell/prestera/prestera_router.c:206:13: warning: unused function 'prestera_util_kern_set_neigh_offload' [-Wunused-function] static void prestera_util_kern_set_neigh_offload(struct neighbour *n, ^ drivers/net/ethernet/marvell/prestera/prestera_router.c:216:1: warning: unused function 'prestera_util_kern_set_nh_offload' [-Wunused-function] prestera_util_kern_set_nh_offload(struct fib_nh_common *nhc, bool offloaded, bool trap) ^ drivers/net/ethernet/marvell/prestera/prestera_router.c:230:1: warning: unused function 'prestera_kern_fib_info_nhc' [-Wunused-function] prestera_kern_fib_info_nhc(struct fib_notifier_info *info, int n) ^ drivers/net/ethernet/marvell/prestera/prestera_router.c:262:12: warning: unused function 'prestera_kern_fib_info_nhs' [-Wunused-function] static int prestera_kern_fib_info_nhs(struct fib_notifier_info *info) ^ 9 warnings generated. vim +274 drivers/net/ethernet/marvell/prestera/prestera_router.c 261 262 static int prestera_kern_fib_info_nhs(struct fib_notifier_info *info) 263 { 264 struct fib6_entry_notifier_info *fen6_info; 265 struct fib_entry_notifier_info *fen4_info; 266 267 if (info->family == AF_INET) { 268 fen4_info = container_of(info, struct fib_entry_notifier_info, 269 info); 270 return fib_info_num_path(fen4_info->fi); 271 } else if (info->family == AF_INET6) { 272 fen6_info = container_of(info, struct fib6_entry_notifier_info, 273 info); > 274 return fen6_info->rt->fib6_nh ? 275 (fen6_info->rt->fib6_nsiblings + 1) : 0; 276 } 277 278 return 0; 279 } 280 -- 0-DAY CI Kernel Test Service https://01.org/lkp