Re: [PATCH] tracing: Cleanup event_enable_trigger_parse() by using __free()

From: Steven Rostedt

Date: Thu Aug 06 2026 - 13:31:22 EST



Does the kernel test robot just keep on testing old versions of a patch?
Sashiko discovered this issue and I made a v2 with a fix a week ago:

https://lore.kernel.org/all/20260727155459.202af38d@xxxxxxxxxxxxxxxxxx/

-- Steve


On Wed, 5 Aug 2026 08:21:33 +0200
kernel test robot <lkp@xxxxxxxxx> wrote:

> Hi Steven,
>
> kernel test robot noticed the following build warnings:
>
> [auto build test WARNING on trace/for-next]
> [also build test WARNING on linus/master v7.2-rc6 next-20260804]
> [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/Steven-Rostedt/tracing-Cleanup-event_enable_trigger_parse-by-using-__free/20260805-073956
> base: https://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace for-next
> patch link: https://lore.kernel.org/r/20260701174829.67ab8a33%40gandalf.local.home
> patch subject: [PATCH] tracing: Cleanup event_enable_trigger_parse() by using __free()
> config: s390-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20260805/202608050839.Ip5dU0Jz-lkp@xxxxxxxxx/config)
> compiler: s390x-linux-gnu-gcc (Debian 14.2.0-19) 14.2.0
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260805/202608050839.Ip5dU0Jz-lkp@xxxxxxxxx/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@xxxxxxxxx>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202608050839.Ip5dU0Jz-lkp@xxxxxxxxx/
>
> All warnings (new ones prefixed by >>):
>
> In file included from ./include/linux/file.h:13,
> from ./include/linux/kernel_read_file.h:5,
> from ./include/linux/security.h:26,
> from kernel/trace/trace_events_trigger.c:8:
> kernel/trace/trace_events_trigger.c: In function 'event_enable_trigger_parse':
> >> ./include/linux/cleanup.h:228:22: warning: ignoring return value of '__must_check_fn' declared with attribute 'warn_unused_result' [-Wunused-result]
> 228 | ((typeof(p)) __must_check_fn((__force const volatile void *)__get_and_null(p, NULL)))
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> kernel/trace/trace_events_trigger.c:1842:9: note: in expansion of macro 'no_free_ptr'
> 1842 | no_free_ptr(enable_data);
> | ^~~~~~~~~~~
>
>
> vim +228 ./include/linux/cleanup.h
>
> 85be6d84244706 Peter Zijlstra 2023-08-15 226
> 54da6a0924311c Peter Zijlstra 2023-05-26 227 #define no_free_ptr(p) \
> 366fef794bd2b7 Ilpo Järvinen 2025-03-10 @228 ((typeof(p)) __must_check_fn((__force const volatile void *)__get_and_null(p, NULL)))
> 54da6a0924311c Peter Zijlstra 2023-05-26 229
>
> --
> 0-DAY CI Kernel Test Service
> https://github.com/intel/lkp-tests/wiki