svn commit: r298829 - in head/sys/compat: linux linuxkpi/common/include/linux linuxkpi/common/src
Pedro F. Giffuni
pfg at FreeBSD.org
Sat Apr 30 00:53:12 UTC 2016
Author: pfg
Date: Sat Apr 30 00:53:10 2016
New Revision: 298829
URL: https://svnweb.freebsd.org/changeset/base/298829
Log:
sys/compat/linux*: spelling fixes.
Mostly on comments but there are some user-visible messages as well.
MFC after: 2 weeks
Modified:
head/sys/compat/linux/check_internal_locks.d
head/sys/compat/linux/linux_fork.c
head/sys/compat/linux/linux_misc.c
head/sys/compat/linux/linux_socket.h
head/sys/compat/linux/trace_futexes.d
head/sys/compat/linuxkpi/common/include/linux/dma-mapping.h
head/sys/compat/linuxkpi/common/include/linux/dmapool.h
head/sys/compat/linuxkpi/common/src/linux_radix.c
head/sys/compat/linuxkpi/common/src/linux_usb.c
Modified: head/sys/compat/linux/check_internal_locks.d
==============================================================================
--- head/sys/compat/linux/check_internal_locks.d Sat Apr 30 00:35:46 2016 (r298828)
+++ head/sys/compat/linux/check_internal_locks.d Sat Apr 30 00:53:10 2016 (r298829)
@@ -64,7 +64,7 @@ linuxulator*:locks:futex_mtx:locked
linuxulator*:locks:futex_mtx:unlock
/check[probefunc] == 0/
{
- printf("ERROR: unlock attemt of unlocked %s (%p),", probefunc, arg0);
+ printf("ERROR: unlock attempt of unlocked %s (%p),", probefunc, arg0);
printf(" missing SDT probe in kernel, or dtrace program started");
printf(" while the %s was already held (race condition).", probefunc);
printf(" Stack trace follows:");
Modified: head/sys/compat/linux/linux_fork.c
==============================================================================
--- head/sys/compat/linux/linux_fork.c Sat Apr 30 00:35:46 2016 (r298828)
+++ head/sys/compat/linux/linux_fork.c Sat Apr 30 00:53:10 2016 (r298829)
@@ -163,7 +163,7 @@ linux_clone_proc(struct thread *td, stru
ff |= RFSIGSHARE;
/*
* XXX: In Linux, sharing of fs info (chroot/cwd/umask)
- * and open files is independant. In FreeBSD, its in one
+ * and open files is independent. In FreeBSD, its in one
* structure but in reality it does not cause any problems
* because both of these flags are usually set together.
*/
Modified: head/sys/compat/linux/linux_misc.c
==============================================================================
--- head/sys/compat/linux/linux_misc.c Sat Apr 30 00:35:46 2016 (r298828)
+++ head/sys/compat/linux/linux_misc.c Sat Apr 30 00:53:10 2016 (r298829)
@@ -199,7 +199,7 @@ linux_alarm(struct thread *td, struct li
#endif
secs = args->secs;
/*
- * Linux alarm() is always successfull. Limit secs to INT32_MAX / 2
+ * Linux alarm() is always successful. Limit secs to INT32_MAX / 2
* to match kern_setitimer()'s limit to avoid error from it.
*
* XXX. Linux limit secs to INT_MAX on 32 and does not limit on 64-bit
Modified: head/sys/compat/linux/linux_socket.h
==============================================================================
--- head/sys/compat/linux/linux_socket.h Sat Apr 30 00:35:46 2016 (r298828)
+++ head/sys/compat/linux/linux_socket.h Sat Apr 30 00:53:10 2016 (r298829)
@@ -79,7 +79,7 @@ struct l_cmsghdr {
l_int cmsg_type;
};
-/* Ancilliary data object information macros */
+/* Ancillary data object information macros */
#define LINUX_CMSG_ALIGN(len) roundup2(len, sizeof(l_ulong))
#define LINUX_CMSG_DATA(cmsg) ((void *)((char *)(cmsg) + \
Modified: head/sys/compat/linux/trace_futexes.d
==============================================================================
--- head/sys/compat/linux/trace_futexes.d Sat Apr 30 00:35:46 2016 (r298828)
+++ head/sys/compat/linux/trace_futexes.d Sat Apr 30 00:53:10 2016 (r298829)
@@ -120,7 +120,7 @@ linuxulator*:locks:futex_mtx:locked
linuxulator*:locks:futex_mtx:unlock
/check[probefunc, arg0] == 0/
{
- printf("ERROR: unlock attemt of unlocked %s (%p),", probefunc, arg0);
+ printf("ERROR: unlock attempt of unlocked %s (%p),", probefunc, arg0);
printf(" missing SDT probe in kernel, or dtrace program started");
printf(" while the %s was already held (race condition).", probefunc);
printf(" Stack trace follows:");
Modified: head/sys/compat/linuxkpi/common/include/linux/dma-mapping.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/linux/dma-mapping.h Sat Apr 30 00:35:46 2016 (r298828)
+++ head/sys/compat/linuxkpi/common/include/linux/dma-mapping.h Sat Apr 30 00:53:10 2016 (r298829)
@@ -115,7 +115,7 @@ dma_set_coherent_mask(struct device *dev
if (!dma_supported(dev, mask))
return -EIO;
- /* XXX Currently we don't support a seperate coherent mask. */
+ /* XXX Currently we don't support a separate coherent mask. */
return 0;
}
Modified: head/sys/compat/linuxkpi/common/include/linux/dmapool.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/linux/dmapool.h Sat Apr 30 00:35:46 2016 (r298828)
+++ head/sys/compat/linuxkpi/common/include/linux/dmapool.h Sat Apr 30 00:53:10 2016 (r298829)
@@ -50,7 +50,7 @@ dma_pool_create(char *name, struct devic
pool = kmalloc(sizeof(*pool), GFP_KERNEL);
align--;
/*
- * XXX Eventually this could use a seperate allocf to honor boundary
+ * XXX Eventually this could use a separate allocf to honor boundary
* and physical address requirements of the device.
*/
pool->pool_zone = uma_zcreate(name, size, NULL, NULL, NULL, NULL,
Modified: head/sys/compat/linuxkpi/common/src/linux_radix.c
==============================================================================
--- head/sys/compat/linuxkpi/common/src/linux_radix.c Sat Apr 30 00:35:46 2016 (r298828)
+++ head/sys/compat/linuxkpi/common/src/linux_radix.c Sat Apr 30 00:53:10 2016 (r298829)
@@ -187,7 +187,7 @@ radix_tree_insert(struct radix_tree_root
if (temp[idx] == NULL) {
while(idx--)
free(temp[idx], M_RADIX);
- /* check if we should free the root node aswell */
+ /* Check if we should free the root node as well. */
if (root->rnode->count == 0) {
free(root->rnode, M_RADIX);
root->rnode = NULL;
Modified: head/sys/compat/linuxkpi/common/src/linux_usb.c
==============================================================================
--- head/sys/compat/linuxkpi/common/src/linux_usb.c Sat Apr 30 00:35:46 2016 (r298828)
+++ head/sys/compat/linuxkpi/common/src/linux_usb.c Sat Apr 30 00:53:10 2016 (r298829)
@@ -649,7 +649,7 @@ done:
* Return values:
* 0: Success
* < 0: Failure
- * > 0: Acutal length
+ * > 0: Actual length
*------------------------------------------------------------------------*/
int
usb_control_msg(struct usb_device *dev, struct usb_host_endpoint *uhe,
More information about the svn-src-head
mailing list