* [2.6 patch] DRM: remove unused functions
@ 2004-10-28 22:15 Adrian Bunk
2004-10-29 0:16 ` Adrian Bunk
2004-10-31 9:11 ` Dave Airlie
0 siblings, 2 replies; 3+ messages in thread
From: Adrian Bunk @ 2004-10-28 22:15 UTC (permalink / raw)
To: dri-devel; +Cc: linux-kernel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
The patch below removes two unused functions from DRM.
diffstat output:
drivers/char/drm/i810_dma.c | 18 ------------------
drivers/char/drm/i915_dma.c | 18 ------------------
2 files changed, 36 deletions(-)
Signed-off-by: Adrian Bunk <bunk@stusta.de>
- --- linux-2.6.10-rc1-mm1-full/drivers/char/drm/i810_dma.c.old 2004-10-28 22:55:34.000000000 +0200
+++ linux-2.6.10-rc1-mm1-full/drivers/char/drm/i810_dma.c 2004-10-28 22:55:45.000000000 +0200
@@ -51,24 +51,6 @@
#define up_write up
#endif
- -static inline void i810_print_status_page(drm_device_t *dev)
- -{
- - drm_device_dma_t *dma = dev->dma;
- - drm_i810_private_t *dev_priv = dev->dev_private;
- - u32 *temp = dev_priv->hw_status_page;
- - int i;
- -
- - DRM_DEBUG( "hw_status: Interrupt Status : %x\n", temp[0]);
- - DRM_DEBUG( "hw_status: LpRing Head ptr : %x\n", temp[1]);
- - DRM_DEBUG( "hw_status: IRing Head ptr : %x\n", temp[2]);
- - DRM_DEBUG( "hw_status: Reserved : %x\n", temp[3]);
- - DRM_DEBUG( "hw_status: Last Render: %x\n", temp[4]);
- - DRM_DEBUG( "hw_status: Driver Counter : %d\n", temp[5]);
- - for(i = 6; i < dma->buf_count + 6; i++) {
- - DRM_DEBUG( "buffer status idx : %d used: %d\n", i - 6, temp[i]);
- - }
- -}
- -
static drm_buf_t *i810_freelist_get(drm_device_t *dev)
{
drm_device_dma_t *dma = dev->dma;
- --- linux-2.6.10-rc1-mm1-full/drivers/char/drm/i915_dma.c.old 2004-10-28 22:56:35.000000000 +0200
+++ linux-2.6.10-rc1-mm1-full/drivers/char/drm/i915_dma.c 2004-10-28 22:56:47.000000000 +0200
@@ -13,24 +13,6 @@
#include "i915_drm.h"
#include "i915_drv.h"
- -static inline void i915_print_status_page(drm_device_t * dev)
- -{
- - drm_i915_private_t *dev_priv = dev->dev_private;
- - u32 *temp = dev_priv->hw_status_page;
- -
- - if (!temp) {
- - DRM_DEBUG("no status page\n");
- - return;
- - }
- -
- - DRM_DEBUG("hw_status: Interrupt Status : %x\n", temp[0]);
- - DRM_DEBUG("hw_status: LpRing Head ptr : %x\n", temp[1]);
- - DRM_DEBUG("hw_status: IRing Head ptr : %x\n", temp[2]);
- - DRM_DEBUG("hw_status: Reserved : %x\n", temp[3]);
- - DRM_DEBUG("hw_status: Driver Counter : %d\n", temp[5]);
- -
- -}
- -
/* Really want an OS-independent resettable timer. Would like to have
* this loop run for (eg) 3 sec, but have the timer reset every time
* the head pointer changes, so that EBUSY only happens if the ring
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
iD8DBQFBgW+HmfzqmE8StAARAttqAJ4h16xPCGoaSdpSQISliKrGQ4U6xwCgqOwN
uU4Jwi0yuUSGoB4AbZHHN1U=
=Oppa
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 3+ messages in thread
* [2.6 patch] DRM: remove unused functions
2004-10-28 22:15 [2.6 patch] DRM: remove unused functions Adrian Bunk
@ 2004-10-29 0:16 ` Adrian Bunk
2004-10-31 9:11 ` Dave Airlie
1 sibling, 0 replies; 3+ messages in thread
From: Adrian Bunk @ 2004-10-29 0:16 UTC (permalink / raw)
To: dri-devel; +Cc: linux-kernel
[ this time without the problems due to a digital signature... ]
The patch below removes two unused functions from DRM.
diffstat output:
drivers/char/drm/i810_dma.c | 18 ------------------
drivers/char/drm/i915_dma.c | 18 ------------------
2 files changed, 36 deletions(-)
Signed-off-by: Adrian Bunk <bunk@stusta.de>
--- linux-2.6.10-rc1-mm1-full/drivers/char/drm/i810_dma.c.old 2004-10-28 22:55:34.000000000 +0200
+++ linux-2.6.10-rc1-mm1-full/drivers/char/drm/i810_dma.c 2004-10-28 22:55:45.000000000 +0200
@@ -51,24 +51,6 @@
#define up_write up
#endif
-static inline void i810_print_status_page(drm_device_t *dev)
-{
- drm_device_dma_t *dma = dev->dma;
- drm_i810_private_t *dev_priv = dev->dev_private;
- u32 *temp = dev_priv->hw_status_page;
- int i;
-
- DRM_DEBUG( "hw_status: Interrupt Status : %x\n", temp[0]);
- DRM_DEBUG( "hw_status: LpRing Head ptr : %x\n", temp[1]);
- DRM_DEBUG( "hw_status: IRing Head ptr : %x\n", temp[2]);
- DRM_DEBUG( "hw_status: Reserved : %x\n", temp[3]);
- DRM_DEBUG( "hw_status: Last Render: %x\n", temp[4]);
- DRM_DEBUG( "hw_status: Driver Counter : %d\n", temp[5]);
- for(i = 6; i < dma->buf_count + 6; i++) {
- DRM_DEBUG( "buffer status idx : %d used: %d\n", i - 6, temp[i]);
- }
-}
-
static drm_buf_t *i810_freelist_get(drm_device_t *dev)
{
drm_device_dma_t *dma = dev->dma;
--- linux-2.6.10-rc1-mm1-full/drivers/char/drm/i915_dma.c.old 2004-10-28 22:56:35.000000000 +0200
+++ linux-2.6.10-rc1-mm1-full/drivers/char/drm/i915_dma.c 2004-10-28 22:56:47.000000000 +0200
@@ -13,24 +13,6 @@
#include "i915_drm.h"
#include "i915_drv.h"
-static inline void i915_print_status_page(drm_device_t * dev)
-{
- drm_i915_private_t *dev_priv = dev->dev_private;
- u32 *temp = dev_priv->hw_status_page;
-
- if (!temp) {
- DRM_DEBUG("no status page\n");
- return;
- }
-
- DRM_DEBUG("hw_status: Interrupt Status : %x\n", temp[0]);
- DRM_DEBUG("hw_status: LpRing Head ptr : %x\n", temp[1]);
- DRM_DEBUG("hw_status: IRing Head ptr : %x\n", temp[2]);
- DRM_DEBUG("hw_status: Reserved : %x\n", temp[3]);
- DRM_DEBUG("hw_status: Driver Counter : %d\n", temp[5]);
-
-}
-
/* Really want an OS-independent resettable timer. Would like to have
* this loop run for (eg) 3 sec, but have the timer reset every time
* the head pointer changes, so that EBUSY only happens if the ring
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [2.6 patch] DRM: remove unused functions
2004-10-28 22:15 [2.6 patch] DRM: remove unused functions Adrian Bunk
2004-10-29 0:16 ` Adrian Bunk
@ 2004-10-31 9:11 ` Dave Airlie
1 sibling, 0 replies; 3+ messages in thread
From: Dave Airlie @ 2004-10-31 9:11 UTC (permalink / raw)
To: Adrian Bunk; +Cc: dri-devel, linux-kernel, Linus Torvalds
> The patch below removes two unused functions from DRM.
>
> diffstat output:
> drivers/char/drm/i810_dma.c | 18 ------------------
> drivers/char/drm/i915_dma.c | 18 ------------------
> 2 files changed, 36 deletions(-)
>
> Signed-off-by: Adrian Bunk <bunk@stusta.de>
Acked-by: Dave Airlie <airlied@linux.ie>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-10-31 9:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-28 22:15 [2.6 patch] DRM: remove unused functions Adrian Bunk
2004-10-29 0:16 ` Adrian Bunk
2004-10-31 9:11 ` Dave Airlie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).