VirtualBox

Changeset 6845 in vbox for trunk/src/VBox/Runtime/r0drv


Ignore:
Timestamp:
Feb 7, 2008 12:50:50 PM (17 years ago)
Author:
vboxsync
Message:

Fix a soon to appear post-2.6.24 linux kernel issue dropping a macro definition. Used the opportunity to make the linux support driver use the-linux-kernel.h, too, and move common hacks there. Left the host driver specific things where they were.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/linux/the-linux-kernel.h

    r5999 r6845  
    6464#include <asm/semaphore.h>
    6565#include <linux/module.h>
     66#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0)
     67# include <linux/moduleparam.h>
     68#endif
     69#include <linux/vermagic.h>
    6670#include <linux/kernel.h>
    6771#include <linux/init.h>
     
    8084#include <linux/interrupt.h>
    8185#include <linux/completion.h>
     86#include <linux/compiler.h>
     87#ifndef HAVE_UNLOCKED_IOCTL /* linux/fs.h defines this */
     88# include <linux/smp_lock.h>
     89#endif
    8290/* For the shared folders module */
    8391#include <linux/vmalloc.h>
     
    227235#undef bool
    228236
    229 #endif
    230 
     237/*
     238 * There are post-2.6.24 kernels (confusingly with unchanged version number)
     239 * which eliminate macros which were marked as deprecated.
     240 */
     241#ifndef __attribute_used__
     242#define __attribute_used__ __used
     243#endif
     244
     245#endif
     246
Note: See TracChangeset for help on using the changeset viewer.

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