public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Markus Lidel <Markus.Lidel@shadowconnect.com>
To: Andrew Morton <akpm@osdl.org>
Cc: Adrian Bunk <bunk@stusta.de>, linux-kernel@vger.kernel.org
Subject: Re: [2.6 patch] drivers/message/i2o/iop.c: static inline functions mustn't be exported
Date: Fri, 21 Apr 2006 01:17:54 +0200	[thread overview]
Message-ID: <444816A2.8090302@shadowconnect.com> (raw)
In-Reply-To: <20060418230600.4bccd221.akpm@osdl.org>

Hello,

Andrew Morton wrote:
> Adrian Bunk <bunk@stusta.de> wrote:
>> static inline functions mustn't be exported.
> Actually, exports of static inlines work OK.  The compiler will emit an
> out-of-line copy to satisfy EXPORT_SYMBOL's reference and the module
> namespace is separate from the compiler&linker's namespace.
> Of course, things will screw up when we're using the compiler&linker
> namespace (ie: the driver is statically linked).
>> --- linux-2.6.17-rc1-mm2-full/drivers/message/i2o/iop.c.old	2006-04-13 17:30:41.000000000 +0200
>> +++ linux-2.6.17-rc1-mm2-full/drivers/message/i2o/iop.c	2006-04-13 17:30:57.000000000 +0200
>> @@ -1243,7 +1243,6 @@
>>  EXPORT_SYMBOL(i2o_cntxt_list_get_ptr);
>>  #endif
>>  EXPORT_SYMBOL(i2o_msg_get_wait);
>> -EXPORT_SYMBOL(i2o_msg_nop);
>>  EXPORT_SYMBOL(i2o_find_iop);
>>  EXPORT_SYMBOL(i2o_iop_find_device);
>>  EXPORT_SYMBOL(i2o_event_register);
> It depends whether Markus thinks this symbol is something which the driver
> should be exporting.  If so, we should uninline i2o_msg_nop().  But given
> that it's in a header, nobody should be linking to it anyway...
 > (why on earth does i2o put semicolons after its function definitions?)

OK, i could live with both versions... The EXPORT_SYMBOL was needed in 
earlier version, but i forgot to remove it when i inlined the function 
and put it into the header.

If someone thinks the inline is to expensive here, please let me know and 
i will submit a patch to reverse it again.


Best regards,


Markus Lidel
------------------------------------------
Markus Lidel (Senior IT Consultant)

Shadow Connect GmbH
Carl-Reisch-Weg 12
D-86381 Krumbach
Germany

Phone:  +49 82 82/99 51-0
Fax:    +49 82 82/99 51-11

E-Mail: Markus.Lidel@shadowconnect.com
URL:    http://www.shadowconnect.com

  parent reply	other threads:[~2006-04-20 23:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-18 15:06 [2.6 patch] drivers/message/i2o/iop.c: static inline functions mustn't be exported Adrian Bunk
2006-04-19  6:06 ` Andrew Morton
2006-04-19  8:33   ` Adrian Bunk
2006-04-19 15:59     ` Patrick McHardy
2006-04-20 23:17   ` Markus Lidel [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-04-13 16:22 Adrian Bunk

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=444816A2.8090302@shadowconnect.com \
    --to=markus.lidel@shadowconnect.com \
    --cc=akpm@osdl.org \
    --cc=bunk@stusta.de \
    --cc=linux-kernel@vger.kernel.org \
    /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