VOOZH about

URL: https://www.phoronix.com/news/Linux-7.2-43-Million-Lines

⇱ Linux 7.2 Surpasses More Than 43 Million Lines In The Kernel Tree - Phoronix


👁 Phoronix

Linux 7.2 Surpasses More Than 43 Million Lines In The Kernel Tree

Written by Michael Larabel in Linux Kernel on 28 June 2026 at 06:47 AM EDT. 14 Comments
Today marks the last day of the Linux 7.2 merge window with Linux 7.2-rc1 due out later today. With the many new features and improvements merged over the past week since the Linux 7.1 stable debut, the Linux kernel source tree now exceeds 43 million lines.

Via the cloc utility for counting the lines of code, I checked the current Linux Git state as of this morning considering with Linux 7.1 it was coming in just shy of 43 million... Sure enough, Linux 7.2 Git has blown well past that threshold and on its way toward 44 million.

As of right now in the Linux Git tree, there are 108,158 files picked up by cloc that consist of 5,211,184 blank lines, 5,033,878 lines of detected code comments, and then 33,653,681 lines of detected actual code. As a grand total that's at 43,898,743 lines -- hours ahead of the Linux 7.2-rc1 release.

👁 Linux 7.2 cloc


For some perspective, Linux 7.1 was at 42,924,382 lines between 5,107,123 blank lines, 4,841,507 lines of code comments, and 32,975,752 lines of code picked up by cloc.

The Linux kernel source tree continues growing at a brisk pace even with the recent i486 removal and many old hardware drivers being phased out from the kernel tree, including several removals I've covered over the past two weeks of the Linux 7.2 merge window.

👁 Linux 7.2 AMDGPU size


The biggest kernel driver in Linux remains the AMDGPU/AMDKFD code. When counting linux/drivers/gpu/drm/amd for all that AMD modern kernel graphics driver code, as of today in Git it's coming in at around a combined 6,356,056 lines. That's up from 6,167,219 lines with Linux 7.1.

Just some food for thought for those interested in Linux code statistics. Stay tuned for the Linux 7.2-rc1 release later today.

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.