LCOV - code coverage report
Current view: top level - include/linux - set_memory.h (source / functions) Hit Total Coverage
Test: gcov_data_raspi2_real_modules_combined.info Lines: 4 4 100.0 %
Date: 2020-09-30 20:25:40 Functions: 2 2 100.0 %
Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /* SPDX-License-Identifier: GPL-2.0-only */
       2                 :            : /*
       3                 :            :  * Copyright 2017, Michael Ellerman, IBM Corporation.
       4                 :            :  */
       5                 :            : #ifndef _LINUX_SET_MEMORY_H_
       6                 :            : #define _LINUX_SET_MEMORY_H_
       7                 :            : 
       8                 :            : #ifdef CONFIG_ARCH_HAS_SET_MEMORY
       9                 :            : #include <asm/set_memory.h>
      10                 :            : #else
      11                 :            : static inline int set_memory_ro(unsigned long addr, int numpages) { return 0; }
      12                 :            : static inline int set_memory_rw(unsigned long addr, int numpages) { return 0; }
      13                 :            : static inline int set_memory_x(unsigned long addr,  int numpages) { return 0; }
      14                 :            : static inline int set_memory_nx(unsigned long addr, int numpages) { return 0; }
      15                 :            : #endif
      16                 :            : 
      17                 :            : #ifndef CONFIG_ARCH_HAS_SET_DIRECT_MAP
      18                 :      90672 : static inline int set_direct_map_invalid_noflush(struct page *page)
      19                 :            : {
      20                 :      90672 :         return 0;
      21                 :            : }
      22                 :      90672 : static inline int set_direct_map_default_noflush(struct page *page)
      23                 :            : {
      24                 :      90672 :         return 0;
      25                 :            : }
      26                 :            : #endif
      27                 :            : 
      28                 :            : #ifndef set_mce_nospec
      29                 :            : static inline int set_mce_nospec(unsigned long pfn, bool unmap)
      30                 :            : {
      31                 :            :         return 0;
      32                 :            : }
      33                 :            : #endif
      34                 :            : 
      35                 :            : #ifndef clear_mce_nospec
      36                 :            : static inline int clear_mce_nospec(unsigned long pfn)
      37                 :            : {
      38                 :            :         return 0;
      39                 :            : }
      40                 :            : #endif
      41                 :            : 
      42                 :            : #ifndef CONFIG_ARCH_HAS_MEM_ENCRYPT
      43                 :            : static inline int set_memory_encrypted(unsigned long addr, int numpages)
      44                 :            : {
      45                 :            :         return 0;
      46                 :            : }
      47                 :            : 
      48                 :            : static inline int set_memory_decrypted(unsigned long addr, int numpages)
      49                 :            : {
      50                 :            :         return 0;
      51                 :            : }
      52                 :            : #endif /* CONFIG_ARCH_HAS_MEM_ENCRYPT */
      53                 :            : 
      54                 :            : #endif /* _LINUX_SET_MEMORY_H_ */

Generated by: LCOV version 1.14