[tegra:for-4.10/soc 7/10] drivers/soc/tegra/pmc.c:470:20: warning: unused variable 'pmc'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux.git for-4.10/soc
head:   d82f62744d9c435eb62bf3944af9c239060dc151
commit: 892bd1f800e3ce26545a8d12dbeacd5af8055287 [7/10] soc/tegra: pmc: Clean-up I/O rail error messages
config: arm64-defconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 892bd1f800e3ce26545a8d12dbeacd5af8055287
        # save the attached .config to linux build tree
        make.cross ARCH=arm64 

All warnings (new ones prefixed by >>):

   drivers/soc/tegra/pmc.c: In function 'tegra_genpd_power_on':
>> drivers/soc/tegra/pmc.c:470:20: warning: unused variable 'pmc' [-Wunused-variable]
     struct tegra_pmc *pmc = pg->pmc;
                       ^~~
   drivers/soc/tegra/pmc.c: In function 'tegra_genpd_power_off':
   drivers/soc/tegra/pmc.c:484:20: warning: unused variable 'pmc' [-Wunused-variable]
     struct tegra_pmc *pmc = pg->pmc;
                       ^~~

vim +/pmc +470 drivers/soc/tegra/pmc.c

a38045121 Jon Hunter     2016-03-30  454  
a38045121 Jon Hunter     2016-03-30  455  assert_resets:
a38045121 Jon Hunter     2016-03-30  456  	tegra_powergate_enable_clocks(pg);
a38045121 Jon Hunter     2016-03-30  457  	usleep_range(10, 20);
a38045121 Jon Hunter     2016-03-30  458  	tegra_powergate_reset_deassert(pg);
a38045121 Jon Hunter     2016-03-30  459  	usleep_range(10, 20);
da8f4b458 Thierry Reding 2016-06-30  460  
a38045121 Jon Hunter     2016-03-30  461  disable_clks:
a38045121 Jon Hunter     2016-03-30  462  	tegra_powergate_disable_clocks(pg);
a38045121 Jon Hunter     2016-03-30  463  
a38045121 Jon Hunter     2016-03-30  464  	return err;
a38045121 Jon Hunter     2016-03-30  465  }
a38045121 Jon Hunter     2016-03-30  466  
a38045121 Jon Hunter     2016-03-30  467  static int tegra_genpd_power_on(struct generic_pm_domain *domain)
a38045121 Jon Hunter     2016-03-30  468  {
a38045121 Jon Hunter     2016-03-30  469  	struct tegra_powergate *pg = to_powergate(domain);
a38045121 Jon Hunter     2016-03-30 @470  	struct tegra_pmc *pmc = pg->pmc;
a38045121 Jon Hunter     2016-03-30  471  	int err;
a38045121 Jon Hunter     2016-03-30  472  
a38045121 Jon Hunter     2016-03-30  473  	err = tegra_powergate_power_up(pg, true);
a38045121 Jon Hunter     2016-03-30  474  	if (err)
892bd1f80 Thierry Reding 2016-11-08  475  		pr_err("failed to turn on PM domain %s: %d\n", pg->genpd.name,
892bd1f80 Thierry Reding 2016-11-08  476  		       err);
a38045121 Jon Hunter     2016-03-30  477  
a38045121 Jon Hunter     2016-03-30  478  	return err;

:::::: The code at line 470 was first introduced by commit
:::::: a38045121bf42110e6043d07315a7626b021a0db soc/tegra: pmc: Add generic PM domain support

:::::: TO: Jon Hunter <jonathanh@xxxxxxxxxx>
:::::: CC: Thierry Reding <treding@xxxxxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [ARM Kernel]     [Linux ARM]     [Linux ARM MSM]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux