All of lore.kernel.org
 help / color / mirror / Atom feed
* drivers/pci/controller/dwc/pcie-tegra194.c:243:27: warning: unused variable 'pcie_gen_freq'
@ 2021-05-07 16:33 ` kernel test robot
  0 siblings, 0 replies; 6+ messages in thread
From: kernel test robot @ 2021-05-07 16:33 UTC (permalink / raw)
  To: Vidya Sagar; +Cc: kbuild-all, clang-built-linux, linux-kernel, Bjorn Helgaas

[-- Attachment #1: Type: text/plain, Size: 3766 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   a48b0872e69428d3d02994dcfad3519f01def7fa
commit: 7f100744749e4fe547dece3bb6557fae5f0a7252 PCI: tegra: Add Tegra194 MCFG quirks for ECAM errata
date:   3 weeks ago
config: arm64-randconfig-r013-20210507 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project a3a8a1a15b524d91b5308db68e9d293b34cd88dd)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7f100744749e4fe547dece3bb6557fae5f0a7252
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 7f100744749e4fe547dece3bb6557fae5f0a7252
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   In file included from drivers/pci/controller/dwc/pcie-tegra194.c:25:
   In file included from include/linux/pci-acpi.h:12:
   In file included from include/linux/acpi.h:35:
   In file included from include/acpi/acpi_io.h:7:
   In file included from arch/arm64/include/asm/acpi.h:12:
   include/linux/efi.h:1093:34: warning: passing 1-byte aligned argument to 4-byte aligned parameter 2 of 'get_var' may result in an unaligned pointer access [-Walign-mismatch]
           status = get_var(L"SecureBoot", &EFI_GLOBAL_VARIABLE_GUID, NULL, &size,
                                           ^
   include/linux/efi.h:1101:24: warning: passing 1-byte aligned argument to 4-byte aligned parameter 2 of 'get_var' may result in an unaligned pointer access [-Walign-mismatch]
           get_var(L"SetupMode", &EFI_GLOBAL_VARIABLE_GUID, NULL, &size, &setupmode);
                                 ^
>> drivers/pci/controller/dwc/pcie-tegra194.c:243:27: warning: unused variable 'pcie_gen_freq' [-Wunused-const-variable]
   static const unsigned int pcie_gen_freq[] = {
                             ^
   drivers/pci/controller/dwc/pcie-tegra194.c:250:18: warning: unused variable 'event_cntr_ctrl_offset' [-Wunused-const-variable]
   static const u32 event_cntr_ctrl_offset[] = {
                    ^
   drivers/pci/controller/dwc/pcie-tegra194.c:259:18: warning: unused variable 'event_cntr_data_offset' [-Wunused-const-variable]
   static const u32 event_cntr_data_offset[] = {
                    ^
   5 warnings generated.


vim +/pcie_gen_freq +243 drivers/pci/controller/dwc/pcie-tegra194.c

c57247f940e8ea Vidya Sagar 2020-03-03  242  
56e15a238d9278 Vidya Sagar 2019-08-13 @243  static const unsigned int pcie_gen_freq[] = {
56e15a238d9278 Vidya Sagar 2019-08-13  244  	GEN1_CORE_CLK_FREQ,
56e15a238d9278 Vidya Sagar 2019-08-13  245  	GEN2_CORE_CLK_FREQ,
56e15a238d9278 Vidya Sagar 2019-08-13  246  	GEN3_CORE_CLK_FREQ,
56e15a238d9278 Vidya Sagar 2019-08-13  247  	GEN4_CORE_CLK_FREQ
56e15a238d9278 Vidya Sagar 2019-08-13  248  };
56e15a238d9278 Vidya Sagar 2019-08-13  249  

:::::: The code at line 243 was first introduced by commit
:::::: 56e15a238d92788a2d09e0c5c26a5de1b3156931 PCI: tegra: Add Tegra194 PCIe support

:::::: TO: Vidya Sagar <vidyas@nvidia.com>
:::::: CC: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 40506 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* drivers/pci/controller/dwc/pcie-tegra194.c:243:27: warning: unused variable 'pcie_gen_freq'
@ 2021-05-07 16:33 ` kernel test robot
  0 siblings, 0 replies; 6+ messages in thread
From: kernel test robot @ 2021-05-07 16:33 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3834 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   a48b0872e69428d3d02994dcfad3519f01def7fa
commit: 7f100744749e4fe547dece3bb6557fae5f0a7252 PCI: tegra: Add Tegra194 MCFG quirks for ECAM errata
date:   3 weeks ago
config: arm64-randconfig-r013-20210507 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project a3a8a1a15b524d91b5308db68e9d293b34cd88dd)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7f100744749e4fe547dece3bb6557fae5f0a7252
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 7f100744749e4fe547dece3bb6557fae5f0a7252
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   In file included from drivers/pci/controller/dwc/pcie-tegra194.c:25:
   In file included from include/linux/pci-acpi.h:12:
   In file included from include/linux/acpi.h:35:
   In file included from include/acpi/acpi_io.h:7:
   In file included from arch/arm64/include/asm/acpi.h:12:
   include/linux/efi.h:1093:34: warning: passing 1-byte aligned argument to 4-byte aligned parameter 2 of 'get_var' may result in an unaligned pointer access [-Walign-mismatch]
           status = get_var(L"SecureBoot", &EFI_GLOBAL_VARIABLE_GUID, NULL, &size,
                                           ^
   include/linux/efi.h:1101:24: warning: passing 1-byte aligned argument to 4-byte aligned parameter 2 of 'get_var' may result in an unaligned pointer access [-Walign-mismatch]
           get_var(L"SetupMode", &EFI_GLOBAL_VARIABLE_GUID, NULL, &size, &setupmode);
                                 ^
>> drivers/pci/controller/dwc/pcie-tegra194.c:243:27: warning: unused variable 'pcie_gen_freq' [-Wunused-const-variable]
   static const unsigned int pcie_gen_freq[] = {
                             ^
   drivers/pci/controller/dwc/pcie-tegra194.c:250:18: warning: unused variable 'event_cntr_ctrl_offset' [-Wunused-const-variable]
   static const u32 event_cntr_ctrl_offset[] = {
                    ^
   drivers/pci/controller/dwc/pcie-tegra194.c:259:18: warning: unused variable 'event_cntr_data_offset' [-Wunused-const-variable]
   static const u32 event_cntr_data_offset[] = {
                    ^
   5 warnings generated.


vim +/pcie_gen_freq +243 drivers/pci/controller/dwc/pcie-tegra194.c

c57247f940e8ea Vidya Sagar 2020-03-03  242  
56e15a238d9278 Vidya Sagar 2019-08-13 @243  static const unsigned int pcie_gen_freq[] = {
56e15a238d9278 Vidya Sagar 2019-08-13  244  	GEN1_CORE_CLK_FREQ,
56e15a238d9278 Vidya Sagar 2019-08-13  245  	GEN2_CORE_CLK_FREQ,
56e15a238d9278 Vidya Sagar 2019-08-13  246  	GEN3_CORE_CLK_FREQ,
56e15a238d9278 Vidya Sagar 2019-08-13  247  	GEN4_CORE_CLK_FREQ
56e15a238d9278 Vidya Sagar 2019-08-13  248  };
56e15a238d9278 Vidya Sagar 2019-08-13  249  

:::::: The code at line 243 was first introduced by commit
:::::: 56e15a238d92788a2d09e0c5c26a5de1b3156931 PCI: tegra: Add Tegra194 PCIe support

:::::: TO: Vidya Sagar <vidyas@nvidia.com>
:::::: CC: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 40506 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: drivers/pci/controller/dwc/pcie-tegra194.c:243:27: warning: unused variable 'pcie_gen_freq'
  2021-05-07 16:33 ` kernel test robot
@ 2021-05-07 17:50   ` Bjorn Helgaas
  -1 siblings, 0 replies; 6+ messages in thread
From: Bjorn Helgaas @ 2021-05-07 17:50 UTC (permalink / raw)
  To: kernel test robot
  Cc: Vidya Sagar, kbuild-all, clang-built-linux, linux-kernel

On Sat, May 08, 2021 at 12:33:52AM +0800, kernel test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   a48b0872e69428d3d02994dcfad3519f01def7fa
> commit: 7f100744749e4fe547dece3bb6557fae5f0a7252 PCI: tegra: Add Tegra194 MCFG quirks for ECAM errata
> date:   3 weeks ago
> config: arm64-randconfig-r013-20210507 (attached as .config)
> compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project a3a8a1a15b524d91b5308db68e9d293b34cd88dd)
> reproduce (this is a W=1 build):
>         wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         # install arm64 cross compiling tool for clang build
>         # apt-get install binutils-aarch64-linux-gnu
>         # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7f100744749e4fe547dece3bb6557fae5f0a7252
>         git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
>         git fetch --no-tags linus master
>         git checkout 7f100744749e4fe547dece3bb6557fae5f0a7252
>         # save the attached .config to linux build tree
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm64 

Thanks for the report!

Just FYI, I followed the instructions above and got this:

  12:32:35 ~/linux (kbuild)$ COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm64
  Compiler will be installed in /home/bjorn/0day
  cd: received redirection to `https://download.01.org/0day-ci/cross-package/'
  lftpget -c https://download.01.org/0day-ci/cross-package/./clang-latest/clang.tar.xz
  tar Jxf clang-latest/clang.tar.xz -C /home/bjorn/0day
  make CONFIG_OF_ALL_DTBS=y CONFIG_DTC=y HOSTCC=/home/bjorn/0day/clang-latest/bin/clang CC=/home/bjorn/0day/clang-latest/bin/clang LD=/home/bjorn/0day/clang-latest/bin/ld.lld HOSTLD=/home/bjorn/0day/clang-latest/bin/ld.lld AR=/home/bjorn/0day/clang-latest/bin/llvm-ar NM=/home/bjorn/0day/clang-latest/bin/llvm-nm STRIP=/home/bjorn/0day/clang-latest/bin/llvm-strip OBJDUMP=/home/bjorn/0day/clang-latest/bin/llvm-objdump OBJSIZE=/home/bjorn/0day/clang-latest/bin/llvm-size READELF=/home/bjorn/0day/clang-latest/bin/llvm-readelf HOSTCXX=/home/bjorn/0day/clang-latest/bin/clang++ HOSTAR=/home/bjorn/0day/clang-latest/bin/llvm-ar CROSS_COMPILE=aarch64-linux-gnu- --jobs=16 W=1 ARCH=arm64
  make: /home/bjorn/0day/clang-latest/bin/clang: Command not found
    SYNC    include/config/auto.conf.cmd
    HOSTCC  scripts/basic/fixdep
  /bin/sh: 1: /home/bjorn/0day/clang-latest/bin/clang: not found
  make[2]: *** [scripts/Makefile.host:95: scripts/basic/fixdep] Error 127
  make[1]: *** [Makefile:533: scripts_basic] Error 2
  make: *** [Makefile:709: include/config/auto.conf.cmd] Error 2
  make: *** [include/config/auto.conf.cmd] Deleting file 'include/generated/autoconf.h'

After adding a symlink "clang-latest -> clang/", it worked as
expected and reproduced the warning.

But I guess I'll wait for Vidya to fix it.

> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
> 
> All warnings (new ones prefixed by >>):
> 
>    In file included from drivers/pci/controller/dwc/pcie-tegra194.c:25:
>    In file included from include/linux/pci-acpi.h:12:
>    In file included from include/linux/acpi.h:35:
>    In file included from include/acpi/acpi_io.h:7:
>    In file included from arch/arm64/include/asm/acpi.h:12:
>    include/linux/efi.h:1093:34: warning: passing 1-byte aligned argument to 4-byte aligned parameter 2 of 'get_var' may result in an unaligned pointer access [-Walign-mismatch]
>            status = get_var(L"SecureBoot", &EFI_GLOBAL_VARIABLE_GUID, NULL, &size,
>                                            ^
>    include/linux/efi.h:1101:24: warning: passing 1-byte aligned argument to 4-byte aligned parameter 2 of 'get_var' may result in an unaligned pointer access [-Walign-mismatch]
>            get_var(L"SetupMode", &EFI_GLOBAL_VARIABLE_GUID, NULL, &size, &setupmode);
>                                  ^
> >> drivers/pci/controller/dwc/pcie-tegra194.c:243:27: warning: unused variable 'pcie_gen_freq' [-Wunused-const-variable]
>    static const unsigned int pcie_gen_freq[] = {
>                              ^
>    drivers/pci/controller/dwc/pcie-tegra194.c:250:18: warning: unused variable 'event_cntr_ctrl_offset' [-Wunused-const-variable]
>    static const u32 event_cntr_ctrl_offset[] = {
>                     ^
>    drivers/pci/controller/dwc/pcie-tegra194.c:259:18: warning: unused variable 'event_cntr_data_offset' [-Wunused-const-variable]
>    static const u32 event_cntr_data_offset[] = {
>                     ^
>    5 warnings generated.
> 
> 
> vim +/pcie_gen_freq +243 drivers/pci/controller/dwc/pcie-tegra194.c
> 
> c57247f940e8ea Vidya Sagar 2020-03-03  242  
> 56e15a238d9278 Vidya Sagar 2019-08-13 @243  static const unsigned int pcie_gen_freq[] = {
> 56e15a238d9278 Vidya Sagar 2019-08-13  244  	GEN1_CORE_CLK_FREQ,
> 56e15a238d9278 Vidya Sagar 2019-08-13  245  	GEN2_CORE_CLK_FREQ,
> 56e15a238d9278 Vidya Sagar 2019-08-13  246  	GEN3_CORE_CLK_FREQ,
> 56e15a238d9278 Vidya Sagar 2019-08-13  247  	GEN4_CORE_CLK_FREQ
> 56e15a238d9278 Vidya Sagar 2019-08-13  248  };
> 56e15a238d9278 Vidya Sagar 2019-08-13  249  
> 
> :::::: The code at line 243 was first introduced by commit
> :::::: 56e15a238d92788a2d09e0c5c26a5de1b3156931 PCI: tegra: Add Tegra194 PCIe support
> 
> :::::: TO: Vidya Sagar <vidyas@nvidia.com>
> :::::: CC: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
> 
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: drivers/pci/controller/dwc/pcie-tegra194.c:243:27: warning: unused variable 'pcie_gen_freq'
@ 2021-05-07 17:50   ` Bjorn Helgaas
  0 siblings, 0 replies; 6+ messages in thread
From: Bjorn Helgaas @ 2021-05-07 17:50 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 5829 bytes --]

On Sat, May 08, 2021 at 12:33:52AM +0800, kernel test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   a48b0872e69428d3d02994dcfad3519f01def7fa
> commit: 7f100744749e4fe547dece3bb6557fae5f0a7252 PCI: tegra: Add Tegra194 MCFG quirks for ECAM errata
> date:   3 weeks ago
> config: arm64-randconfig-r013-20210507 (attached as .config)
> compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project a3a8a1a15b524d91b5308db68e9d293b34cd88dd)
> reproduce (this is a W=1 build):
>         wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         # install arm64 cross compiling tool for clang build
>         # apt-get install binutils-aarch64-linux-gnu
>         # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7f100744749e4fe547dece3bb6557fae5f0a7252
>         git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
>         git fetch --no-tags linus master
>         git checkout 7f100744749e4fe547dece3bb6557fae5f0a7252
>         # save the attached .config to linux build tree
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm64 

Thanks for the report!

Just FYI, I followed the instructions above and got this:

  12:32:35 ~/linux (kbuild)$ COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm64
  Compiler will be installed in /home/bjorn/0day
  cd: received redirection to `https://download.01.org/0day-ci/cross-package/'
  lftpget -c https://download.01.org/0day-ci/cross-package/./clang-latest/clang.tar.xz
  tar Jxf clang-latest/clang.tar.xz -C /home/bjorn/0day
  make CONFIG_OF_ALL_DTBS=y CONFIG_DTC=y HOSTCC=/home/bjorn/0day/clang-latest/bin/clang CC=/home/bjorn/0day/clang-latest/bin/clang LD=/home/bjorn/0day/clang-latest/bin/ld.lld HOSTLD=/home/bjorn/0day/clang-latest/bin/ld.lld AR=/home/bjorn/0day/clang-latest/bin/llvm-ar NM=/home/bjorn/0day/clang-latest/bin/llvm-nm STRIP=/home/bjorn/0day/clang-latest/bin/llvm-strip OBJDUMP=/home/bjorn/0day/clang-latest/bin/llvm-objdump OBJSIZE=/home/bjorn/0day/clang-latest/bin/llvm-size READELF=/home/bjorn/0day/clang-latest/bin/llvm-readelf HOSTCXX=/home/bjorn/0day/clang-latest/bin/clang++ HOSTAR=/home/bjorn/0day/clang-latest/bin/llvm-ar CROSS_COMPILE=aarch64-linux-gnu- --jobs=16 W=1 ARCH=arm64
  make: /home/bjorn/0day/clang-latest/bin/clang: Command not found
    SYNC    include/config/auto.conf.cmd
    HOSTCC  scripts/basic/fixdep
  /bin/sh: 1: /home/bjorn/0day/clang-latest/bin/clang: not found
  make[2]: *** [scripts/Makefile.host:95: scripts/basic/fixdep] Error 127
  make[1]: *** [Makefile:533: scripts_basic] Error 2
  make: *** [Makefile:709: include/config/auto.conf.cmd] Error 2
  make: *** [include/config/auto.conf.cmd] Deleting file 'include/generated/autoconf.h'

After adding a symlink "clang-latest -> clang/", it worked as
expected and reproduced the warning.

But I guess I'll wait for Vidya to fix it.

> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
> 
> All warnings (new ones prefixed by >>):
> 
>    In file included from drivers/pci/controller/dwc/pcie-tegra194.c:25:
>    In file included from include/linux/pci-acpi.h:12:
>    In file included from include/linux/acpi.h:35:
>    In file included from include/acpi/acpi_io.h:7:
>    In file included from arch/arm64/include/asm/acpi.h:12:
>    include/linux/efi.h:1093:34: warning: passing 1-byte aligned argument to 4-byte aligned parameter 2 of 'get_var' may result in an unaligned pointer access [-Walign-mismatch]
>            status = get_var(L"SecureBoot", &EFI_GLOBAL_VARIABLE_GUID, NULL, &size,
>                                            ^
>    include/linux/efi.h:1101:24: warning: passing 1-byte aligned argument to 4-byte aligned parameter 2 of 'get_var' may result in an unaligned pointer access [-Walign-mismatch]
>            get_var(L"SetupMode", &EFI_GLOBAL_VARIABLE_GUID, NULL, &size, &setupmode);
>                                  ^
> >> drivers/pci/controller/dwc/pcie-tegra194.c:243:27: warning: unused variable 'pcie_gen_freq' [-Wunused-const-variable]
>    static const unsigned int pcie_gen_freq[] = {
>                              ^
>    drivers/pci/controller/dwc/pcie-tegra194.c:250:18: warning: unused variable 'event_cntr_ctrl_offset' [-Wunused-const-variable]
>    static const u32 event_cntr_ctrl_offset[] = {
>                     ^
>    drivers/pci/controller/dwc/pcie-tegra194.c:259:18: warning: unused variable 'event_cntr_data_offset' [-Wunused-const-variable]
>    static const u32 event_cntr_data_offset[] = {
>                     ^
>    5 warnings generated.
> 
> 
> vim +/pcie_gen_freq +243 drivers/pci/controller/dwc/pcie-tegra194.c
> 
> c57247f940e8ea Vidya Sagar 2020-03-03  242  
> 56e15a238d9278 Vidya Sagar 2019-08-13 @243  static const unsigned int pcie_gen_freq[] = {
> 56e15a238d9278 Vidya Sagar 2019-08-13  244  	GEN1_CORE_CLK_FREQ,
> 56e15a238d9278 Vidya Sagar 2019-08-13  245  	GEN2_CORE_CLK_FREQ,
> 56e15a238d9278 Vidya Sagar 2019-08-13  246  	GEN3_CORE_CLK_FREQ,
> 56e15a238d9278 Vidya Sagar 2019-08-13  247  	GEN4_CORE_CLK_FREQ
> 56e15a238d9278 Vidya Sagar 2019-08-13  248  };
> 56e15a238d9278 Vidya Sagar 2019-08-13  249  
> 
> :::::: The code at line 243 was first introduced by commit
> :::::: 56e15a238d92788a2d09e0c5c26a5de1b3156931 PCI: tegra: Add Tegra194 PCIe support
> 
> :::::: TO: Vidya Sagar <vidyas@nvidia.com>
> :::::: CC: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
> 
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org


^ permalink raw reply	[flat|nested] 6+ messages in thread

* drivers/pci/controller/dwc/pcie-tegra194.c:243:27: warning: unused variable 'pcie_gen_freq'
@ 2021-05-08 20:03 ` kernel test robot
  0 siblings, 0 replies; 6+ messages in thread
From: kernel test robot @ 2021-05-08 20:03 UTC (permalink / raw)
  To: Vidya Sagar; +Cc: kbuild-all, clang-built-linux, linux-kernel, Bjorn Helgaas

[-- Attachment #1: Type: text/plain, Size: 3816 bytes --]

Hi Vidya,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   b741596468b010af2846b75f5e75a842ce344a6e
commit: 7f100744749e4fe547dece3bb6557fae5f0a7252 PCI: tegra: Add Tegra194 MCFG quirks for ECAM errata
date:   3 weeks ago
config: arm64-randconfig-r026-20210509 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 1312852040b3190a6cb7d7c1f61fe95a5e930d8d)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7f100744749e4fe547dece3bb6557fae5f0a7252
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 7f100744749e4fe547dece3bb6557fae5f0a7252
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   In file included from drivers/pci/controller/dwc/pcie-tegra194.c:25:
   In file included from include/linux/pci-acpi.h:12:
   In file included from include/linux/acpi.h:35:
   In file included from include/acpi/acpi_io.h:7:
   In file included from arch/arm64/include/asm/acpi.h:12:
   include/linux/efi.h:1093:34: warning: passing 1-byte aligned argument to 4-byte aligned parameter 2 of 'get_var' may result in an unaligned pointer access [-Walign-mismatch]
           status = get_var(L"SecureBoot", &EFI_GLOBAL_VARIABLE_GUID, NULL, &size,
                                           ^
   include/linux/efi.h:1101:24: warning: passing 1-byte aligned argument to 4-byte aligned parameter 2 of 'get_var' may result in an unaligned pointer access [-Walign-mismatch]
           get_var(L"SetupMode", &EFI_GLOBAL_VARIABLE_GUID, NULL, &size, &setupmode);
                                 ^
>> drivers/pci/controller/dwc/pcie-tegra194.c:243:27: warning: unused variable 'pcie_gen_freq' [-Wunused-const-variable]
   static const unsigned int pcie_gen_freq[] = {
                             ^
   drivers/pci/controller/dwc/pcie-tegra194.c:250:18: warning: unused variable 'event_cntr_ctrl_offset' [-Wunused-const-variable]
   static const u32 event_cntr_ctrl_offset[] = {
                    ^
   drivers/pci/controller/dwc/pcie-tegra194.c:259:18: warning: unused variable 'event_cntr_data_offset' [-Wunused-const-variable]
   static const u32 event_cntr_data_offset[] = {
                    ^
   5 warnings generated.


vim +/pcie_gen_freq +243 drivers/pci/controller/dwc/pcie-tegra194.c

c57247f940e8ea Vidya Sagar 2020-03-03  242  
56e15a238d9278 Vidya Sagar 2019-08-13 @243  static const unsigned int pcie_gen_freq[] = {
56e15a238d9278 Vidya Sagar 2019-08-13  244  	GEN1_CORE_CLK_FREQ,
56e15a238d9278 Vidya Sagar 2019-08-13  245  	GEN2_CORE_CLK_FREQ,
56e15a238d9278 Vidya Sagar 2019-08-13  246  	GEN3_CORE_CLK_FREQ,
56e15a238d9278 Vidya Sagar 2019-08-13  247  	GEN4_CORE_CLK_FREQ
56e15a238d9278 Vidya Sagar 2019-08-13  248  };
56e15a238d9278 Vidya Sagar 2019-08-13  249  

:::::: The code at line 243 was first introduced by commit
:::::: 56e15a238d92788a2d09e0c5c26a5de1b3156931 PCI: tegra: Add Tegra194 PCIe support

:::::: TO: Vidya Sagar <vidyas@nvidia.com>
:::::: CC: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 42716 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* drivers/pci/controller/dwc/pcie-tegra194.c:243:27: warning: unused variable 'pcie_gen_freq'
@ 2021-05-08 20:03 ` kernel test robot
  0 siblings, 0 replies; 6+ messages in thread
From: kernel test robot @ 2021-05-08 20:03 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3888 bytes --]

Hi Vidya,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   b741596468b010af2846b75f5e75a842ce344a6e
commit: 7f100744749e4fe547dece3bb6557fae5f0a7252 PCI: tegra: Add Tegra194 MCFG quirks for ECAM errata
date:   3 weeks ago
config: arm64-randconfig-r026-20210509 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 1312852040b3190a6cb7d7c1f61fe95a5e930d8d)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7f100744749e4fe547dece3bb6557fae5f0a7252
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 7f100744749e4fe547dece3bb6557fae5f0a7252
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   In file included from drivers/pci/controller/dwc/pcie-tegra194.c:25:
   In file included from include/linux/pci-acpi.h:12:
   In file included from include/linux/acpi.h:35:
   In file included from include/acpi/acpi_io.h:7:
   In file included from arch/arm64/include/asm/acpi.h:12:
   include/linux/efi.h:1093:34: warning: passing 1-byte aligned argument to 4-byte aligned parameter 2 of 'get_var' may result in an unaligned pointer access [-Walign-mismatch]
           status = get_var(L"SecureBoot", &EFI_GLOBAL_VARIABLE_GUID, NULL, &size,
                                           ^
   include/linux/efi.h:1101:24: warning: passing 1-byte aligned argument to 4-byte aligned parameter 2 of 'get_var' may result in an unaligned pointer access [-Walign-mismatch]
           get_var(L"SetupMode", &EFI_GLOBAL_VARIABLE_GUID, NULL, &size, &setupmode);
                                 ^
>> drivers/pci/controller/dwc/pcie-tegra194.c:243:27: warning: unused variable 'pcie_gen_freq' [-Wunused-const-variable]
   static const unsigned int pcie_gen_freq[] = {
                             ^
   drivers/pci/controller/dwc/pcie-tegra194.c:250:18: warning: unused variable 'event_cntr_ctrl_offset' [-Wunused-const-variable]
   static const u32 event_cntr_ctrl_offset[] = {
                    ^
   drivers/pci/controller/dwc/pcie-tegra194.c:259:18: warning: unused variable 'event_cntr_data_offset' [-Wunused-const-variable]
   static const u32 event_cntr_data_offset[] = {
                    ^
   5 warnings generated.


vim +/pcie_gen_freq +243 drivers/pci/controller/dwc/pcie-tegra194.c

c57247f940e8ea Vidya Sagar 2020-03-03  242  
56e15a238d9278 Vidya Sagar 2019-08-13 @243  static const unsigned int pcie_gen_freq[] = {
56e15a238d9278 Vidya Sagar 2019-08-13  244  	GEN1_CORE_CLK_FREQ,
56e15a238d9278 Vidya Sagar 2019-08-13  245  	GEN2_CORE_CLK_FREQ,
56e15a238d9278 Vidya Sagar 2019-08-13  246  	GEN3_CORE_CLK_FREQ,
56e15a238d9278 Vidya Sagar 2019-08-13  247  	GEN4_CORE_CLK_FREQ
56e15a238d9278 Vidya Sagar 2019-08-13  248  };
56e15a238d9278 Vidya Sagar 2019-08-13  249  

:::::: The code at line 243 was first introduced by commit
:::::: 56e15a238d92788a2d09e0c5c26a5de1b3156931 PCI: tegra: Add Tegra194 PCIe support

:::::: TO: Vidya Sagar <vidyas@nvidia.com>
:::::: CC: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 42716 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-05-08 20:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-07 16:33 drivers/pci/controller/dwc/pcie-tegra194.c:243:27: warning: unused variable 'pcie_gen_freq' kernel test robot
2021-05-07 16:33 ` kernel test robot
2021-05-07 17:50 ` Bjorn Helgaas
2021-05-07 17:50   ` Bjorn Helgaas
2021-05-08 20:03 kernel test robot
2021-05-08 20:03 ` kernel test robot

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.