
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
Hi Marek,
On 16.12.2015 23:11, Marek Vasut wrote:
On Wednesday, December 16, 2015 at 10:58:38 PM, Mateusz Kulikowski wrote:
[...]
+#include <console.h> +#include <asm/io.h> +#include <asm/errno.h>
+int wait_for_bit(const char *prefix, const u32 *reg, const u32 mask,
const bool set, const unsigned int timeout,
const bool breakable)
+{
I wonder, what would happen if you stuffed this function into the header file altogether ? I think this would allow the compiler to do interprocedure optimalization on whichever file this would be included into. I wonder if that would have any impact on the resulting code size.
Of course I can make it static inline.
I was suggested not to care about possible leftovers that are not garbage-collected by linker so didn't changed that on V2.
It's (max) few bytes that may be consumed by section alignment.
Regards, Mateusz