Thread (2 messages) 2 messages, 2 authors, 2021-02-01

Re: [PATCH 5/8] lib: bitmap: remove the 'extern' keyword from function declarations

flat view

From: Bartosz Golaszewski <hidden>
Date: 2021-01-30 20:26:18
Also in: linux-gpio, lkml

On Fri, Jan 29, 2021 at 4:59 PM Andy Shevchenko
[off-list ref] wrote:
On Fri, Jan 29, 2021 at 02:46:21PM +0100, Bartosz Golaszewski wrote:
quoted
From: Bartosz Golaszewski <redacted>

The 'extern' keyword doesn't have any benefits in header files. Remove it.
quoted
+int __bitmap_equal(const unsigned long *bitmap1,
+                const unsigned long *bitmap2, unsigned int nbits);
Why not

int __bitmap_equal(const unsigned long *bitmap1, const unsigned long *bitmap2,
                   unsigned int nbits);

and so on?

It's even in 80 limit.
I feel like this is purely a matter of taste. No rules define exactly
how the lines should be broken. I prefer the longer part to be below,
it just looks better to my eyes.

Bart
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help