Thread (3 messages) 3 messages, 2 authors, 2020-08-24

Re: [PATCH 00/49] DRM driver for Hikey 970

From: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Date: 2020-08-21 14:42:17
Also in: bpf, dri-devel, linux-devicetree, linux-media, lkml, netdev

Another quick question:

Em Wed, 19 Aug 2020 19:35:58 +0200
Sam Ravnborg [off-list ref] escreveu:
quoted
+#define DSS_REDUCE(x)	((x) > 0 ? ((x) - 1) : (x))  
Use generic macros for this?
Do you know a generic macro similar to this? Or do you mean adding
it to include/kernel.h?

There are the atomic sub ones, but doesn't make sense here.

The closest one I found was min_not_zero(), but this would
take two args.

Btw, I agree that the name here is a bit odd... I would
have called such macro as 'dec_not_zero()'.

Thanks,
Mauro

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help