mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Borislav Petkov <bp@alien8.de>
To: Greg Kroah-Hartman <gregkh@suse.de>
Cc: LKML <linux-kernel@vger.kernel.org>,
	Borislav Petkov <bp@alien8.de>,
	Antony Pavlov <antony@niisi.msk.ru>
Subject: [PATCH] 8250_pci: Fix build warning
Date: Mon, 30 May 2011 11:52:54 +0200	[thread overview]
Message-ID: <1306749174-31216-1-git-send-email-bp@alien8.de> (raw)

Fix

drivers/tty/serial/8250_pci.c:1457: warning: initialization from incompatible pointer type

by constifying the serial board :).

Cc: Antony Pavlov <antony@niisi.msk.ru>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Borislav Petkov <bp@alien8.de>
---
 drivers/tty/serial/8250_pci.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/tty/serial/8250_pci.c b/drivers/tty/serial/8250_pci.c
index 4b4968a..c9c9e6f 100644
--- a/drivers/tty/serial/8250_pci.c
+++ b/drivers/tty/serial/8250_pci.c
@@ -973,8 +973,8 @@ ce4100_serial_setup(struct serial_private *priv,
 
 static int
 pci_omegapci_setup(struct serial_private *priv,
-		      struct pciserial_board *board,
-		      struct uart_port *port, int idx)
+		   const struct pciserial_board *board,
+		   struct uart_port *port, int idx)
 {
 	return setup_port(priv, port, 2, idx * 8, 0);
 }
-- 
1.7.5.rc1.16.g9db1


             reply	other threads:[~2011-05-30  9:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-30  9:52 Borislav Petkov [this message]
2011-06-07  7:26 ` Borislav Petkov
2011-06-07 13:34   ` Greg KH

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=1306749174-31216-1-git-send-email-bp@alien8.de \
    --to=bp@alien8.de \
    --cc=antony@niisi.msk.ru \
    --cc=gregkh@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    /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®