memory: omap-gpmc: deadcode a pair of functions
PATCH 1/1 memory: omap-gpmc: deadcode a pair of functions
From: "Dr. David Alan Gilbert" <[email protected]>
gpmc_get_client_irq() last use was removed by
commit ac28e47ccc3f ("ARM: OMAP2+: Remove legacy gpmc-nand.c")
gpmc_ticks_to_ns() last use was removed by commit 2514830b8b8c ("ARM: OMAP2+: Remove gpmc-onenand")
Remove them.
--- drivers/memory/omap-gpmc.c | 20 -------------------- include/linux/omap-gpmc.h | 4 ---- 2 files changed, 24 deletions(-)
drivers/memory/omap-gpmc.c +0 -20
@@ -364,11 +364,6 @@ static unsigned int gpmc_clk_ticks_to_ns(unsigned int ticks, int cs,return ticks *gpmc_get_clk_period (cs, cd) /1000 ; } -unsigned int gpmc_ticks_to_ns (unsigned int ticks) -{ -return gpmc_clk_ticks_to_ns (ticks,/* any CS */ 0 ,GPMC_CD_FCLK ); -} -static unsigned int gpmc_ticks_to_ps (unsigned int ticks) {return ticks *gpmc_get_fclk_period ();
@@ -1295,21 +1290,6 @@ int gpmc_omap_onenand_set_timings(struct device *dev, int cs, int freq, }EXPORT_SYMBOL_GPL (gpmc_omap_onenand_set_timings); -int gpmc_get_client_irq (unsigned int irq_config) -{ -if (!gpmc_irq_domain) { -pr_warn ("%s called before GPMC IRQ domain available\n" , - __func__); -return 0 ; - } - -/* we restrict this to NAND IRQs only */ -if (irq_config >=GPMC_NR_NAND_IRQS ) -return 0 ; - -return irq_create_mapping (gpmc_irq_domain, irq_config); -} -static int gpmc_irq_endis (unsigned long hwirq,bool endis) {u32 regval;
include/linux/omap-gpmc.h +0 -4
@@ -66,10 +66,6 @@ extern int gpmc_calc_timings(struct gpmc_timings *gpmc_t,struct device_node ; -extern int gpmc_get_client_irq (unsigned irq_config); - -extern unsigned int gpmc_ticks_to_ns (unsigned int ticks); -extern void gpmc_cs_write_reg (int cs,int idx,u32 val);extern int gpmc_calc_divider (unsigned int sync_clk); extern int gpmc_cs_set_timings(int cs, const struct gpmc_timings *t,
Signature · 1 line
2.47.1
kernel test robot
build botkernel test robot noticed the following build warnings:
Hi,
kernel test robot noticed the following build warnings:
[auto build test WARNING on krzk-mem-ctrl/for-next]
[also build test WARNING on linus/master v6.13-rc2 next-20241211] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/linux-treblig-org/memory-omap-gpmc-deadcode-a-pair-of-functions/20241211-062027 base: https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux-mem-ctrl.git for-next patch link: https://lore.kernel.org/r/20241210220628.237604-1-linux%40treblig.org patch subject: [PATCH] memory: omap-gpmc: deadcode a pair of functions config: i386-buildonly-randconfig-002-20241211 (https://download.01.org/0day-ci/archive/20241211/[email protected]/config) compiler: gcc-11 (Debian 11.3.0-12) 11.3.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241211/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All warnings (new ones prefixed by >>):
>> drivers/memory/omap-gpmc.c:361:21: warning: 'gpmc_clk_ticks_to_ns' defined but not used [-Wunused-function]
361 | static unsigned int gpmc_clk_ticks_to_ns(unsigned int ticks, int cs,
| ^~~~~~~~~~~~~~~~~~~~
vim +/gpmc_clk_ticks_to_ns +361 drivers/memory/omap-gpmc.c
a3551f5b0c3ca7a arch/arm/mach-omap2/gpmc.c Adrian Hunter 2010-12-09 360
3950fffdf0c088d drivers/memory/omap-gpmc.c Baoyou Xie 2016-08-28 @361 static unsigned int gpmc_clk_ticks_to_ns(unsigned int ticks, int cs,
7f2e8c58ae9e352 drivers/memory/omap-gpmc.c Robert ABEL 2015-02-27 362 enum gpmc_clk_domain cd)
7f2e8c58ae9e352 drivers/memory/omap-gpmc.c Robert ABEL 2015-02-27 363 {
7f2e8c58ae9e352 drivers/memory/omap-gpmc.c Robert ABEL 2015-02-27 364 return ticks * gpmc_get_clk_period(cs, cd) / 1000;
7f2e8c58ae9e352 drivers/memory/omap-gpmc.c Robert ABEL 2015-02-27 365 }
7f2e8c58ae9e352 drivers/memory/omap-gpmc.c Robert ABEL 2015-02-27 366 Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
Quoted 3 lines · * kernel test robot ([email protected]) wrote:
Hi,
kernel test robot noticed the following build warnings:
Good bot!
Quoted 19 lines
[auto build test WARNING on krzk-mem-ctrl/for-next]
[also build test WARNING on linus/master v6.13-rc2 next-20241211] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]url: https://github.com/intel-lab-lkp/linux/commits/linux-treblig-org/memory-omap-gpmc-deadcode-a-pair-of-functions/20241211-062027 base: https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux-mem-ctrl.git for-next patch link: https://lore.kernel.org/r/20241210220628.237604-1-linux%40treblig.org patch subject: [PATCH] memory: omap-gpmc: deadcode a pair of functions config: i386-buildonly-randconfig-002-20241211 (https://download.01.org/0day-ci/archive/20241211/[email protected]/config) compiler: gcc-11 (Debian 11.3.0-12) 11.3.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241211/[email protected]/reproduce)If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Quoted 5 lines
All warnings (new ones prefixed by >>):
Quoted 1 line
Quoted 1 line
drivers/memory/omap-gpmc.c:361:21: warning: 'gpmc_clk_ticks_to_ns' defined but not used [-Wunused-function]361 | static unsigned int gpmc_clk_ticks_to_ns(unsigned int ticks, int cs,
| ^~~~~~~~~~~~~~~~~~~~
Ooh, right, I'll clean that out as well and send a v2.
Dave
Quoted 15 lines
vim +/gpmc_clk_ticks_to_ns +361
drivers/memory/omap-gpmc.c
a3551f5b0c3ca7aarch/arm/mach-omap2/gpmc.cAdrian Hunter 2010-12-09 3603950fffdf0c088d drivers/memory/omap-gpmc.c Baoyou Xie 2016-08-28 @361 static unsigned int gpmc_clk_ticks_to_ns(unsigned int ticks, int cs, 7f2e8c58ae9e352 drivers/memory/omap-gpmc.c Robert ABEL 2015-02-27 362 enum gpmc_clk_domain cd) 7f2e8c58ae9e352 drivers/memory/omap-gpmc.c Robert ABEL 2015-02-27 363 { 7f2e8c58ae9e352 drivers/memory/omap-gpmc.c Robert ABEL 2015-02-27 364 return ticks * gpmc_get_clk_period(cs, cd) / 1000; 7f2e8c58ae9e352 drivers/memory/omap-gpmc.c Robert ABEL 2015-02-27 365 } 7f2e8c58ae9e352 drivers/memory/omap-gpmc.c Robert ABEL 2015-02-27 366Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
Signature · 4 lines
-----Open up your eyes, open up your mind, open up your code ------- / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ \ dave @ treblig.org | | In Hex / \ _________________________|_____ http://www.treblig.org |_______/
Quoted 26 lines · * Dr. David Alan Gilbert ([email protected]) wrote:
Quoted 3 lines · * kernel test robot ([email protected]) wrote:
Hi,
kernel test robot noticed the following build warnings:
Good bot!
Quoted 19 lines
[auto build test WARNING on krzk-mem-ctrl/for-next]
[also build test WARNING on linus/master v6.13-rc2 next-20241211] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]url: https://github.com/intel-lab-lkp/linux/commits/linux-treblig-org/memory-omap-gpmc-deadcode-a-pair-of-functions/20241211-062027 base: https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux-mem-ctrl.git for-next patch link: https://lore.kernel.org/r/20241210220628.237604-1-linux%40treblig.org patch subject: [PATCH] memory: omap-gpmc: deadcode a pair of functions config: i386-buildonly-randconfig-002-20241211 (https://download.01.org/0day-ci/archive/20241211/[email protected]/config) compiler: gcc-11 (Debian 11.3.0-12) 11.3.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241211/[email protected]/reproduce)If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Quoted 7 lines
Quoted 5 lines
All warnings (new ones prefixed by >>):
Quoted 1 line
Quoted 1 line
drivers/memory/omap-gpmc.c:361:21: warning: 'gpmc_clk_ticks_to_ns' defined but not used [-Wunused-function]361 | static unsigned int gpmc_clk_ticks_to_ns(unsigned int ticks, int cs,
| ^~~~~~~~~~~~~~~~~~~~Ooh, right, I'll clean that out as well and send a v2.
OK, slightly more complicated, I've posted it as [email protected] gpmc_clk_ticks_to_ns is still used, but only inside a function which is ifdef'd, so I've moved it inside the ifdef.
Dave
Quoted 23 lines
Dave
Quoted 15 lines
vim +/gpmc_clk_ticks_to_ns +361
drivers/memory/omap-gpmc.c
a3551f5b0c3ca7aarch/arm/mach-omap2/gpmc.cAdrian Hunter 2010-12-09 3603950fffdf0c088d drivers/memory/omap-gpmc.c Baoyou Xie 2016-08-28 @361 static unsigned int gpmc_clk_ticks_to_ns(unsigned int ticks, int cs, 7f2e8c58ae9e352 drivers/memory/omap-gpmc.c Robert ABEL 2015-02-27 362 enum gpmc_clk_domain cd) 7f2e8c58ae9e352 drivers/memory/omap-gpmc.c Robert ABEL 2015-02-27 363 { 7f2e8c58ae9e352 drivers/memory/omap-gpmc.c Robert ABEL 2015-02-27 364 return ticks * gpmc_get_clk_period(cs, cd) / 1000; 7f2e8c58ae9e352 drivers/memory/omap-gpmc.c Robert ABEL 2015-02-27 365 } 7f2e8c58ae9e352 drivers/memory/omap-gpmc.c Robert ABEL 2015-02-27 366Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wikiSignature · 4 lines
-----Open up your eyes, open up your mind, open up your code ------- / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ \ dave @ treblig.org | | In Hex / \ _________________________|_____ http://www.treblig.org |_______/
Signature · 4 lines
-----Open up your eyes, open up your mind, open up your code ------- / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ \ dave @ treblig.org | | In Hex / \ _________________________|_____ http://www.treblig.org |_______/