Subject: Re: randconfig build error with next-20150421, in net/ceph

From: Guenter Roeck <[email-masked]>
Date: Tue, 21 Apr 2015 09:16:13 -0700

On Tue, Apr 21, 2015 at 08:10:44AM -0700, Jim Davis wrote:
> Building with the attached random configuration file,
> 
> ERROR: "__divdi3" [net/ceph/libceph.ko] undefined!

Commit 7321f19d ("crush: straw2 bucket type with an efficient 64-bit crush_ln()").

+                       draw = ln / w;

where 'ln' is 64 bit.

Some other oddies in that patch, such as 

+#if defined(__linux__)
+#include <linux/types.h>
+#elif defined(__FreeBSD__)
+#include <sys/types.h>
+#endif

and lots of coding style violations.

Guenter