Skip to content

Commit

Permalink
Add missing newline at end of file
Browse files Browse the repository at this point in the history
This is a scripted change done using the following command:

find . -type d -name .git -prune -o \
       -type f \! -name \*\~ \! -name .\#\* \
       \! -name \*.gz \! -name \*.pdf \! -name \*.patch -print0 | \
       xargs -0 sed -i -e '$a\'

Signed-off-by: Chris Dearman <[email protected]>
  • Loading branch information
chrisdearman committed Oct 18, 2012
1 parent 5708536 commit ec6edca
Show file tree
Hide file tree
Showing 3,365 changed files with 3,365 additions and 3,365 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion doc/examples/quickhit.c
Original file line number Diff line number Diff line change
Expand Up @@ -382,4 +382,4 @@ cleanup(void)
* Use tst_rmdir() to do it automatically.
*/
tst_rmdir();
}
}
2 changes: 1 addition & 1 deletion lib/forker.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,4 +278,4 @@ char **argv;
exit(0);
}

#endif /* UNIT_TEST */
#endif /* UNIT_TEST */
2 changes: 1 addition & 1 deletion lib/get_high_address.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@
char *get_high_address(void)
{
return (char *)sbrk(0) + (4 * getpagesize());
}
}
2 changes: 1 addition & 1 deletion lib/get_path.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,4 @@ int tst_get_path(const char *prog_name, char *buf, size_t buf_len)
} while (end != NULL);

return -1;
}
}
2 changes: 1 addition & 1 deletion lib/libtestsuite.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,4 @@ int sync_pipe_notify(int fd[])
if (r != 1)
return -1;
return 0;
}
}
2 changes: 1 addition & 1 deletion lib/mount_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,4 +210,4 @@ main(void)
return 0;

}
#endif
#endif
2 changes: 1 addition & 1 deletion lib/open_flags.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,4 +327,4 @@ char **argv;
exit(0);
}

#endif /* end of UNIT_TEST */
#endif /* end of UNIT_TEST */
2 changes: 1 addition & 1 deletion lib/pattern.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,4 +165,4 @@ int patshift;
}

return(0);
}
}
2 changes: 1 addition & 1 deletion lib/random_range.c
Original file line number Diff line number Diff line change
Expand Up @@ -914,4 +914,4 @@ char **argv;
exit(0);
}

#endif
#endif
2 changes: 1 addition & 1 deletion lib/rmobj.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,4 +208,4 @@ rmobj(char *obj, char **errmsg)
* Everything must have went ok.
*/
return 0;
} /* rmobj() */
} /* rmobj() */
2 changes: 1 addition & 1 deletion lib/string_to_tokens.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,4 @@ string_to_tokens(char *arg_string, char *arg_array[], int array_size, char *sepa
*/
return(num_toks);

} /* end of string_to_tokens */
} /* end of string_to_tokens */
2 changes: 1 addition & 1 deletion lib/tst_cwd_has_free.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ tst_cwd_has_free(int required_kib)

/* check that we have enough blocks to create swap file */
return ((float)sf.f_bfree)/(1024/sf.f_bsize) >= required_kib?1:0;
}
}
2 changes: 1 addition & 1 deletion lib/tst_kvercmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ int tst_kvercmp(int r1, int r2, int r3) {
currver = (a1 << 16) + (a2 << 8) + a3;

return currver - testver;
}
}
2 changes: 1 addition & 1 deletion lib/tst_sig.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,4 +268,4 @@ static void (*tst_setup_signal(int sig, void (*handler) (int))) (int)
return old_act.sa_handler;
else
return SIG_ERR;
}
}
2 changes: 1 addition & 1 deletion lib/write_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -500,4 +500,4 @@ char *buf;
}

return 0;
}
}
2 changes: 1 addition & 1 deletion pan/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@ set_debug(char *optarg)
#endif

return 0;
}
}
2 changes: 1 addition & 1 deletion pan/ltp-bump.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,4 @@ int main(int argc, char **argv)
zoo_close(zoo);

exit(0);
}
}
2 changes: 1 addition & 1 deletion pan/symbol.c
Original file line number Diff line number Diff line change
Expand Up @@ -469,4 +469,4 @@ sym_rm(SYM sym, int flags)
if (!(flags&RM_DATA))
free(sym);
return 0;
}
}
2 changes: 1 addition & 1 deletion testcases/commands/ade/ld/d1.c
Original file line number Diff line number Diff line change
@@ -1 +1 @@
int d1 = 1;
int d1 = 1;
2 changes: 1 addition & 1 deletion testcases/commands/ade/ld/f1.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ void f1()
int i=69;
i=i;
return;
}
}
2 changes: 1 addition & 1 deletion testcases/commands/ade/ld/ldmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ int main()
{
use_s1();
return(0);
}
}
2 changes: 1 addition & 1 deletion testcases/commands/ade/ld/rd1.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ extern int d1;
void use_s1()
{
d1=d1+d1;
}
}
2 changes: 1 addition & 1 deletion testcases/commands/ade/ld/rf1.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ use_s1()
{
// printf("calling function f1");
f1();
}
}
2 changes: 1 addition & 1 deletion testcases/commands/ade/ldd/lddfile1.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <stdio.h>
void file1() {
printf("Control in function %s\n", __func__);
}
}
2 changes: 1 addition & 1 deletion testcases/commands/ade/ldd/lddfile2.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <stdio.h>
void file2() {
printf("Control in function %s\n", __func__);
}
}
2 changes: 1 addition & 1 deletion testcases/commands/ade/ldd/lddfile3.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <stdio.h>
void file3() {
printf("Control in function %s\n", __func__);
}
}
2 changes: 1 addition & 1 deletion testcases/commands/ade/ldd/lddfile4.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <stdio.h>
void file4() {
printf("Control in function %s\n", __func__);
}
}
2 changes: 1 addition & 1 deletion testcases/commands/ade/ldd/lddfile5.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <stdio.h>
void file5() {
printf("Control in function %s\n", __func__);
}
}
2 changes: 1 addition & 1 deletion testcases/commands/ade/ldd/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ int main()
file5();
printf("All Functions Executed\n");
return 0;
}
}
2 changes: 1 addition & 1 deletion testcases/commands/ade/nm/nmfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
int main()
{ printf("Hello World\n");
return(0);
}
}
2 changes: 1 addition & 1 deletion testcases/commands/ade/nm/nmfile1.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
int main()
{ printf("Hello World\n");
return(0);
}
}
2 changes: 1 addition & 1 deletion testcases/commands/ade/nm/nmfile2.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
int main()
{ printf("Hello World\n");
return(0);
}
}
2 changes: 1 addition & 1 deletion testcases/commands/ade/nm/nmfile3.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
int main()
{ printf("Hello World\n");
return(0);
}
}
2 changes: 1 addition & 1 deletion testcases/commands/ade/objdump/test_arch.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ int main(void)
printf(" the end \n");

return 0;
}
}
2 changes: 1 addition & 1 deletion testcases/commands/ade/size/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ int main(void)

return 0;

}
}
2 changes: 1 addition & 1 deletion testcases/commands/cron/cron_dirs_check.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ int main(int argc, char *argv[]) {
}

return check_directory_access(argv[1]);
}
}
2 changes: 1 addition & 1 deletion testcases/commands/eject/check_tray.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ main()
exit(-2);

exit (ioctl(fdcdrom, CDROM_DRIVE_STATUS));
}
}
2 changes: 1 addition & 1 deletion testcases/kdump/lib/crasher/crasher.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@ void crasher_exit(void)
{
remove_proc_entry(CRASH, NULL);
printk("removed crasher module\n");
}
}
2 changes: 1 addition & 1 deletion testcases/kdump/lib/kprobes/kprobes.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ static void __exit jprobe_exit(void)

module_init(jprobe_init)
module_exit(jprobe_exit)
MODULE_LICENSE("GPL");
MODULE_LICENSE("GPL");
2 changes: 1 addition & 1 deletion testcases/kdump/lib/lkdtm/lkdtm.c
Original file line number Diff line number Diff line change
Expand Up @@ -463,4 +463,4 @@ void lkdtm_module_exit(void)
module_init(lkdtm_module_init);
module_exit(lkdtm_module_exit);

MODULE_LICENSE("GPL");
MODULE_LICENSE("GPL");
2 changes: 1 addition & 1 deletion testcases/kernel/connectors/pec/pec_listener.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,4 +336,4 @@ int main(int argc, char **argv)

#endif /* CN_IDX_PROC */

#endif /* NETLINK_CONNECTOR */
#endif /* NETLINK_CONNECTOR */
2 changes: 1 addition & 1 deletion testcases/kernel/containers/check_for_unshare.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ int main(int argc, char **argv)

dlclose(handle);
return 0;
}
}
2 changes: 1 addition & 1 deletion testcases/kernel/containers/libclone/libclone.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,4 @@ int do_clone_unshare_tests(int use_clone, unsigned long clone_flags,
use_clone);
return -1;
}
}
}
2 changes: 1 addition & 1 deletion testcases/kernel/containers/mqns/check_mqns_enabled.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ int main()
return 5;

return 0;
}
}
2 changes: 1 addition & 1 deletion testcases/kernel/containers/mqns/mqns_01.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,4 @@ main(int argc, char *argv[])
syscall(__NR_mq_unlink, NOSLASH_MQ1);

tst_exit();
}
}
2 changes: 1 addition & 1 deletion testcases/kernel/containers/mqns/mqns_02.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,4 @@ int main(int argc, char *argv[])
}

tst_exit();
}
}
2 changes: 1 addition & 1 deletion testcases/kernel/containers/mqns/mqns_03.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,4 +190,4 @@ int main(int argc, char *argv[])
umount(DEV_MQUEUE2);
rmdir(DEV_MQUEUE2);
tst_exit();
}
}
2 changes: 1 addition & 1 deletion testcases/kernel/containers/mqns/mqns_04.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,4 @@ int main(int argc, char *argv[])
rmdir(DEV_MQUEUE2);

tst_exit();
}
}
2 changes: 1 addition & 1 deletion testcases/kernel/containers/netns/check_netns_enabled.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ main(void)
else
tst_resm(TPASS, "unshare syscall smoke test passed");
tst_exit();
}
}
2 changes: 1 addition & 1 deletion testcases/kernel/containers/netns/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,4 +156,4 @@ int child_fn(void *c1)
printf("System doesn't support unshare.\n");
return -1;
#endif
}
}
2 changes: 1 addition & 1 deletion testcases/kernel/containers/netns/create_container.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ int main()
printf("Execution of all the network testcases under network"
" namespace done. return value is %d\n", status);
return status;
}
}
2 changes: 1 addition & 1 deletion testcases/kernel/containers/netns/crtchild.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ int main()
int status;
status = create_net_namespace("parent.sh", "child.sh");
return status;
}
}
2 changes: 1 addition & 1 deletion testcases/kernel/containers/netns/crtchild_delchild.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ int main()
int status;
status = create_net_namespace("delchild.sh", "rename_net.sh");
return status;
}
}
2 changes: 1 addition & 1 deletion testcases/kernel/containers/netns/par_chld_ftp.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ int main()
int status;
status = create_net_namespace("par_ftp.sh", "ch_ftp.sh");
return status;
}
}
2 changes: 1 addition & 1 deletion testcases/kernel/containers/netns/sysfsview.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ int main()

status = create_net_namespace("parent_view.sh","child_propagate.sh");
return status;
}
}
2 changes: 1 addition & 1 deletion testcases/kernel/containers/pidns/check_pidns_enabled.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ int main()
return 3;
}
return 0;
}
}
2 changes: 1 addition & 1 deletion testcases/kernel/containers/pidns/pidns01.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,4 @@ static void cleanup()
{
/* Clean the test testcase as LTP wants */
TEST_CLEANUP;
}
}
Loading

0 comments on commit ec6edca

Please sign in to comment.