1*09c434b8SThomas Gleixner // SPDX-License-Identifier: GPL-2.0-only 2ab7017a3SBryan Schumaker /* 3ab7017a3SBryan Schumaker * Copyright (c) 2012 Netapp, Inc. All rights reserved. 4ab7017a3SBryan Schumaker */ 5ab7017a3SBryan Schumaker #include <linux/module.h> 6ab7017a3SBryan Schumaker #include <linux/nfs_fs.h> 7ab7017a3SBryan Schumaker #include "internal.h" 8cb8c20faSAnna Schumaker #include "nfs3_fs.h" 9ab7017a3SBryan Schumaker #include "nfs.h" 10ab7017a3SBryan Schumaker 111a04c6e1SPeng Tao struct nfs_subversion nfs_v3 = { 12ab7017a3SBryan Schumaker .owner = THIS_MODULE, 13ab7017a3SBryan Schumaker .nfs_fs = &nfs_fs_type, 14ab7017a3SBryan Schumaker .rpc_vers = &nfs_version3, 15ab7017a3SBryan Schumaker .rpc_ops = &nfs_v3_clientops, 166a74490dSBryan Schumaker .sops = &nfs_sops, 17ab7017a3SBryan Schumaker }; 18ab7017a3SBryan Schumaker init_nfs_v3(void)191c606fb7SBryan Schumakerstatic int __init init_nfs_v3(void) 20ab7017a3SBryan Schumaker { 21ab7017a3SBryan Schumaker register_nfs_version(&nfs_v3); 22ab7017a3SBryan Schumaker return 0; 23ab7017a3SBryan Schumaker } 24ab7017a3SBryan Schumaker exit_nfs_v3(void)251c606fb7SBryan Schumakerstatic void __exit exit_nfs_v3(void) 26ab7017a3SBryan Schumaker { 27ab7017a3SBryan Schumaker unregister_nfs_version(&nfs_v3); 28ab7017a3SBryan Schumaker } 291c606fb7SBryan Schumaker 301c606fb7SBryan Schumaker MODULE_LICENSE("GPL"); 311c606fb7SBryan Schumaker 321c606fb7SBryan Schumaker module_init(init_nfs_v3); 331c606fb7SBryan Schumaker module_exit(exit_nfs_v3); 34