LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] lib/scatterlist.o needed by a module only - link it in unconditionally
@ 2008-02-08 20:00 Guennadi Liakhovetski
  2008-02-08 20:46 ` Jens Axboe
  0 siblings, 1 reply; 3+ messages in thread
From: Guennadi Liakhovetski @ 2008-02-08 20:00 UTC (permalink / raw)
  To: linux-kernel; +Cc: Jens Axboe

lib/scatterlist.c is needed by drivers/media/video/videobuf-dma-sg.c, and 
we would like to be able to use the latter without PCI too, for example, 
on PXA270 ARM CPU. It is then possible to create a configuration with 
CONFIG_BLOCK=n, where only module code will need scatterlist.c. Therefore 
it must be in obj-y.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@pengutronix.de>

---

diff --git a/lib/Makefile b/lib/Makefile
index 543f250..7475da4 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -6,7 +6,7 @@ lib-y := ctype.o string.o vsprintf.o cmdline.o \
 	 rbtree.o radix-tree.o dump_stack.o \
 	 idr.o int_sqrt.o extable.o prio_tree.o \
 	 sha1.o irq_regs.o reciprocal_div.o argv_split.o \
-	 proportions.o prio_heap.o scatterlist.o
+	 proportions.o prio_heap.o
 
 lib-$(CONFIG_MMU) += ioremap.o
 lib-$(CONFIG_SMP) += cpumask.o
@@ -14,7 +14,7 @@ lib-$(CONFIG_SMP) += cpumask.o
 lib-y	+= kobject.o kref.o klist.o
 
 obj-y += div64.o sort.o parser.o halfmd4.o debug_locks.o random32.o \
-	 bust_spinlocks.o hexdump.o kasprintf.o bitmap.o
+	 bust_spinlocks.o hexdump.o kasprintf.o bitmap.o scatterlist.o
 
 ifeq ($(CONFIG_DEBUG_KOBJECT),y)
 CFLAGS_kobject.o += -DDEBUG

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

* Re: [PATCH] lib/scatterlist.o needed by a module only - link it in  unconditionally
  2008-02-08 20:00 [PATCH] lib/scatterlist.o needed by a module only - link it in unconditionally Guennadi Liakhovetski
@ 2008-02-08 20:46 ` Jens Axboe
  2008-02-08 21:10   ` Andrew Morton
  0 siblings, 1 reply; 3+ messages in thread
From: Jens Axboe @ 2008-02-08 20:46 UTC (permalink / raw)
  To: Guennadi Liakhovetski; +Cc: linux-kernel, Andrew Morton

On Fri, Feb 08 2008, Guennadi Liakhovetski wrote:
> lib/scatterlist.c is needed by drivers/media/video/videobuf-dma-sg.c, and 
> we would like to be able to use the latter without PCI too, for example, 
> on PXA270 ARM CPU. It is then possible to create a configuration with 
> CONFIG_BLOCK=n, where only module code will need scatterlist.c. Therefore 
> it must be in obj-y.
> 
> Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@pengutronix.de>

Acked-by: Jens Axboe <jens.axboe@oracle.com>

Andrew, can I ask you to take care of this?

-- 
Jens Axboe


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

* Re: [PATCH] lib/scatterlist.o needed by a module only - link it in unconditionally
  2008-02-08 20:46 ` Jens Axboe
@ 2008-02-08 21:10   ` Andrew Morton
  0 siblings, 0 replies; 3+ messages in thread
From: Andrew Morton @ 2008-02-08 21:10 UTC (permalink / raw)
  To: Jens Axboe; +Cc: g.liakhovetski, linux-kernel

On Fri, 8 Feb 2008 21:46:11 +0100
Jens Axboe <jens.axboe@oracle.com> wrote:

> On Fri, Feb 08 2008, Guennadi Liakhovetski wrote:
> > lib/scatterlist.c is needed by drivers/media/video/videobuf-dma-sg.c, and 
> > we would like to be able to use the latter without PCI too, for example, 
> > on PXA270 ARM CPU. It is then possible to create a configuration with 
> > CONFIG_BLOCK=n, where only module code will need scatterlist.c. Therefore 
> > it must be in obj-y.
> > 
> > Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@pengutronix.de>
> 
> Acked-by: Jens Axboe <jens.axboe@oracle.com>
> 
> Andrew, can I ask you to take care of this?

sure..

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

end of thread, other threads:[~2008-02-08 21:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-08 20:00 [PATCH] lib/scatterlist.o needed by a module only - link it in unconditionally Guennadi Liakhovetski
2008-02-08 20:46 ` Jens Axboe
2008-02-08 21:10   ` Andrew Morton

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