Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1556998 > unrolled thread
| Started by | Borislav Petkov <bp@alien8.de> |
|---|---|
| First post | 2017-01-12 00:00 +0100 |
| Last post | 2017-01-12 00:00 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: edac/i7300_edac.c:307: strange macro ? Borislav Petkov <bp@alien8.de> - 2017-01-12 00:00 +0100
| From | Borislav Petkov <bp@alien8.de> |
|---|---|
| Date | 2017-01-12 00:00 +0100 |
| Subject | Re: edac/i7300_edac.c:307: strange macro ? |
| Message-ID | <sYA25-4n7-3@gated-at.bofh.it> |
On Wed, Jan 11, 2017 at 04:48:51PM +0000, David Binderman wrote:
> Hello there,
>
> drivers/edac/i7300_edac.c:307:32: warning: ‘*’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context]
Are you adding some other -W-switches to the kernel Makefile?
:-)
> Source code is
>
> #define IS_SECOND_CH(v) ((v) * (1 << 17))
Looks like a bug to me. According to the chipset doc, bit 17 in REDMEMB
is the locator bit for CS[3:2] which probably means the second channel
but multiplying the full register value with 131072 looks wrong.
> Maybe better code
>
> #define IS_SECOND_CH(v) ((v) & (1 << 17))
Yap.
Mauro, what's up?
--
Regards/Gruss,
Boris.
Good mailing practices for 400: avoid top-posting and trim the reply.
Back to top | Article view | linux.kernel
csiph-web