mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Workaround for gcc 2.96 (undefined references)
Date: Tue, 22 Nov 2005 16:15:18 -0800	[thread overview]
Message-ID: <20051122161518.2c04cf28.akpm@osdl.org> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0511211145330.4586-100000@iolanthe.rowland.org>

Alan Stern <stern@rowland.harvard.edu> wrote:
>
> 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.
> 

Strange.  Do you know which change caused this to happen?  I'm a bit
worried that we might have done something silly to offend the compiler -
would like to understand the problem a little better.

Can you share the .config?

> 
> 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)
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

  reply	other threads:[~2005-11-23  0:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-21 16:48 Alan Stern
2005-11-23  0:15 ` Andrew Morton [this message]
2005-11-23 16:26   ` Alan Stern

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051122161518.2c04cf28.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=stern@rowland.harvard.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®