Skip to content

Commit

Permalink
Merge tag 'kconfig-v4.21' of git://git.kernel.org/pub/scm/linux/kerne…
Browse files Browse the repository at this point in the history
…l/git/masahiroy/linux-kbuild

Pull Kconfig updates from Masahiro Yamada:

 - support -y option for merge_config.sh to avoid downgrading =y to =m

 - remove S_OTHER symbol type, and touch include/config/*.h files correctly

 - fix file name and line number in lexer warnings

 - fix memory leak when EOF is encountered in quotation

 - resolve all shift/reduce conflicts of the parser

 - warn no new line at end of file

 - make 'source' statement more strict to take only string literal

 - rewrite the lexer and remove the keyword lookup table

 - convert to SPDX License Identifier

 - compile C files independently instead of including them from zconf.y

 - fix various warnings of gconfig

 - misc cleanups

* tag 'kconfig-v4.21' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild: (39 commits)
  kconfig: surround dbg_sym_flags with #ifdef DEBUG to fix gconf warning
  kconfig: split images.c out of qconf.cc/gconf.c to fix gconf warnings
  kconfig: add static qualifiers to fix gconf warnings
  kconfig: split the lexer out of zconf.y
  kconfig: split some C files out of zconf.y
  kconfig: convert to SPDX License Identifier
  kconfig: remove keyword lookup table entirely
  kconfig: update current_pos in the second lexer
  kconfig: switch to ASSIGN_VAL state in the second lexer
  kconfig: stop associating kconf_id with yylval
  kconfig: refactor end token rules
  kconfig: stop supporting '.' and '/' in unquoted words
  treewide: surround Kconfig file paths with double quotes
  microblaze: surround string default in Kconfig with double quotes
  kconfig: use T_WORD instead of T_VARIABLE for variables
  kconfig: use specific tokens instead of T_ASSIGN for assignments
  kconfig: refactor scanning and parsing "option" properties
  kconfig: use distinct tokens for type and default properties
  kconfig: remove redundant token defines
  kconfig: rename depends_list to comment_option_list
  ...
  • Loading branch information
torvalds committed Dec 29, 2018
2 parents 668c35f + f222b7f commit 769e470
Show file tree
Hide file tree
Showing 78 changed files with 548 additions and 694 deletions.
2 changes: 1 addition & 1 deletion arch/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,7 @@ config PLAT_VERSATILE

source "arch/arm/firmware/Kconfig"

source arch/arm/mm/Kconfig
source "arch/arm/mm/Kconfig"

config IWMMXT
bool "Enable iWMMXt support"
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/kvm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ config KVM_ARM_HOST
---help---
Provides host support for ARM processors.

source drivers/vhost/Kconfig
source "drivers/vhost/Kconfig"

endif # VIRTUALIZATION
2 changes: 1 addition & 1 deletion arch/arm64/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,7 @@ config NEED_PER_CPU_EMBED_FIRST_CHUNK
config HOLES_IN_ZONE
def_bool y

source kernel/Kconfig.hz
source "kernel/Kconfig.hz"

config ARCH_SUPPORTS_DEBUG_PAGEALLOC
def_bool y
Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/kvm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@ config KVM_ARM_PMU
config KVM_INDIRECT_VECTORS
def_bool KVM && (HARDEN_BRANCH_PREDICTOR || HARDEN_EL2_VECTORS)

source drivers/vhost/Kconfig
source "drivers/vhost/Kconfig"

endif # VIRTUALIZATION
2 changes: 1 addition & 1 deletion arch/ia64/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ config HZ
endif

if !IA64_HP_SIM
source kernel/Kconfig.hz
source "kernel/Kconfig.hz"
endif

config IA64_BRL_EMU
Expand Down
6 changes: 3 additions & 3 deletions arch/m68k/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,11 @@ config BOOTINFO_PROC

menu "Platform setup"

source arch/m68k/Kconfig.cpu
source "arch/m68k/Kconfig.cpu"

source arch/m68k/Kconfig.machine
source "arch/m68k/Kconfig.machine"

source arch/m68k/Kconfig.bus
source "arch/m68k/Kconfig.bus"

endmenu

Expand Down
2 changes: 1 addition & 1 deletion arch/microblaze/Kconfig.platform
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@ config XILINX_MICROBLAZE0_USE_FPU

config XILINX_MICROBLAZE0_HW_VER
string "Core version number"
default 7.10.d
default "7.10.d"

endmenu
2 changes: 1 addition & 1 deletion arch/mips/kvm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,6 @@ config KVM_MIPS_DEBUG_COP0_COUNTERS

If unsure, say N.

source drivers/vhost/Kconfig
source "drivers/vhost/Kconfig"

endif # VIRTUALIZATION
2 changes: 1 addition & 1 deletion arch/openrisc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ config SMP

If you don't know what to do here, say N.

source kernel/Kconfig.hz
source "kernel/Kconfig.hz"

config OPENRISC_NO_SPR_SR_DSX
bool "use SPR_SR_DSX software emulation" if OR1K_1200
Expand Down
4 changes: 2 additions & 2 deletions arch/powerpc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ config HIGHMEM
bool "High memory support"
depends on PPC32

source kernel/Kconfig.hz
source "kernel/Kconfig.hz"

config HUGETLB_PAGE_SIZE_VARIABLE
bool
Expand Down Expand Up @@ -816,7 +816,7 @@ config ARCH_WANTS_FREEZER_CONTROL
def_bool y
depends on ADB_PMU

source kernel/power/Kconfig
source "kernel/power/Kconfig"

config SECCOMP
bool "Enable seccomp to safely compute untrusted bytecode"
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/kvm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,6 @@ config KVM_XIVE
default y
depends on KVM_XICS && PPC_XIVE_NATIVE && KVM_BOOK3S_HV_POSSIBLE

source drivers/vhost/Kconfig
source "drivers/vhost/Kconfig"

endif # VIRTUALIZATION
2 changes: 1 addition & 1 deletion arch/riscv/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,6 @@ endmenu

menu "Power management options"

source kernel/power/Kconfig
source "kernel/power/Kconfig"

endmenu
2 changes: 1 addition & 1 deletion arch/s390/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ config SCHED_TOPOLOGY
making when dealing with machines that have multi-threading,
multiple cores or multiple books.

source kernel/Kconfig.hz
source "kernel/Kconfig.hz"

config KEXEC
def_bool y
Expand Down
2 changes: 1 addition & 1 deletion arch/s390/kvm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ config KVM_S390_UCONTROL

# OK, it's a little counter-intuitive to do this, but it puts it neatly under
# the virtualization menu.
source drivers/vhost/Kconfig
source "drivers/vhost/Kconfig"

endif # VIRTUALIZATION
2 changes: 1 addition & 1 deletion arch/sh/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ endmenu

menu "Kernel features"

source kernel/Kconfig.hz
source "kernel/Kconfig.hz"

config KEXEC
bool "kexec system call (EXPERIMENTAL)"
Expand Down
2 changes: 1 addition & 1 deletion arch/sparc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ config NR_CPUS
default 32 if SPARC32
default 4096 if SPARC64

source kernel/Kconfig.hz
source "kernel/Kconfig.hz"

config RWSEM_GENERIC_SPINLOCK
bool
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1977,7 +1977,7 @@ config SECCOMP

If unsure, say Y. Only embedded should say N here.

source kernel/Kconfig.hz
source "kernel/Kconfig.hz"

config KEXEC
bool "kexec system call"
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/kvm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,6 @@ config KVM_MMU_AUDIT

# OK, it's a little counter-intuitive to do this, but it puts it neatly under
# the virtualization menu.
source drivers/vhost/Kconfig
source "drivers/vhost/Kconfig"

endif # VIRTUALIZATION
2 changes: 1 addition & 1 deletion block/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -218,4 +218,4 @@ config BLK_MQ_RDMA
config BLK_PM
def_bool BLOCK && PM

source block/Kconfig.iosched
source "block/Kconfig.iosched"
4 changes: 2 additions & 2 deletions crypto/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1889,7 +1889,7 @@ config CRYPTO_HASH_INFO
bool

source "drivers/crypto/Kconfig"
source crypto/asymmetric_keys/Kconfig
source certs/Kconfig
source "crypto/asymmetric_keys/Kconfig"
source "certs/Kconfig"

endif # if CRYPTO
2 changes: 1 addition & 1 deletion drivers/crypto/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ config CRYPTO_DEV_HIFN_795X_RNG
Select this option if you want to enable the random number generator
on the HIFN 795x crypto adapters.

source drivers/crypto/caam/Kconfig
source "drivers/crypto/caam/Kconfig"

config CRYPTO_DEV_TALITOS
tristate "Talitos Freescale Security Engine (SEC)"
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -131,5 +131,5 @@ config DRM_I915_GVT_KVMGT
menu "drm/i915 Debugging"
depends on DRM_I915
depends on EXPERT
source drivers/gpu/drm/i915/Kconfig.debug
source "drivers/gpu/drm/i915/Kconfig.debug"
endmenu
2 changes: 1 addition & 1 deletion drivers/hwmon/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1310,7 +1310,7 @@ config SENSORS_PCF8591
These devices are hard to detect and rarely found on mainstream
hardware. If unsure, say N.

source drivers/hwmon/pmbus/Kconfig
source "drivers/hwmon/pmbus/Kconfig"

config SENSORS_PWM_FAN
tristate "PWM fan"
Expand Down
6 changes: 3 additions & 3 deletions drivers/i2c/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ config I2C_MUX
This support is also available as a module. If so, the module
will be called i2c-mux.

source drivers/i2c/muxes/Kconfig
source "drivers/i2c/muxes/Kconfig"

config I2C_HELPER_AUTO
bool "Autoselect pertinent helper modules"
Expand All @@ -94,8 +94,8 @@ config I2C_SMBUS
This support is also available as a module. If so, the module
will be called i2c-smbus.

source drivers/i2c/algos/Kconfig
source drivers/i2c/busses/Kconfig
source "drivers/i2c/algos/Kconfig"
source "drivers/i2c/busses/Kconfig"

config I2C_STUB
tristate "I2C/SMBus Test Stub"
Expand Down
4 changes: 2 additions & 2 deletions drivers/pps/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ config NTP_PPS

It doesn't work on tickless systems at the moment.

source drivers/pps/clients/Kconfig
source "drivers/pps/clients/Kconfig"

source drivers/pps/generators/Kconfig
source "drivers/pps/generators/Kconfig"

endif # PPS
2 changes: 1 addition & 1 deletion drivers/ras/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ menuconfig RAS

if RAS

source arch/x86/ras/Kconfig
source "arch/x86/ras/Kconfig"

endif
2 changes: 1 addition & 1 deletion drivers/thermal/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ config INTEL_QUARK_DTS_THERMAL
underlying BIOS/Firmware.

menu "ACPI INT340X thermal drivers"
source drivers/thermal/int340x_thermal/Kconfig
source "drivers/thermal/int340x_thermal/Kconfig"
endmenu

config INTEL_BXT_PMIC_THERMAL
Expand Down
4 changes: 2 additions & 2 deletions drivers/w1/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ config W1_CON
2. Userspace commands. Includes read/write and search/alarm search commands.
3. Replies to userspace commands.

source drivers/w1/masters/Kconfig
source drivers/w1/slaves/Kconfig
source "drivers/w1/masters/Kconfig"
source "drivers/w1/slaves/Kconfig"

endif # W1
2 changes: 1 addition & 1 deletion kernel/Kconfig.preempt
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ config PREEMPT
endchoice

config PREEMPT_COUNT
bool
bool
4 changes: 2 additions & 2 deletions lib/Kconfig.debug
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ config DEBUG_KERNEL

menu "Memory Debugging"

source mm/Kconfig.debug
source "mm/Kconfig.debug"

config DEBUG_OBJECTS
bool "Debug object operations"
Expand Down Expand Up @@ -1624,7 +1624,7 @@ config LATENCYTOP
Enable this option if you want to use the LatencyTOP tool
to find out which userspace is blocking on what kernel operations.

source kernel/trace/Kconfig
source "kernel/trace/Kconfig"

config PROVIDE_OHCI1394_DMA_INIT
bool "Remote debugging over FireWire early on boot"
Expand Down
25 changes: 10 additions & 15 deletions scripts/kconfig/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -142,23 +142,20 @@ help:
@echo ' testconfig - Run Kconfig unit tests (requires python3 and pytest)'

# ===========================================================================
# Shared Makefile for the various kconfig executables:
# conf: Used for defconfig, oldconfig and related targets
# object files used by all kconfig flavours
common-objs := confdata.o expr.o symbol.o preprocess.o zconf.lex.o zconf.tab.o

conf-objs := conf.o zconf.tab.o

hostprogs-y := conf

targets += zconf.lex.c

# generated files seem to need this to find local include files
$(obj)/zconf.lex.o: $(obj)/zconf.tab.h
HOSTCFLAGS_zconf.lex.o := -I$(src)
HOSTCFLAGS_zconf.tab.o := -I$(src)

# conf: Used for defconfig, oldconfig and related targets
hostprogs-y += conf
conf-objs := conf.o $(common-objs)

# nconf: Used for the nconfig target based on ncurses
hostprogs-y += nconf
nconf-objs := nconf.o zconf.tab.o nconf.gui.o
nconf-objs := nconf.o nconf.gui.o $(common-objs)

HOSTLDLIBS_nconf = $(shell . $(obj)/.nconf-cfg && echo $$libs)
HOSTCFLAGS_nconf.o = $(shell . $(obj)/.nconf-cfg && echo $$cflags)
Expand All @@ -169,7 +166,7 @@ $(obj)/nconf.o $(obj)/nconf.gui.o: $(obj)/.nconf-cfg
# mconf: Used for the menuconfig target based on lxdialog
hostprogs-y += mconf
lxdialog := checklist.o inputbox.o menubox.o textbox.o util.o yesno.o
mconf-objs := mconf.o zconf.tab.o $(addprefix lxdialog/, $(lxdialog))
mconf-objs := mconf.o $(addprefix lxdialog/, $(lxdialog)) $(common-objs)

HOSTLDLIBS_mconf = $(shell . $(obj)/.mconf-cfg && echo $$libs)
$(foreach f, mconf.o $(lxdialog), \
Expand All @@ -181,7 +178,7 @@ $(addprefix $(obj)/lxdialog/, $(lxdialog)): $(obj)/.mconf-cfg
# qconf: Used for the xconfig target based on Qt
hostprogs-y += qconf
qconf-cxxobjs := qconf.o
qconf-objs := zconf.tab.o
qconf-objs := images.o $(common-objs)

HOSTLDLIBS_qconf = $(shell . $(obj)/.qconf-cfg && echo $$libs)
HOSTCXXFLAGS_qconf.o = $(shell . $(obj)/.qconf-cfg && echo $$cflags)
Expand All @@ -196,15 +193,13 @@ $(obj)/%.moc: $(src)/%.h $(obj)/.qconf-cfg

# gconf: Used for the gconfig target based on GTK+
hostprogs-y += gconf
gconf-objs := gconf.o zconf.tab.o
gconf-objs := gconf.o images.o $(common-objs)

HOSTLDLIBS_gconf = $(shell . $(obj)/.gconf-cfg && echo $$libs)
HOSTCFLAGS_gconf.o = $(shell . $(obj)/.gconf-cfg && echo $$cflags)

$(obj)/gconf.o: $(obj)/.gconf-cfg

$(obj)/zconf.tab.o: $(obj)/zconf.lex.c

# check if necessary packages are available, and configure build flags
define filechk_conf_cfg
$(CONFIG_SHELL) $<
Expand Down
2 changes: 1 addition & 1 deletion scripts/kconfig/conf.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (C) 2002 Roman Zippel <[email protected]>
* Released under the terms of the GNU GPL v2.0.
*/

#include <ctype.h>
Expand Down
Loading

0 comments on commit 769e470

Please sign in to comment.