netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ptp_pch: Add missing #include <linux/slab.h>
@ 2012-05-16 11:50 Geert Uytterhoeven
  2012-05-16 17:19 ` Richard Cochran
  2012-05-16 18:58 ` David Miller
  0 siblings, 2 replies; 6+ messages in thread
From: Geert Uytterhoeven @ 2012-05-16 11:50 UTC (permalink / raw)
  To: Takahiro Shimizu, David S. Miller, Richard Cochran
  Cc: netdev, linux-kernel, Geert Uytterhoeven

drivers/ptp/ptp_pch.c: In function 'pch_remove':
drivers/ptp/ptp_pch.c:576:2: error: implicit declaration of function 'kfree' [-Werror=implicit-function-declaration]
drivers/ptp/ptp_pch.c: In function 'pch_probe':
drivers/ptp/ptp_pch.c:587:2: error: implicit declaration of function 'kzalloc' [-Werror=implicit-function-declaration]

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
Not even compile-tested, as it fails on parisc only.
http://kisskb.ellerman.id.au/kisskb/buildresult/6312813/

 drivers/ptp/ptp_pch.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/ptp/ptp_pch.c b/drivers/ptp/ptp_pch.c
index 375eb04..6fff680 100644
--- a/drivers/ptp/ptp_pch.c
+++ b/drivers/ptp/ptp_pch.c
@@ -30,6 +30,7 @@
 #include <linux/module.h>
 #include <linux/pci.h>
 #include <linux/ptp_clock_kernel.h>
+#include <linux/slab.h>
 
 #define STATION_ADDR_LEN	20
 #define PCI_DEVICE_ID_PCH_1588	0x8819
-- 
1.7.0.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread
* [PATCH] ptp_pch: Add missing #include <linux/slab.h>
@ 2012-05-16  8:43 Geert Uytterhoeven
  2012-05-16 11:40 ` Ben Hutchings
  0 siblings, 1 reply; 6+ messages in thread
From: Geert Uytterhoeven @ 2012-05-16  8:43 UTC (permalink / raw)
  To: Takahiro Shimizu, David S. Miller, Richard Cochran
  Cc: netdev, linux-kernel, Geert Uytterhoeven

drivers/ptp/ptp_pch.c: In function 'pch_eth_enable_set':
drivers/ptp/ptp_pch.c:152:2: error: implicit declaration of function 'ioread32' [-Werror=implicit-function-declaration]
drivers/ptp/ptp_pch.c:153:2: error: implicit declaration of function 'iowrite32' [-Werror=implicit-function-declaration]

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
Not even compile-tested, as it fails on parisc/xtensa only.
http://kisskb.ellerman.id.au/kisskb/buildresult/6312813/
http://kisskb.ellerman.id.au/kisskb/buildresult/6313050/

 drivers/ptp/ptp_pch.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/ptp/ptp_pch.c b/drivers/ptp/ptp_pch.c
index 375eb04..6fff680 100644
--- a/drivers/ptp/ptp_pch.c
+++ b/drivers/ptp/ptp_pch.c
@@ -30,6 +30,7 @@
 #include <linux/module.h>
 #include <linux/pci.h>
 #include <linux/ptp_clock_kernel.h>
+#include <linux/slab.h>
 
 #define STATION_ADDR_LEN	20
 #define PCI_DEVICE_ID_PCH_1588	0x8819
-- 
1.7.0.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-05-16 19:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-16 11:50 [PATCH] ptp_pch: Add missing #include <linux/slab.h> Geert Uytterhoeven
2012-05-16 17:19 ` Richard Cochran
2012-05-16 18:58 ` David Miller
  -- strict thread matches above, loose matches on Subject: below --
2012-05-16  8:43 Geert Uytterhoeven
2012-05-16 11:40 ` Ben Hutchings
2012-05-16 11:52   ` Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).