drivers/sensor/bmm150/Kconfig has no definition for BMM150_SET_ATTR, which is set by samples/sensor/bmm150/prj.conf.
drivers/sensor/bmm150/bmm150.c has a bunch of #if defined(BMM150_SET_ATTR) (and some #if defined(BMM150_SET_ATTR_REP)), which are probably dead code. If those are meant to be Kconfig symbols, they'll need Kconfig definitions (and a CONFIG_ prefix in the #ifdefs).