<feed xmlns='http://www.w3.org/2005/Atom'>
<title>BMC/Intel-BMC/linux.git/arch/blackfin/include/asm/uaccess.h, branch dev</title>
<subtitle>Intel OpenBMC Linux kernel source tree (mirror)</subtitle>
<id>https://git.radix-linux.su/BMC/Intel-BMC/linux.git/atom?h=dev</id>
<link rel='self' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/atom?h=dev'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/'/>
<updated>2015-01-13T13:23:47+00:00</updated>
<entry>
<title>blackfin: macro whitespace fixes</title>
<updated>2015-01-13T13:23:47+00:00</updated>
<author>
<name>Michael S. Tsirkin</name>
<email>mst@redhat.com</email>
</author>
<published>2015-01-06T13:11:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=323ae3c5dd941c8257912941eb3da93aaf8d65dd'/>
<id>urn:sha1:323ae3c5dd941c8257912941eb3da93aaf8d65dd</id>
<content type='text'>
While working on arch/blackfin/include/asm/uaccess.h, I noticed
that some macros within this header are made harder to read because they
violate a coding style rule: space is missing after comma.

Fix it up.

Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
</content>
</entry>
<entry>
<title>blackfin: fix put_user sparse errors</title>
<updated>2015-01-13T13:23:32+00:00</updated>
<author>
<name>Michael S. Tsirkin</name>
<email>mst@redhat.com</email>
</author>
<published>2015-01-06T12:37:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=1734bffc30b80ab2447345369c84175e721ebd65'/>
<id>urn:sha1:1734bffc30b80ab2447345369c84175e721ebd65</id>
<content type='text'>
virtio wants to write bitwise types to userspace using put_user.
At the moment this triggers sparse errors, since the value is passed
through an integer.

For example:

	__le32 __user *p;
	__le32 x;
	put_user(x, p);

is safe, but currently triggers a sparse warning.

Fix that up using __force.

Note: this does not suppress any useful sparse checks since caller
assigns x to typeof(*p), which in turn forces all the necessary type
checks.

Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
</content>
</entry>
<entry>
<title>blackfin/uaccess: fix sparse errors</title>
<updated>2015-01-13T13:23:07+00:00</updated>
<author>
<name>Michael S. Tsirkin</name>
<email>mst@redhat.com</email>
</author>
<published>2014-12-11T23:56:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=f5e0c47ef3293bef8eab634e5849c2559ed48a39'/>
<id>urn:sha1:f5e0c47ef3293bef8eab634e5849c2559ed48a39</id>
<content type='text'>
virtio wants to read bitwise types from userspace using get_user.  At the
moment this triggers sparse errors, since the value is passed through an
integer.

Fix that up using __force.

Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Acked-by: Steven Miao &lt;realmz6@gmail.com&gt;
</content>
</entry>
<entry>
<title>blackfin: sync data in blackfin write buffer</title>
<updated>2013-02-20T07:21:23+00:00</updated>
<author>
<name>Sonic Zhang</name>
<email>sonic.zhang@analog.com</email>
</author>
<published>2013-01-31T08:34:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=293be8de49a05ca510069e7ab2d5057c728dd155'/>
<id>urn:sha1:293be8de49a05ca510069e7ab2d5057c728dd155</id>
<content type='text'>
Sync data in blackfin write buffer to DRAM before return from
copy_to_user.
Otherwise, application may read wrong data from stat syscall occasionally.

Signed-off-by: Sonic Zhang &lt;sonic.zhang@analog.com&gt;
Signed-off-by: Bob Liu &lt;lliubbo@gmail.com&gt;
</content>
</entry>
<entry>
<title>Blackfin: remove unused is_in_rom()</title>
<updated>2012-12-13T05:50:57+00:00</updated>
<author>
<name>Tobias Klauser</name>
<email>tklauser@distanz.ch</email>
</author>
<published>2012-10-26T14:31:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=00e9584c765043d6f4385244f03eed0e7fe18287'/>
<id>urn:sha1:00e9584c765043d6f4385244f03eed0e7fe18287</id>
<content type='text'>
The function is not used anywhere in the whole tree (anymore), so remove
it.

Signed-off-by: Tobias Klauser &lt;tklauser@distanz.ch&gt;
Signed-off-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
Signed-off-by: Bob Liu &lt;lliubbo@gmail.com&gt;
</content>
</entry>
<entry>
<title>Blackfin: Annotate strnlen_user and strlen_user 'src' parameter with __user</title>
<updated>2012-12-13T05:50:57+00:00</updated>
<author>
<name>Lars-Peter Clausen</name>
<email>lars@metafoo.de</email>
</author>
<published>2012-10-22T14:09:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=2a7e0775d0b0dfc083f97c72dc885f6dab8dd27b'/>
<id>urn:sha1:2a7e0775d0b0dfc083f97c72dc885f6dab8dd27b</id>
<content type='text'>
The 'src' parameter of strnlen_user and strlen_user is supposed to take a
userspace pointer, so annotate it with __user. This fixes the following and
similar sparse warnings:

	fs/binfmt_elf_fdpic.c:671:36: warning: incorrect type in argument 1 (different address spaces)
	fs/binfmt_elf_fdpic.c:671:36:    expected char const *src
	fs/binfmt_elf_fdpic.c:671:36:    got char [noderef] &lt;asn:1&gt;*[assigned] p
	fs/binfmt_elf_fdpic.c:683:36: warning: incorrect type in argument 1 (different address spaces)
	fs/binfmt_elf_fdpic.c:683:36:    expected char const *src
	fs/binfmt_elf_fdpic.c:683:36:    got char [noderef] &lt;asn:1&gt;*[assigned] p

Signed-off-by: Lars-Peter Clausen &lt;lars@metafoo.de&gt;
Signed-off-by: Bob Liu &lt;lliubbo@gmail.com&gt;
</content>
</entry>
<entry>
<title>Blackfin: Annotate clear_user 'to' parameter with __user</title>
<updated>2012-12-13T05:50:57+00:00</updated>
<author>
<name>Lars-Peter Clausen</name>
<email>lars@metafoo.de</email>
</author>
<published>2012-10-22T14:09:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=10dc42b5b262f3bb2e4532759e4e1147ebf6a22f'/>
<id>urn:sha1:10dc42b5b262f3bb2e4532759e4e1147ebf6a22f</id>
<content type='text'>
The 'to' parameter of clear_user is supposed to take a userspace pointer, so
annotate it with __user. This fixes the following and similar sparse warnings:

	fs/binfmt_elf_fdpic.c:714:35: warning: incorrect type in argument 1 (different address spaces)
	fs/binfmt_elf_fdpic.c:714:35:    expected void [noderef] &lt;asn:1&gt;*to
	fs/binfmt_elf_fdpic.c:714:35:    got void *&lt;noident&gt;
	fs/binfmt_elf_fdpic.c:1119:29: warning: incorrect type in argument 1 (different address spaces)
	fs/binfmt_elf_fdpic.c:1119:29:    expected void *to
	fs/binfmt_elf_fdpic.c:1119:29:    got void [noderef] &lt;asn:1&gt;*&lt;noident&gt;

Signed-off-by: Lars-Peter Clausen &lt;lars@metafoo.de&gt;
Signed-off-by: Bob Liu &lt;lliubbo@gmail.com&gt;
</content>
</entry>
<entry>
<title>Blackfin: Add missing __user annotations to put_user</title>
<updated>2012-12-13T05:50:56+00:00</updated>
<author>
<name>Lars-Peter Clausen</name>
<email>lars@metafoo.de</email>
</author>
<published>2012-10-22T14:09:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=aff06631da3c8349149fe4214091735b35294151'/>
<id>urn:sha1:aff06631da3c8349149fe4214091735b35294151</id>
<content type='text'>
typeof() will not inherit the __user annotation so we have to explicitly
specify this for '_p'.

This fixes the following and quite a few similar warnings from spatch:

	kernel/sys.c:884:26: warning: incorrect type in initializer (different address spaces)
	kernel/sys.c:884:26:    expected unsigned int *_p
	kernel/sys.c:884:26:    got unsigned int [noderef] [usertype] &lt;asn:1&gt;*ruidp
	kernel/sys.c:885:26: warning: incorrect type in initializer (different address spaces)
	kernel/sys.c:885:26:    expected unsigned int *_p
	kernel/sys.c:885:26:    got unsigned int [noderef] [usertype] &lt;asn:1&gt;*euidp
	kernel/sys.c:886:26: warning: incorrect type in initializer (different address spaces)
	kernel/sys.c:886:26:    expected unsigned int *_p
	kernel/sys.c:886:26:    got unsigned int [noderef] [usertype] &lt;asn:1&gt;*suidp

Signed-off-by: Lars-Peter Clausen &lt;lars@metafoo.de&gt;
Signed-off-by: Bob Liu &lt;lliubbo@gmail.com&gt;
</content>
</entry>
<entry>
<title>Blackfin: Annotate strncpy_from_user src parameter with __user</title>
<updated>2012-12-13T05:50:56+00:00</updated>
<author>
<name>Lars-Peter Clausen</name>
<email>lars@metafoo.de</email>
</author>
<published>2012-10-17T14:28:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=d95dcaa06ba895ec379d80b35c25ddba3a71943a'/>
<id>urn:sha1:d95dcaa06ba895ec379d80b35c25ddba3a71943a</id>
<content type='text'>
The src parameter of strncpy_from_user is supposed to take a string from
userspace, so it should be annotated with __user. Doing so fixes the following
and similar warnings from sparse:

	kernel/sys.c:491:51: warning: incorrect type in argument 2 (different address spaces)
	kernel/sys.c:491:51:    expected char const *src
	kernel/sys.c:491:51:    got void [noderef] &lt;asn:1&gt;*arg
	kernel/sys.c:2061:54: warning: incorrect type in argument 2 (different address spaces)
	kernel/sys.c:2061:54:    expected char const *src
	kernel/sys.c:2061:54:    got char [noderef] &lt;asn:1&gt;*&lt;noident&gt;

Signed-off-by: Lars-Peter Clausen &lt;lars@metafoo.de&gt;
Signed-off-by: Bob Liu &lt;lliubbo@gmail.com&gt;
</content>
</entry>
<entry>
<title>Blackfin: fix sparse warnings in copy_to/from_user</title>
<updated>2011-10-25T23:51:35+00:00</updated>
<author>
<name>Mikhail Gruzdev</name>
<email>michail.gruzdev@gmail.com</email>
</author>
<published>2011-08-06T06:44:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=c91e09b6838f514a9a162a715a75241214258270'/>
<id>urn:sha1:c91e09b6838f514a9a162a715a75241214258270</id>
<content type='text'>
 Fix argument types for copy_to_user.
 Fix following sparse warnings:
 arch/blackfin/include/asm/uaccess.h:198:14: warning: incorrect type
in argument 2 (different address spaces)
 arch/blackfin/include/asm/uaccess.h:198:14:    expected void const *s
 arch/blackfin/include/asm/uaccess.h:198:14:    got void const
[noderef] &lt;asn:1&gt;*from
 arch/blackfin/include/asm/uaccess.h:208:14: warning: incorrect type
in argument 2 (different address spaces)
 arch/blackfin/include/asm/uaccess.h:208:14:    expected void const *s
 arch/blackfin/include/asm/uaccess.h:208:14:    got void const
[noderef] &lt;asn:1&gt;*from

Signed-off-by: Mikhail Gruzdev &lt;michail.gruzdev@gmail.com&gt;
Signed-off-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
</content>
</entry>
</feed>
