Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 189259
b: refs/heads/master
c: 0c4ec16
h: refs/heads/master
i:
  189257: 32b06b6
  189255: a331673
v: v3
  • Loading branch information
Steven J. Magnani authored and Michal Simek committed Apr 1, 2010
1 parent f39ba95 commit d7fa06d
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 181 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: c7681f4637df65082aeee1ea1ff0479607d71982
refs/heads/master: 0c4ec16b86e6a823bc6e9fbe08a724d517eb3c24
6 changes: 2 additions & 4 deletions trunk/arch/microblaze/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,11 @@ void trap_init(void)
__enable_hw_exceptions();
}

static int kstack_depth_to_print = 24;
static unsigned long kstack_depth_to_print = 24;

static int __init kstack_setup(char *s)
{
kstack_depth_to_print = strict_strtoul(s, 0, NULL);

return 1;
return !strict_strtoul(s, 0, &kstack_depth_to_print);
}
__setup("kstack=", kstack_setup);

Expand Down
10 changes: 0 additions & 10 deletions trunk/drivers/platform/x86/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -385,16 +385,6 @@ config EEEPC_LAPTOP

If you have an Eee PC laptop, say Y or M here.

config EEEPC_WMI
tristate "Eee PC WMI Hotkey Driver (EXPERIMENTAL)"
depends on ACPI_WMI
depends on INPUT
depends on EXPERIMENTAL
---help---
Say Y here if you want to support WMI-based hotkeys on Eee PC laptops.

To compile this driver as a module, choose M here: the module will
be called eeepc-wmi.

config ACPI_WMI
tristate "WMI"
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/platform/x86/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#
obj-$(CONFIG_ASUS_LAPTOP) += asus-laptop.o
obj-$(CONFIG_EEEPC_LAPTOP) += eeepc-laptop.o
obj-$(CONFIG_EEEPC_WMI) += eeepc-wmi.o
obj-$(CONFIG_MSI_LAPTOP) += msi-laptop.o
obj-$(CONFIG_ACPI_CMPC) += classmate-laptop.o
obj-$(CONFIG_COMPAL_LAPTOP) += compal-laptop.o
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/platform/x86/asus-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ MODULE_PARM_DESC(bluetooth_status, "Set the wireless status on boot "

/* Backlight */
static acpi_handle lcd_switch_handle;
static char *lcd_switch_paths[] = {
static const char *lcd_switch_paths[] = {
"\\_SB.PCI0.SBRG.EC0._Q10", /* All new models */
"\\_SB.PCI0.ISA.EC0._Q10", /* A1x */
"\\_SB.PCI0.PX40.ECD0._Q10", /* L3C */
Expand All @@ -153,7 +153,7 @@ static char *lcd_switch_paths[] = {
#define METHOD_SWITCH_DISPLAY "SDSP"

static acpi_handle display_get_handle;
static char *display_get_paths[] = {
static const char *display_get_paths[] = {
/* A6B, A6K A6R A7D F3JM L4R M6R A3G M6A M6V VX-1 V6J V6V W3Z */
"\\_SB.PCI0.P0P1.VGA.GETD",
/* A3E A4K, A4D A4L A6J A7J A8J Z71V M9V S5A M5A z33A W1Jc W2V G1 */
Expand Down
157 changes: 0 additions & 157 deletions trunk/drivers/platform/x86/eeepc-wmi.c

This file was deleted.

6 changes: 3 additions & 3 deletions trunk/fs/fat/namei_vfat.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ static int vfat_create_shortname(struct inode *dir, struct nls_table *nls,
{
struct fat_mount_options *opts = &MSDOS_SB(dir->i_sb)->options;
wchar_t *ip, *ext_start, *end, *name_start;
unsigned char base[9], ext[4], buf[5], *p;
unsigned char base[9], ext[4], buf[8], *p;
unsigned char charbuf[NLS_MAX_CHARSET_SIZE];
int chl, chi;
int sz = 0, extlen, baselen, i, numtail_baselen, numtail2_baselen;
Expand Down Expand Up @@ -467,7 +467,7 @@ static int vfat_create_shortname(struct inode *dir, struct nls_table *nls,
return 0;
}

i = jiffies;
i = jiffies & 0xffff;
sz = (jiffies >> 16) & 0x7;
if (baselen > 2) {
baselen = numtail2_baselen;
Expand All @@ -476,7 +476,7 @@ static int vfat_create_shortname(struct inode *dir, struct nls_table *nls,
name_res[baselen + 4] = '~';
name_res[baselen + 5] = '1' + sz;
while (1) {
snprintf(buf, sizeof(buf), "%04X", i & 0xffff);
sprintf(buf, "%04X", i);
memcpy(&name_res[baselen], buf, 4);
if (vfat_find_form(dir, name_res) < 0)
break;
Expand Down
5 changes: 2 additions & 3 deletions trunk/fs/proc/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -442,13 +442,12 @@ static const struct file_operations proc_lstats_operations = {
unsigned long badness(struct task_struct *p, unsigned long uptime);
static int proc_oom_score(struct task_struct *task, char *buffer)
{
unsigned long points = 0;
unsigned long points;
struct timespec uptime;

do_posix_clock_monotonic_gettime(&uptime);
read_lock(&tasklist_lock);
if (pid_alive(task))
points = badness(task, uptime.tv_sec);
points = badness(task->group_leader, uptime.tv_sec);
read_unlock(&tasklist_lock);
return sprintf(buffer, "%lu\n", points);
}
Expand Down

0 comments on commit d7fa06d

Please sign in to comment.