[PATCH] [JANITOR] Actually use the calculated cnt in kernel/trace/ring_buffer.c

2016-03-21 Thread Mika Kukkonen
Was deleting an old github kernel tree and noticed this one line patch I had made years back. Can't remember the compiler warning anymore but clearly it complained about pointless assigment to cnt since it is not used after that, although to me it looks like it should. Signed-off-by:

[PATCH] Couple fixes to fs/ecryptfs/inode.c

2007-05-10 Thread Mika Kukkonen
the error check. Signed-off-by: Mika Kukkonen <[EMAIL PROTECTED]> diff --git a/fs/ecryptfs/inode.c b/fs/ecryptfs/inode.c index 1548be2..d230a48 100644 --- a/fs/ecryptfs/inode.c +++ b/fs/ecryptfs/inode.c @@ -282,7 +282,7 @@ static struct dentry *ecryptfs_lookup(struct inode *dir, struct dentry *

[PATCH] Fix bug in mm/thrash.c function grab_swap_token()

2007-05-10 Thread Mika Kukkonen
t a good plan. Attached patch (compile tested) reverses the order. Btw, I'm not sure if likely() makes any sense in this new situation. Signed-off-by: Mika Kukkonen <[EMAIL PROTECTED]> diff --git a/mm/thrash.c b/mm/thrash.c index 9ef9071..c4c5205 100644 --- a/mm/thrash.c +++ b/mm/thrash.

[PATCH] Bug in fs/afs/write.c function afs_write_back_from_locked_page()

2007-05-10 Thread Mika Kukkonen
und happily as far as I can see. Trival fix attached (compile tested only). Signed-Off-By: Mika Kukkonen <[EMAIL PROTECTED]> diff --git a/fs/afs/write.c b/fs/afs/write.c index 83ff292..4bca263 100644 --- a/fs/afs/write.c +++ b/fs/afs/write.c @@ -395,8 +395,9 @@ static int afs_write

[PATCH] Fix kernel build with EMBEDDED & PROC_FS & !PROC_SYSCTL

2007-03-25 Thread Mika Kukkonen
Without attached patch against current -git I get following with !PROC_SYSCTL (with EMBEDDED and PROC_FS set): CC init/version.o LD init/built-in.o LD vmlinux fs/built-in.o: In function `do_proc_sys_lookup': proc_sysctl.c:(.text+0x26583): undefined reference to `sysctl_head_next

[PATCH] Minor fix to kernel/workqueue.c

2005-08-05 Thread Mika Kukkonen
() returns NULL, not negative pointer (duh!), so following trivial patch suggests itself. Signed-off-by: Mika Kukkonen <[EMAIL PROTECTED]> --- linux-2.6.orig/kernel/workqueue.c 2005-08-03 22:17:33.296479048 +0300 +++ linux-2.6/kernel/workqueue.c2005-08-03 22:30:11.960984648 +

[PATCH] Fix compile warning in drivers/pnp/resource.c with !CONFIG_PCI

2005-03-21 Thread Mika Kukkonen
used outside this one other place (and reason why it became a warning now is that Adrian made it static), and so the code inside CONFIG_PCI is actually relying on the fact that the variable is implicitly initialized to 0. So the patch just deletes the variable. --MiKu Signed-off-by: Mika Kuk

[PATCH] Build failure with !CONFIG_PCI and with CONFIG_ISAPNP=y && CONFIG_PNPBIOS=y

2005-02-14 Thread Mika Kukkonen
Trying to build latest kernel with !CONFIG_PCI and with CONFIG_ISAPNP=y && CONFIG_PNPBIOS=y I got the following build error: LDvmlinux drivers/built-in.o(.text+0x5486): In function 'pnpbios_parse_allocated_irqresource': : undefined reference to 'pcibios_penalize_isa_irq' Clearly pcibios_pen