You have misunderstood that article (and it contains some false information).
The limit about the 2TB comes from the partition table, not the Linux kernel.
msdos partition tables allow a maximum of 2 TB. Recompiling the kernel will not change that.
To use larger partitions you must use GPT partition tables.
15 years ago, when it was not widely used, you had to recompile the kernel to activate GPT support. Nowadays every Linux distribution supports it out of the box, no recompilation necessary.
$ sudo fdisk /dev/sdb
Welcome to fdisk (util-linux 2.34).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Device does not contain a recognized partition table.
The size of this disk is 6 TiB (6597069766656 bytes). DOS partition table format cannot be used on drives for volumes larger than 2199023255040 bytes for 512-byte sectors. Use GUID partition table format (GPT).
Created a new DOS disklabel with disk identifier 0xfe370791.
Command (m for help): g
Created a new GPT disklabel (GUID: DBB9DB85-EC26-7C40-9A4F-3C3989F7F4D0).
Command (m for help): n
Partition number (1-128, default 1):
First sector (2048-12884901854, default 2048):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-12884901854, default 12884901854):
Created a new partition 1 of type 'Linux filesystem' and of size 6 TiB.