Skip to contentSkip to conversation

Remove unused variable 'start'.

PATCH In review Charlie Shepherd 2 participants 3 messages Jul 21, 2007 – Jul 22, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Remove unused variable 'start'.

---
 mm/vmalloc.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
mm/vmalloc.c +1 -2
index 3cee76a..5e7daea 100644
@@ -72,7 +72,6 @@ void unmap_kernel_range(unsigned long addr, unsigned long size)
 {
 	pgd_t *pgd;
 	unsigned long next;
-	unsigned long start = addr;
 	unsigned long end = addr + size;
 
 	BUG_ON(addr >= end);
@@ -84,7 +83,7 @@ void unmap_kernel_range(unsigned long addr, unsigned long size)
 			continue;
 		vunmap_pud_range(pgd, addr, next);
 	} while (pgd++, addr = next, addr != end);
-	flush_tlb_kernel_range(start, end);
+	flush_tlb_kernel_range(addr, end);
 }
 
 static void unmap_vm_area(struct vm_struct *area)
Signature · 1 line
1.5.2.2
#1 lore raw

PATCH 1/1 Remove 'isdn_* is defined but unused' warnings

Move the #ifdef guard above these functions to remove the warnings.

---
 drivers/isdn/divert/divert_procfs.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/isdn/divert/divert_procfs.c +2 -2
index be77ee6..559a0d0 100644
@@ -70,6 +70,8 @@ put_info_buffer(char *cp)
 	wake_up_interruptible(&(rd_queue));
 }				/* put_info_buffer */
 
+#ifdef CONFIG_PROC_FS
+
 /**********************************/
 /* deflection device read routine */
 /**********************************/
@@ -253,8 +255,6 @@ isdn_divert_ioctl(struct inode *inode, struct file *file,
 	return copy_to_user((void __user *)arg, &dioctl, sizeof(dioctl)) ? -EFAULT : 0;
 }				/* isdn_divert_ioctl */
 
-
-#ifdef CONFIG_PROC_FS
 static const struct file_operations isdn_fops =
 {
 	.owner          = THIS_MODULE,
Signature · 1 line
1.5.2.2
maintainer
#2 lore raw
In reply to Charlie Shepherd
Quoted 13 lines · On Sat, 21 Jul 2007 20:26:47 +0200 Charlie Shepherd <[email protected]>…
mm/vmalloc.c +0 -1
index 3cee76a..5e7daea 100644
@@ -72,7 +72,6 @@ void unmap_kernel_range(unsigned long addr, unsigned long size)
 {
 	pgd_t *pgd;
 	unsigned long next;
-	unsigned long start = addr;
 	unsigned long end = addr + size;
 
 	BUG_ON(addr >= end);

mm/vmalloc.c void unmap_kernel_range(unsigned long addr, unsigned long size) · line 89

Quoted 8 lines
mm/vmalloc.c +1 -1
@@ -84,7 +83,7 @@ void unmap_kernel_range(unsigned long addr, unsigned long size)
 			continue;
 		vunmap_pud_range(pgd, addr, next);
 	} while (pgd++, addr = next, addr != end);
-	flush_tlb_kernel_range(start, end);
+	flush_tlb_kernel_range(addr, end);
 }
 
 static void unmap_vm_area(struct vm_struct *area)

err, no. addr has a different value here.

There's a patch in Andi's tree which fixes the compile warning.