Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147933
b: refs/heads/master
c: 9a71af2
h: refs/heads/master
i:
  147931: 98c9307
v: v3
  • Loading branch information
Rusty Russell committed Jun 12, 2009
1 parent f317215 commit 0681063
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 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: ab8e2eb722f1e5fcbd8181e3e9ef4e95c52124df
refs/heads/master: 9a71af2c3627b379b7c31917a7f6ee0d29bc559b
2 changes: 1 addition & 1 deletion trunk/drivers/video/aty/aty128fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ static int default_crt_on __devinitdata = 0;
static int default_lcd_on __devinitdata = 1;

#ifdef CONFIG_MTRR
static int mtrr = 1;
static bool mtrr = true;
#endif

#ifdef CONFIG_PMAC_BACKLIGHT
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/linux/moduleparam.h
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ extern int param_get_bool(char *buffer, struct kernel_param *kp);

extern int param_set_invbool(const char *val, struct kernel_param *kp);
extern int param_get_invbool(char *buffer, struct kernel_param *kp);
#define param_check_invbool(name, p) __param_check(name, p, int)
#define param_check_invbool(name, p) __param_check(name, p, bool)

/* Comma-separated array: *nump is set to number they actually specified. */
#define module_param_array_named(name, array, type, nump, perm) \
Expand Down
4 changes: 2 additions & 2 deletions trunk/kernel/params.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,13 +272,13 @@ int param_set_invbool(const char *val, struct kernel_param *kp)
dummy.arg = &boolval;
ret = param_set_bool(val, &dummy);
if (ret == 0)
*(int *)kp->arg = !boolval;
*(bool *)kp->arg = !boolval;
return ret;
}

int param_get_invbool(char *buffer, struct kernel_param *kp)
{
return sprintf(buffer, "%c", (*(int *)kp->arg) ? 'N' : 'Y');
return sprintf(buffer, "%c", (*(bool *)kp->arg) ? 'N' : 'Y');
}

/* We break the rule and mangle the string. */
Expand Down

0 comments on commit 0681063

Please sign in to comment.