From e9aa9b7d679302247de92e552dc250268298f18d Mon Sep 17 00:00:00 2001 From: HiGarfield Date: Sat, 30 Dec 2023 01:05:35 +0800 Subject: [PATCH] exfat: fix ALIGN_DOWN undefined error --- balloc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/balloc.c b/balloc.c index 63967f6..5aa9b4a 100644 --- a/balloc.c +++ b/balloc.c @@ -30,6 +30,10 @@ #error "BITS_PER_LONG not 32 or 64" #endif +#ifndef ALIGN_DOWN +#define ALIGN_DOWN(x, a) __ALIGN_KERNEL((x) - ((a) - 1), (a)) +#endif + /* * Allocation Bitmap Management Functions */