mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] drm/radeon: delete unused PTE_* defines
@ 2014-09-16 19:03 Kyle McMartin
  2014-09-16 23:56 ` Alex Deucher
  0 siblings, 1 reply; 2+ messages in thread
From: Kyle McMartin @ 2014-09-16 19:03 UTC (permalink / raw)
  To: linux-kernel; +Cc: airlied, alexander.deucher, dri-devel

They don't appear to be used anywhere... elsewhere uses R*_PTE_*.

master@linux:U:.% git grep PTE_ -- drivers/gpu/drm/radeon | grep -v _PTE_
master@linux:U:.%	(kyle@redacted:~/linux)

./arch/arm64/include/asm/pgtable.h:27:0: note: this is the location of the previous definition
 #define PTE_VALID  (_AT(pteval_t, 1) << 0)
 ^
In file included from drivers/gpu/drm/radeon/r600_cs.c:31:0:
drivers/gpu/drm/radeon/r600d.h:48:0: warning: "PTE_VALID" redefined [enabled by default]
 #define PTE_VALID    (1 << 0)
 ^
In file included from ./arch/arm64/include/asm/io.h:29:0,
                 from include/linux/clocksource.h:19,
                 from include/clocksource/arm_arch_timer.h:19,
                 from ./arch/arm64/include/asm/arch_timer.h:27,
                 from ./arch/arm64/include/asm/timex.h:19,
                 from include/linux/timex.h:65,
<snip>
                 from include/drm/drmP.h:51,
                 from drivers/gpu/drm/radeon/r600_cs.c:29:
./arch/arm64/include/asm/pgtable.h:27:0: note: this is the location of the previous definition
 #define PTE_VALID  (_AT(pteval_t, 1) << 0)
 ^

Signed-off-by: Kyle McMartin <kyle@redhat.com>

--- a/drivers/gpu/drm/radeon/r600d.h
+++ b/drivers/gpu/drm/radeon/r600d.h
@@ -44,13 +44,6 @@
 #define R6XX_MAX_PIPES				8
 #define R6XX_MAX_PIPES_MASK			0xff
 
-/* PTE flags */
-#define PTE_VALID				(1 << 0)
-#define PTE_SYSTEM				(1 << 1)
-#define PTE_SNOOPED				(1 << 2)
-#define PTE_READABLE				(1 << 5)
-#define PTE_WRITEABLE				(1 << 6)
-
 /* tiling bits */
 #define     ARRAY_LINEAR_GENERAL              0x00000000
 #define     ARRAY_LINEAR_ALIGNED              0x00000001

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] drm/radeon: delete unused PTE_* defines
  2014-09-16 19:03 [PATCH] drm/radeon: delete unused PTE_* defines Kyle McMartin
@ 2014-09-16 23:56 ` Alex Deucher
  0 siblings, 0 replies; 2+ messages in thread
From: Alex Deucher @ 2014-09-16 23:56 UTC (permalink / raw)
  To: Kyle McMartin
  Cc: LKML, Deucher, Alexander, Dave Airlie, Maling list - DRI developers

On Tue, Sep 16, 2014 at 3:03 PM, Kyle McMartin <kyle@redhat.com> wrote:
> They don't appear to be used anywhere... elsewhere uses R*_PTE_*.
>
> master@linux:U:.% git grep PTE_ -- drivers/gpu/drm/radeon | grep -v _PTE_
> master@linux:U:.%       (kyle@redacted:~/linux)
>
> ./arch/arm64/include/asm/pgtable.h:27:0: note: this is the location of the previous definition
>  #define PTE_VALID  (_AT(pteval_t, 1) << 0)
>  ^
> In file included from drivers/gpu/drm/radeon/r600_cs.c:31:0:
> drivers/gpu/drm/radeon/r600d.h:48:0: warning: "PTE_VALID" redefined [enabled by default]
>  #define PTE_VALID    (1 << 0)
>  ^
> In file included from ./arch/arm64/include/asm/io.h:29:0,
>                  from include/linux/clocksource.h:19,
>                  from include/clocksource/arm_arch_timer.h:19,
>                  from ./arch/arm64/include/asm/arch_timer.h:27,
>                  from ./arch/arm64/include/asm/timex.h:19,
>                  from include/linux/timex.h:65,
> <snip>
>                  from include/drm/drmP.h:51,
>                  from drivers/gpu/drm/radeon/r600_cs.c:29:
> ./arch/arm64/include/asm/pgtable.h:27:0: note: this is the location of the previous definition
>  #define PTE_VALID  (_AT(pteval_t, 1) << 0)
>  ^
>
> Signed-off-by: Kyle McMartin <kyle@redhat.com>

Applied.  thanks!

Alex

>
> --- a/drivers/gpu/drm/radeon/r600d.h
> +++ b/drivers/gpu/drm/radeon/r600d.h
> @@ -44,13 +44,6 @@
>  #define R6XX_MAX_PIPES                         8
>  #define R6XX_MAX_PIPES_MASK                    0xff
>
> -/* PTE flags */
> -#define PTE_VALID                              (1 << 0)
> -#define PTE_SYSTEM                             (1 << 1)
> -#define PTE_SNOOPED                            (1 << 2)
> -#define PTE_READABLE                           (1 << 5)
> -#define PTE_WRITEABLE                          (1 << 6)
> -
>  /* tiling bits */
>  #define     ARRAY_LINEAR_GENERAL              0x00000000
>  #define     ARRAY_LINEAR_ALIGNED              0x00000001
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-09-16 23:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-16 19:03 [PATCH] drm/radeon: delete unused PTE_* defines Kyle McMartin
2014-09-16 23:56 ` Alex Deucher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®