Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml

Pull UML changes from Richard Weinberger:
"This time only various cleanups and housekeeping patches"

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml:
um: hostfs: make functions static
um: Include generic barrier.h
um: Removed unused attributes from thread_struct

+29 -28
+1
arch/um/include/asm/Kbuild
··· 5 5 generic-y += trace_clock.h 6 6 generic-y += preempt.h 7 7 generic-y += hash.h 8 + generic-y += barrier.h
-3
arch/um/include/asm/processor-generic.h
··· 25 25 void *fault_addr; 26 26 jmp_buf *fault_catcher; 27 27 struct task_struct *prev_sched; 28 - unsigned long temp_stack; 29 28 struct arch_thread arch; 30 29 jmp_buf switch_buf; 31 - int mm_count; 32 30 struct { 33 31 int op; 34 32 union { ··· 50 52 .regs = EMPTY_REGS, \ 51 53 .fault_addr = NULL, \ 52 54 .prev_sched = NULL, \ 53 - .temp_stack = 0, \ 54 55 .arch = INIT_ARCH_THREAD, \ 55 56 .request = { 0 } \ 56 57 }
+28 -25
fs/hostfs/hostfs_kern.c
··· 186 186 return inode; 187 187 } 188 188 189 - int hostfs_statfs(struct dentry *dentry, struct kstatfs *sf) 189 + static int hostfs_statfs(struct dentry *dentry, struct kstatfs *sf) 190 190 { 191 191 /* 192 192 * do_statfs uses struct statfs64 internally, but the linux kernel ··· 268 268 .show_options = hostfs_show_options, 269 269 }; 270 270 271 - int hostfs_readdir(struct file *file, struct dir_context *ctx) 271 + static int hostfs_readdir(struct file *file, struct dir_context *ctx) 272 272 { 273 273 void *dir; 274 274 char *name; ··· 293 293 return 0; 294 294 } 295 295 296 - int hostfs_file_open(struct inode *ino, struct file *file) 296 + static int hostfs_file_open(struct inode *ino, struct file *file) 297 297 { 298 298 static DEFINE_MUTEX(open_mutex); 299 299 char *name; ··· 359 359 return 0; 360 360 } 361 361 362 - int hostfs_fsync(struct file *file, loff_t start, loff_t end, int datasync) 362 + static int hostfs_fsync(struct file *file, loff_t start, loff_t end, 363 + int datasync) 363 364 { 364 365 struct inode *inode = file->f_mapping->host; 365 366 int ret; ··· 395 394 .read = generic_read_dir, 396 395 }; 397 396 398 - int hostfs_writepage(struct page *page, struct writeback_control *wbc) 397 + static int hostfs_writepage(struct page *page, struct writeback_control *wbc) 399 398 { 400 399 struct address_space *mapping = page->mapping; 401 400 struct inode *inode = mapping->host; ··· 431 430 return err; 432 431 } 433 432 434 - int hostfs_readpage(struct file *file, struct page *page) 433 + static int hostfs_readpage(struct file *file, struct page *page) 435 434 { 436 435 char *buffer; 437 436 long long start; ··· 456 455 return err; 457 456 } 458 457 459 - int hostfs_write_begin(struct file *file, struct address_space *mapping, 460 - loff_t pos, unsigned len, unsigned flags, 461 - struct page **pagep, void **fsdata) 458 + static int hostfs_write_begin(struct file *file, struct address_space *mapping, 459 + loff_t pos, unsigned len, unsigned flags, 460 + struct page **pagep, void **fsdata) 462 461 { 463 462 pgoff_t index = pos >> PAGE_CACHE_SHIFT; 464 463 ··· 468 467 return 0; 469 468 } 470 469 471 - int hostfs_write_end(struct file *file, struct address_space *mapping, 472 - loff_t pos, unsigned len, unsigned copied, 473 - struct page *page, void *fsdata) 470 + static int hostfs_write_end(struct file *file, struct address_space *mapping, 471 + loff_t pos, unsigned len, unsigned copied, 472 + struct page *page, void *fsdata) 474 473 { 475 474 struct inode *inode = mapping->host; 476 475 void *buffer; ··· 550 549 return 0; 551 550 } 552 551 553 - int hostfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, 554 - bool excl) 552 + static int hostfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, 553 + bool excl) 555 554 { 556 555 struct inode *inode; 557 556 char *name; ··· 592 591 return error; 593 592 } 594 593 595 - struct dentry *hostfs_lookup(struct inode *ino, struct dentry *dentry, 596 - unsigned int flags) 594 + static struct dentry *hostfs_lookup(struct inode *ino, struct dentry *dentry, 595 + unsigned int flags) 597 596 { 598 597 struct inode *inode; 599 598 char *name; ··· 629 628 return ERR_PTR(err); 630 629 } 631 630 632 - int hostfs_link(struct dentry *to, struct inode *ino, struct dentry *from) 631 + static int hostfs_link(struct dentry *to, struct inode *ino, 632 + struct dentry *from) 633 633 { 634 634 char *from_name, *to_name; 635 635 int err; ··· 648 646 return err; 649 647 } 650 648 651 - int hostfs_unlink(struct inode *ino, struct dentry *dentry) 649 + static int hostfs_unlink(struct inode *ino, struct dentry *dentry) 652 650 { 653 651 char *file; 654 652 int err; ··· 664 662 return err; 665 663 } 666 664 667 - int hostfs_symlink(struct inode *ino, struct dentry *dentry, const char *to) 665 + static int hostfs_symlink(struct inode *ino, struct dentry *dentry, 666 + const char *to) 668 667 { 669 668 char *file; 670 669 int err; ··· 677 674 return err; 678 675 } 679 676 680 - int hostfs_mkdir(struct inode *ino, struct dentry *dentry, umode_t mode) 677 + static int hostfs_mkdir(struct inode *ino, struct dentry *dentry, umode_t mode) 681 678 { 682 679 char *file; 683 680 int err; ··· 689 686 return err; 690 687 } 691 688 692 - int hostfs_rmdir(struct inode *ino, struct dentry *dentry) 689 + static int hostfs_rmdir(struct inode *ino, struct dentry *dentry) 693 690 { 694 691 char *file; 695 692 int err; ··· 741 738 return err; 742 739 } 743 740 744 - int hostfs_rename(struct inode *from_ino, struct dentry *from, 745 - struct inode *to_ino, struct dentry *to) 741 + static int hostfs_rename(struct inode *from_ino, struct dentry *from, 742 + struct inode *to_ino, struct dentry *to) 746 743 { 747 744 char *from_name, *to_name; 748 745 int err; ··· 759 756 return err; 760 757 } 761 758 762 - int hostfs_permission(struct inode *ino, int desired) 759 + static int hostfs_permission(struct inode *ino, int desired) 763 760 { 764 761 char *name; 765 762 int r = 0, w = 0, x = 0, err; ··· 785 782 return err; 786 783 } 787 784 788 - int hostfs_setattr(struct dentry *dentry, struct iattr *attr) 785 + static int hostfs_setattr(struct dentry *dentry, struct iattr *attr) 789 786 { 790 787 struct inode *inode = dentry->d_inode; 791 788 struct hostfs_iattr attrs;