From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) (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 ED5237F for ; Sun, 3 Sep 2023 12:26:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1693744016; x=1725280016; h=date:from:to:cc:subject:message-id:mime-version; bh=sImI2bZtrmTvhVhNIAKYILLpvsT0DMKOeYFmGWINVOo=; b=RkmQKTcxLrkVZ277cmMuc6tEUtwFr2559d1DSsfmjUov6PpO2kCdrioI 93112tNrhoTv7/zYOA3qijnNlWyI7rBT59dbQjMXs3MXKJiyXy6oGEt9+ w4d7lUNWaf2CdrWFseSsXANC+yEnQAI/ch7Y33BWrpUSXgFWF+6uuV6wH 79mjYFRq2bz7st/0cIPjEdnDT8x+zyIlkqVIObbuEOq/XcNTYTgUhTa1L x3cSqMpYf7L4Jon1UxIk5YBrdHBHmzkm6ySFx8jt6Ameg6krlUooNL+HI Jx2zjxNuOR6aPmE2hLjOMjbJtiR6lgCtdJudgCBQ9OVERSuYU+DqAJg23 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10822"; a="376381995" X-IronPort-AV: E=Sophos;i="6.02,224,1688454000"; d="scan'208";a="376381995" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Sep 2023 05:26:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10822"; a="830620683" X-IronPort-AV: E=Sophos;i="6.02,224,1688454000"; d="scan'208";a="830620683" Received: from lkp-server01.sh.intel.com (HELO 5d8055a4f6aa) ([10.239.97.150]) by FMSMGA003.fm.intel.com with ESMTP; 03 Sep 2023 05:26:55 -0700 Received: from kbuild by 5d8055a4f6aa with local (Exim 4.96) (envelope-from ) id 1qcmBo-00039Z-1i; Sun, 03 Sep 2023 12:26:52 +0000 Date: Sun, 3 Sep 2023 20:26:35 +0800 From: kernel test robot To: Jim Cromie Cc: oe-kbuild-all@lists.linux.dev Subject: [jimc:dd-fix-5e 24/24] lib/dynamic_debug.c:935:5: warning: no previous prototype for '__dynamic_emit_prefix' Message-ID: <202309032002.ZOwLocfG-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 tree: https://github.com/jimc/linux.git dd-fix-5e head: 69b58a07013be2ff9c21e29b48cce3de6d963f11 commit: 69b58a07013be2ff9c21e29b48cce3de6d963f11 [24/24] dyndbg: use assoc-array to cache prefixes config: x86_64-rhel-8.3 (https://download.01.org/0day-ci/archive/20230903/202309032002.ZOwLocfG-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230903/202309032002.ZOwLocfG-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/202309032002.ZOwLocfG-lkp@intel.com/ All warnings (new ones prefixed by >>): >> lib/dynamic_debug.c:935:5: warning: no previous prototype for '__dynamic_emit_prefix' [-Wmissing-prototypes] 935 | int __dynamic_emit_prefix(struct _ddebug *desc, char *buf, int pos) | ^~~~~~~~~~~~~~~~~~~~~ vim +/__dynamic_emit_prefix +935 lib/dynamic_debug.c 934 > 935 int __dynamic_emit_prefix(struct _ddebug *desc, char *buf, int pos) 936 { 937 int pos_after_tid; 938 char *prefix; 939 struct assoc_array_edit *edit; 940 941 prefix = assoc_array_find(&ddebug_prefix_cache, &ddprefix_aa_ops, desc); 942 if (prefix) { 943 pos += snprintf(buf + pos, remaining(pos), "%s:", prefix); 944 return pos; 945 } 946 pos_after_tid = pos; 947 948 if (desc->flags & _DPRINTK_FLAGS_INCL_MODNAME) 949 pos += snprintf(buf + pos, remaining(pos), "%s:", 950 desc->modname); 951 if (desc->flags & _DPRINTK_FLAGS_INCL_FUNCNAME) 952 pos += snprintf(buf + pos, remaining(pos), "%s:", 953 desc->function); 954 955 prefix = kstrdup(buf + pos_after_tid, GFP_KERNEL); 956 edit = assoc_array_insert(&ddebug_prefix_cache, &ddprefix_aa_ops, desc, prefix); 957 958 v4pr_info("caching prefix: %s for %px\n", prefix, desc); 959 desc->flags |= _DPRINTK_FLAGS_PREFIX_CACHED; 960 assoc_array_apply_edit(edit); 961 962 return pos; 963 } 964 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki