* [PATCH 4/5] drivers/pci/pci.c Section mismatch
@ 2010-03-18 22:08 René Bolldorf
2010-03-18 22:58 ` Randy Dunlap
0 siblings, 1 reply; 5+ messages in thread
From: René Bolldorf @ 2010-03-18 22:08 UTC (permalink / raw)
To: linux-kernel
Signed-off-by: Rene Bolldorf <xsecute@googlemail.com>
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index ddd55dc..a1f7d93 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -2773,7 +2773,7 @@ int pci_resource_bar(struct pci_dev *dev, int
resno, enum pci_bar_type *type)
/* Some architectures require additional programming to enable VGA */
static arch_set_vga_state_t arch_set_vga_state;
-void __init pci_register_set_vga_state(arch_set_vga_state_t func)
+void pci_register_set_vga_state(arch_set_vga_state_t func)
{
arch_set_vga_state = func; /* NULL disables */
}
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 4/5] drivers/pci/pci.c Section mismatch
2010-03-18 22:08 [PATCH 4/5] drivers/pci/pci.c Section mismatch René Bolldorf
@ 2010-03-18 22:58 ` Randy Dunlap
2010-03-18 23:34 ` René Bolldorf
0 siblings, 1 reply; 5+ messages in thread
From: Randy Dunlap @ 2010-03-18 22:58 UTC (permalink / raw)
To: René Bolldorf; +Cc: linux-kernel
On 03/18/10 15:08, René Bolldorf wrote:
> Signed-off-by: Rene Bolldorf <xsecute@googlemail.com>
>
> diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
> index ddd55dc..a1f7d93 100644
> --- a/drivers/pci/pci.c
> +++ b/drivers/pci/pci.c
> @@ -2773,7 +2773,7 @@ int pci_resource_bar(struct pci_dev *dev, int
> resno, enum pci_bar_type *type)
> /* Some architectures require additional programming to enable VGA */
> static arch_set_vga_state_t arch_set_vga_state;
>
> -void __init pci_register_set_vga_state(arch_set_vga_state_t func)
> +void pci_register_set_vga_state(arch_set_vga_state_t func)
> {
> arch_set_vga_state = func; /* NULL disables */
> }
> --
Hi,
Please put the offending/warning messages in the patch description.
Include your analysis if it isn't obvious.
thanks,
--
~Randy
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 4/5] drivers/pci/pci.c Section mismatch
2010-03-18 22:58 ` Randy Dunlap
@ 2010-03-18 23:34 ` René Bolldorf
2010-03-18 23:37 ` Randy Dunlap
0 siblings, 1 reply; 5+ messages in thread
From: René Bolldorf @ 2010-03-18 23:34 UTC (permalink / raw)
To: Randy Dunlap; +Cc: linux-kernel
On 03/18/10 23:58, Randy Dunlap wrote:
> On 03/18/10 15:08, Ren� Bolldorf wrote:
>> Signed-off-by: Rene Bolldorf<xsecute@googlemail.com>
>>
>> diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
>> index ddd55dc..a1f7d93 100644
>> --- a/drivers/pci/pci.c
>> +++ b/drivers/pci/pci.c
>> @@ -2773,7 +2773,7 @@ int pci_resource_bar(struct pci_dev *dev, int
>> resno, enum pci_bar_type *type)
>> /* Some architectures require additional programming to enable VGA */
>> static arch_set_vga_state_t arch_set_vga_state;
>>
>> -void __init pci_register_set_vga_state(arch_set_vga_state_t func)
>> +void pci_register_set_vga_state(arch_set_vga_state_t func)
>> {
>> arch_set_vga_state = func; /* NULL disables */
>> }
>> --
>
> Hi,
>
> Please put the offending/warning messages in the patch description.
> Include your analysis if it isn't obvious.
>
> thanks,
Hi,
the warning message was:
WARNING: drivers/pci/built-in.o(__ksymtab+0x190): Section mismatch in
reference from the variable __ksymtab_pci_register_set_vga_state to the
function .init.text:pci_register_set_vga_state()
The symbol pci_register_set_vga_state is exported and annotated __init
Fix this by removing the __init annotation of pci_register_set_vga_state
or drop the export.
$fgrep "pci_register_set_vga_state" `find .`
$./arch/x86/kernel/apic/x2apic_uv_x.c:
pci_register_set_vga_state(uv_set_vga_state);
$./include/linux/pci.h:extern void
pci_register_set_vga_state(arch_set_vga_state_t func);
$./drivers/pci/pci.c:void
pci_register_set_vga_state(arch_set_vga_state_t func)
$./drivers/pci/pci.c:EXPORT_SYMBOL(pci_register_set_vga_state);
this is a volatile function that set's a spec. state and is only used
from uv_system_init(arch/x86/kernel/apic/x2apic_uv_x.c), the macro can
also be removed.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 4/5] drivers/pci/pci.c Section mismatch
2010-03-18 23:34 ` René Bolldorf
@ 2010-03-18 23:37 ` Randy Dunlap
2010-03-19 0:19 ` René Bolldorf
0 siblings, 1 reply; 5+ messages in thread
From: Randy Dunlap @ 2010-03-18 23:37 UTC (permalink / raw)
To: René Bolldorf; +Cc: linux-kernel
On 03/18/10 16:34, René Bolldorf wrote:
> On 03/18/10 23:58, Randy Dunlap wrote:
>> On 03/18/10 15:08, Ren� Bolldorf wrote:
>>> Signed-off-by: Rene Bolldorf<xsecute@googlemail.com>
>>>
>>> diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
>>> index ddd55dc..a1f7d93 100644
>>> --- a/drivers/pci/pci.c
>>> +++ b/drivers/pci/pci.c
>>> @@ -2773,7 +2773,7 @@ int pci_resource_bar(struct pci_dev *dev, int
>>> resno, enum pci_bar_type *type)
>>> /* Some architectures require additional programming to enable VGA */
>>> static arch_set_vga_state_t arch_set_vga_state;
>>>
>>> -void __init pci_register_set_vga_state(arch_set_vga_state_t func)
>>> +void pci_register_set_vga_state(arch_set_vga_state_t func)
>>> {
>>> arch_set_vga_state = func; /* NULL disables */
>>> }
>>> --
>>
>> Hi,
>>
>> Please put the offending/warning messages in the patch description.
>> Include your analysis if it isn't obvious.
>>
>> thanks,
>
> Hi,
>
> the warning message was:
> WARNING: drivers/pci/built-in.o(__ksymtab+0x190): Section mismatch in
> reference from the variable __ksymtab_pci_register_set_vga_state to the
> function .init.text:pci_register_set_vga_state()
> The symbol pci_register_set_vga_state is exported and annotated __init
> Fix this by removing the __init annotation of pci_register_set_vga_state
> or drop the export.
>
> $fgrep "pci_register_set_vga_state" `find .`
>
> $./arch/x86/kernel/apic/x2apic_uv_x.c:
> pci_register_set_vga_state(uv_set_vga_state);
> $./include/linux/pci.h:extern void
> pci_register_set_vga_state(arch_set_vga_state_t func);
> $./drivers/pci/pci.c:void
> pci_register_set_vga_state(arch_set_vga_state_t func)
> $./drivers/pci/pci.c:EXPORT_SYMBOL(pci_register_set_vga_state);
>
> this is a volatile function that set's a spec. state and is only used
> from uv_system_init(arch/x86/kernel/apic/x2apic_uv_x.c), the macro can
> also be removed.
Thanks. Yes, we shouldn't export __init functions, so the patch makes
sense.
BTW, you need to cc: one or more maintainers so that someone will merge
your patches. They don't scan the mailing lists looking for patches to merge.
--
~Randy
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 4/5] drivers/pci/pci.c Section mismatch
2010-03-18 23:37 ` Randy Dunlap
@ 2010-03-19 0:19 ` René Bolldorf
0 siblings, 0 replies; 5+ messages in thread
From: René Bolldorf @ 2010-03-19 0:19 UTC (permalink / raw)
To: Randy Dunlap; +Cc: linux-kernel, Jesse Barnes
On 03/19/10 00:37, Randy Dunlap wrote:
> On 03/18/10 16:34, René Bolldorf wrote:
>> On 03/18/10 23:58, Randy Dunlap wrote:
>>> On 03/18/10 15:08, Ren� Bolldorf wrote:
>>>> Signed-off-by: Rene Bolldorf<xsecute@googlemail.com>
>>>>
>>>> diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
>>>> index ddd55dc..a1f7d93 100644
>>>> --- a/drivers/pci/pci.c
>>>> +++ b/drivers/pci/pci.c
>>>> @@ -2773,7 +2773,7 @@ int pci_resource_bar(struct pci_dev *dev, int
>>>> resno, enum pci_bar_type *type)
>>>> /* Some architectures require additional programming to enable VGA */
>>>> static arch_set_vga_state_t arch_set_vga_state;
>>>>
>>>> -void __init pci_register_set_vga_state(arch_set_vga_state_t func)
>>>> +void pci_register_set_vga_state(arch_set_vga_state_t func)
>>>> {
>>>> arch_set_vga_state = func; /* NULL disables */
>>>> }
>>>> --
>>>
>>> Hi,
>>>
>>> Please put the offending/warning messages in the patch description.
>>> Include your analysis if it isn't obvious.
>>>
>>> thanks,
>>
>> Hi,
>>
>> the warning message was:
>> WARNING: drivers/pci/built-in.o(__ksymtab+0x190): Section mismatch in
>> reference from the variable __ksymtab_pci_register_set_vga_state to the
>> function .init.text:pci_register_set_vga_state()
>> The symbol pci_register_set_vga_state is exported and annotated __init
>> Fix this by removing the __init annotation of pci_register_set_vga_state
>> or drop the export.
>>
>> $fgrep "pci_register_set_vga_state" `find .`
>>
>> $./arch/x86/kernel/apic/x2apic_uv_x.c:
>> pci_register_set_vga_state(uv_set_vga_state);
>> $./include/linux/pci.h:extern void
>> pci_register_set_vga_state(arch_set_vga_state_t func);
>> $./drivers/pci/pci.c:void
>> pci_register_set_vga_state(arch_set_vga_state_t func)
>> $./drivers/pci/pci.c:EXPORT_SYMBOL(pci_register_set_vga_state);
>>
>> this is a volatile function that set's a spec. state and is only used
>> from uv_system_init(arch/x86/kernel/apic/x2apic_uv_x.c), the macro can
>> also be removed.
>
> Thanks. Yes, we shouldn't export __init functions, so the patch makes
> sense.
>
> BTW, you need to cc: one or more maintainers so that someone will merge
> your patches. They don't scan the mailing lists looking for patches to merge.
>
>
Added Cc.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-03-19 0:19 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-18 22:08 [PATCH 4/5] drivers/pci/pci.c Section mismatch René Bolldorf
2010-03-18 22:58 ` Randy Dunlap
2010-03-18 23:34 ` René Bolldorf
2010-03-18 23:37 ` Randy Dunlap
2010-03-19 0:19 ` René Bolldorf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox