You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[PATCH] Fix build errors if bitop functions are do {} while macros
If one of clear_bit, change_bit or set_bit is defined as a do { } while (0)
function usage of these functions in parenthesis like
(foo_bit(23, &var))
while be expaned to something like
(do { ... } while (0)}).
resulting in a build error. This patch removes the useless parenthesis.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
Cc: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
e696268a73
commit
7b8f850beb
@@ -297,17 +297,17 @@ static int initialising = 1;
|
||||
#define DRS (&drive_state[current_drive])
|
||||
#define DRWE (&write_errors[current_drive])
|
||||
#define FDCS (&fdc_state[fdc])
|
||||
#define CLEARF(x) (clear_bit(x##_BIT, &DRS->flags))
|
||||
#define SETF(x) (set_bit(x##_BIT, &DRS->flags))
|
||||
#define TESTF(x) (test_bit(x##_BIT, &DRS->flags))
|
||||
#define CLEARF(x) clear_bit(x##_BIT, &DRS->flags)
|
||||
#define SETF(x) set_bit(x##_BIT, &DRS->flags)
|
||||
#define TESTF(x) test_bit(x##_BIT, &DRS->flags)
|
||||
|
||||
#define UDP (&drive_params[drive])
|
||||
#define UDRS (&drive_state[drive])
|
||||
#define UDRWE (&write_errors[drive])
|
||||
#define UFDCS (&fdc_state[FDC(drive)])
|
||||
#define UCLEARF(x) (clear_bit(x##_BIT, &UDRS->flags))
|
||||
#define USETF(x) (set_bit(x##_BIT, &UDRS->flags))
|
||||
#define UTESTF(x) (test_bit(x##_BIT, &UDRS->flags))
|
||||
#define UCLEARF(x) clear_bit(x##_BIT, &UDRS->flags)
|
||||
#define USETF(x) set_bit(x##_BIT, &UDRS->flags)
|
||||
#define UTESTF(x) test_bit(x##_BIT, &UDRS->flags)
|
||||
|
||||
#define DPRINT(format, args...) printk(DEVICE_NAME "%d: " format, current_drive , ## args)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user