I performed sysupgrade from 19.07.7 to 21.02.1 and encountered this warning. I regret for ignoring such warning - the device then bricked because of exactly the reason discussed there: kernel partition size mismatch.
I then managed to build OpenWrt 21.02.1 in order to do a ramdisk-boot. However it didn't succeed.
Part of serial console output:
U-Boot 1.1.4 (Jun 28 2012 - 10:12:47)
...
ar7240> tftpboot 80800000 wndr4300sw.bin
dup 1 speed 1000
Using eth0 device
TFTP from server 192.168.1.7; our IP address is 192.168.1.1
Filename 'wndr4300sw.bin'.
Load address: 0x80800000
Loading: #################################################################
...
ar7240> bootm
## Booting image at 80800000 ...
Image Name: MIPS OpenWrt Linux-5.4.154
Created: 2021-10-24 9:01:35 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 5297454 Bytes = 5.1 MB
Load Address: 80060000
Entry Point: 80060000
Verifying Checksum ... OK
Uncompressing Kernel Image ... ERROR: LzmaDecode.c, 547
Decoding error = 1
LZMA ERROR 1 - must RESET board to recover