Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

kbuild: remove EXTRA_*FLAGS support

Commit f77bf01425b1 ("kbuild: introduce ccflags-y, asflags-y and
ldflags-y") deprecated these in 2007. The migration should have been
completed by now.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Kees Cook <kees@kernel.org>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>

-44
-18
Documentation/dev-tools/checkpatch.rst
··· 342 342 343 343 See: https://www.kernel.org/doc/html/latest/RCU/whatisRCU.html#full-list-of-rcu-apis 344 344 345 - **DEPRECATED_VARIABLE** 346 - EXTRA_{A,C,CPP,LD}FLAGS are deprecated and should be replaced by the new 347 - flags added via commit f77bf01425b1 ("kbuild: introduce ccflags-y, 348 - asflags-y and ldflags-y"). 349 - 350 - The following conversion scheme maybe used:: 351 - 352 - EXTRA_AFLAGS -> asflags-y 353 - EXTRA_CFLAGS -> ccflags-y 354 - EXTRA_CPPFLAGS -> cppflags-y 355 - EXTRA_LDFLAGS -> ldflags-y 356 - 357 - See: 358 - 359 - 1. https://lore.kernel.org/lkml/20070930191054.GA15876@uranus.ravnborg.org/ 360 - 2. https://lore.kernel.org/lkml/1313384834-24433-12-git-send-email-lacombar@gmail.com/ 361 - 3. https://www.kernel.org/doc/html/latest/kbuild/makefiles.html#compilation-flags 362 - 363 345 **DEVICE_ATTR_FUNCTIONS** 364 346 The function names used in DEVICE_ATTR is unusual. 365 347 Typically, the store and show functions are used with <attr>_store and
-3
Documentation/kbuild/makefiles.rst
··· 318 318 These three flags apply only to the kbuild makefile in which they 319 319 are assigned. They are used for all the normal cc, as and ld 320 320 invocations happening during a recursive build. 321 - Note: Flags with the same behaviour were previously named: 322 - EXTRA_CFLAGS, EXTRA_AFLAGS and EXTRA_LDFLAGS. 323 - They are still supported but their usage is deprecated. 324 321 325 322 ccflags-y specifies options for compiling with $(CC). 326 323
-4
scripts/Makefile.build
··· 20 20 targets := 21 21 subdir-y := 22 22 subdir-m := 23 - EXTRA_AFLAGS := 24 - EXTRA_CFLAGS := 25 - EXTRA_CPPFLAGS := 26 - EXTRA_LDFLAGS := 27 23 asflags-y := 28 24 ccflags-y := 29 25 rustflags-y :=
-5
scripts/Makefile.lib
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 - # Backward compatibility 3 - asflags-y += $(EXTRA_AFLAGS) 4 - ccflags-y += $(EXTRA_CFLAGS) 5 - cppflags-y += $(EXTRA_CPPFLAGS) 6 - ldflags-y += $(EXTRA_LDFLAGS) 7 2 8 3 # flags that take effect in current and sub directories 9 4 KBUILD_AFLAGS += $(subdir-asflags-y)
-14
scripts/checkpatch.pl
··· 3689 3689 } 3690 3690 } 3691 3691 3692 - if (($realfile =~ /Makefile.*/ || $realfile =~ /Kbuild.*/) && 3693 - ($line =~ /\+(EXTRA_[A-Z]+FLAGS).*/)) { 3694 - my $flag = $1; 3695 - my $replacement = { 3696 - 'EXTRA_AFLAGS' => 'asflags-y', 3697 - 'EXTRA_CFLAGS' => 'ccflags-y', 3698 - 'EXTRA_CPPFLAGS' => 'cppflags-y', 3699 - 'EXTRA_LDFLAGS' => 'ldflags-y', 3700 - }; 3701 - 3702 - WARN("DEPRECATED_VARIABLE", 3703 - "Use of $flag is deprecated, please use \`$replacement->{$flag} instead.\n" . $herecurr) if ($replacement->{$flag}); 3704 - } 3705 - 3706 3692 # check for DT compatible documentation 3707 3693 if (defined $root && 3708 3694 (($realfile =~ /\.dtsi?$/ && $line =~ /^\+\s*compatible\s*=\s*\"/) ||