Patch "m68k: Fix ndelay() macro" has been added to the 4.4-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
m68k: Fix ndelay() macro
to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
m68k-fix-ndelay-macro.patch
and it can be found in the queue-4.4 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
7e251bb21ae08ca2e4fb28cc0981fac2685a8efaMon Sep 17 00:00:00 2001
From: Boris Brezillon <[email protected]>
Date: Fri, 28 Oct 2016 17:12:28 +0200
Subject: m68k: Fix ndelay() macro
From: Boris Brezillon <[email protected]>
commit 7e251bb21ae08ca2e4fb28cc0981fac2685a8efa upstream.
The current ndelay() macro definition has an extra semi-colon at the end of the line thus leading to a compilation error when ndelay is used in a conditional block without curly braces like this one:
if (cond) ndelay(t); else ...
which, after the preprocessor pass gives:
if (cond) m68k_ndelay(t);; else ...
thus leading to the following gcc error:
error: 'else' without a previous 'if'
Remove this extra semi-colon.
--- arch/m68k/include/asm/delay.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/m68k/include/asm/delay.h +1 -1
@@ -114,6 +114,6 @@ static inline void __udelay(unsigned lon*/ #define HZSCALE (268435456 / (1000000 / HZ)) -#define ndelay (n) __delay(DIV_ROUND_UP((n) * ((((HZSCALE) >> 11) * (loops_per_jiffy >> 11)) >> 6), 1000)); +#define ndelay (n) __delay(DIV_ROUND_UP((n) * ((((HZSCALE) >> 11) * (loops_per_jiffy >> 11)) >> 6), 1000))#endif /* defined(_M68K_DELAY_H) */
Patches currently in stable-queue which might be from [email protected] are
queue-4.4/m68k-fix-ndelay-macro.patch