Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43956
b: refs/heads/master
c: 0c8204b
h: refs/heads/master
v: v3
  • Loading branch information
Randy Dunlap authored and Linus Torvalds committed Dec 10, 2006
1 parent 04cd1a7 commit d85e19b
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 24 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 76465493eeadb1662d65aa96477d6fc093da9966
refs/heads/master: 0c8204b380f92a6a8533d228c50f0b681daf6121
4 changes: 3 additions & 1 deletion trunk/drivers/char/ipmi/ipmi_bt_sm.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@
#define BT_DEBUG_ENABLE 1 /* Generic messages */
#define BT_DEBUG_MSG 2 /* Prints all request/response buffers */
#define BT_DEBUG_STATES 4 /* Verbose look at state changes */
/* BT_DEBUG_OFF must be zero to correspond to the default uninitialized
value */

static int bt_debug = BT_DEBUG_OFF;
static int bt_debug; /* 0 == BT_DEBUG_OFF */

module_param(bt_debug, int, 0644);
MODULE_PARM_DESC(bt_debug, "debug bitmask, 1=enable, 2=messages, 4=states");
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/ipmi/ipmi_devintf.c
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ static const struct file_operations ipmi_fops = {

#define DEVICE_NAME "ipmidev"

static int ipmi_major = 0;
static int ipmi_major;
module_param(ipmi_major, int, 0);
MODULE_PARM_DESC(ipmi_major, "Sets the major number of the IPMI device. By"
" default, or if you set it to zero, it will choose the next"
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/char/ipmi/ipmi_msghandler.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@
static struct ipmi_recv_msg *ipmi_alloc_recv_msg(void);
static int ipmi_init_msghandler(void);

static int initialized = 0;
static int initialized;

#ifdef CONFIG_PROC_FS
static struct proc_dir_entry *proc_ipmi_root = NULL;
static struct proc_dir_entry *proc_ipmi_root;
#endif /* CONFIG_PROC_FS */

/* Remain in auto-maintenance mode for this amount of time (in ms). */
Expand Down Expand Up @@ -4043,7 +4043,7 @@ static void send_panic_events(char *str)
}
#endif /* CONFIG_IPMI_PANIC_EVENT */

static int has_panicked = 0;
static int has_panicked;

static int panic_event(struct notifier_block *this,
unsigned long event,
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/char/ipmi/ipmi_poweroff.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ static int poweroff_powercycle;
static int ifnum_to_use = -1;

/* Our local state. */
static int ready = 0;
static int ready;
static ipmi_user_t ipmi_user;
static int ipmi_ifnum;
static void (*specific_poweroff_func)(ipmi_user_t user) = NULL;
static void (*specific_poweroff_func)(ipmi_user_t user);

/* Holds the old poweroff function so we can restore it on removal. */
static void (*old_poweroff_func)(void);
Expand Down Expand Up @@ -182,7 +182,7 @@ static int ipmi_request_in_rc_mode(ipmi_user_t user,
#define IPMI_MOTOROLA_MANUFACTURER_ID 0x0000A1
#define IPMI_MOTOROLA_PPS_IPMC_PRODUCT_ID 0x0051

static void (*atca_oem_poweroff_hook)(ipmi_user_t user) = NULL;
static void (*atca_oem_poweroff_hook)(ipmi_user_t user);

static void pps_poweroff_atca (ipmi_user_t user)
{
Expand Down
12 changes: 6 additions & 6 deletions trunk/drivers/char/ipmi/ipmi_si_intf.c
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,7 @@ static void request_events(void *send_info)
atomic_set(&smi_info->req_events, 1);
}

static int initialized = 0;
static int initialized;

static void smi_timeout(unsigned long data)
{
Expand Down Expand Up @@ -1018,13 +1018,13 @@ static int num_ports;
static int irqs[SI_MAX_PARMS];
static int num_irqs;
static int regspacings[SI_MAX_PARMS];
static int num_regspacings = 0;
static int num_regspacings;
static int regsizes[SI_MAX_PARMS];
static int num_regsizes = 0;
static int num_regsizes;
static int regshifts[SI_MAX_PARMS];
static int num_regshifts = 0;
static int num_regshifts;
static int slave_addrs[SI_MAX_PARMS];
static int num_slave_addrs = 0;
static int num_slave_addrs;

#define IPMI_IO_ADDR_SPACE 0
#define IPMI_MEM_ADDR_SPACE 1
Expand Down Expand Up @@ -1668,7 +1668,7 @@ static __devinit void hardcode_find_bmc(void)
/* Once we get an ACPI failure, we don't try any more, because we go
through the tables sequentially. Once we don't find a table, there
are no more. */
static int acpi_failure = 0;
static int acpi_failure;

/* For GPE-type interrupts. */
static u32 ipmi_acpi_gpe(void *context)
Expand Down
18 changes: 9 additions & 9 deletions trunk/drivers/char/ipmi/ipmi_watchdog.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,14 @@

static int nowayout = WATCHDOG_NOWAYOUT;

static ipmi_user_t watchdog_user = NULL;
static ipmi_user_t watchdog_user;
static int watchdog_ifnum;

/* Default the timeout to 10 seconds. */
static int timeout = 10;

/* The pre-timeout is disabled by default. */
static int pretimeout = 0;
static int pretimeout;

/* Default action is to reset the board on a timeout. */
static unsigned char action_val = WDOG_TIMEOUT_RESET;
Expand All @@ -156,10 +156,10 @@ static unsigned char preop_val = WDOG_PREOP_NONE;

static char preop[16] = "preop_none";
static DEFINE_SPINLOCK(ipmi_read_lock);
static char data_to_read = 0;
static char data_to_read;
static DECLARE_WAIT_QUEUE_HEAD(read_q);
static struct fasync_struct *fasync_q = NULL;
static char pretimeout_since_last_heartbeat = 0;
static struct fasync_struct *fasync_q;
static char pretimeout_since_last_heartbeat;
static char expect_close;

static int ifnum_to_use = -1;
Expand All @@ -177,7 +177,7 @@ static void ipmi_unregister_watchdog(int ipmi_intf);

/* If true, the driver will start running as soon as it is configured
and ready. */
static int start_now = 0;
static int start_now;

static int set_param_int(const char *val, struct kernel_param *kp)
{
Expand Down Expand Up @@ -300,16 +300,16 @@ MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started "
static unsigned char ipmi_watchdog_state = WDOG_TIMEOUT_NONE;

/* If shutting down via IPMI, we ignore the heartbeat. */
static int ipmi_ignore_heartbeat = 0;
static int ipmi_ignore_heartbeat;

/* Is someone using the watchdog? Only one user is allowed. */
static unsigned long ipmi_wdog_open = 0;
static unsigned long ipmi_wdog_open;

/* If set to 1, the heartbeat command will set the state to reset and
start the timer. The timer doesn't normally run when the driver is
first opened until the heartbeat is set the first time, this
variable is used to accomplish this. */
static int ipmi_start_timer_on_heartbeat = 0;
static int ipmi_start_timer_on_heartbeat;

/* IPMI version of the BMC. */
static unsigned char ipmi_version_major;
Expand Down

0 comments on commit d85e19b

Please sign in to comment.