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 AEABCC61DA3 for ; Tue, 21 Feb 2023 14:06:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234364AbjBUOGP (ORCPT ); Tue, 21 Feb 2023 09:06:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233109AbjBUOF4 (ORCPT ); Tue, 21 Feb 2023 09:05:56 -0500 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 62F0E2798A; Tue, 21 Feb 2023 06:05:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1676988333; x=1708524333; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=vOAna0uzbo95jCYytpMidt98s7XCpF33jjRE4hK3OY8=; b=IHbAF1LcF31lU4ASCrp4c7z5dUc4y4GtZoQPPbN5LchGRG48xYhF+1n4 XngkUr10xWKMB2woZROyzOIveYJ6lQmAc7FG7rLuXO40q6JkaF794wPgs akSP3+6LQHlrIBQWQXhM9RMIEkdpKqWipFI3JOqIPcL4uQUvQomXjw5y8 VE0/GoIuDhrt/uWsliIoan2ScUVpztw5n+XqxReQ2Adee5o1Ye/Av7W4s 3ESyeclqEmCVBo8EOl+kcT74CLDj4v+oBh8qHachu6U8l3EQ0DftmZIjU ZrF1vt0T4YLCuJs0JZfbh/2weEQ9bI14mXHWT8h0aMAkQarY2unsUiMiz g==; X-IronPort-AV: E=McAfee;i="6500,9779,10627"; a="320769167" X-IronPort-AV: E=Sophos;i="5.97,315,1669104000"; d="scan'208";a="320769167" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Feb 2023 06:05:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10627"; a="814517515" X-IronPort-AV: E=Sophos;i="5.97,315,1669104000"; d="scan'208";a="814517515" Received: from lkp-server01.sh.intel.com (HELO 4455601a8d94) ([10.239.97.150]) by fmsmga001.fm.intel.com with ESMTP; 21 Feb 2023 06:05:12 -0800 Received: from kbuild by 4455601a8d94 with local (Exim 4.96) (envelope-from ) id 1pUTGZ-000Epd-35; Tue, 21 Feb 2023 14:05:11 +0000 Date: Tue, 21 Feb 2023 22:04:52 +0800 From: kernel test robot To: Hangyu Hua , davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, ian.mcdonald@jandi.co.nz Cc: oe-kbuild-all@lists.linux.dev, dccp@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Hangyu Hua Subject: Re: [PATCH] net: dccp: delete redundant ackvec record in dccp_insert_options() Message-ID: <202302212123.tdzm6fp4-lkp@intel.com> References: <20230221092206.39741-1-hbh25y@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230221092206.39741-1-hbh25y@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Hangyu, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on net-next/master] [also build test WARNING on net/master horms-ipvs/master linus/master v6.2 next-20230221] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Hangyu-Hua/net-dccp-delete-redundant-ackvec-record-in-dccp_insert_options/20230221-172448 patch link: https://lore.kernel.org/r/20230221092206.39741-1-hbh25y%40gmail.com patch subject: [PATCH] net: dccp: delete redundant ackvec record in dccp_insert_options() config: ia64-allyesconfig (https://download.01.org/0day-ci/archive/20230221/202302212123.tdzm6fp4-lkp@intel.com/config) compiler: ia64-linux-gcc (GCC) 12.1.0 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/ea44b55ba82bbe3f35b51212bf839f507a30b70b git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Hangyu-Hua/net-dccp-delete-redundant-ackvec-record-in-dccp_insert_options/20230221-172448 git checkout ea44b55ba82bbe3f35b51212bf839f507a30b70b # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=ia64 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=ia64 SHELL=/bin/bash net/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202302212123.tdzm6fp4-lkp@intel.com/ All warnings (new ones prefixed by >>): net/dccp/options.c: In function 'dccp_insert_options': net/dccp/options.c:594:15: error: implicit declaration of function 'dccp_ackvec_lookup'; did you mean 'dccp_ackvec_input'? [-Werror=implicit-function-declaration] 594 | avr = dccp_ackvec_lookup(&av->av_records, DCCP_SKB_CB(skb)->dccpd_seq); | ^~~~~~~~~~~~~~~~~~ | dccp_ackvec_input >> net/dccp/options.c:594:13: warning: assignment to 'struct dccp_ackvec_record *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 594 | avr = dccp_ackvec_lookup(&av->av_records, DCCP_SKB_CB(skb)->dccpd_seq); | ^ net/dccp/options.c:596:25: error: 'dccp_ackvec_record_slab' undeclared (first use in this function); did you mean 'dccp_ackvec_record'? 596 | kmem_cache_free(dccp_ackvec_record_slab, avr); | ^~~~~~~~~~~~~~~~~~~~~~~ | dccp_ackvec_record net/dccp/options.c:596:25: note: each undeclared identifier is reported only once for each function it appears in cc1: some warnings being treated as errors vim +594 net/dccp/options.c 548 549 int dccp_insert_options(struct sock *sk, struct sk_buff *skb) 550 { 551 struct dccp_sock *dp = dccp_sk(sk); 552 struct dccp_ackvec *av = dp->dccps_hc_rx_ackvec; 553 struct dccp_ackvec_record *avr; 554 555 DCCP_SKB_CB(skb)->dccpd_opt_len = 0; 556 557 if (dp->dccps_send_ndp_count && dccp_insert_option_ndp(sk, skb)) 558 return -1; 559 560 if (DCCP_SKB_CB(skb)->dccpd_type != DCCP_PKT_DATA) { 561 562 /* Feature Negotiation */ 563 if (dccp_feat_insert_opts(dp, NULL, skb)) 564 return -1; 565 566 if (DCCP_SKB_CB(skb)->dccpd_type == DCCP_PKT_REQUEST) { 567 /* 568 * Obtain RTT sample from Request/Response exchange. 569 * This is currently used for TFRC initialisation. 570 */ 571 if (dccp_insert_option_timestamp(skb)) 572 return -1; 573 574 } else if (dccp_ackvec_pending(sk) && 575 dccp_insert_option_ackvec(sk, skb)) { 576 return -1; 577 } 578 } 579 580 if (dp->dccps_hc_rx_insert_options) { 581 if (ccid_hc_rx_insert_options(dp->dccps_hc_rx_ccid, sk, skb)) 582 goto delete_ackvec; 583 dp->dccps_hc_rx_insert_options = 0; 584 } 585 586 if (dp->dccps_timestamp_echo != 0 && 587 dccp_insert_option_timestamp_echo(dp, NULL, skb)) 588 goto delete_ackvec; 589 590 dccp_insert_option_padding(skb); 591 return 0; 592 593 delete_ackvec: > 594 avr = dccp_ackvec_lookup(&av->av_records, DCCP_SKB_CB(skb)->dccpd_seq); 595 list_del(&avr->avr_node); 596 kmem_cache_free(dccp_ackvec_record_slab, avr); 597 return -1; 598 } 599 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests