<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/staging/android/sync.c, branch v3.12.10</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/drivers/staging/android/sync.c?h=v3.12.10</id>
<link rel='self' href='https://git.amat.us/linux/atom/drivers/staging/android/sync.c?h=v3.12.10'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2013-08-16T00:27:30Z</updated>
<entry>
<title>android/sync: use get_unused_fd_flags(O_CLOEXEC) instead of get_unused_fd()</title>
<updated>2013-08-16T00:27:30Z</updated>
<author>
<name>Yann Droneaud</name>
<email>ydroneaud@opteya.com</email>
</author>
<published>2013-08-15T13:10:54Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=9c6cd3b39048c8bbb83c5cd936f4dffc847321c6'/>
<id>urn:sha1:9c6cd3b39048c8bbb83c5cd936f4dffc847321c6</id>
<content type='text'>
Macro get_unused_fd() is used to allocate a file descriptor with
default flags. Those default flags (0) can be "unsafe":
O_CLOEXEC must be used by default to not leak file descriptor
across exec().

Instead of macro get_unused_fd(), functions anon_inode_getfd()
or get_unused_fd_flags() should be used with flags given by userspace.
If not possible, flags should be set to O_CLOEXEC to provide userspace
with a default safe behavor.

In a further patch, get_unused_fd() will be removed so that
new code start using anon_inode_getfd() or get_unused_fd_flags()
with correct flags.

This patch replaces calls to get_unused_fd() with call to
get_unused_fd_flags(O_CLOEXEC) following advice from Erik Gilling.

Signed-off-by: Yann Droneaud &lt;ydroneaud@opteya.com&gt;
Cc: Erik Gilling &lt;konkers@android.com&gt;
Cc: Colin Cross &lt;ccross@google.com&gt;
Link: http://lkml.kernel.org/r/CACSP8SjXGMk2_kX_+RgzqqQwqKernvF1Wt3K5tw991W5dfAnCA@mail.gmail.com
Link: http://lkml.kernel.org/r/cover.1376327678.git.ydroneaud@opteya.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: android: sync: fix up a sparse warning</title>
<updated>2013-06-04T22:59:23Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@linuxfoundation.org</email>
</author>
<published>2013-06-04T22:59:23Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=cd0c1d70f69a8ac51634ef878ce6610044ee166c'/>
<id>urn:sha1:cd0c1d70f69a8ac51634ef878ce6610044ee166c</id>
<content type='text'>
Fix up a sparse warning about sync_dump that was reported.

Reported-by: kbuild test robot &lt;fengguang.wu@intel.com&gt;
Cc: Erik Gilling &lt;konkers@android.com&gt;
Cc: John Stultz &lt;john.stultz@linaro.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: android: Replace seq_printf with seq_puts</title>
<updated>2013-05-12T15:36:02Z</updated>
<author>
<name>Hema Prathaban</name>
<email>hemaklnce@gmail.com</email>
</author>
<published>2013-05-08T18:59:34Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=a0eacf2959a2879dce29d35568d78fcfeea54d86'/>
<id>urn:sha1:a0eacf2959a2879dce29d35568d78fcfeea54d86</id>
<content type='text'>
Fixes the following checkpatch warning:
WARNING: Prefer seq_puts to seq_printf

Signed-off-by: Hema Prathaban &lt;hemaklnce@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: android: Remove unnecessary braces</title>
<updated>2013-05-12T15:36:01Z</updated>
<author>
<name>Hema Prathaban</name>
<email>hemaklnce@gmail.com</email>
</author>
<published>2013-05-08T18:57:09Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=d03f6bbaa42c2c5466350718f804537384902d5d'/>
<id>urn:sha1:d03f6bbaa42c2c5466350718f804537384902d5d</id>
<content type='text'>
Fixes the following checkpatch warning:
WARNING: braces {} are not necessary for single statement blocks

Signed-off-by: Hema Prathaban &lt;hemaklnce@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: sync: Add compat_ioctl handlers to sync drivers</title>
<updated>2013-03-29T19:35:28Z</updated>
<author>
<name>Dmitry Pervushin</name>
<email>dmitry.pervushin@linaro.org</email>
</author>
<published>2013-03-29T17:50:02Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=c37b95eeefee32a765a9bbbfeaece48a361b2d23'/>
<id>urn:sha1:c37b95eeefee32a765a9bbbfeaece48a361b2d23</id>
<content type='text'>
The sync drivers are missing compat_ioctl handlers, so this
patch adds them.

The same change has been submitted to AOSP:
        https://android-review.googlesource.com/#/c/54901/
        Change-Id: If1a1ecc3952b321c8d64c6a8b050104859efc4b1

Cc: Erik Gilling &lt;konkers@android.com&gt;
Cc: Dmitry Pervushin &lt;dmitry.pervushin@linaro.org&gt;
Cc: Bernhard Rosenkränzer &lt;Bernhard.Rosenkranzer@linaro.org&gt;
Cc: Android Kernel Team &lt;kernel-team@android.com&gt;
Signed-off-by: Dmitry Pervushin &lt;dmitry.pervushin@linaro.org&gt;
Signed-off-by: John Stultz &lt;john.stultz@linaro.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: sync: fix return value check in sync_fence_alloc()</title>
<updated>2013-03-11T17:14:35Z</updated>
<author>
<name>Wei Yongjun</name>
<email>yongjun_wei@trendmicro.com.cn</email>
</author>
<published>2013-03-11T13:45:34Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=59691367be00806a3ab1c6a125ced6ed87e91356'/>
<id>urn:sha1:59691367be00806a3ab1c6a125ced6ed87e91356</id>
<content type='text'>
In case of error, the function anon_inode_getfile() returns
ERR_PTR() and never returns NULL. The NULL test in the return
value check should be replaced with IS_ERR().

Signed-off-by: Wei Yongjun &lt;yongjun_wei@trendmicro.com.cn&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: sync: Fix timeout = 0 wait behavior</title>
<updated>2013-03-04T09:46:55Z</updated>
<author>
<name>Jamie Gennis</name>
<email>jgennis@google.com</email>
</author>
<published>2013-03-01T00:43:26Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=573632c2eaf87429a89490173f34682bb71f6883'/>
<id>urn:sha1:573632c2eaf87429a89490173f34682bb71f6883</id>
<content type='text'>
Fix wait behavior on timeout == 0 case

Cc: Maarten Lankhorst &lt;maarten.lankhorst@canonical.com&gt;
Cc: Erik Gilling &lt;konkers@android.com&gt;
Cc: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
Cc: Rob Clark &lt;robclark@gmail.com&gt;
Cc: Sumit Semwal &lt;sumit.semwal@linaro.org&gt;
Cc: dri-devel@lists.freedesktop.org
Cc: Android Kernel Team &lt;kernel-team@android.com&gt;
Signed-off-by: Jamie Gennis &lt;jgennis@google.com&gt;
[jstultz: Added commit message]
Signed-off-by: John Stultz &lt;john.stultz@linaro.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: sync: Don't log wait timeouts when timeout = 0</title>
<updated>2013-03-04T09:46:55Z</updated>
<author>
<name>Erik Gilling</name>
<email>konkers@android.com</email>
</author>
<published>2013-03-01T00:43:25Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=4c67d802119813f11fd7c71ca9e6d0f805ea414a'/>
<id>urn:sha1:4c67d802119813f11fd7c71ca9e6d0f805ea414a</id>
<content type='text'>
If the timeout is zero, don't trip the timeout debugging

Cc: Maarten Lankhorst &lt;maarten.lankhorst@canonical.com&gt;
Cc: Erik Gilling &lt;konkers@android.com&gt;
Cc: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
Cc: Rob Clark &lt;robclark@gmail.com&gt;
Cc: Sumit Semwal &lt;sumit.semwal@linaro.org&gt;
Cc: dri-devel@lists.freedesktop.org
Cc: Android Kernel Team &lt;kernel-team@android.com&gt;
Signed-off-by: Erik Gilling &lt;konkers@android.com&gt;
[jstultz: Added commit message]
Signed-off-by: John Stultz &lt;john.stultz@linaro.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: sync: Fix race condition between merge and signal</title>
<updated>2013-03-04T09:46:55Z</updated>
<author>
<name>Ørjan Eide</name>
<email>orjan.eide@arm.com</email>
</author>
<published>2013-03-01T00:43:24Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=713648f0f137e149a1acade3278b621728291f37'/>
<id>urn:sha1:713648f0f137e149a1acade3278b621728291f37</id>
<content type='text'>
The copied sync_pt was activated immediately. If the sync_pt was
signaled before the entire merge was completed, the new fence's pt_list
could be iterated over while it is still in the process of being
created.

Moving the the sync_pt_activate call for all new sync_pts to after both
the sync_fence_copy_pts and the sync_fence_merge_pts calls ensure that
the pt_list is complete and immutable before it can be reached from the
timeline's active list.

Cc: Maarten Lankhorst &lt;maarten.lankhorst@canonical.com&gt;
Cc: Erik Gilling &lt;konkers@android.com&gt;
Cc: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
Cc: Rob Clark &lt;robclark@gmail.com&gt;
Cc: Sumit Semwal &lt;sumit.semwal@linaro.org&gt;
Cc: dri-devel@lists.freedesktop.org
Cc: Android Kernel Team &lt;kernel-team@android.com&gt;
Signed-off-by: Erik Gilling &lt;konkers@android.com&gt;
Signed-off-by: John Stultz &lt;john.stultz@linaro.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: sync: Add tracepoint support</title>
<updated>2013-03-04T09:46:55Z</updated>
<author>
<name>Erik Gilling</name>
<email>konkers@android.com</email>
</author>
<published>2013-03-01T00:43:23Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=b699a644f82110e8e5a0f9b45ee1d3a3cd3e4586'/>
<id>urn:sha1:b699a644f82110e8e5a0f9b45ee1d3a3cd3e4586</id>
<content type='text'>
Add support for tracepoints

Cc: Maarten Lankhorst &lt;maarten.lankhorst@canonical.com&gt;
Cc: Erik Gilling &lt;konkers@android.com&gt;
Cc: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
Cc: Rob Clark &lt;robclark@gmail.com&gt;
Cc: Sumit Semwal &lt;sumit.semwal@linaro.org&gt;
Cc: dri-devel@lists.freedesktop.org
Cc: Android Kernel Team &lt;kernel-team@android.com&gt;
Signed-off-by: Erik Gilling &lt;konkers@android.com&gt;
[jstultz: Whitespace changes, add commit message, move to staging]
Signed-off-by: John Stultz &lt;john.stultz@linaro.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
</feed>
