LinuxKPI: add kstrtoint_from_user() and DECLARE_FLEX_ARRAY()
Add an implementation of kstrtoint_from_user() based on the other
implementations and an attempt at DECLARE_FLEX_ARRAY() which works
for the driver needing it.
Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D34231
(cherry picked from commit c840d5cec2607932d077ffcfee7ccf0a6b50cdf3)