public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] make vesafb build without CONFIG_MTRR
@ 2005-11-07 12:53 Jan Beulich
  2005-11-09 21:59 ` Adrian Bunk
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Beulich @ 2005-11-07 12:53 UTC (permalink / raw)
  To: Gerd Knorr; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 108 bytes --]

vesafb did not build without CONFIG_MTRR.

From: Jan Beulich <jbeulich@novell.com>

(actual patch attached)

[-- Attachment #2: linux-2.6.14-vesafb-no-mtrr.patch --]
[-- Type: application/octet-stream, Size: 677 bytes --]

vesafb did not build without CONFIG_MTRR.

From: Jan Beulich <jbeulich@novell.com>

--- /home/jbeulich/tmp/linux-2.6.14/drivers/video/vesafb.c	2005-10-28 02:02:08.000000000 +0200
+++ 2.6.14/drivers/video/vesafb.c	2005-11-04 12:19:15.000000000 +0100
@@ -419,6 +419,7 @@ static int __init vesafb_probe(struct de
 	 * region already (FIXME) */
 	request_region(0x3c0, 32, "vesafb");
 
+#ifdef CONFIG_MTRR
 	if (mtrr) {
 		unsigned int temp_size = size_total;
 		unsigned int type = 0;
@@ -456,6 +457,7 @@ static int __init vesafb_probe(struct de
 			} while (temp_size >= PAGE_SIZE && rc == -EINVAL);
 		}
 	}
+#endif
 	
 	info->fbops = &vesafb_ops;
 	info->var = vesafb_defined;

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

* Re: [PATCH] make vesafb build without CONFIG_MTRR
  2005-11-07 12:53 [PATCH] make vesafb build without CONFIG_MTRR Jan Beulich
@ 2005-11-09 21:59 ` Adrian Bunk
  2005-11-10  8:24   ` Jan Beulich
  0 siblings, 1 reply; 3+ messages in thread
From: Adrian Bunk @ 2005-11-09 21:59 UTC (permalink / raw)
  To: Jan Beulich; +Cc: Gerd Knorr, linux-kernel

On Mon, Nov 07, 2005 at 01:53:30PM +0100, Jan Beulich wrote:

> vesafb did not build without CONFIG_MTRR.
>...

I wasn't able to reproduce your problem.

Please send the error message and the a complete .config for reproducing 
it.

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


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

* Re: [PATCH] make vesafb build without CONFIG_MTRR
  2005-11-09 21:59 ` Adrian Bunk
@ 2005-11-10  8:24   ` Jan Beulich
  0 siblings, 0 replies; 3+ messages in thread
From: Jan Beulich @ 2005-11-10  8:24 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: Gerd Knorr, linux-kernel

>>> Adrian Bunk <bunk@stusta.de> 09.11.05 22:59:35 >>>
>On Mon, Nov 07, 2005 at 01:53:30PM +0100, Jan Beulich wrote:
>
>> vesafb did not build without CONFIG_MTRR.
>>...
>
>I wasn't able to reproduce your problem.
>
>Please send the error message and the a complete .config for
reproducing 
>it.

Hmm, yes. The change came from the Xen kernel, which for some reason
has CONFIG_MTRR but doesn't compile the respective source file on
x86-64. When I ran into that, I didn't realize that include/asm/mtrr.h
has wrappers for the !CONFIG_MTRR case.

But anyway, the code now framed by the conditionals is dead code
without CONFIG_MTRR anyway. So if the number of #ifdef-s is important
I'm OK with withrawing that patch, but then I'd like to see the same
happen in all the other frame buffer drivers (after all it was the fact
that the conditionals were there everywhere else I checked that made me
not look at include/asm/mtrr.h)...

Jan

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

end of thread, other threads:[~2005-11-10  8:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-07 12:53 [PATCH] make vesafb build without CONFIG_MTRR Jan Beulich
2005-11-09 21:59 ` Adrian Bunk
2005-11-10  8:24   ` Jan Beulich

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