LCOV - code coverage report
Current view: top level - arch/x86/include/asm - dmi.h (source / functions) Hit Total Coverage
Test: combined.info Lines: 2 2 100.0 %
Date: 2022-04-01 13:59:58 Functions: 0 0 -
Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /* SPDX-License-Identifier: GPL-2.0 */
       2                 :            : #ifndef _ASM_X86_DMI_H
       3                 :            : #define _ASM_X86_DMI_H
       4                 :            : 
       5                 :            : #include <linux/compiler.h>
       6                 :            : #include <linux/init.h>
       7                 :            : #include <linux/io.h>
       8                 :            : 
       9                 :            : #include <asm/setup.h>
      10                 :            : 
      11                 :        858 : static __always_inline __init void *dmi_alloc(unsigned len)
      12                 :            : {
      13                 :        858 :         return extend_brk(len, sizeof(int));
      14                 :            : }
      15                 :            : 
      16                 :            : /* Use early IO mappings for DMI because it's initialized early */
      17                 :            : #define dmi_early_remap         early_memremap
      18                 :            : #define dmi_early_unmap         early_memunmap
      19                 :            : #define dmi_remap(_x, _l)       memremap(_x, _l, MEMREMAP_WB)
      20                 :            : #define dmi_unmap(_x)           memunmap(_x)
      21                 :            : 
      22                 :            : #endif /* _ASM_X86_DMI_H */

Generated by: LCOV version 1.14