ext4l: Use the real crc16 implementation
The crc16() stub always returns 0, which causes group-descriptor checksum-verification to fail for filesystems using the old CRC16 checksum algorithm (gdt_csum feature without metadata_csum). Replace the stub with U-Boot's real CRC16 implementation to allow mounting these filesystems. Co-developed-by: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: Simon Glass <simon.glass@canonical.com>
This commit is contained in:
@@ -2153,8 +2153,8 @@ struct fs_parse_result {
|
||||
/* ctype */
|
||||
#include <linux/ctype.h>
|
||||
|
||||
/* crc16 */
|
||||
#define crc16(crc, buf, len) (0)
|
||||
/* crc16 - use U-Boot's implementation */
|
||||
#include <linux/crc16.h>
|
||||
|
||||
/* Timer and timing stubs */
|
||||
#define HZ 1000
|
||||
|
||||
Reference in New Issue
Block a user