[PATCH] kbuild: fix bug with modpost Makefile warn flag inclusion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Michael Ton <linuxham@xxxxxxxxx>

The current Makefile.modpost file includes a warn (-w) flag to modpost if KBUILD_EXTMOD or KBUILD_MODPOST_WARN. This flag should only be added if both flags are true. Whenever KBUILD_MODPOST is true, modpost currently only prints warnings and does not exit on error (such as on an undefined symbol).

Signed-off-by: Michael Ton <linuxham@xxxxxxxxx>
---
--- scripts/Makefile.modpost.orig       2014-08-18 13:18:18.704048707 -0600
+++ scripts/Makefile.modpost    2014-08-18 13:24:20.902520603 -0600
@@ -77,7 +77,7 @@ modpost = scripts/mod/modpost
$(if $(KBUILD_EXTRA_SYMBOLS), $(patsubst %, -e %,$(KBUILD_EXTRA_SYMBOLS))) \
  $(if $(KBUILD_EXTMOD),-o $(modulesymfile))      \
  $(if $(CONFIG_DEBUG_SECTION_MISMATCH),,-S)      \
- $(if $(KBUILD_EXTMOD)$(KBUILD_MODPOST_WARN),-w)
+ $(if $(KBUILD_EXTMOD), $(if $(KBUILD_MODPOST_WARN),-w))

 MODPOST_OPT=$(subst -i,-n,$(filter -i,$(MAKEFLAGS)))

--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux