is `mixing declarations and code' allowed?

Shiyao Ma i at introo.me
Sat Jul 8 10:21:06 EDT 2017


Hi,

One thing I feel very un-comfortable when writing kernel module code is the warning of `mixing declarations and code'.

Is `mixing declarations and code' still frowned upon by kernel developers?

Or is it just a history burden that for some reason one can not mix `declarations and code'?


Best,





More information about the Kernelnewbies mailing list