huge gcc 4.1.{0,1} __weak problem

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Pallipadi, Venkatesh <venkatesh.pallipadi@...>
Cc: David Miller <davem@...>, <trini@...>, <mingo@...>, <tglx@...>, <hpa@...>, <akpm@...>, <linux-kernel@...>, Siddha, Suresh B <suresh.b.siddha@...>, Linus Torvalds <torvalds@...>
Date: Thursday, May 1, 2008 - 5:56 pm

On Wed, Apr 30, 2008 at 05:49:46AM -0700, Pallipadi, Venkatesh wrote:

A workaround here is the wrong solution since this isn't the only place 
that suffers from this issue.

We currently give a #warning for 4.1.0.
But not for 4.1.1.
(Accordingto the bug >= 4.1.2 is fixed.)

And a #warning is not enough.

The huge problem is that "empty __weak function in the same file and 
non-weak arch function" has recently become a common pattern with 
several new usages added during this merge window alone.

And the breakages can be very subtle runtime breakages.

I see only the following choices:
- remove __weak and replace all current usages
- move all __weak functions into own files, and ensure that also happens
  for future usages
- #error for gcc 4.1.{0,1}


cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] /dev/mem gcc weak function workaround, Venki Pallipadi, (Tue Apr 29, 9:31 pm)
Re: [PATCH] /dev/mem gcc weak function workaround, David Miller, (Wed Apr 30, 12:28 am)
RE: [PATCH] /dev/mem gcc weak function workaround, Pallipadi, Venkatesh, (Wed Apr 30, 8:49 am)
huge gcc 4.1.{0,1} __weak problem, Adrian Bunk, (Thu May 1, 5:56 pm)
Re: huge gcc 4.1.{0,1} __weak problem, Jeremy Fitzhardinge, (Fri May 2, 5:09 pm)
Re: huge gcc 4.1.{0,1} __weak problem, Adrian Bunk, (Fri May 2, 5:19 pm)
Re: huge gcc 4.1.{0,1} __weak problem, Andrew Morton, (Thu May 1, 6:20 pm)
Re: huge gcc 4.1.{0,1} __weak problem, Linus Torvalds, (Thu May 1, 6:27 pm)
[2.6.26 patch] #error for gcc 4.1.{0,1}, Adrian Bunk, (Thu Jun 26, 6:37 am)
Re: huge gcc 4.1.{0,1} __weak problem, David Miller, (Thu May 1, 6:51 pm)
Re: huge gcc 4.1.{0,1} __weak problem, Venki Pallipadi, (Thu May 1, 6:35 pm)
Re: huge gcc 4.1.{0,1} __weak problem, Tom Rini, (Thu May 1, 7:23 pm)
Re: huge gcc 4.1.{0,1} __weak problem, Andrew Morton, (Thu May 1, 6:42 pm)
Re: huge gcc 4.1.{0,1} __weak problem, Tom Rini, (Thu May 1, 7:21 pm)
Re: huge gcc 4.1.{0,1} __weak problem, Venki Pallipadi, (Thu May 1, 7:30 pm)
Re: huge gcc 4.1.{0,1} __weak problem, Linus Torvalds, (Thu May 1, 8:34 pm)
Re: huge gcc 4.1.{0,1} __weak problem, Suresh Siddha, (Thu May 1, 8:39 pm)
Re: huge gcc 4.1.{0,1} __weak problem, Jeremy Fitzhardinge, (Fri May 2, 5:11 pm)
Re: huge gcc 4.1.{0,1} __weak problem, David Miller, (Fri May 2, 6:02 pm)
Re: huge gcc 4.1.{0,1} __weak problem, Jakub Jelinek, (Thu May 1, 6:49 pm)
Re: huge gcc 4.1.{0,1} __weak problem, Andrew Morton, (Thu May 1, 6:33 pm)
Re: huge gcc 4.1.{0,1} __weak problem, Tom Rini, (Thu May 1, 7:24 pm)
Re: huge gcc 4.1.{0,1} __weak problem, Andrew Morton, (Thu May 1, 7:59 pm)
Re: huge gcc 4.1.{0,1} __weak problem, Andi Kleen, (Fri May 2, 5:09 am)
Re: huge gcc 4.1.{0,1} __weak problem, Adrian Bunk, (Fri May 2, 4:10 am)
Re: huge gcc 4.1.{0,1} __weak problem, Vegard Nossum, (Fri May 2, 3:18 am)
Re: huge gcc 4.1.{0,1} __weak problem, Theodore Tso, (Fri May 2, 9:43 am)
Re: huge gcc 4.1.{0,1} __weak problem, Justin Mattock, (Thu May 1, 8:21 pm)
Re: [PATCH] /dev/mem gcc weak function workaround, Tom Rini, (Wed Apr 30, 4:15 pm)