From mboxrd@z Thu Jan 1 00:00:00 1970 From: Randy Dunlap Subject: [PATCH -next] random: needs linux/device.h for struct device Date: Mon, 04 Nov 2013 08:06:16 -0800 Message-ID: <5277C5F8.3080609@infradead.org> References: <20131104175916.763e3c0cf001b9f948f2baa7@canb.auug.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from merlin.infradead.org ([205.233.59.134]:35384 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751526Ab3KDQGT (ORCPT ); Mon, 4 Nov 2013 11:06:19 -0500 In-Reply-To: <20131104175916.763e3c0cf001b9f948f2baa7@canb.auug.org.au> Sender: linux-next-owner@vger.kernel.org List-ID: To: Stephen Rothwell , linux-next@vger.kernel.org Cc: LKML , Theodore Ts'o , Kees Cook , Greg Kroah-Hartman on x86_64: drivers/char/random.c: In function 'add_device_attach_randomness': drivers/char/random.c:837:41: error: dereferencing pointer to incomplete type need to #include for struct device, I think. Yes, that works. --- From: Randy Dunlap Fix struct device build failure on x86_64 by including : drivers/char/random.c: In function 'add_device_attach_randomness': drivers/char/random.c:837:41: error: dereferencing pointer to incomplete type Signed-off-by: Randy Dunlap --- drivers/char/random.c | 1 + 1 file changed, 1 insertion(+) --- linux-next-20131104.orig/drivers/char/random.c +++ linux-next-20131104/drivers/char/random.c @@ -240,6 +240,7 @@ #include #include #include +#include #include #include #include ---