mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Chelsy Ratnawat <chelsyratnawat2001@gmail.com>,
	suzuki.poulose@arm.com, mike.leach@linaro.org,
	alexander.shishkin@linux.intel.com, alexandre.torgue@foss.st.com
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	james.clark@linaro.org, mcoquelin.stm32@gmail.com,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org,
	Chelsy Ratnawat <chelsyratnawat2001@gmail.com>
Subject: Re: [PATCH v5] coresight: Replace scnprintf/sprintf with sysfs_emit()/sysfs_emit_at()
Date: Thu, 24 Jul 2025 02:18:26 +0800	[thread overview]
Message-ID: <202507240249.8WCThmh3-lkp@intel.com> (raw)
In-Reply-To: <20250722184106.3290455-1-chelsyratnawat2001@gmail.com>

Hi Chelsy,

kernel test robot noticed the following build errors:

[auto build test ERROR on next-20250722]
[cannot apply to atorgue-stm32/stm32-next soc/for-next linus/master v6.16-rc7 v6.16-rc6 v6.16-rc5 v6.16-rc7]
[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/Chelsy-Ratnawat/coresight-Replace-scnprintf-sprintf-with-sysfs_emit-sysfs_emit_at/20250723-024400
base:   next-20250722
patch link:    https://lore.kernel.org/r/20250722184106.3290455-1-chelsyratnawat2001%40gmail.com
patch subject: [PATCH v5] coresight: Replace scnprintf/sprintf with sysfs_emit()/sysfs_emit_at()
config: arm64-randconfig-001-20250723 (https://download.01.org/0day-ci/archive/20250724/202507240249.8WCThmh3-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 853c343b45b3e83cc5eeef5a52fc8cc9d8a09252)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250724/202507240249.8WCThmh3-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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202507240249.8WCThmh3-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/hwtracing/coresight/coresight-etm4x-sysfs.c:127:20: error: use of undeclared identifier 'bu'
     127 |         return sysfs_emit(bu, "%#lx\n", val);
         |                           ^~
>> drivers/hwtracing/coresight/coresight-etm4x-sysfs.c:1336:26: error: incompatible integer to pointer conversion passing 'int' to parameter of type 'const char *' [-Wint-conversion]
    1336 |                 size = sysfs_emit(buf, size, "addr_cmp[%i] unused\n", idx);
         |                                        ^~~~
   include/linux/sysfs.h:492:39: note: passing argument to parameter 'fmt' here
     492 | int sysfs_emit(char *buf, const char *fmt, ...);
         |                                       ^
   2 errors generated.


vim +/bu +127 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c

   118	
   119	static ssize_t numvmidc_show(struct device *dev,
   120				     struct device_attribute *attr,
   121				     char *buf)
   122	{
   123		unsigned long val;
   124		struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent);
   125	
   126		val = drvdata->numvmidc;
 > 127		return sysfs_emit(bu, "%#lx\n", val);
   128	}
   129	static DEVICE_ATTR_RO(numvmidc);
   130	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

      reply	other threads:[~2025-07-23 18:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-22 18:41 Chelsy Ratnawat
2025-07-23 18:18 ` kernel test robot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202507240249.8WCThmh3-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=alexander.shishkin@linux.intel.com \
    --cc=alexandre.torgue@foss.st.com \
    --cc=chelsyratnawat2001@gmail.com \
    --cc=james.clark@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=mcoquelin.stm32@gmail.com \
    --cc=mike.leach@linaro.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=suzuki.poulose@arm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®