Re: [PATCH 2.4] inlines in au1000_eth.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 10 Jun 2005, Kevin Turner wrote:

> The following patch against linux_2_4 fixes this sort of compilation
> error with gcc 3.4:
> 
> au1000_eth.c: In function `au1000_init_module':
> au1000_eth.c:97: sorry, unimplemented: inlining failed in call to 'str2eaddr': function body not available
> au1000_eth.c:1219: sorry, unimplemented: called from here
> 
> I'm not wholly sure it's the Right Thing, as I define str2eaddr in
> au1000_eth.c, which makes for more code duplication.

 Note that by somebody's "brillant" idea "inline" is a macro that expands 
to "inline __attribute__((always_inline))".  That said, "inline" in a 
function prototype doesn't make much sense anyway.  In this case simply 
removing the qualifier will let code use the implementation from 
arch/mips/au1000/common/prom.c.

 As a side note it's quite amazing how duplicate copies of a function get 
scattered throughout the tree...

  Maciej


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux