LCOV - code coverage report
Current view: top level - fs/nfs - nfs2super.c (source / functions) Hit Total Coverage
Test: gcov_data_raspi2_real_modules_combined.info Lines: 3 6 50.0 %
Date: 2020-09-30 20:25:40 Functions: 1 2 50.0 %
Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : // SPDX-License-Identifier: GPL-2.0-only
       2                 :            : /*
       3                 :            :  * Copyright (c) 2012 Netapp, Inc. All rights reserved.
       4                 :            :  */
       5                 :            : #include <linux/module.h>
       6                 :            : #include <linux/nfs_fs.h>
       7                 :            : #include "internal.h"
       8                 :            : #include "nfs.h"
       9                 :            : 
      10                 :            : static struct nfs_subversion nfs_v2 = {
      11                 :            :         .owner = THIS_MODULE,
      12                 :            :         .nfs_fs   = &nfs_fs_type,
      13                 :            :         .rpc_vers = &nfs_version2,
      14                 :            :         .rpc_ops  = &nfs_v2_clientops,
      15                 :            :         .sops     = &nfs_sops,
      16                 :            : };
      17                 :            : 
      18                 :        207 : static int __init init_nfs_v2(void)
      19                 :            : {
      20                 :        207 :         register_nfs_version(&nfs_v2);
      21                 :        207 :         return 0;
      22                 :            : }
      23                 :            : 
      24                 :          0 : static void __exit exit_nfs_v2(void)
      25                 :            : {
      26                 :          0 :         unregister_nfs_version(&nfs_v2);
      27                 :          0 : }
      28                 :            : 
      29                 :            : MODULE_LICENSE("GPL");
      30                 :            : 
      31                 :            : module_init(init_nfs_v2);
      32                 :            : module_exit(exit_nfs_v2);

Generated by: LCOV version 1.14