Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6261064rdb; Thu, 14 Dec 2023 12:55:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IFv/NSNOSDRScEnsO1/5zrT/QF3L/UN57+sZLiAdokh1F2Ui0hOU7oG/r0Z7nynt7w0Ketz X-Received: by 2002:a05:6e02:1587:b0:35d:59a2:bd6 with SMTP id m7-20020a056e02158700b0035d59a20bd6mr11624092ilu.108.1702587312009; Thu, 14 Dec 2023 12:55:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702587311; cv=none; d=google.com; s=arc-20160816; b=aqtO7tdwHo63zhLPu+aSNlpqlXKgoAxGO5JuedFhd3VlTHeXxI90t0E4dmeSeaIsLa oga0CGrFYjKoTmo8abnj4TyMWOp75F2r0sP2Cb3DmmNzTJwwq+ZAnJ4DtqEb+2tqbS3m 4FeW1H5oH+gKhnVxvNaw9i+HmVzE+CGUwlzXcPVfphFZAVQpFgpNom42tLE+E+4vkmEL HSXNQpRnuugR16bmSbbaeGGzw5E2KXsTVRR0CxBbhB3pEla3OY5yVF5jHOiLq7KIjbmJ 0mfuEL7/kJZSeZ6As/+GSzHdvimyfo32xy9p+584R3psWV3aIILuX+ONws4U7y3crRlj LT8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=mL1W/mHwa3h97DuEHSbE9Tc7vTgyN+DToRS1zJ/ScEs=; fh=6cWU96XCamXw8J2Hwbw4k5cU/D4vpDxSX3ooIYBNBqU=; b=RFi+7PT/66XGN+ozSsiPcLGqeTgy6zsJdmRGNVRLGsyqJONvwyS1hNYV2Rmow18hrK RsxK2zocXgLaDj7RsLvlB6ZpD+ULkxkmVFfhwGLuDl++TPpjyIyxKxNoo0JsverDFLNk 7h/ObJHf2JLl3FM+DC4UrOEEYJOkL5OgX+iXLC7DV3cgYqhRDN5wR23CwrZK6hX2FMh1 ZPG6XVAu2EEXwSAO7Ex0d70Fl0Km/Vyo5B9iMtQqt3ExxEksS7eC8nebJevmp1hCzSd8 Lh4PpZNQ2dsxLJqYbyDC/wWyfVH45qqRP1CvssOMC53Y6dYeBu9oRo0LK5RJr+VGpUId WuUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QY2qj9TL; spf=pass (google.com: domain of linux-kernel+bounces-95-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id bw42-20020a056a0204aa00b005bd2713d3a1si12315632pgb.650.2023.12.14.12.55.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 12:55:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-95-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QY2qj9TL; spf=pass (google.com: domain of linux-kernel+bounces-95-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 8CAECB21ABC for ; Thu, 14 Dec 2023 20:55:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 242A56E2B5; Thu, 14 Dec 2023 20:54:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="QY2qj9TL" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A2C176DD13 for ; Thu, 14 Dec 2023 20:54:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702587257; x=1734123257; h=date:from:to:cc:subject:message-id:mime-version; bh=5RFrTiDkgQjFafKopHq8ArNGfJEb513KvmN0cOMPiFk=; b=QY2qj9TLvILRHh+f4a6uogQAuLgNHtqLgconcVi81xghXsgkg8Z+myR8 N2ZJkTT3diwbi63o1o5GNHUVYKbweELjprWcFf0Q+oLquwgLIOK9hEPTg kllHQPE8Hi+VEvr1zEncqJKXnhVBESrz3MVA6/DLQBKyL0pXq4UxZmG/m zs/wgbHDxowrIgW8Ns87Qw4Z64hRvtpP2CEHbNDMVuQc/qroL68qEj88c 3rz/Unkq2lEfVDs92/9BeHrowGTlrcvt9IkIwas6712/67Ck61GBIA6LL EDCQfEcvEyLqJ/E4snpQvcPMwaapPIff9ky0A4080FUOeD7+2gzooTpMM w==; X-IronPort-AV: E=McAfee;i="6600,9927,10924"; a="13876901" X-IronPort-AV: E=Sophos;i="6.04,276,1695711600"; d="scan'208";a="13876901" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Dec 2023 12:54:16 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10924"; a="947719009" X-IronPort-AV: E=Sophos;i="6.04,276,1695711600"; d="scan'208";a="947719009" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by orsmga005.jf.intel.com with ESMTP; 14 Dec 2023 12:54:13 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1rDsih-000Mbh-1T; Thu, 14 Dec 2023 20:54:11 +0000 Date: Fri, 15 Dec 2023 04:53:19 +0800 From: kernel test robot To: Kees Cook Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Andrew Morton , Linux Memory Management List , "Gustavo A. R. Silva" , Peter Oberparleiter Subject: kernel/gcov/fs.c:103: warning: Excess struct member 'buffer' description in 'gcov_iterator' Message-ID: <202312150432.oBngC94A-lkp@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 5bd7ef53ffe5ca580e93e74eb8c81ed191ddc4bd commit: fbd126f5a658b92c7f6af986a6d89cf5e5693268 gcov: annotate struct gcov_iterator with __counted_by date: 8 weeks ago config: i386-buildonly-randconfig-001-20231214 (https://download.01.org/0day-ci/archive/20231215/202312150432.oBngC94A-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-12) 11.3.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231215/202312150432.oBngC94A-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/202312150432.oBngC94A-lkp@intel.com/ All warnings (new ones prefixed by >>): >> kernel/gcov/fs.c:103: warning: Excess struct member 'buffer' description in 'gcov_iterator' vim +103 kernel/gcov/fs.c 7a1d55b987dfcb Johannes Berg 2021-05-06 90 7a1d55b987dfcb Johannes Berg 2021-05-06 91 /** 7a1d55b987dfcb Johannes Berg 2021-05-06 92 * struct gcov_iterator - specifies current file position in logical records 7a1d55b987dfcb Johannes Berg 2021-05-06 93 * @info: associated profiling data 7a1d55b987dfcb Johannes Berg 2021-05-06 94 * @buffer: buffer containing file data 7a1d55b987dfcb Johannes Berg 2021-05-06 95 * @size: size of buffer 7a1d55b987dfcb Johannes Berg 2021-05-06 96 * @pos: current position in file 7a1d55b987dfcb Johannes Berg 2021-05-06 97 */ 7a1d55b987dfcb Johannes Berg 2021-05-06 98 struct gcov_iterator { 7a1d55b987dfcb Johannes Berg 2021-05-06 99 struct gcov_info *info; 7a1d55b987dfcb Johannes Berg 2021-05-06 100 size_t size; 7a1d55b987dfcb Johannes Berg 2021-05-06 101 loff_t pos; fbd126f5a658b9 Kees Cook 2023-09-22 102 char buffer[] __counted_by(size); 7a1d55b987dfcb Johannes Berg 2021-05-06 @103 }; 7a1d55b987dfcb Johannes Berg 2021-05-06 104 :::::: The code at line 103 was first introduced by commit :::::: 7a1d55b987dfcbddecdb67eecc76fe555d4348ba gcov: combine common code :::::: TO: Johannes Berg :::::: CC: Linus Torvalds -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki