Commit d64d68d6 authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Pavel Emelyanov

whitespace-at-eol cleanup

Remove whitespace at EOL (found by git grep ' $')

To people using vim, I'd suggest adding the following code to ~/.vimrc:

let c_space_errors = 1
highlight FormatError ctermbg=darkred guibg=darkred
match FormatError /\s\+$\|\ \+\t\|\%80v.\|\ \{8\}/
Signed-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 2e15e4da
......@@ -144,7 +144,7 @@ void show_saved_files(void)
/*
* The gen_id thing is used to optimize the comparison of shared files.
* If two files have different gen_ids, then they are different for sure.
* If it matches, we don't know it and have to call sys_kcmp().
* If it matches, we don't know it and have to call sys_kcmp().
*
* The kcmp-ids.c engine does this trick, see comments in it for more info.
*/
......
......@@ -430,8 +430,8 @@ static struct fsnotify_file_info *find_inotify_info(unsigned id)
if (last && last->ife->id == id) {
/*
* An optimization for clean dump image -- criu puts
* wd-s for one inotify in one row, thus sometimes
* An optimization for clean dump image -- criu puts
* wd-s for one inotify in one row, thus sometimes
* we can avoid scanning the inotify_info_head.
*/
pr_debug("\t\tlast ify for %u found\n", id);
......
......@@ -45,7 +45,7 @@ enum {
* Disables SHARED and SHREMAP allocations, turns on PRIVATE
*/
extern void rst_mem_switch_to_private(void);
/*
/*
* Reports a cookie of a current shared buffer position, that
* can later be used in rst_mem_cpos() to find out the object
* pointer.
......
......@@ -361,7 +361,7 @@ static int __parasite_dump_pages_seized(struct parasite_ctl *ctl,
}
debug_show_page_pipe(pp);
/*
* Step 2 -- grab pages into page-pipe
*/
......
......@@ -643,7 +643,7 @@ out:
}
static struct fstype fstypes[] = {
{
{
.name = "unsupported",
.code = FSTYPE__UNSUPPORTED,
}, {
......
......@@ -269,7 +269,7 @@ static int open_ns_fd(struct file_desc *d)
if (!nd || !item) {
pr_err("Can't find suitable NS ID for %#x\n", nfi->nfe->ns_id);
return -1;
}
}
if (nd->cflag != nfi->nfe->ns_cflag) {
pr_err("Clone flag mismatch for %#x\n", nfi->nfe->ns_id);
......
......@@ -911,7 +911,7 @@ long __export_restore_task(struct task_restore_args *args)
rst_tcp_socks_all(args);
/*
/*
* Writing to last-pid is CAP_SYS_ADMIN protected,
* turning off TCP repair is CAP_SYS_NED_ADMIN protected,
* thus restore* creds _after_ all of the above.
......
......@@ -100,7 +100,7 @@ static int grow_private(struct rst_mem_type_s *t, unsigned long size)
}
static struct rst_mem_type_s rst_mems[RST_MEM_TYPES] = {
[RM_SHARED] = {
[RM_SHARED] = {
.grow = grow_shared,
.remapable = false,
.enabled = true,
......
......@@ -11,9 +11,9 @@
static unsigned int cr_uid, cr_gid;
/*
* Setup what user is requesting for dump (via rpc or using
* suid bit on crtools). Later we would deny to dump/restore
* a task, to which the original user doesn't have the direct
* Setup what user is requesting for dump (via rpc or using
* suid bit on crtools). Later we would deny to dump/restore
* a task, to which the original user doesn't have the direct
* access to. (Or implement some trickier security policy).
*/
......
......@@ -653,7 +653,7 @@ Options:
-g : Generate executables only
-n : Batch test
-r : Run test with specified name directly without match or check
-v : Verbose mode
-v : Verbose mode
EOF
}
......
#define _GNU_SOURCE
#define _GNU_SOURCE
#include <signal.h>
#include <stdlib.h>
#include <unistd.h>
......
......@@ -10,7 +10,7 @@ const char *test_author = "Evgeny Antysev <eantyshev@parallels.com>";
(((a)->tv_sec == (b)->tv_sec) ? \
((a)->tv_nsec >= (b)->tv_nsec) : \
((a)->tv_sec > (b)->tv_sec))
int main(int argc, char **argv)
{
struct timespec tm_old, tm, ts;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment