From 3b8d8f83800de4059e735957faf10d478cf70a65 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Wed, 24 Apr 2013 17:10:18 -0700 Subject: [PATCH] --- yaml --- r: 362726 b: refs/heads/master c: 0fbd06761f5c17cc9b20e02af60fd7ee9c895996 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/mips/include/asm/page.h | 2 +- trunk/crypto/algif_hash.c | 2 ++ trunk/crypto/algif_skcipher.c | 1 + trunk/drivers/gpio/gpio-pxa.c | 7 ++++++- trunk/kernel/.gitignore | 1 + 6 files changed, 12 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index eda5f6c4d282..c8056786683d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: f0af97070acbad5d6a361f485828223a4faaa0ee +refs/heads/master: 0fbd06761f5c17cc9b20e02af60fd7ee9c895996 diff --git a/trunk/arch/mips/include/asm/page.h b/trunk/arch/mips/include/asm/page.h index 99fc547af9d3..eab99e536b5c 100644 --- a/trunk/arch/mips/include/asm/page.h +++ b/trunk/arch/mips/include/asm/page.h @@ -31,7 +31,7 @@ #define PAGE_SHIFT 16 #endif #define PAGE_SIZE (_AC(1,UL) << PAGE_SHIFT) -#define PAGE_MASK (~(PAGE_SIZE - 1)) +#define PAGE_MASK (~((1 << PAGE_SHIFT) - 1)) #ifdef CONFIG_MIPS_HUGE_TLB_SUPPORT #define HPAGE_SHIFT (PAGE_SHIFT + PAGE_SHIFT - 3) diff --git a/trunk/crypto/algif_hash.c b/trunk/crypto/algif_hash.c index ef5356cd280a..0262210cad38 100644 --- a/trunk/crypto/algif_hash.c +++ b/trunk/crypto/algif_hash.c @@ -161,6 +161,8 @@ static int hash_recvmsg(struct kiocb *unused, struct socket *sock, else if (len < ds) msg->msg_flags |= MSG_TRUNC; + msg->msg_namelen = 0; + lock_sock(sk); if (ctx->more) { ctx->more = 0; diff --git a/trunk/crypto/algif_skcipher.c b/trunk/crypto/algif_skcipher.c index 6a6dfc062d2a..a1c4f0a55583 100644 --- a/trunk/crypto/algif_skcipher.c +++ b/trunk/crypto/algif_skcipher.c @@ -432,6 +432,7 @@ static int skcipher_recvmsg(struct kiocb *unused, struct socket *sock, long copied = 0; lock_sock(sk); + msg->msg_namelen = 0; for (iov = msg->msg_iov, iovlen = msg->msg_iovlen; iovlen > 0; iovlen--, iov++) { unsigned long seglen = iov->iov_len; diff --git a/trunk/drivers/gpio/gpio-pxa.c b/trunk/drivers/gpio/gpio-pxa.c index 9cc108d2b770..8325f580c0f1 100644 --- a/trunk/drivers/gpio/gpio-pxa.c +++ b/trunk/drivers/gpio/gpio-pxa.c @@ -642,7 +642,12 @@ static struct platform_driver pxa_gpio_driver = { .of_match_table = of_match_ptr(pxa_gpio_dt_ids), }, }; -module_platform_driver(pxa_gpio_driver); + +static int __init pxa_gpio_init(void) +{ + return platform_driver_register(&pxa_gpio_driver); +} +postcore_initcall(pxa_gpio_init); #ifdef CONFIG_PM static int pxa_gpio_suspend(void) diff --git a/trunk/kernel/.gitignore b/trunk/kernel/.gitignore index ab4f1090f437..b3097bde4e9c 100644 --- a/trunk/kernel/.gitignore +++ b/trunk/kernel/.gitignore @@ -4,3 +4,4 @@ config_data.h config_data.gz timeconst.h +hz.bc