From: Paul Gortmaker <paul.gortmaker@windriver.com>
To: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Cc: Ralf Baechle <ralf@linux-mips.org>,
John Crispin <blogic@openwrt.org>, <linux-mips@linux-mips.org>,
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] arch: mips: pci: pci-ip27.c: Remove unused function
Date: Thu, 1 Jan 2015 11:16:15 -0500 [thread overview]
Message-ID: <20150101161615.GH23085@windriver.com> (raw)
In-Reply-To: <1420126326-27198-1-git-send-email-rickard_strandqvist@spectrumdigital.se>
[[PATCH] arch: mips: pci: pci-ip27.c: Remove unused function] On 01/01/2015 (Thu 16:32) Rickard Strandqvist wrote:
> Remove the function pci_enable_swapping() that is not used anywhere.
A quick search shows it has been orphanware since the git epoch (~2005)
so removing it should be fine AFAICT.
P.
--
>
> This was partially found by using a static code analysis program called cppcheck.
>
> Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
> ---
> arch/mips/pci/pci-ip27.c | 11 -----------
> 1 file changed, 11 deletions(-)
>
> diff --git a/arch/mips/pci/pci-ip27.c b/arch/mips/pci/pci-ip27.c
> index 0f09eaf..55e3332 100644
> --- a/arch/mips/pci/pci-ip27.c
> +++ b/arch/mips/pci/pci-ip27.c
> @@ -200,17 +200,6 @@ static inline void pci_disable_swapping(struct pci_dev *dev)
> bridge->b_widget.w_tflush; /* Flush */
> }
>
> -static inline void pci_enable_swapping(struct pci_dev *dev)
> -{
> - struct bridge_controller *bc = BRIDGE_CONTROLLER(dev->bus);
> - bridge_t *bridge = bc->base;
> - int slot = PCI_SLOT(dev->devfn);
> -
> - /* Turn on byte swapping */
> - bridge->b_device[slot].reg |= BRIDGE_DEV_SWAP_DIR;
> - bridge->b_widget.w_tflush; /* Flush */
> -}
> -
> static void pci_fixup_ioc3(struct pci_dev *d)
> {
> pci_disable_swapping(d);
> --
> 1.7.10.4
>
WARNING: multiple messages have this Message-ID (diff)
From: Paul Gortmaker <paul.gortmaker@windriver.com>
To: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Cc: Ralf Baechle <ralf@linux-mips.org>,
John Crispin <blogic@openwrt.org>,
linux-mips@linux-mips.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] arch: mips: pci: pci-ip27.c: Remove unused function
Date: Thu, 1 Jan 2015 11:16:15 -0500 [thread overview]
Message-ID: <20150101161615.GH23085@windriver.com> (raw)
Message-ID: <20150101161615.WZSgHB8gWUZTFMl7yO_WSEayUrObxEYq-wQanavBfhI@z> (raw)
In-Reply-To: <1420126326-27198-1-git-send-email-rickard_strandqvist@spectrumdigital.se>
[[PATCH] arch: mips: pci: pci-ip27.c: Remove unused function] On 01/01/2015 (Thu 16:32) Rickard Strandqvist wrote:
> Remove the function pci_enable_swapping() that is not used anywhere.
A quick search shows it has been orphanware since the git epoch (~2005)
so removing it should be fine AFAICT.
P.
--
>
> This was partially found by using a static code analysis program called cppcheck.
>
> Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
> ---
> arch/mips/pci/pci-ip27.c | 11 -----------
> 1 file changed, 11 deletions(-)
>
> diff --git a/arch/mips/pci/pci-ip27.c b/arch/mips/pci/pci-ip27.c
> index 0f09eaf..55e3332 100644
> --- a/arch/mips/pci/pci-ip27.c
> +++ b/arch/mips/pci/pci-ip27.c
> @@ -200,17 +200,6 @@ static inline void pci_disable_swapping(struct pci_dev *dev)
> bridge->b_widget.w_tflush; /* Flush */
> }
>
> -static inline void pci_enable_swapping(struct pci_dev *dev)
> -{
> - struct bridge_controller *bc = BRIDGE_CONTROLLER(dev->bus);
> - bridge_t *bridge = bc->base;
> - int slot = PCI_SLOT(dev->devfn);
> -
> - /* Turn on byte swapping */
> - bridge->b_device[slot].reg |= BRIDGE_DEV_SWAP_DIR;
> - bridge->b_widget.w_tflush; /* Flush */
> -}
> -
> static void pci_fixup_ioc3(struct pci_dev *d)
> {
> pci_disable_swapping(d);
> --
> 1.7.10.4
>
next prev parent reply other threads:[~2015-01-01 16:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-01 15:32 [PATCH] arch: mips: pci: pci-ip27.c: Remove unused function Rickard Strandqvist
2015-01-01 16:16 ` Paul Gortmaker [this message]
2015-01-01 16:16 ` Paul Gortmaker
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=20150101161615.GH23085@windriver.com \
--to=paul.gortmaker@windriver.com \
--cc=blogic@openwrt.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@linux-mips.org \
--cc=ralf@linux-mips.org \
--cc=rickard_strandqvist@spectrumdigital.se \
/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