linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 04/06] kernel.h intr_sqrt cleanup
@ 2010-02-22 14:19 Dave Young
  0 siblings, 0 replies; only message in thread
From: Dave Young @ 2010-02-22 14:19 UTC (permalink / raw)
  To: Mauro Carvalho Chehab, HIRANO Takahito, Hans Verkuil,
	Miroslav Sustek, Marton Balint, Stefano Brivio, John W. Linville,
	netrolller.3d, Greg Kroah-Hartman, Bruce Jones, Manuel Gebele,
	Mithlesh Thukral, Krzysztof Oledzki, Ian Lance Taylor, Troy Moure,
	Trond Myklebust, Benny Halevy, Andy Adamson, Jens Axboe,
	Dean Hildebrand, Balbir Singh, Pavel Emelyanov, KAMEZAWA Hiroyuki,
	Andrew Morton, Daisuke Nishimura, Li Zefan, David Rientjes,
	KOSAKI Motohiro, Nick Piggin, Mel Gorman, Christoph Lameter,
	Pekka Enberg, David S. Miller, Alexey Kuznetsov, pekkas,
	James Morris, Hideaki YOSHIFUJI, Patrick McHardy, Eric Dumazet,
	Neil Horman, Ingo Molnar, Alexey Dobriyan, linux-media,
	linux-kernel, linux-wireless, netdev, devel, linux-fbdev,
	linux-nfs, linux-mm

int_sqrt in kernel.h should be put into a standalone head file

cleanup int_sqrt declarations in kernel.h, put them into int_sqrt.h
include int_sqrt.h in every file which need it

Signed-off-by: Dave Young <hidave.darkstar@gmail.com>
---
 drivers/media/dvb/pt1/va1j5jf8007s.c     |    1 +
 drivers/media/video/cx88/cx88-dsp.c      |    1 +
 drivers/net/wireless/b43/phy_lp.c        |    1 +
 drivers/staging/comedi/drivers/vmk80xx.c |    1 +
 drivers/video/fbmon.c                    |    1 +
 fs/nfs/write.c                           |    1 +
 include/linux/int_sqrt.h                 |    6 ++++++
 lib/int_sqrt.c                           |    1 +
 mm/memcontrol.c                          |    1 +
 mm/oom_kill.c                            |    1 +
 mm/page_alloc.c                          |    1 +
 net/ipv4/route.c                         |    1 +
 12 files changed, 17 insertions(+)

--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ linux-2.6/include/linux/int_sqrt.h	2010-02-16 17:39:26.000000000 +0800
@@ -0,0 +1,6 @@
+#ifndef _INT_SQRT_H
+#define _INT_SQRT_H
+
+extern unsigned long int_sqrt(unsigned long);
+
+#endif
--- linux-2.6.orig/drivers/media/dvb/pt1/va1j5jf8007s.c	2010-02-16 17:11:37.000000000 +0800
+++ linux-2.6/drivers/media/dvb/pt1/va1j5jf8007s.c	2010-02-16 17:39:26.000000000 +0800
@@ -25,6 +25,7 @@
 #include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/i2c.h>
+#include <linux/int_sqrt.h>
 #include "dvb_frontend.h"
 #include "va1j5jf8007s.h"
 
--- linux-2.6.orig/drivers/media/video/cx88/cx88-dsp.c	2010-02-16 17:11:37.000000000 +0800
+++ linux-2.6/drivers/media/video/cx88/cx88-dsp.c	2010-02-16 17:39:26.000000000 +0800
@@ -22,6 +22,7 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/jiffies.h>
+#include <linux/int_sqrt.h>
 #include <asm/div64.h>
 
 #include "cx88.h"
--- linux-2.6.orig/drivers/net/wireless/b43/phy_lp.c	2010-02-16 17:11:37.000000000 +0800
+++ linux-2.6/drivers/net/wireless/b43/phy_lp.c	2010-02-16 17:39:26.000000000 +0800
@@ -23,6 +23,7 @@
 
 */
 
+#include <linux/int_sqrt.h>
 #include "b43.h"
 #include "main.h"
 #include "phy_lp.h"
--- linux-2.6.orig/drivers/staging/comedi/drivers/vmk80xx.c	2010-02-16 17:11:37.000000000 +0800
+++ linux-2.6/drivers/staging/comedi/drivers/vmk80xx.c	2010-02-16 17:39:26.000000000 +0800
@@ -61,6 +61,7 @@ Changelog:
 #include <linux/poll.h>
 #include <linux/usb.h>
 #include <linux/uaccess.h>
+#include <linux/int_sqrt.h>
 
 #include "../comedidev.h"
 
--- linux-2.6.orig/drivers/video/fbmon.c	2010-02-16 17:11:37.000000000 +0800
+++ linux-2.6/drivers/video/fbmon.c	2010-02-16 17:39:26.000000000 +0800
@@ -29,6 +29,7 @@
 #include <linux/fb.h>
 #include <linux/module.h>
 #include <linux/pci.h>
+#include <linux/int_sqrt.h>
 #include <video/edid.h>
 #ifdef CONFIG_PPC_OF
 #include <asm/prom.h>
--- linux-2.6.orig/fs/nfs/write.c	2010-02-16 17:11:37.000000000 +0800
+++ linux-2.6/fs/nfs/write.c	2010-02-16 17:39:26.000000000 +0800
@@ -20,6 +20,7 @@
 #include <linux/nfs_mount.h>
 #include <linux/nfs_page.h>
 #include <linux/backing-dev.h>
+#include <linux/int_sqrt.h>
 
 #include <asm/uaccess.h>
 
--- linux-2.6.orig/lib/int_sqrt.c	2010-02-16 17:11:37.000000000 +0800
+++ linux-2.6/lib/int_sqrt.c	2010-02-16 17:39:26.000000000 +0800
@@ -1,6 +1,7 @@
 
 #include <linux/kernel.h>
 #include <linux/module.h>
+#include <linux/int_sqrt.h>
 
 /**
  * int_sqrt - rough approximation to sqrt
--- linux-2.6.orig/mm/memcontrol.c	2010-02-16 17:11:37.000000000 +0800
+++ linux-2.6/mm/memcontrol.c	2010-02-16 17:39:26.000000000 +0800
@@ -39,6 +39,7 @@
 #include <linux/mm_inline.h>
 #include <linux/page_cgroup.h>
 #include <linux/cpu.h>
+#include <linux/int_sqrt.h>
 #include "internal.h"
 
 #include <asm/uaccess.h>
--- linux-2.6.orig/mm/oom_kill.c	2010-02-16 17:11:37.000000000 +0800
+++ linux-2.6/mm/oom_kill.c	2010-02-16 17:39:26.000000000 +0800
@@ -27,6 +27,7 @@
 #include <linux/notifier.h>
 #include <linux/memcontrol.h>
 #include <linux/security.h>
+#include <linux/int_sqrt.h>
 
 int sysctl_panic_on_oom;
 int sysctl_oom_kill_allocating_task;
--- linux-2.6.orig/mm/page_alloc.c	2010-02-16 17:11:37.000000000 +0800
+++ linux-2.6/mm/page_alloc.c	2010-02-16 17:39:26.000000000 +0800
@@ -49,6 +49,7 @@
 #include <linux/debugobjects.h>
 #include <linux/kmemleak.h>
 #include <linux/memory.h>
+#include <linux/int_sqrt.h>
 #include <trace/events/kmem.h>
 
 #include <asm/tlbflush.h>
--- linux-2.6.orig/net/ipv4/route.c	2010-02-16 17:11:37.000000000 +0800
+++ linux-2.6/net/ipv4/route.c	2010-02-16 17:39:26.000000000 +0800
@@ -104,6 +104,7 @@
 #include <net/xfrm.h>
 #include <net/netevent.h>
 #include <net/rtnetlink.h>
+#include <linux/int_sqrt.h>
 #ifdef CONFIG_SYSCTL
 #include <linux/sysctl.h>
 #endif

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-02-22 14:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-22 14:19 [PATCH 04/06] kernel.h intr_sqrt cleanup Dave Young

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).