* Re: [PATCH 1/2] mmc: sdhci-pci: Build o2micro support in the same module
2015-10-05 19:31 ` Ben Hutchings
@ 2015-10-05 20:01 kbuild test robot
2015-10-05 19:31 ` Ben Hutchings
1 sibling, 1 reply; 4+ messages in thread
From: kbuild test robot @ 2015-10-05 20:01 UTC (permalink / raw)
To: Ben Hutchings; +Cc: kbuild-all, Ulf Hansson, Peter Guo, linux-mmc
Hi Ben,
[auto build test WARNING on v4.3-rc4 -- if it's inappropriate base, please ignore]
coccinelle warnings: (new ones prefixed by >>)
>> drivers/mmc/host/sdhci-pci-core.c:447:1-4: WARNING: end returns can be simpified
Please review and possibly fold the followup patch.
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
^ permalink raw reply [flat|nested] 4+ messages in thread* [PATCH 1/2] mmc: sdhci-pci: Build o2micro support in the same module @ 2015-10-05 19:31 ` Ben Hutchings 2015-10-05 20:01 ` [PATCH] mmc: sdhci-pci: fix simple_return.cocci warnings kbuild test robot 2015-10-08 17:35 ` [PATCH 1/2] mmc: sdhci-pci: Build o2micro support in the same module Ulf Hansson 0 siblings, 2 replies; 4+ messages in thread From: Ben Hutchings @ 2015-10-05 19:31 UTC (permalink / raw) To: Ulf Hansson; +Cc: Peter Guo, linux-mmc [-- Attachment #1: Type: text/plain, Size: 2676 bytes --] sdhci-pci-o2micro.c contains no initialisation and its functions are only called from shdci-pci.c, so there is no reason for it to be a separate module, let alone or for it to always be built-in. - Rename sdhci-pci.c to sdhci-pci-core.c so that the sdhci-pci module can be built from multiple source files - Add sdhci-pci-o2micro.c to it - Remove redundant exports Signed-off-by: Ben Hutchings <ben@decadent.org.uk> --- drivers/mmc/host/Makefile | 2 +- drivers/mmc/host/{sdhci-pci.c => sdhci-pci-core.c} | 0 drivers/mmc/host/sdhci-pci-o2micro.c | 4 ---- 3 files changed, 1 insertion(+), 5 deletions(-) rename drivers/mmc/host/{sdhci-pci.c => sdhci-pci-core.c} (100%) diff --git a/drivers/mmc/host/Makefile b/drivers/mmc/host/Makefile index 4f3452a..3595f83 100644 --- a/drivers/mmc/host/Makefile +++ b/drivers/mmc/host/Makefile @@ -9,8 +9,8 @@ obj-$(CONFIG_MMC_MXC) += mxcmmc.o obj-$(CONFIG_MMC_MXS) += mxs-mmc.o obj-$(CONFIG_MMC_SDHCI) += sdhci.o obj-$(CONFIG_MMC_SDHCI_PCI) += sdhci-pci.o +sdhci-pci-y += sdhci-pci-core.o sdhci-pci-o2micro.o obj-$(subst m,y,$(CONFIG_MMC_SDHCI_PCI)) += sdhci-pci-data.o -obj-$(subst m,y,$(CONFIG_MMC_SDHCI_PCI)) += sdhci-pci-o2micro.o obj-$(CONFIG_MMC_SDHCI_ACPI) += sdhci-acpi.o obj-$(CONFIG_MMC_SDHCI_PXAV3) += sdhci-pxav3.o obj-$(CONFIG_MMC_SDHCI_PXAV2) += sdhci-pxav2.o diff --git a/drivers/mmc/host/sdhci-pci.c b/drivers/mmc/host/sdhci-pci-core.c similarity index 100% rename from drivers/mmc/host/sdhci-pci.c rename to drivers/mmc/host/sdhci-pci-core.c diff --git a/drivers/mmc/host/sdhci-pci-o2micro.c b/drivers/mmc/host/sdhci-pci-o2micro.c index e2ec108d..9a5e191 100644 --- a/drivers/mmc/host/sdhci-pci-o2micro.c +++ b/drivers/mmc/host/sdhci-pci-o2micro.c @@ -145,7 +145,6 @@ void sdhci_pci_o2_fujin2_pci_init(struct sdhci_pci_chip *chip) scratch_32 |= 0x00080000; pci_write_config_dword(chip->pdev, O2_SD_MISC_CTRL4, scratch_32); } -EXPORT_SYMBOL_GPL(sdhci_pci_o2_fujin2_pci_init); int sdhci_pci_o2_probe_slot(struct sdhci_pci_slot *slot) { @@ -179,7 +178,6 @@ int sdhci_pci_o2_probe_slot(struct sdhci_pci_slot *slot) return 0; } -EXPORT_SYMBOL_GPL(sdhci_pci_o2_probe_slot); int sdhci_pci_o2_probe(struct sdhci_pci_chip *chip) { @@ -385,11 +383,9 @@ int sdhci_pci_o2_probe(struct sdhci_pci_chip *chip) return 0; } -EXPORT_SYMBOL_GPL(sdhci_pci_o2_probe); int sdhci_pci_o2_resume(struct sdhci_pci_chip *chip) { sdhci_pci_o2_probe(chip); return 0; } -EXPORT_SYMBOL_GPL(sdhci_pci_o2_resume); -- Ben Hutchings compatible: Gracefully accepts erroneous data from any source [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 811 bytes --] ^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] mmc: sdhci-pci: fix simple_return.cocci warnings 2015-10-05 19:31 ` Ben Hutchings @ 2015-10-05 20:01 ` kbuild test robot 2015-10-08 17:35 ` [PATCH 1/2] mmc: sdhci-pci: Build o2micro support in the same module Ulf Hansson 1 sibling, 0 replies; 4+ messages in thread From: kbuild test robot @ 2015-10-05 20:01 UTC (permalink / raw) To: Ben Hutchings; +Cc: kbuild-all, Ulf Hansson, Peter Guo, linux-mmc drivers/mmc/host/sdhci-pci-core.c:447:1-4: WARNING: end returns can be simpified Simplify a trivial if-return sequence. Possibly combine with a preceding function call. Generated by: scripts/coccinelle/misc/simple_return.cocci CC: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> --- sdhci-pci-core.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) --- a/drivers/mmc/host/sdhci-pci-core.c +++ b/drivers/mmc/host/sdhci-pci-core.c @@ -444,11 +444,7 @@ static int jmicron_pmos(struct sdhci_pci else scratch &= ~0x47; - ret = pci_write_config_byte(chip->pdev, 0xAE, scratch); - if (ret) - return ret; - - return 0; + return pci_write_config_byte(chip->pdev, 0xAE, scratch); } static int jmicron_probe(struct sdhci_pci_chip *chip) ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] mmc: sdhci-pci: Build o2micro support in the same module 2015-10-05 19:31 ` Ben Hutchings 2015-10-05 20:01 ` [PATCH] mmc: sdhci-pci: fix simple_return.cocci warnings kbuild test robot @ 2015-10-08 17:35 ` Ulf Hansson 1 sibling, 0 replies; 4+ messages in thread From: Ulf Hansson @ 2015-10-08 17:35 UTC (permalink / raw) To: Ben Hutchings; +Cc: Peter Guo, linux-mmc On 5 October 2015 at 21:31, Ben Hutchings <ben@decadent.org.uk> wrote: > sdhci-pci-o2micro.c contains no initialisation and its functions are only > called from shdci-pci.c, so there is no reason for it to be a separate > module, let alone or for it to always be built-in. > > - Rename sdhci-pci.c to sdhci-pci-core.c so that the sdhci-pci module > can be built from multiple source files > - Add sdhci-pci-o2micro.c to it > - Remove redundant exports > > Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Thanks, applied patch1, patch2 and the patch fixing the coccinelle warning from build test. Kind regards Uffe > --- > drivers/mmc/host/Makefile | 2 +- > drivers/mmc/host/{sdhci-pci.c => sdhci-pci-core.c} | 0 > drivers/mmc/host/sdhci-pci-o2micro.c | 4 ---- > 3 files changed, 1 insertion(+), 5 deletions(-) > rename drivers/mmc/host/{sdhci-pci.c => sdhci-pci-core.c} (100%) > > diff --git a/drivers/mmc/host/Makefile b/drivers/mmc/host/Makefile > index 4f3452a..3595f83 100644 > --- a/drivers/mmc/host/Makefile > +++ b/drivers/mmc/host/Makefile > @@ -9,8 +9,8 @@ obj-$(CONFIG_MMC_MXC) += mxcmmc.o > obj-$(CONFIG_MMC_MXS) += mxs-mmc.o > obj-$(CONFIG_MMC_SDHCI) += sdhci.o > obj-$(CONFIG_MMC_SDHCI_PCI) += sdhci-pci.o > +sdhci-pci-y += sdhci-pci-core.o sdhci-pci-o2micro.o > obj-$(subst m,y,$(CONFIG_MMC_SDHCI_PCI)) += sdhci-pci-data.o > -obj-$(subst m,y,$(CONFIG_MMC_SDHCI_PCI)) += sdhci-pci-o2micro.o > obj-$(CONFIG_MMC_SDHCI_ACPI) += sdhci-acpi.o > obj-$(CONFIG_MMC_SDHCI_PXAV3) += sdhci-pxav3.o > obj-$(CONFIG_MMC_SDHCI_PXAV2) += sdhci-pxav2.o > diff --git a/drivers/mmc/host/sdhci-pci.c b/drivers/mmc/host/sdhci-pci-core.c > similarity index 100% > rename from drivers/mmc/host/sdhci-pci.c > rename to drivers/mmc/host/sdhci-pci-core.c > diff --git a/drivers/mmc/host/sdhci-pci-o2micro.c b/drivers/mmc/host/sdhci-pci-o2micro.c > index e2ec108d..9a5e191 100644 > --- a/drivers/mmc/host/sdhci-pci-o2micro.c > +++ b/drivers/mmc/host/sdhci-pci-o2micro.c > @@ -145,7 +145,6 @@ void sdhci_pci_o2_fujin2_pci_init(struct sdhci_pci_chip *chip) > scratch_32 |= 0x00080000; > pci_write_config_dword(chip->pdev, O2_SD_MISC_CTRL4, scratch_32); > } > -EXPORT_SYMBOL_GPL(sdhci_pci_o2_fujin2_pci_init); > > int sdhci_pci_o2_probe_slot(struct sdhci_pci_slot *slot) > { > @@ -179,7 +178,6 @@ int sdhci_pci_o2_probe_slot(struct sdhci_pci_slot *slot) > > return 0; > } > -EXPORT_SYMBOL_GPL(sdhci_pci_o2_probe_slot); > > int sdhci_pci_o2_probe(struct sdhci_pci_chip *chip) > { > @@ -385,11 +383,9 @@ int sdhci_pci_o2_probe(struct sdhci_pci_chip *chip) > > return 0; > } > -EXPORT_SYMBOL_GPL(sdhci_pci_o2_probe); > > int sdhci_pci_o2_resume(struct sdhci_pci_chip *chip) > { > sdhci_pci_o2_probe(chip); > return 0; > } > -EXPORT_SYMBOL_GPL(sdhci_pci_o2_resume); > > -- > Ben Hutchings > compatible: Gracefully accepts erroneous data from any source ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-10-08 17:35 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-10-05 20:01 [PATCH 1/2] mmc: sdhci-pci: Build o2micro support in the same module kbuild test robot 2015-10-05 19:31 ` Ben Hutchings 2015-10-05 20:01 ` [PATCH] mmc: sdhci-pci: fix simple_return.cocci warnings kbuild test robot 2015-10-08 17:35 ` [PATCH 1/2] mmc: sdhci-pci: Build o2micro support in the same module Ulf Hansson
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.