linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Krzysztof Helt <krzysztof.h1@wp.pl>
Cc: linux-fbdev-devel <linux-fbdev-devel@lists.sourceforge.net>
Subject: Re: [PATCH] tridentfb: replace macros with functions
Date: Fri, 2 May 2008 05:38:56 -0700	[thread overview]
Message-ID: <20080502053856.804983db.akpm@linux-foundation.org> (raw)
In-Reply-To: <481add6589c4d@wp.pl>

On Fri, 02 May 2008 11:22:45 +0200 "Krzysztof Helt" <krzysztof.h1@wp.pl> wrote:

> This patch replaces macros with static functions and
> puts tridentfb_par pointer as the first argument of
> these functions. These is a step toward multihead
> support.
> 
> Additionally, bogus TRIDENT_MMIO define is removed as
> the driver supports graphics cards only through the mmio mode.

Something went wrong here..

drivers/video/tridentfb.c: In function 'tridentfb_fillrect':
drivers/video/tridentfb.c:518: warning: passing argument 1 of 'acc->fill_rect' makes pointer from integer without a cast
drivers/video/tridentfb.c:518: error: too few arguments to function 'acc->fill_rect'
drivers/video/tridentfb.c:519: error: too few arguments to function 'acc->wait_engine'
drivers/video/tridentfb.c: In function 'tridentfb_copyarea':
drivers/video/tridentfb.c:524: warning: passing argument 1 of 'acc->copy_rect' makes pointer from integer without a cast
drivers/video/tridentfb.c:524: error: too few arguments to function 'acc->copy_rect'
drivers/video/tridentfb.c:525: error: too few arguments to function 'acc->wait_engine'
drivers/video/tridentfb.c: In function 'tridentfb_set_par':
drivers/video/tridentfb.c:1018: warning: passing argument 1 of 'acc->init_accel' makes pointer from integer without a cast
drivers/video/tridentfb.c:1018: error: too few arguments to function 'acc->init_accel'


Also, checkpatch says

ERROR: "(foo*)" should be "(foo *)"
#863: FILE: drivers/video/tridentfb.c:1123:
+       struct tridentfb_par *par = (struct tridentfb_par*)info->par;

ERROR: "(foo*)" should be "(foo *)"
#887: FILE: drivers/video/tridentfb.c:1160:
+       struct tridentfb_par *par = (struct tridentfb_par*)info->par;

which is easily fixed by just removing the unneeded typecasts of void*.


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

      reply	other threads:[~2008-05-02 12:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-02  9:22 [PATCH] tridentfb: replace macros with functions Krzysztof Helt
2008-05-02 12:38 ` Andrew Morton [this message]

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=20080502053856.804983db.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=krzysztof.h1@wp.pl \
    --cc=linux-fbdev-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 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).