Skip to contentSkip to conversation

kfifo-cleanup-example-to-not-use-page_link.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jul 13, 2017

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: kfifo: clean up example to not use page_link
has been removed from the -mm tree. Its filename was
kfifo-cleanup-example-to-not-use-page_link.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Logan Gunthorpe <[email protected]>
Subject: kfifo: clean up example to not use page_link

This is a layering violation so we replace the uses with calls to sg_page(). This is a prep patch for replacing page_link and this is one of the very few uses outside of scatterlist.h.

---

 samples/kfifo/dma-example.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
samples/kfifo/dma-example.c renamed from samples/kfifo/dma-example.c~kfifo-cleanup-example-to-not-use-page_link +4 -4
diff -puN samples/kfifo/dma-example.c~kfifo-cleanup-example-to-not-use-page_link samples/kfifo/dma-example.c
@@ -75,8 +75,8 @@ static int __init example_init(void)
 	for (i = 0; i < nents; i++) {
 		printk(KERN_INFO
 		"sg[%d] -> "
-		"page_link 0x%.8lx offset 0x%.8x length 0x%.8x\n",
-			i, sg[i].page_link, sg[i].offset, sg[i].length);
+		"page %p offset 0x%.8x length 0x%.8x\n",
+			i, sg_page(&sg[i]), sg[i].offset, sg[i].length);
 
 		if (sg_is_last(&sg[i]))
 			break;
@@ -104,8 +104,8 @@ static int __init example_init(void)
 	for (i = 0; i < nents; i++) {
 		printk(KERN_INFO
 		"sg[%d] -> "
-		"page_link 0x%.8lx offset 0x%.8x length 0x%.8x\n",
-			i, sg[i].page_link, sg[i].offset, sg[i].length);
+		"page %p offset 0x%.8x length 0x%.8x\n",
+			i, sg_page(&sg[i]), sg[i].offset, sg[i].length);
 
 		if (sg_is_last(&sg[i]))
 			break;

_

Patches currently in -mm which might be from [email protected] are