From: John Crispin <blogic@openwrt.org>
To: David Daney <ddaney.cavm@gmail.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>,
Ralf Baechle <ralf@linux-mips.org>,
Grant Likely <grant.likely@secretlab.ca>,
linux-pci@vger.kernel.org, devicetree-discuss@lists.ozlabs.org,
linux-mips@linux-mips.org
Subject: Re: [PATCH] OF: PCI: const usage needed by MIPS
Date: Fri, 04 May 2012 12:55:18 +0200 [thread overview]
Message-ID: <4FA3B596.3050106@openwrt.org> (raw)
In-Reply-To: <4FA32E47.7020406@gmail.com>
Hi David,
> The problem is when you start declaring function pointers in various
> ops vectors.
>
> Consider:
>
> void (*foo)(const struct pci_dev *)
> void (*bar)(struct pci_dev *)
>
> foo and bar are not type compatible, and you will get compiler
> warnings if you use one where the other is expected.
>
> So the question is: Are we ever going to the address of any of the
> functions that are being modified? If so, we have created a problem.
>
i could not find any place in the code where this happens, which does
not mean that there are none.
>> Similar reasoning applies to of_irq_map_pci().
>>
>> So I'm fine with this. You sent it to Grant, so I'll assume he'll
>> merge it unless I hear otherwise.
>>
>> Acked-by: Bjorn Helgaas<bhelgaas@google.com>
>>
>
Thanks for the Ack, i hope this patch gets accepted as is. I am simply
missing the overview of the pci subsystem to evaluate if this can cause
regressions.
John
next prev parent reply other threads:[~2012-05-04 10:56 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-30 17:46 [PATCH] OF: PCI: const usage needed by MIPS John Crispin
2012-04-30 17:54 ` David Daney
2012-05-01 13:28 ` John Crispin
2012-05-04 0:30 ` Bjorn Helgaas
2012-05-04 1:17 ` David Daney
2012-05-04 10:55 ` John Crispin [this message]
2012-05-07 15:11 ` Bjorn Helgaas
2012-05-08 10:35 ` John Crispin
2012-05-12 5:55 ` John Crispin
2012-05-17 22:14 ` Rob Herring
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=4FA3B596.3050106@openwrt.org \
--to=blogic@openwrt.org \
--cc=bhelgaas@google.com \
--cc=ddaney.cavm@gmail.com \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=grant.likely@secretlab.ca \
--cc=linux-mips@linux-mips.org \
--cc=linux-pci@vger.kernel.org \
--cc=ralf@linux-mips.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