Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp1346495rdb; Fri, 19 Jan 2024 17:00:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IFG5HMvpJYyLft+r/WqmmbWLWsiBX3RdeL9FsMCFUAZf8vBRtU1g9R44ZXa8/qkHtGV1o9X X-Received: by 2002:a0c:e08a:0:b0:683:bafc:c6f4 with SMTP id l10-20020a0ce08a000000b00683bafcc6f4mr791403qvk.39.1705712436857; Fri, 19 Jan 2024 17:00:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705712436; cv=pass; d=google.com; s=arc-20160816; b=wh8584UgqhP7IBEuN/S+0BdWqh42vHCr//VAH6hlLcEhLV7uo2wyBEHaORhACD3hO1 fh38nsXTkLT4wihgrMY27cVYBe391nQqMjZ+fPARrZTu+Yyl8Ylc/vTYr2j+maWyFl7r 56ld7SUdzirYPFWSxecTW9Aif24nJbI08qcakJAP3BLKE2HgxNR4pUWwLVlxf8/dc7Ph DCeqEvgO0CvP+JEaiioOyrEIvlCr5jc3IX7ciXDWwV9ulpbsgUygw5h8aO0NGB5Z71rd Rvky0wcuBSUa+0wvtMqVWuQ5XkDPLwnHIxsPGyJ0jTl+x1TWBKMqHdllN6JQtomJjpLt NpIg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=8k+U1h9QJ7jIWGFm7K8KHJojW0/lOYCjXdjpYXM53nI=; fh=23iLEOMs7D1/RgHkn7GqWycg9WDzPu9TRWtVYkQXGgs=; b=jMBY/SUHVKROmfixW+/0lxyd56mLKYLlKM4mUUc+fp698Qmgsni47teCuxpcL1SWZM n/1o/iBD9Ls5sFrJrvrMVsOiQyAxnTuL0Xzq/3BqAQj7x4bbDVdI4+4lTOyr3/jBfWKs KwlknKqa3pbN8OQ1FPYD3v5AkasTFc+kzSdZkABY60CL2+/P4IN9xTr0h+dJzPm2RDta Pc/ugmdKScre3lXOMn+jJmOXYts4jGPrnpDS5qEw+tbITO01id+T6KLowq5vDzWwKYkK BSe22nRR09qBZ+m1nCGYBoXVUaJ0x8RseHkPCJZYDAH5oAQI38nPJZ6J3sAxkwjrC/LF ivhQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DEoSlEre; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-31656-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31656-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id u1-20020a0cb401000000b0067ab557459fsi482185qve.305.2024.01.19.17.00.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 17:00:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31656-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DEoSlEre; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-31656-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31656-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 9CBE61C21219 for ; Sat, 20 Jan 2024 01:00:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 34587A44; Sat, 20 Jan 2024 01:00:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="DEoSlEre" 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 263AF7EE; Sat, 20 Jan 2024 01:00:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.55.52.115 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705712428; cv=none; b=qaqnEhb4Bzir5MEns7aY3oOViNUilQP+b56gecTIBMRDCTuXVKSAp72DyQuIKHo68TG9i1Bn6m4Oo+ddBuDzZFsI0r6cPUcuhzPO7UoAumZljee+1810GdlazswW5qKR1mmO1m0tJKHjgl2vVnRbIdNSCM0d0V/DkE2mKqNcLQ4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705712428; c=relaxed/simple; bh=UU78AjLsRGIao+d+hsqQWmqvxCN9e2tC4cM0iwRrczs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=IJmyZX5LodRNUqrULBFvfD9kvcHyh3hl5rhbUa4VC5/m+gZOLjsj2fa+sFQyUMEJnVAd2pd4y+45X8MqUggof9aQ3IwhFVGf6VcGwde1Q5RRAaH3AWXQ/7ikirwSzSyKOImE0g9MkxFsjxTCi5NyhCs/cfbXFGMmzaGz5jNJVZY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=DEoSlEre; arc=none smtp.client-ip=192.55.52.115 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=1705712423; x=1737248423; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=UU78AjLsRGIao+d+hsqQWmqvxCN9e2tC4cM0iwRrczs=; b=DEoSlEreVENsrCEqqHLvIV5HDmfCCo3BkRJYXYXPpzsMVjNNWzBhksgG VdYim1hhFULovhCIBotXdGzgClv5Jm7qC1dHFt/IOjDEriBShR/0ESy7r LF2/sK/ORmRdz/mtvFHTdLooxBT6fQZhL9mAtlfUBQ1sRh7qncl4pOPy/ AMGUFCF38iu1P6zqRZ+bSJLrCcNGoZM6AdoU3yQ8PHmQIeH3zOmNClHT1 q0CrCaCkmEL6s4jUFArrH+oDmQTMFMP4g0BMJUgllgbWu/pNABseHu31Q qIN7oP6ZzdKqCQYeV4fVnahWeq6Rp8JY6KBLz7J0FKdbGCMErTdDZ0TKZ A==; X-IronPort-AV: E=McAfee;i="6600,9927,10957"; a="400543612" X-IronPort-AV: E=Sophos;i="6.05,206,1701158400"; d="scan'208";a="400543612" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jan 2024 17:00:22 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10957"; a="1032089546" X-IronPort-AV: E=Sophos;i="6.05,206,1701158400"; d="scan'208";a="1032089546" Received: from lkp-server01.sh.intel.com (HELO 961aaaa5b03c) ([10.239.97.150]) by fmsmga006.fm.intel.com with ESMTP; 19 Jan 2024 17:00:20 -0800 Received: from kbuild by 961aaaa5b03c with local (Exim 4.96) (envelope-from ) id 1rQzic-0004YA-0q; Sat, 20 Jan 2024 01:00:18 +0000 Date: Sat, 20 Jan 2024 08:59:53 +0800 From: kernel test robot To: Ye Bin , rostedt@goodmis.org, mhiramat@kernel.org, mathieu.desnoyers@efficios.com, linux-trace-kernel@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, yebin10@huawei.com Subject: Re: [PATCH 1/3] tracing/probes: support '%pd' type for print struct dentry's name Message-ID: <202401200837.b9DEGdBT-lkp@intel.com> References: <20240119013848.3111364-2-yebin10@huawei.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 In-Reply-To: <20240119013848.3111364-2-yebin10@huawei.com> Hi Ye, kernel test robot noticed the following build warnings: [auto build test WARNING on linus/master] [also build test WARNING on v6.7 next-20240119] [cannot apply to rostedt-trace/for-next rostedt-trace/for-next-urgent] [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/Ye-Bin/tracing-probes-support-pd-type-for-print-struct-dentry-s-name/20240119-093912 base: linus/master patch link: https://lore.kernel.org/r/20240119013848.3111364-2-yebin10%40huawei.com patch subject: [PATCH 1/3] tracing/probes: support '%pd' type for print struct dentry's name config: i386-defconfig (https://download.01.org/0day-ci/archive/20240120/202401200837.b9DEGdBT-lkp@intel.com/config) compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240120/202401200837.b9DEGdBT-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/202401200837.b9DEGdBT-lkp@intel.com/ All warnings (new ones prefixed by >>): kernel/trace/trace_probe.c: In function 'traceprobe_expand_dentry': >> kernel/trace/trace_probe.c:1106:36: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=] if (snprintf(new_argv, len, "+0x%lx(%s)", ~~^ %x vim +1106 kernel/trace/trace_probe.c 1095 1096 static char* traceprobe_expand_dentry(const char *argv) 1097 { 1098 #define DENTRY_EXPAND_LEN 7 /* +0xXX() */ 1099 char *new_argv; 1100 int len = strlen(argv) + 1 + DENTRY_EXPAND_LEN; 1101 1102 new_argv = kmalloc(len, GFP_KERNEL); 1103 if (!new_argv) 1104 return NULL; 1105 > 1106 if (snprintf(new_argv, len, "+0x%lx(%s)", 1107 offsetof(struct dentry, d_name.name), argv) >= len) { 1108 kfree(new_argv); 1109 return NULL; 1110 } 1111 1112 return new_argv; 1113 } 1114 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki