mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Geoffrey Lee <glee@gnupilgrims.org>
To: linux-kernel@vger.kernel.org
Cc: trivial@rustcorp.com.au
Subject: [PATCH] wrap around asm/mtrr.h in #ifdef ... #endif
Date: Tue, 11 Feb 2003 17:42:28 +0800	[thread overview]
Message-ID: <20030211094228.GD339@anakin.wychk.org> (raw)

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

Hi all,


The following two patches wrap around asm/mtrr.h with CONFIG_MTRR #ifdef for
the sis video driver.


	-- G.
-- 
char p[] = "\xeb\x1f\x5e\x89\x76\x08\x31\xc0\x88\x46\x07\x89\x46\x0c\xb0\x0b"
  "\x89\xf3\x8d\x4e\x08\x8d\x56\x0c\xcd\x80\x31\xdb\x89\xd8\x40\xcd"
  "\x80\xe8\xdc\xff\xff\xff/bin/sh";



[-- Attachment #2: sis_accel.c.patch --]
[-- Type: text/plain, Size: 367 bytes --]

--- linux-2.4.20/drivers/video/sis/sis_accel.c.orig	2002-11-29 00:53:15.000000000 +0100
+++ linux-2.4.20/drivers/video/sis/sis_accel.c	2003-02-11 10:55:41.000000000 +0100
@@ -40,7 +40,9 @@
 #include <linux/sisfb.h>
 
 #include <asm/io.h>
+#ifdef CONFIG_MTRR
 #include <asm/mtrr.h>
+#endif
 
 #include <video/fbcon.h>
 #if LINUX_VERSION_CODE <= KERNEL_VERSION(2,5,33)

[-- Attachment #3: sis_main.c.patch --]
[-- Type: text/plain, Size: 346 bytes --]

--- linux-2.4.20/drivers/video/sis/sis_main.c.orig	2003-02-11 10:56:48.000000000 +0100
+++ linux-2.4.20/drivers/video/sis/sis_main.c	2003-02-11 10:55:24.000000000 +0100
@@ -52,7 +52,9 @@
 #include <linux/sisfb.h>
 
 #include <asm/io.h>
+#ifdef CONFIG_MTRR
 #include <asm/mtrr.h>
+#endif
 
 #include <video/fbcon.h>
 #include <video/fbcon-cfb8.h>

                 reply	other threads:[~2003-02-11  9:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030211094228.GD339@anakin.wychk.org \
    --to=glee@gnupilgrims.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=trivial@rustcorp.com.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®