Merge tag 'hid-for-linus-2024020101' of git://git.kernel.org/pub/scm/linux/kernel...
[sfrench/cifs-2.6.git] / scripts / kconfig / conf.c
index 33d19e419908b8315603f04db41189ed9c506a0c..662a5e7c37c28539ce7104085478c718848c4fc3 100644 (file)
@@ -827,6 +827,9 @@ int main(int ac, char **av)
                break;
        }
 
+       if (conf_errors())
+               exit(1);
+
        if (sync_kconfig) {
                name = getenv("KCONFIG_NOSILENTUPDATE");
                if (name && *name) {
@@ -890,6 +893,9 @@ int main(int ac, char **av)
                break;
        }
 
+       if (sym_dep_errors())
+               exit(1);
+
        if (input_mode == savedefconfig) {
                if (conf_write_defconfig(defconfig_file)) {
                        fprintf(stderr, "n*** Error while saving defconfig to: %s\n\n",