This sort of build error is becoming a regular issue. Either all or nonof the elements that go into a particular section of a compilation unitneed to be const. Or an error may result such as in this case ifCONFIG_HOTPLUG is unset.

Maybe worth a check in checkpatch.pl - but certainly gcc's interoleranceis also being less than helpful here.