When I configure the kernel with no support for md, but leave in the RAID-controller drivers, the build stopped in the SMART2 driver with a message saying something like 'missing md.h'.
Add support for md but don't configure the use.