• Masahiro Yamada's avatar
    kconfig: remove string expansion in file_lookup() · bb222cee
    Masahiro Yamada authored
    There are two callers of file_lookup(), but there is no more reason
    to expand the given path.
    
    [1] zconf_initscan()
        This is used to open the first Kconfig.  sym_expand_string_value()
        has never been used in a useful way here; before opening the first
        Kconfig file, obviously there is no symbol to expand.  If you use
        expand_string_value() instead, environments in KBUILD_KCONFIG would
        be expanded, but I do not see practical benefits for that.
    
    [2] zconf_nextfile()
        This is used to open the next file from 'source' statement.
        Symbols in the path like "arch/$SRCARCH/Kconfig" needed expanding,
        but it was replaced with the direct environment expansion.  The
        environment has already been expanded before the token is passed
        to the parser.
    
    By the way, file_lookup() was already buggy; it expanded a given path,
    but it used the path before expansion for look-up:
            if (!strcmp(name, file->name)) {
    Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
    Reviewed-by: default avatarKees Cook <keescook@chromium.org>
    Reviewed-by: default avatarUlf Magnusson <ulfalizer@gmail.com>
    bb222cee
Name
Last commit
Last update
Documentation Loading commit data...
LICENSES Loading commit data...
arch Loading commit data...
block Loading commit data...
certs Loading commit data...
crypto Loading commit data...
drivers Loading commit data...
firmware Loading commit data...
fs Loading commit data...
include Loading commit data...
init Loading commit data...
ipc Loading commit data...
kernel Loading commit data...
lib Loading commit data...
mm Loading commit data...
net Loading commit data...
samples Loading commit data...
scripts Loading commit data...
security Loading commit data...
sound Loading commit data...
tools Loading commit data...
usr Loading commit data...
virt Loading commit data...
.clang-format Loading commit data...
.cocciconfig Loading commit data...
.get_maintainer.ignore Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
Kbuild Loading commit data...
Kconfig Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README Loading commit data...