Date: Mon, 15 Apr 2002 11:00:08 -0700 (PDT) From: Pierre Beyssac <pb@fasterix.frmug.org> To: freebsd-ports@FreeBSD.org Subject: Re: ports/36714: drm-kmod generates compile warnings on -current Message-ID: <200204151800.g3FI08P16419@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/36714; it has been noted by GNATS. From: Pierre Beyssac <pb@fasterix.frmug.org> To: freebsd-gnats-submit@FreeBSD.org, mharnois@cpinternet.com Cc: Subject: Re: ports/36714: drm-kmod generates compile warnings on -current Date: Mon, 15 Apr 2002 19:58:34 +0200 I was having the same problem, plus a problem with mtx_init() due to recent changes in -current. I have tested (and committed to ports) the following patch, works ok for me with today's current. In case it doesn't work for you, let me know if you want me to reopen the PR. Pierre --- drm_os_freebsd.h.orig Thu Jan 31 13:44:39 2002 +++ drm_os_freebsd.h Sat Apr 13 14:43:40 2002 @@ -47,7 +47,7 @@ #if __FreeBSD_version >= 500000 #define DRM_OS_SPINTYPE struct mtx -#define DRM_OS_SPININIT(l,name) mtx_init(&l, name, MTX_DEF) +#define DRM_OS_SPININIT(l,name) mtx_init(&l, name, NULL, MTX_DEF) #define DRM_OS_SPINLOCK(l) mtx_lock(l) #define DRM_OS_SPINUNLOCK(u) mtx_unlock(u); #define DRM_OS_LOCK lockmgr(&dev->dev_lock, LK_EXCLUSIVE, 0, curthread) @@ -56,7 +56,7 @@ #define DRM_OS_STRUCTPROC struct thread #define DRM_OS_CURRENTPID curthread->td_proc->p_pid #define DRM_OS_IOCTL dev_t kdev, u_long cmd, caddr_t data, int flags, struct thread *p -#define DRM_OS_CHECKSUSER suser(p->td_proc) +#define DRM_OS_CHECKSUSER suser(p) #else #define DRM_OS_CURPROC curproc #define DRM_OS_STRUCTPROC struct proc To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204151800.g3FI08P16419>