mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Workaround for gcc 2.96 (undefined references)
@ 2005-11-21 16:48 Alan Stern
  2005-11-23  0:15 ` Andrew Morton
  0 siblings, 1 reply; 3+ messages in thread
From: Alan Stern @ 2005-11-21 16:48 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Kernel development list

Andrew:

As of 2.6.15-rc1-git4, gcc 2.96 complains about undefined references 
unless this patch (as607) is applied.  Apparently the old compiler isn't 
so good at avoiding linker references to unused code.

Alan Stern



Signed-off-by: Alan Stern <stern@rowland.harvard.edu>

---

Index: usb-2.6/mm/memory.c
===================================================================
--- usb-2.6.orig/mm/memory.c
+++ usb-2.6/mm/memory.c
@@ -2101,6 +2101,13 @@ int __pud_alloc(struct mm_struct *mm, pg
 	spin_unlock(&mm->page_table_lock);
 	return 0;
 }
+#else
+
+/* Workaround for gcc 2.96 */
+int __pud_alloc(struct mm_struct *mm, pgd_t *pgd, unsigned long address)
+{
+	return 0;
+}
 #endif /* __PAGETABLE_PUD_FOLDED */
 
 #ifndef __PAGETABLE_PMD_FOLDED
@@ -2129,6 +2136,13 @@ int __pmd_alloc(struct mm_struct *mm, pu
 	spin_unlock(&mm->page_table_lock);
 	return 0;
 }
+#else
+
+/* Workaround for gcc 2.96 */
+int __pmd_alloc(struct mm_struct *mm, pud_t *pud, unsigned long address)
+{
+	return 0;
+}
 #endif /* __PAGETABLE_PMD_FOLDED */
 
 int make_pages_present(unsigned long addr, unsigned long end)


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-11-23 16:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-21 16:48 [PATCH] Workaround for gcc 2.96 (undefined references) Alan Stern
2005-11-23  0:15 ` Andrew Morton
2005-11-23 16:26   ` Alan Stern

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®