Skip to content

Commit

Permalink
staging/fwserial: Fix sparse build warnings
Browse files Browse the repository at this point in the history
Reported-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Peter Hurley authored and Greg Kroah-Hartman committed Jan 30, 2013
1 parent c88d40b commit a3d9ad4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion drivers/staging/fwserial/fwserial.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ static int num_ports;
/* slab used as pool for struct fwtty_transactions */
static struct kmem_cache *fwtty_txn_cache;

struct tty_driver *fwtty_driver;

struct fwtty_transaction;
typedef void (*fwtty_transaction_cb)(struct fw_card *card, int rcode,
void *data, size_t length,
Expand Down Expand Up @@ -2552,7 +2554,7 @@ static struct fw_descriptor fwserial_unit_directory = {
* The management address is in the unit space region but above other known
* address users (to keep wild writes from causing havoc)
*/
const struct fw_address_region fwserial_mgmt_addr_region = {
static const struct fw_address_region fwserial_mgmt_addr_region = {
.start = CSR_REGISTER_BASE + 0x1e0000ULL,
.end = 0x1000000000000ULL,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/fwserial/fwserial.h
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ struct fw_serial {
static const char tty_dev_name[] = TTY_DEV_NAME;
static const char loop_dev_name[] = "fwloop";

struct tty_driver *fwtty_driver;
extern struct tty_driver *fwtty_driver;

#define driver_err(s, v...) pr_err(KBUILD_MODNAME ": " s, ##v)

Expand Down

0 comments on commit a3d9ad4

Please sign in to comment.