From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E17471E1A16 for ; Wed, 19 Mar 2025 14:37:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742395043; cv=none; b=VXjYOW8JIrkey9isR5KhY1L3Nq2pWuU8mVbLDaAZH3puhvlp3drQQVpdgvdlPpn7EEaoWD4Vi1sihPxCUqYnuSVzotfjebxOh1tLLPP9hAWBlhfXgAwDGnHtBI5znTeG5ANPRaz84ruRyZXIOh8WibNlAovDQtX5bOGp9Y3mmG4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742395043; c=relaxed/simple; bh=UeUag6u+mlyY/+Xz8cSIJV4pmTqdRgd7JuCvEy76i7U=; h=From:Date:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Cs6HpFN0mcvI40+m+qnpmbbMcA6cASQUaI19Zj5Bm92Ysj1cFF9+kvWUg7Extla6F7b0lXij6bqgoFJB3IylDfazu53Y6XD/R/6ZRSi/Ny8ntteYwXtYN6Ip452esUJtiuyQnrJWJugG+yRRsOFSKnniaVo9BcQsU82m1pyPU6M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=kO76iTo6; arc=none smtp.client-ip=209.85.221.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="kO76iTo6" Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-39127512371so4226127f8f.0 for ; Wed, 19 Mar 2025 07:37:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742395040; x=1742999840; darn=lists.linux.dev; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:from:to:cc:subject:date:message-id:reply-to; bh=qwWz96WiNV/Z94zFabBGjqU24HjPe/PcBjDRR61jt5s=; b=kO76iTo6mUvVMENLGQihiDjnU88wQ27yCt9eDrQ1OZTO0f4Tbyb9LoTb+eDl/5q5co 2NG4FLL9g7sEZANxnUAE1oQkX6nOyY6GMX7BzEble9uVFkQHwlLo94nSu2EsXxz2vPlw wZu9Ynins38/89RhcdRhpFuUkyr7QYDUBK6nX1mH+phNP8oMElEdwNM379OlztU+9jg/ vCz9O/EIeIlxBLzVvqdlzxQEghsfvML1YPYaQneAK1V5wq9UIaEA3LyJznJfIynZIX7S lsLOrdcsvkCcSFG1OmAKxRGgWk6MbXs7UKrFGUPydPTiyPuauUQiotn3fsfRMr83LQlj OAhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742395040; x=1742999840; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=qwWz96WiNV/Z94zFabBGjqU24HjPe/PcBjDRR61jt5s=; b=ZWX0H42Iynq4BYVQIB1GEPWs2cMA1fXCFuBtXLlyu6QGJnImwPVknqveTGeWviZ8p/ Dvc4OWFl8j97xGCxIZ//CkoDcQcu3Q8Of3PK1jOrIdZfHhi+1ucZzxrbP8l4+eJarf7W eQjqAgZ+QZ+A3J0bRerOWDcAYJLilmROLAHkPEjalG4lp9/QxFzDf/Mm2FSjyw/vVOqN 4ZFoRcDzSHKrDuPmTZV4bqbpcB4HRBGcwcNpkfA9z39o4ycb4oHGvXnyz9jnHQBRQBUS +ZWECiHo6DeP24/TybYDA0fP6Tp3pEvhOJKqFHpP0O5HkBUXY53IirkynOCx363Zq9hn sqLw== X-Forwarded-Encrypted: i=1; AJvYcCXhGVUCZQtoY7fYhqumZJANF9f6FucSqa/ksVN7OrS4U9vVJux+wpUrE1KQ0wBKnIUpCfBoNI6QdglHGv27@lists.linux.dev X-Gm-Message-State: AOJu0YzsUTcU2gXsjxHOfxhlC8HtHtoFYrYeWiRjAzSgyIVfQH03EVFD FdI9voF3+aiJFzoEm4k4nJ4JuukQFjx1kywaWEVzjnKcAljg5PlS X-Gm-Gg: ASbGncucIhTVo8bMyfAhlzEpyWZhfgOG0tcWC/92frbEDBV4trAxyahYFVSSUVtv1iq rr/NVmCRpTL/YGl6xeVhaKapQ4LxNKhhkGncU+5Sev/cp98MtbhPhQtxr2Vmbmuyl+i+ukIWpCY afoirQ91mzA6WlwseZgUQ4rNKY4N/FcihlH7oVfT1zrCX2sHoDQHXoCs5zDYjQkvX7cRO3lIaXS 1Znou2sGMudz2+oZ3W4W4m2wzsTkNK2AeYePifkOPD/hkE935P3vxHRnfPMKEYZblkcrlJU9+V8 hfEck6yx7K4fa/8RBjw4oRAvNmTnXOGcqBU/ew== X-Google-Smtp-Source: AGHT+IFtIK5/HoxjyU6cRp8SW0XpNS59br2BtHuZQtnjwPjJXipWpI2kDpDSc48YZNj/b8KWExMBMQ== X-Received: by 2002:a05:6000:2711:b0:38f:2b77:a9f3 with SMTP id ffacd0b85a97d-39973b027e5mr2188360f8f.43.1742395039871; Wed, 19 Mar 2025 07:37:19 -0700 (PDT) Received: from krava ([2a00:102a:401d:cac0:6b77:a4c1:6f71:6634]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-395c8881544sm20751303f8f.43.2025.03.19.07.37.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Mar 2025 07:37:19 -0700 (PDT) From: Jiri Olsa X-Google-Original-From: Jiri Olsa Date: Wed, 19 Mar 2025 15:37:16 +0100 To: kernel test robot Cc: Tony Ambardar , oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Daniel Borkmann Subject: Re: net/bpf/test_run.c:511:1: warning: 'retain' attribute ignored Message-ID: References: <202503191909.SHOCLBzK-lkp@intel.com> Precedence: bulk X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202503191909.SHOCLBzK-lkp@intel.com> On Wed, Mar 19, 2025 at 07:30:45PM +0800, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > head: 81e4f8d68c66da301bb881862735bd74c6241a19 > commit: 7bdcedd5c8fb88e7176b93812b139eca5fe0aa46 bpf: Harden __bpf_kfunc tag against linker kfunc removal > date: 9 months ago > config: mips-allmodconfig (https://download.01.org/0day-ci/archive/20250319/202503191909.SHOCLBzK-lkp@intel.com/config) > compiler: mips-linux-gcc (GCC) 11.5.0 > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250319/202503191909.SHOCLBzK-lkp@intel.com/reproduce) > > If you fix the issue in a separate patch/commit (i.e. not just a new version of > the same patch/commit), kindly add following tags > | Reported-by: kernel test robot > | Closes: https://lore.kernel.org/oe-kbuild-all/202503191909.SHOCLBzK-lkp@intel.com/ > > All warnings (new ones prefixed by >>): hi, we hit similar issue before: https://lore.kernel.org/bpf/CAMuHMdUaYP3-2JHk-OE9B-AWNU3ikhBdLyWDm0R8DwQpUS9eCw@mail.gmail.com/ solution was to upgrade gcc jirka > > >> net/bpf/test_run.c:511:1: warning: 'retain' attribute ignored [-Wattributes] > 511 | { > | ^ > net/bpf/test_run.c:557:1: warning: 'retain' attribute ignored [-Wattributes] > 557 | { > | ^ > net/bpf/test_run.c:566:1: warning: 'retain' attribute ignored [-Wattributes] > 566 | { > | ^ > net/bpf/test_run.c:573:1: warning: 'retain' attribute ignored [-Wattributes] > 573 | { > | ^ > net/bpf/test_run.c:579:1: warning: 'retain' attribute ignored [-Wattributes] > 579 | { > | ^ > net/bpf/test_run.c:608:1: warning: 'retain' attribute ignored [-Wattributes] > 608 | { > | ^ > net/bpf/test_run.c:613:1: warning: 'retain' attribute ignored [-Wattributes] > 613 | { > | ^ > net/bpf/test_run.c:619:1: warning: 'retain' attribute ignored [-Wattributes] > 619 | { > | ^ > net/bpf/test_run.c:623:1: warning: 'retain' attribute ignored [-Wattributes] > 623 | { > | ^ > -- > >> net/core/filter.c:11863:1: warning: 'retain' attribute ignored [-Wattributes] > 11863 | { > | ^ > net/core/filter.c:11876:1: warning: 'retain' attribute ignored [-Wattributes] > 11876 | { > | ^ > net/core/filter.c:11889:1: warning: 'retain' attribute ignored [-Wattributes] > 11889 | { > | ^ > net/core/filter.c:11910:1: warning: 'retain' attribute ignored [-Wattributes] > 11910 | { > | ^ > net/core/filter.c:12096:1: warning: 'retain' attribute ignored [-Wattributes] > 12096 | { > | ^ > -- > >> net/core/xdp.c:713:1: warning: 'retain' attribute ignored [-Wattributes] > 713 | { > | ^ > net/core/xdp.c:736:1: warning: 'retain' attribute ignored [-Wattributes] > 736 | { > | ^ > net/core/xdp.c:769:1: warning: 'retain' attribute ignored [-Wattributes] > 769 | { > | ^ > -- > >> net/ipv4/tcp_cong.c:455:1: warning: 'retain' attribute ignored [-Wattributes] > 455 | { > | ^ > net/ipv4/tcp_cong.c:469:1: warning: 'retain' attribute ignored [-Wattributes] > 469 | { > | ^ > net/ipv4/tcp_cong.c:495:1: warning: 'retain' attribute ignored [-Wattributes] > 495 | { > | ^ > net/ipv4/tcp_cong.c:514:1: warning: 'retain' attribute ignored [-Wattributes] > 514 | { > | ^ > net/ipv4/tcp_cong.c:522:1: warning: 'retain' attribute ignored [-Wattributes] > 522 | { > | ^ > -- > >> net/ipv4/fou_bpf.c:46:1: warning: 'retain' attribute ignored [-Wattributes] > 46 | { > | ^ > net/ipv4/fou_bpf.c:88:1: warning: 'retain' attribute ignored [-Wattributes] > 88 | { > | ^ > -- > >> net/ipv4/tcp_bbr.c:300:1: warning: 'retain' attribute ignored [-Wattributes] > 300 | { > | ^ > net/ipv4/tcp_bbr.c:333:1: warning: 'retain' attribute ignored [-Wattributes] > 333 | { > | ^ > net/ipv4/tcp_bbr.c:1028:1: warning: 'retain' attribute ignored [-Wattributes] > 1028 | { > | ^ > net/ipv4/tcp_bbr.c:1040:1: warning: 'retain' attribute ignored [-Wattributes] > 1040 | { > | ^ > net/ipv4/tcp_bbr.c:1082:1: warning: 'retain' attribute ignored [-Wattributes] > 1082 | { > | ^ > net/ipv4/tcp_bbr.c:1091:1: warning: 'retain' attribute ignored [-Wattributes] > 1091 | { > | ^ > net/ipv4/tcp_bbr.c:1102:1: warning: 'retain' attribute ignored [-Wattributes] > 1102 | { > | ^ > net/ipv4/tcp_bbr.c:1130:1: warning: 'retain' attribute ignored [-Wattributes] > 1130 | { > | ^ > -- > >> net/ipv4/tcp_cubic.c:130:1: warning: 'retain' attribute ignored [-Wattributes] > 130 | { > | ^ > net/ipv4/tcp_cubic.c:143:1: warning: 'retain' attribute ignored [-Wattributes] > 143 | { > | ^ > net/ipv4/tcp_cubic.c:325:1: warning: 'retain' attribute ignored [-Wattributes] > 325 | { > | ^ > net/ipv4/tcp_cubic.c:342:1: warning: 'retain' attribute ignored [-Wattributes] > 342 | { > | ^ > net/ipv4/tcp_cubic.c:359:1: warning: 'retain' attribute ignored [-Wattributes] > 359 | { > | ^ > net/ipv4/tcp_cubic.c:449:1: warning: 'retain' attribute ignored [-Wattributes] > 449 | { > | ^ > -- > >> net/ipv4/tcp_dctcp.c:90:1: warning: 'retain' attribute ignored [-Wattributes] > 90 | { > | ^ > net/ipv4/tcp_dctcp.c:119:1: warning: 'retain' attribute ignored [-Wattributes] > 119 | { > | ^ > net/ipv4/tcp_dctcp.c:128:1: warning: 'retain' attribute ignored [-Wattributes] > 128 | { > | ^ > net/ipv4/tcp_dctcp.c:184:1: warning: 'retain' attribute ignored [-Wattributes] > 184 | { > | ^ > net/ipv4/tcp_dctcp.c:194:1: warning: 'retain' attribute ignored [-Wattributes] > 194 | { > | ^ > net/ipv4/tcp_dctcp.c:244:1: warning: 'retain' attribute ignored [-Wattributes] > 244 | { > | ^ > -- > >> fs/verity/measure.c:121:1: warning: 'retain' attribute ignored [-Wattributes] > 121 | { > | ^ > > > vim +/retain +511 net/bpf/test_run.c > > 391145ba2accc4 Dave Marchevsky 2023-10-31 509 > 400031e05adfce David Vernet 2023-02-01 510 __bpf_kfunc int bpf_fentry_test1(int a) > faeb2dce084aff Alexei Starovoitov 2019-11-14 @511 { > faeb2dce084aff Alexei Starovoitov 2019-11-14 512 return a + 1; > faeb2dce084aff Alexei Starovoitov 2019-11-14 513 } > 46565696434095 Kumar Kartikeya Dwivedi 2022-01-14 514 EXPORT_SYMBOL_GPL(bpf_fentry_test1); > faeb2dce084aff Alexei Starovoitov 2019-11-14 515 > > :::::: The code at line 511 was first introduced by commit > :::::: faeb2dce084aff92d466c6ce68481989b815435b bpf: Add kernel test functions for fentry testing > > :::::: TO: Alexei Starovoitov > :::::: CC: Daniel Borkmann > > -- > 0-DAY CI Kernel Test Service > https://github.com/intel/lkp-tests/wiki