From mboxrd@z Thu Jan 1 00:00:00 1970 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 7A533C433EF for ; Sun, 13 Feb 2022 22:02:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238468AbiBMWCT (ORCPT ); Sun, 13 Feb 2022 17:02:19 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:59976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234083AbiBMWCS (ORCPT ); Sun, 13 Feb 2022 17:02:18 -0500 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C47585419C for ; Sun, 13 Feb 2022 14:02:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644789731; x=1676325731; h=date:from:to:cc:subject:message-id:mime-version; bh=E/WDvs2/SHwOkJ7U0n3lu62XoYrzHXpTAEn/7+c4wl4=; b=kpJquAfmBI0kpqwCJSuOmRZJkMkftbGx6qGfUfoasiNxX9HHJot7MlZM IwYp12baNWeJlgGB9C8ojv+UN3wCe79jmg0Iz9N9HIPJTojCwZvzHcP2W XFgkezjWA8yxbIaN4GNpTTIfhaBBPYTjKw6gZXu5P4FHg/9Xi2rldMYeM CvVVMHYwEs1KAg8J1/iYpbviJdqVcktWHs5F3DAdzZ13HOSnbiBliHsHF FL3pX0hqSuSrIF2acMeXyzbfx2W22ZVX2hSFBph6V+cU812erpy9lnyhu 8npf2x30GOJ2mSY3onV+wVVNc4yWqiWHTKJIEf0mUDhx7zZQBlaqdDQv7 A==; X-IronPort-AV: E=McAfee;i="6200,9189,10257"; a="237387155" X-IronPort-AV: E=Sophos;i="5.88,366,1635231600"; d="scan'208";a="237387155" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Feb 2022 14:02:11 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,366,1635231600"; d="scan'208";a="527710736" Received: from lkp-server01.sh.intel.com (HELO d95dc2dabeb1) ([10.239.97.150]) by orsmga007.jf.intel.com with ESMTP; 13 Feb 2022 14:02:10 -0800 Received: from kbuild by d95dc2dabeb1 with local (Exim 4.92) (envelope-from ) id 1nJMwb-0007t6-Pw; Sun, 13 Feb 2022 22:02:09 +0000 Date: Mon, 14 Feb 2022 06:02:01 +0800 From: kernel test robot To: Toke =?iso-8859-1?Q?H=F8iland-J=F8rgensen?= Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: [toke:xdp-queueing-02 5/11] kernel/bpf/pifomap.c:197:6: warning: no previous prototype for 'pifo_set_bit' Message-ID: <202202140539.izxJMSE3-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tree: https://git.kernel.org/pub/scm/linux/kernel/git/toke/linux.git xdp-queueing-02 head: 26dde94b299bc277f7a99a99ba64b4363964e833 commit: 34cc5abfbae0dfcb6967c54cb80f7595bc9c5c37 [5/11] Add a PIFO map type for queueing packets config: i386-randconfig-a003 (https://download.01.org/0day-ci/archive/20220214/202202140539.izxJMSE3-lkp@intel.com/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=1 build): # https://git.kernel.org/pub/scm/linux/kernel/git/toke/linux.git/commit/?id=34cc5abfbae0dfcb6967c54cb80f7595bc9c5c37 git remote add toke https://git.kernel.org/pub/scm/linux/kernel/git/toke/linux.git git fetch --no-tags toke xdp-queueing-02 git checkout 34cc5abfbae0dfcb6967c54cb80f7595bc9c5c37 # save the config file to linux build tree mkdir build_dir make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> kernel/bpf/pifomap.c:197:6: warning: no previous prototype for 'pifo_set_bit' [-Wmissing-prototypes] 197 | void pifo_set_bit(struct bpf_pifo_queue *queue, u32 rank) | ^~~~~~~~~~~~ >> kernel/bpf/pifomap.c:208:6: warning: no previous prototype for 'pifo_clear_bit' [-Wmissing-prototypes] 208 | void pifo_clear_bit(struct bpf_pifo_queue *queue, u32 rank) | ^~~~~~~~~~~~~~ vim +/pifo_set_bit +197 kernel/bpf/pifomap.c 196 > 197 void pifo_set_bit(struct bpf_pifo_queue *queue, u32 rank) 198 { 199 u32 i; 200 201 for (i = queue->levels; i > 0; i--) { 202 unsigned long *bitmap = queue->lvl_bitmap[i-1]; 203 set_bit(rank, bitmap); 204 rank /= BITS_PER_TYPE(long); 205 } 206 } 207 > 208 void pifo_clear_bit(struct bpf_pifo_queue *queue, u32 rank) 209 { 210 u32 i; 211 212 for (i = queue->levels; i > 0; i--) { 213 unsigned long *bitmap = queue->lvl_bitmap[i-1]; 214 clear_bit(rank, bitmap); 215 rank /= BITS_PER_TYPE(long); 216 217 // another bit is set in this word, don't clear bit in higher 218 // level 219 if (*(bitmap + rank)) 220 break; 221 } 222 } 223 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org