All of lore.kernel.org
 help / color / mirror / Atom feed
From: Blaisorblade <blaisorblade@yahoo.it>
To: user-mode-linux-devel@lists.sourceforge.net
Cc: Marcus Better <marcus@better.se>
Subject: Re: [uml-devel] skas3 patch breaks ATI video drivers
Date: Mon, 24 Jan 2005 21:13:16 +0100	[thread overview]
Message-ID: <200501242113.16569.blaisorblade@yahoo.it> (raw)
In-Reply-To: <41F54FE9.7060503@better.se>

On Monday 24 January 2005 20:43, Marcus Better wrote:
> Hi all,
>
> I applied Blaisorblade's host-skas3-2.6.9-v7.patch, and it breaks the
> fglrx graphics driver from ATI[1]. This is with Debian kernel 2.6.9, but
> I believe it applies to vanilla kernels also.
>
> The problem is the following declaration added to include/asm-i386/desc.h:
>
> ----------------------------------------------------------
> extern int modify_ldt(struct mm_struct * mm, int func, void __user *ptr,
>         unsigned long bytecount);
> ----------------------------------------------------------
>
> The fglrx driver contains the following macro in a source file:
>
> _syscall3( int, modify_ldt, int, func, void *, ptr, unsigned long,
> bytecount )
>
> Here the compiler chokes with the following error:
> ---------------------------------------------------------
> /usr/src/modules/fglrx-4.3.0-3.14.6/firegl_public.c:181: error:
> conflicting types for `modify_ldt'
> include/asm/desc.h:144: error: previous declaration of `modify_ldt'
> ---------------------------------------------------------
>
> I don't understand the details of the kernel code, but it seems that the
> problem is that the SKAS patch defines the function modify_ldt which
> conflicts with the syscall macros.

> I renamed the new function to _modify_ldt instead (and changed the two
> or three references to it in ldt.c), and this seems to fix the problem.

I.e. the compilation problem is not in the kernel module, right? In this case, 
the problem is that you have /usr/include/asm symlinked to your kernel's 
include/asm-i386 directory, which is the wrong setup. However your solution 
should not give any problem.

If this is wrong, instead, then you are surely right... but then the solution 
you explain would be unlikely to fix anything... and the code would also be 
different, I guess. It's just a quick shoot however, so feel free to correct 
me.
> Please CC replies to me, I'm not subscribed to the list.

> Thanks for your work!
Thanks to you for using UML!
> Marcus B.
>
> [1] http://www.ati.com/support/drivers/linux/radeon-linux.html

-- 
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729
http://www.user-mode-linux.org/~blaisorblade


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

  reply	other threads:[~2005-01-24 19:55 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-24 19:43 [uml-devel] skas3 patch breaks ATI video drivers Marcus Better
2005-01-24 20:13 ` Blaisorblade [this message]
2005-01-25  8:35   ` Marcus Better
2005-01-25 10:01     ` Blaisorblade
2005-01-25 10:55       ` Marcus Better
2005-01-25 11:21         ` Blaisorblade
     [not found]           ` <41FA4919.1040705@better.se>
2005-01-28 15:52             ` Blaisorblade
2005-01-26 10:24   ` [uml-devel] " Sven Köhler
2005-01-26 12:24     ` Blaisorblade
2005-01-28 15:55 ` [uml-devel] " Blaisorblade

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=200501242113.16569.blaisorblade@yahoo.it \
    --to=blaisorblade@yahoo.it \
    --cc=marcus@better.se \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.