Skip to contentSkip to conversation

Makefile: Remove unused filechk_cat

PATCH In review Liad Peretz 4 participants 4 messages Oct 23, 2024 – Oct 24, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Makefile: Remove unused filechk_cat

---
 kernel/Makefile | 2 --
 1 file changed, 2 deletions(-)
kernel/Makefile +0 -2
index 87866b037fbe..ca2dfa4343f0 100644
@@ -146,8 +146,6 @@ targets += config_data config_data.gz
 $(obj)/config_data.gz: $(obj)/config_data FORCE
 	$(call if_changed,gzip)
 
-filechk_cat = cat $<
-
 $(obj)/config_data: $(KCONFIG_CONFIG) FORCE
 	$(call filechk,cat)
 
Signature · 1 line
2.39.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Liad Peretz
---
 kernel/Makefile | 2 --
 1 file changed, 2 deletions(-)
kernel/Makefile +0 -0
index 87866b037fbe..ca2dfa4343f0 100644

kernel/Makefile targets += config_data config_data.gz · line 150

Quoted 5 lines
kernel/Makefile +0 -2
@@ -146,8 +146,6 @@ targets += config_data config_data.gz
 $(obj)/config_data.gz: $(obj)/config_data FORCE
 	$(call if_changed,gzip)
 
-filechk_cat = cat $<
-

Seems true with 'git grep'.

Quoted 6 lines
kernel/Makefile +0 -0
 $(obj)/config_data: $(KCONFIG_CONFIG) FORCE
 	$(call filechk,cat)
 
Signature · 1 line
2.39.0
#2 lore raw
In reply to Liad Peretz

kernel/Makefile targets += config_data config_data.gz · line 150

Quoted 12 lines · On Wed, 23 Oct 2024 10:06:11 +0300 Liad Peretz <[email protected]> wrote:

...

kernel/Makefile +0 -2
@@ -146,8 +146,6 @@ targets += config_data config_data.gz
 $(obj)/config_data.gz: $(obj)/config_data FORCE
 	$(call if_changed,gzip)
 
-filechk_cat = cat $<
-
 $(obj)/config_data: $(KCONFIG_CONFIG) FORCE
 	$(call filechk,cat)

x86_64 allmodconfig:

no-print-directory -C objtool
INSTALL libsubcmd_headers
CALL scripts/checksyscalls.sh
/bin/sh: 1: Syntax error: ";" unexpected

#3 lore raw
In reply to Liad Peretz
kernel test robot noticed the following build errors:

Hi Liad,

kernel test robot noticed the following build errors:

[auto build test ERROR on akpm-mm/mm-everything]
[also build test ERROR on linus/master v6.12-rc4 next-20241024] [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/Liad-Peretz/Makefile-Remove-unused-filechk_cat/20241023-150726
base:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
patch link:    https://lore.kernel.org/r/20241023070611.67449-1-liad.per%40gmail.com
patch subject: [PATCH] Makefile: Remove unused filechk_cat
config: x86_64-rhel-8.3 (https://download.01.org/0day-ci/archive/20241024/[email protected]/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/20241024/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

>> /bin/bash: -c: line 1: syntax error near unexpected token `;'
>> /bin/bash: -c: line 1: `set -e; mkdir -p kernel/; trap "rm -f kernel/.tmp_config_data" EXIT; { ; } > kernel/.tmp_config_data; if [ ! -r kernel/config_data ] || ! cmp -s kernel/config_data kernel/.tmp_config_data; then echo '  UPD     kernel/config_data'; mv -f kernel/.tmp_config_data kernel/config_data; fi'
Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki