From mboxrd@z Thu Jan 1 00:00:00 1970 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 12FF8C433FE for ; Fri, 6 May 2022 19:57:24 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4DF1B6B0071; Fri, 6 May 2022 15:57:24 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 467066B0073; Fri, 6 May 2022 15:57:24 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 307646B0074; Fri, 6 May 2022 15:57:24 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 1B2256B0071 for ; Fri, 6 May 2022 15:57:24 -0400 (EDT) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id DE103312ED for ; Fri, 6 May 2022 19:57:23 +0000 (UTC) X-FDA: 79436377566.10.50D6DF5 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by imf10.hostedemail.com (Postfix) with ESMTP id A21AFC0029 for ; Fri, 6 May 2022 19:57:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651867041; x=1683403041; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=fYx0jVPAY26QYp8frW2LMbGHUaazdt9/1xBg56xLgF0=; b=hKnaudxaw8zbDWO41qFc3kwLL2zILzFilWs2pDefwAnnn524IEtOv+ny NZ9ymMe4PAyO0lGuabvE07+DexUSz14OZ8apYyrzQMRFioGZz1n0ZvQPk JEJ2KAZ8YGxwTq/KJ1xMY7aG0ABO9YKqWRHHCdzDfEi5vDvXi27O0ylR5 D+UgT73Z8xbPLdo1cJcUg6WoLGlHyZTLcSH+vBN23ak9Qxp87eNrMW4sJ OT5JbLlsd5PBgpqyGZMSeYN3ILnmfYtHxI2AJTY6yzfJ725rGVv8+1Boo KmQtzsrIM3GaKoK4ORnYbQBs7sdoMVnx3gMwKG4NgFCzheTllRifwdNq/ w==; X-IronPort-AV: E=McAfee;i="6400,9594,10339"; a="250567345" X-IronPort-AV: E=Sophos;i="5.91,205,1647327600"; d="scan'208";a="250567345" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2022 12:57:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,205,1647327600"; d="scan'208";a="518204464" Received: from lkp-server01.sh.intel.com (HELO 5056e131ad90) ([10.239.97.150]) by orsmga003.jf.intel.com with ESMTP; 06 May 2022 12:57:15 -0700 Received: from kbuild by 5056e131ad90 with local (Exim 4.95) (envelope-from ) id 1nn44g-000DpX-VR; Fri, 06 May 2022 19:57:14 +0000 Date: Sat, 7 May 2022 03:56:51 +0800 From: kernel test robot To: Jagdish Gediya , linux-mm@kvack.org, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, rafael@kernel.org, akpm@linux-foundation.org Cc: kbuild-all@lists.01.org, keescook@chromium.org, andriy.shevchenko@linux.intel.com, geert@linux-m68k.org, linux@roeck-us.net, adobriyan@gmail.com, Jagdish Gediya Subject: Re: [PATCH] kobject: Refactor kobject_set_name_vargs() Message-ID: <202205070311.4T8ZKSWq-lkp@intel.com> References: <20220506133309.36794-1-jvgediya@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220506133309.36794-1-jvgediya@linux.ibm.com> X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: A21AFC0029 X-Stat-Signature: gu5x113wodhj3zdshq8eqdqfgtbq5e39 Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=hKnaudxa; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf10.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.126) smtp.mailfrom=lkp@intel.com X-Rspam-User: X-HE-Tag: 1651867023-308663 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi Jagdish, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on driver-core/driver-core-testing] [also build test WARNING on hnaz-mm/master linux/master linus/master v5.18-rc5 next-20220506] [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] url: https://github.com/intel-lab-lkp/linux/commits/Jagdish-Gediya/kobject-Refactor-kobject_set_name_vargs/20220506-213448 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git bc443c31def574e3bfaed50cb493b8305ad79435 config: um-i386_defconfig (https://download.01.org/0day-ci/archive/20220507/202205070311.4T8ZKSWq-lkp@intel.com/config) compiler: gcc-11 (Debian 11.2.0-20) 11.2.0 reproduce (this is a W=1 build): # https://github.com/intel-lab-lkp/linux/commit/4aac95bc8a052e61d5013a25a2099ed711e88fde git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Jagdish-Gediya/kobject-Refactor-kobject_set_name_vargs/20220506-213448 git checkout 4aac95bc8a052e61d5013a25a2099ed711e88fde # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=um SUBARCH=i386 SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): mm/util.c: In function 'set_name_vargs': >> mm/util.c:128:9: warning: function 'set_name_vargs' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format] 128 | s = kvasprintf_const(GFP_KERNEL, fmt, vargs); | ^ vim +128 mm/util.c 114 115 /** 116 * set_name_vargs() - Set the name as per format 117 * @name: pointer to point to the name as per format 118 * @fmt: format string used to build the name 119 * @vargs: vargs to format the string. 120 */ 121 int set_name_vargs(const char **name, const char *fmt, va_list vargs) 122 { 123 const char *s; 124 125 if (*name && !fmt) 126 return 0; 127 > 128 s = kvasprintf_const(GFP_KERNEL, fmt, vargs); 129 if (!s) 130 return -ENOMEM; 131 132 /* 133 * ewww... some of these buggers have '/' in the name ... If 134 * that's the case, we need to make sure we have an actual 135 * allocated copy to modify, since kvasprintf_const may have 136 * returned something from .rodata. 137 */ 138 if (strchr(s, '/')) { 139 char *t; 140 141 t = kstrdup(s, GFP_KERNEL); 142 kfree_const(s); 143 if (!t) 144 return -ENOMEM; 145 strreplace(t, '/', '!'); 146 s = t; 147 } 148 kfree_const(*name); 149 *name = s; 150 151 return 0; 152 } 153 EXPORT_SYMBOL(set_name_vargs); 154 -- 0-DAY CI Kernel Test Service https://01.org/lkp