Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 198672 | Differences between
and this patch

Collapse All | Expand All

(-)kat/scatterlist_has_page.c (-2 / +5 lines)
Lines 1-7 Link Here
1
#include <linux/autoconf.h>
1
#include <linux/autoconf.h>
2
#include <linux/scatterlist.h>
2
#include <linux/scatterlist.h>
3
3
4
struct scatterlist s = { .page = 0 };
4
/* Note: scatterlist.page is used in kernel (2.6.0 <= version < 2.6.24) */
5
6
struct scatterlist s = { .page_link = 0 };
5
7
6
//T#define KAT_SCATTERLIST_HAS_PAGE
8
//T#define KAT_SCATTERLIST_HAS_PAGE_LINK
7
//F#include <linux/scatterlist.h>
9
//F#include <linux/scatterlist.h>
10
(-)vhba.c (-3 / +3 lines)
Lines 566-575 Link Here
566
				}
566
				}
567
				uaddr += len;
567
				uaddr += len;
568
568
569
#ifdef KAT_SCATTERLIST_HAS_PAGE
569
#ifdef KAT_SCATTERLIST_HAS_PAGE_LINK
570
				kaddr = kmap_atomic(sg_page(&sg[i]), KM_USER0);
571
#else
570
				kaddr = kmap_atomic(sg[i].page, KM_USER0);
572
				kaddr = kmap_atomic(sg[i].page, KM_USER0);
571
#else
572
				kaddr = kmap_atomic(sg_page(&sg[i]), KM_USER0);
573
#endif				
573
#endif				
574
				memcpy(kaddr + sg[i].offset, kbuf, len);
574
				memcpy(kaddr + sg[i].offset, kbuf, len);
575
				kunmap_atomic(kaddr, KM_USER0);
575
				kunmap_atomic(kaddr, KM_USER0);

Return to bug 198672