VirtualBox

Changeset 13775 in vbox


Ignore:
Timestamp:
Nov 4, 2008 8:35:37 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
38756
Message:

EXPORT_SYMBOL after implementation of the function/variable; fixed warning

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/param.h

    r8245 r13775  
    4040
    4141/* Undefine PAGE_SIZE and PAGE_SHIFT to avoid unnecessary noice when clashing
    42    with system headers. Include system headers before / after iprt depending
    43    on which you wish to take precedence. */
     42 * with system headers. Include system headers before / after iprt depending
     43 * on which you wish to take precedence. */
    4444#undef PAGE_SIZE
    4545#undef PAGE_SHIFT
     46
     47/* Undefine PAGE_OFFSET_MASK to avoid the conflict with the-linux-kernel.h */
     48#undef PAGE_OFFSET_MASK
    4649
    4750/**
  • trunk/src/VBox/Runtime/common/alloc/heapsimple.cpp

    r11521 r13775  
    3434*******************************************************************************/
    3535#define LOG_GROUP RTLOGGROUP_DEFAULT
     36
     37#if defined(IN_GUEST_R0) && defined(RT_OS_LINUX) && defined(IN_MODULE)
     38/* should come first to prevent warnings about duplicate definitions of PAGE_* */
     39# include "the-linux-kernel.h"
     40#endif
     41
    3642#include <iprt/heap.h>
    3743#include <iprt/assert.h>
     
    4450#include "internal/magics.h"
    4551
    46 #if defined(IN_GUEST_R0) && defined(RT_OS_LINUX) && defined(IN_MODULE)
    47 #include "the-linux-kernel.h"
    48 EXPORT_SYMBOL(RTHeapSimpleAlloc);
    49 EXPORT_SYMBOL(RTHeapSimpleInit);
    50 EXPORT_SYMBOL(RTHeapSimpleFree);
    51 #endif
    5252
    5353/*******************************************************************************
     
    939939}
    940940
     941
     942#if defined(IN_GUEST_R0) && defined(RT_OS_LINUX) && defined(IN_MODULE)
     943EXPORT_SYMBOL(RTHeapSimpleAlloc);
     944EXPORT_SYMBOL(RTHeapSimpleInit);
     945EXPORT_SYMBOL(RTHeapSimpleFree);
     946#endif
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette