Messages in this thread Patch in this message | | | Date | Thu, 12 Oct 2023 17:56:58 +0800 (GMT+08:00) | From | chenguohua@jari ... | Subject | [PATCH] jiffies: Clean up errors in jiffies.h |
| |
Fix the following errors reported by checkpatch:
ERROR: space required after that ',' (ctx:VxV) ERROR: space required before the open parenthesis '('
Signed-off-by: JiangHui Xu <xujianghui@cdjrlc.com> --- include/linux/jiffies.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/jiffies.h b/include/linux/jiffies.h index e0ae2a43e0eb..6d16a794f1ba 100644 --- a/include/linux/jiffies.h +++ b/include/linux/jiffies.h @@ -53,7 +53,7 @@ * - (NOM / DEN) fits in (32 - LSH) bits. * - (NOM % DEN) fits in (32 - LSH) bits. */ -#define SH_DIV(NOM,DEN,LSH) ( (((NOM) / (DEN)) << (LSH)) \ +#define SH_DIV(NOM, DEN, LSH) ((((NOM) / (DEN)) << (LSH)) \ + ((((NOM) % (DEN)) << (LSH)) + (DEN) / 2) / (DEN)) /* LATCH is used in the interval timer and ftape setup. */ -- 2.17.1 | |