Originally posted by DanT
View Post
include (register headers) - 2730 KSLOC
amdgpu - 175 KSLOC
amdkfd - 26 KSLOC
display - 248 KSLOC
pm - 114 KSLOC
Breaking down this way counts function prototypes as code, but register headers as "headers". I'm on the fence re: whether function prototypes should be counted as code, since they don't really add to complexity or influence maintainability. Anyways, counting them as code (ie worst case) we get 563K lines of code and 2730K lines of headers.
This ignores blank and comment lines, since hopefully they improve rather than reduce maintainability

This is based on the tips of Linus's kernel tree, ie not including latest additions, with a total of around 3827 KSLOC including blanks and comments (doing the math in my head).
Leave a comment: