lkml.org 
[lkml]   [2013]   [Jan]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: mmotm 2013-01-11-15-47 uploaded (x86 asm-offsets broken)
On Fri, 11 Jan 2013 17:43:06 -0800 Randy Dunlap <rdunlap@infradead.org> wrote:
>
> b0rked.
>
> Some (randconfig?) causes this set of errors:
>
> CC arch/x86/kernel/asm-offsets.s
> In file included from include/linux/ktime.h:25:0,
> from include/linux/timer.h:5,
> from include/linux/workqueue.h:8,
> from include/linux/srcu.h:34,
> from include/linux/notifier.h:15,
> from include/linux/memory_hotplug.h:6,
> from include/linux/mmzone.h:761,
> from include/linux/gfp.h:4,
> from include/linux/slab.h:12,
> from include/linux/crypto.h:24,
> from arch/x86/kernel/asm-offsets.c:8:
> include/linux/jiffies.h: In function '__inline_jiffies_to_msecs':
> include/linux/jiffies.h:306:10: error: 'HZ_TO_MSEC_MUL32' undeclared (first use in this function)
> include/linux/jiffies.h:306:10: note: each undeclared identifier is reported only once for each function it appears in
> include/linux/jiffies.h:306:35: error: 'HZ_TO_MSEC_SHR32' undeclared (first use in this function)
> include/linux/jiffies.h: In function '__inline_jiffies_to_usecs':
> include/linux/jiffies.h:328:10: error: 'HZ_TO_USEC_MUL32' undeclared (first use in this function)
> include/linux/jiffies.h:328:35: error: 'HZ_TO_USEC_SHR32' undeclared (first use in this function)
> include/linux/jiffies.h: In function '__inline_msecs_to_jiffies':
> include/linux/jiffies.h:392:10: error: 'MSEC_TO_HZ_MUL32' undeclared (first use in this function)
> include/linux/jiffies.h:392:33: error: 'MSEC_TO_HZ_ADJ32' undeclared (first use in this function)
> include/linux/jiffies.h:393:6: error: 'MSEC_TO_HZ_SHR32' undeclared (first use in this function)
> include/linux/jiffies.h: In function '__inline_usecs_to_jiffies':
> include/linux/jiffies.h:413:10: error: 'USEC_TO_HZ_MUL32' undeclared (first use in this function)
> include/linux/jiffies.h:413:33: error: 'USEC_TO_HZ_ADJ32' undeclared (first use in this function)
> include/linux/jiffies.h:414:6: error: 'USEC_TO_HZ_SHR32' undeclared (first use in this function)

So, what am I missing? ... how could that have worked - those constants are
generated into kernel/timeconst.h which is only included in kernel/time.c
(from where all this code was moved to jiffies.h).

--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2013-01-12 03:41    [W:0.070 / U:2.236 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site