login
Header Space

 
 

Re: [PATCH] kernel/time.c: Silence gcc warning 'integer constant to large for long type'

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: H. Peter Anvin <hpa@...>
Cc: Carlos R. Mafra <crmafra@...>, Linux Kernel Mailing List <linux-kernel@...>
Date: Friday, May 2, 2008 - 6:17 pm

On Fri, 2 May 2008, H. Peter Anvin wrote:

This is *still* wrong.

That C type prefix should be at the *define*, not the use of those macros.

The thing is, if C code needs to do

	U64_C(HZ_TO_USEC_MUL32)

to use the macro HZ_TO_USEC_MUL32, then that is a *bug* in the macro.

That kind of stuff should not be visible to users of plain constants!

		Linus
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] kernel/time.c: Silence gcc warning 'integer cons..., Linus Torvalds, (Fri May 2, 6:17 pm)
speck-geostationary