mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/5] include/linux/log2.h warning fix
@ 2018-08-24  2:58 Andrey Smirnov
  2018-08-24  2:58 ` [PATCH 1/5] log2: make order_base_2() behave correctly on const input value zero Andrey Smirnov
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Andrey Smirnov @ 2018-08-24  2:58 UTC (permalink / raw)
  To: barebox; +Cc: andrew.smirnov

Everyone:

This series is result of fixing compiler warnings similar to the one
below:

In file included from drivers/clk/clk-divider.c:22:
include/linux/log2.h:22:1: warning: ignoring attribute ‘noreturn’ because it conflicts with attribute ‘const’ [-Wattributes]
 int ____ilog2_NaN(void);

that I've been observing lately. Technically only the patch by Linus
is really needed, but given that those patches could be applied as-is
pretty easily I "backported" all of the recent kernel changes to
log2.h

Feedback is welcome!

Thanks,
Andrey Smirnov

Andrey Smirnov (1):
  log2: Use fls_long() in __roundup_pow_of_two()

Ard Biesheuvel (1):
  log2: make order_base_2() behave correctly on const input value zero

Linus Torvalds (1):
  give up on gcc ilog2() constant optimizations

Martin Wilck (1):
  scsi: ilog2: create truly constant version for sparse

Randy Dunlap (1):
  linux/log2.h: fix kernel-doc notation

 include/linux/log2.h | 89 +++++++++++++++++++++++++++-----------------
 1 file changed, 54 insertions(+), 35 deletions(-)

-- 
2.17.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-08-24  8:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-24  2:58 [PATCH 0/5] include/linux/log2.h warning fix Andrey Smirnov
2018-08-24  2:58 ` [PATCH 1/5] log2: make order_base_2() behave correctly on const input value zero Andrey Smirnov
2018-08-24  2:58 ` [PATCH 2/5] give up on gcc ilog2() constant optimizations Andrey Smirnov
2018-08-24  2:58 ` [PATCH 3/5] log2: Use fls_long() in __roundup_pow_of_two() Andrey Smirnov
2018-08-24  2:58 ` [PATCH 4/5] linux/log2.h: fix kernel-doc notation Andrey Smirnov
2018-08-24  2:58 ` [PATCH 5/5] scsi: ilog2: create truly constant version for sparse Andrey Smirnov
2018-08-24  8:23 ` [PATCH 0/5] include/linux/log2.h warning fix Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox