diff options
| author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-05-21 03:52:16 -0400 |
|---|---|---|
| committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-05-21 03:52:16 -0400 |
| commit | e1b73cba13a0cc68dd4f746eced15bd6bb24cda4 (patch) | |
| tree | b1c9e10730724024a700031ad56c20419dabb500 /include/linux/scatterlist.h | |
| parent | 98304ad186296dc1e655399e28d5973c21db6a73 (diff) | |
| parent | c7788792a5e7b0d5d7f96d0766b4cb6112d47d75 (diff) | |
Merge tag 'v3.10-rc2' into drm-intel-next-queued
Backmerge Linux 3.10-rc2 since the various (rather trivial) conflicts
grew a bit out of hand. intel_dp.c has the only real functional
conflict since the logic changed while dev_priv->edp.bpp was moved
around.
Also squash in a whitespace fixup from Ben Widawsky for
i915_gem_gtt.c, git seems to do something pretty strange in there
(which I don't fully understand tbh).
Conflicts:
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_dp.c
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include/linux/scatterlist.h')
| -rw-r--r-- | include/linux/scatterlist.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/scatterlist.h b/include/linux/scatterlist.h index e96b9546c4c6..5951e3f38878 100644 --- a/include/linux/scatterlist.h +++ b/include/linux/scatterlist.h | |||
| @@ -172,6 +172,22 @@ static inline void sg_mark_end(struct scatterlist *sg) | |||
| 172 | } | 172 | } |
| 173 | 173 | ||
| 174 | /** | 174 | /** |
| 175 | * sg_unmark_end - Undo setting the end of the scatterlist | ||
| 176 | * @sg: SG entryScatterlist | ||
| 177 | * | ||
| 178 | * Description: | ||
| 179 | * Removes the termination marker from the given entry of the scatterlist. | ||
| 180 | * | ||
| 181 | **/ | ||
| 182 | static inline void sg_unmark_end(struct scatterlist *sg) | ||
| 183 | { | ||
| 184 | #ifdef CONFIG_DEBUG_SG | ||
| 185 | BUG_ON(sg->sg_magic != SG_MAGIC); | ||
| 186 | #endif | ||
| 187 | sg->page_link &= ~0x02; | ||
| 188 | } | ||
| 189 | |||
| 190 | /** | ||
| 175 | * sg_phys - Return physical address of an sg entry | 191 | * sg_phys - Return physical address of an sg entry |
| 176 | * @sg: SG entry | 192 | * @sg: SG entry |
| 177 | * | 193 | * |
