PATCH: __NO_VERSION__ and remove a bogomacro from drm

PATCH: __NO_VERSION__ and remove a bogomacro from drm

Post by Alan Co » Sat, 22 Mar 2003 20:30:24



diff -u --new-file --recursive --exclude-from /usr/src/exclude linux-2.5.65/drivers/char/drm/i830_dma.c linux-2.5.65-ac2/drivers/char/drm/i830_dma.c
--- linux-2.5.65/drivers/char/drm/i830_dma.c    2003-02-10 18:37:58.000000000 +0000

  *
  */

-#define __NO_VERSION__
 #include "i830.h"
 #include "drmP.h"

 #include <linux/interrupt.h>     /* For task queue support */
 #include <linux/delay.h>

-#ifdef DO_MUNMAP_4_ARGS
-#define DO_MUNMAP(m, a, l)     do_munmap(m, a, l, 1)
-#else
-#define DO_MUNMAP(m, a, l)     do_munmap(m, a, l)
-#endif
-
 #define I830_BUF_FREE          2
 #define I830_BUF_CLIENT                1

                return -EINVAL;

        down_write(&current->mm->mmap_sem);
-       retcode = DO_MUNMAP(current->mm,
+       retcode = do_munmap(current->mm,
                            (unsigned long)buf_priv->virtual,
                            (size_t) buf->total);
        up_write(&current->mm->mmap_sem);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

PATCH: __NO_VERSION__ and remove a bogomacro from drm

Post by Dave Jone » Sun, 23 Mar 2003 00:00:17



 >  #include <linux/interrupt.h>       /* For task queue support */
 >  #include <linux/delay.h>
 >  
 > -#ifdef DO_MUNMAP_4_ARGS
 > -#define DO_MUNMAP(m, a, l)       do_munmap(m, a, l, 1)
 > -#else
 > -#define DO_MUNMAP(m, a, l)       do_munmap(m, a, l)
 > -#endif
 > -
 >  #define I830_BUF_FREE            2
 >  #define I830_BUF_CLIENT          1
 >  #define I830_BUF_HARDWARE        0

 >           return -EINVAL;
 >  
 >   down_write(&current->mm->mmap_sem);
 > - retcode = DO_MUNMAP(current->mm,
 > + retcode = do_munmap(current->mm,
 >                       (unsigned long)buf_priv->virtual,
 >                       (size_t) buf->total);
 >   up_write(&current->mm->mmap_sem);
 > -

already applied in -bk

                Dave

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. PATCH: remove __NO_VERSION__ from procfs

diff -u --new-file --recursive --exclude-from /usr/src/exclude linux-2.5.65/fs/proc/inode.c linux-2.5.65-ac2/fs/proc/inode.c
--- linux-2.5.65/fs/proc/inode.c        2003-02-10 18:38:53.000000000 +0000

 #include <linux/file.h>
 #include <linux/limits.h>
 #include <linux/init.h>
-#define __NO_VERSION__
 #include <linux/module.h>
 #include <linux/smp_lock.h>
 #include <linux/init.h>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. Reminder: Cron and Daylight Savings Time

3. PATCH: remove __NO_VERSION__ from jffs

4. Solaris 10 Container with different IP

5. PATCH: remove __NO_VERSION__ from intermezzo

6. Processes from Apache, all share permissions?

7. PATCH: remove __NO_VERSION__ in cifs

8. NIS setup

9. PATCH: remove __NO_VERSION__ from lockd

10. PATCH: remove __NO_VERSION__ in mtd

11. PATCH: remove __NO_VERSION__ from radio drivers

12. PATCH: remove __NO_VERSION__ from intermezzo #2

13. PATCH: remove __NO_VERSION__ from bttv