All of lore.kernel.org
 help / color / mirror / Atom feed
* [stffrdhrn:starfive-bad-dcache-flush 4/39] drivers/char/hw_random/starfive-vic-rng.c:238:34: warning: unused variable 'vic_rng_dt_ids'
@ 2021-05-23  8:20 kernel test robot
  0 siblings, 0 replies; 6+ messages in thread
From: kernel test robot @ 2021-05-23  8:20 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://github.com/stffrdhrn/linux.git starfive-bad-dcache-flush
head:   a5c948a9cc2b8944f00056c067fb7bde19b34843
commit: c9f02856ce72f3de501b56484ecdc71e261fdaa5 [4/39] drivers/hw_random: Add Starfive VIC Random Number Generator driver
config: x86_64-randconfig-b001-20210522 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project e84a9b9bb3051c35dea993cdad7b3d2575638f85)
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 x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://github.com/stffrdhrn/linux/commit/c9f02856ce72f3de501b56484ecdc71e261fdaa5
        git remote add stffrdhrn https://github.com/stffrdhrn/linux.git
        git fetch --no-tags stffrdhrn starfive-bad-dcache-flush
        git checkout c9f02856ce72f3de501b56484ecdc71e261fdaa5
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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 >>):

>> drivers/char/hw_random/starfive-vic-rng.c:238:34: warning: unused variable 'vic_rng_dt_ids' [-Wunused-const-variable]
   static const struct of_device_id vic_rng_dt_ids[] = {
                                    ^
   1 warning generated.


vim +/vic_rng_dt_ids +238 drivers/char/hw_random/starfive-vic-rng.c

c9f02856ce72f3 Huan Feng 2021-01-08  237  
c9f02856ce72f3 Huan Feng 2021-01-08 @238  static const struct of_device_id vic_rng_dt_ids[] = {
c9f02856ce72f3 Huan Feng 2021-01-08  239  	{ .compatible = "starfive,vic-rng" },
c9f02856ce72f3 Huan Feng 2021-01-08  240  	{ }
c9f02856ce72f3 Huan Feng 2021-01-08  241  };
c9f02856ce72f3 Huan Feng 2021-01-08  242  MODULE_DEVICE_TABLE(of, vic_rng_dt_ids);
c9f02856ce72f3 Huan Feng 2021-01-08  243  

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

_______________________________________________
kbuild mailing list -- kbuild(a)lists.01.org
To unsubscribe send an email to kbuild-leave(a)lists.01.org

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

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

* Re: [stffrdhrn:starfive-bad-dcache-flush 4/39] drivers/char/hw_random/starfive-vic-rng.c:238:34: warning: unused variable 'vic_rng_dt_ids'
  2021-05-24  1:40 ` Huan Feng
  2021-05-24  2:34   ` Rong Chen
@ 2021-05-24  6:38   ` Rong Chen
  1 sibling, 0 replies; 6+ messages in thread
From: Rong Chen @ 2021-05-24  6:38 UTC (permalink / raw)
  To: kbuild-all

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

Hi Huan,

The patch works as tested.

Best Regards,
Rong Chen

On 5/24/21 9:40 AM, Huan Feng wrote:
> Hi:
> 	I can not get the source code from github.
> 	Starfive vic gpio and rng hardware is on Starfive vic7100 Soc, which is RISCV ARCH. So maybe they are not used on other Soc or ARCH.
> 	
> 	May be the attach patch file is usefull.
>

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

* Re: [stffrdhrn:starfive-bad-dcache-flush 4/39] drivers/char/hw_random/starfive-vic-rng.c:238:34: warning: unused variable 'vic_rng_dt_ids'
  2021-05-24  1:40 ` Huan Feng
@ 2021-05-24  2:34   ` Rong Chen
  2021-05-24  6:38   ` Rong Chen
  1 sibling, 0 replies; 6+ messages in thread
From: Rong Chen @ 2021-05-24  2:34 UTC (permalink / raw)
  To: kbuild-all

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

Hi Huan,

I can't apply and test your patch, which is the proper branch to apply?

Best Regards,
Rong Chen

On 5/24/21 9:40 AM, Huan Feng wrote:
> Hi:
> 	I can not get the source code from github.
> 	Starfive vic gpio and rng hardware is on Starfive vic7100 Soc, which is RISCV ARCH. So maybe they are not used on other Soc or ARCH.
> 	
> 	May be the attach patch file is usefull.
>

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

* Re: [stffrdhrn:starfive-bad-dcache-flush 4/39] drivers/char/hw_random/starfive-vic-rng.c:238:34: warning: unused variable 'vic_rng_dt_ids'
  2021-05-24  0:53 kernel test robot
@ 2021-05-24  1:40 ` Huan Feng
  2021-05-24  2:34   ` Rong Chen
  2021-05-24  6:38   ` Rong Chen
  0 siblings, 2 replies; 6+ messages in thread
From: Huan Feng @ 2021-05-24  1:40 UTC (permalink / raw)
  To: kbuild-all

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

Hi:
	I can not get the source code from github. 
	Starfive vic gpio and rng hardware is on Starfive vic7100 Soc, which is RISCV ARCH. So maybe they are not used on other Soc or ARCH.
	
	May be the attach patch file is usefull.

-- 

Best Regards,
 
Huan Feng
E-mail: huan.feng(a)starfivetch.com
Mobile.: 18111603721
Address: ChengDu China

On 2021/5/24, 9:00 AM, "kernel test robot" <rong.a.chen@intel.com> wrote:

    tree:   https://github.com/stffrdhrn/linux.git starfive-bad-dcache-flush
    head:   a5c948a9cc2b8944f00056c067fb7bde19b34843
    commit: c9f02856ce72f3de501b56484ecdc71e261fdaa5 [4/39] drivers/hw_random: Add Starfive VIC Random Number Generator driver
    config: x86_64-randconfig-b001-20210522 (attached as .config)
    compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project e84a9b9bb3051c35dea993cdad7b3d2575638f85)
    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 x86_64 cross compiling tool for clang build
            # apt-get install binutils-x86-64-linux-gnu
            # https://github.com/stffrdhrn/linux/commit/c9f02856ce72f3de501b56484ecdc71e261fdaa5
            git remote add stffrdhrn https://github.com/stffrdhrn/linux.git
            git fetch --no-tags stffrdhrn starfive-bad-dcache-flush
            git checkout c9f02856ce72f3de501b56484ecdc71e261fdaa5
            # save the attached .config to linux build tree
            COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

    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 >>):

    >> drivers/char/hw_random/starfive-vic-rng.c:238:34: warning: unused variable 'vic_rng_dt_ids' [-Wunused-const-variable]
       static const struct of_device_id vic_rng_dt_ids[] = {
                                        ^
       1 warning generated.


    vim +/vic_rng_dt_ids +238 drivers/char/hw_random/starfive-vic-rng.c

    c9f02856ce72f3 Huan Feng 2021-01-08  237  
    c9f02856ce72f3 Huan Feng 2021-01-08 @238  static const struct of_device_id vic_rng_dt_ids[] = {
    c9f02856ce72f3 Huan Feng 2021-01-08  239  	{ .compatible = "starfive,vic-rng" },
    c9f02856ce72f3 Huan Feng 2021-01-08  240  	{ }
    c9f02856ce72f3 Huan Feng 2021-01-08  241  };
    c9f02856ce72f3 Huan Feng 2021-01-08  242  MODULE_DEVICE_TABLE(of, vic_rng_dt_ids);
    c9f02856ce72f3 Huan Feng 2021-01-08  243  

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


[-- Attachment #2: github_starfive.patch --]
[-- Type: application/octet-stream, Size: 965 bytes --]

diff --git a/drivers/char/hw_random/Kconfig b/drivers/char/hw_random/Kconfig
index e517a2f..03036f6 100644
--- a/drivers/char/hw_random/Kconfig
+++ b/drivers/char/hw_random/Kconfig
@@ -337,8 +337,8 @@ config HW_RANDOM_POWERNV

 config HW_RANDOM_STARFIVE_VIC
 	tristate "Starfive VIC Random Number Generator support"
+	depends on SOC_STARFIVE_VIC7100
 	depends on HW_RANDOM
-	default y if SOC_STARFIVE_VIC7100
 	help
 	  This driver provides kernel-side support for the Random Number
 	  Generator hardware found on Starfive VIC SoC.
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index 21c611a..ddaf154 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -517,9 +517,9 @@ config GPIO_SIFIVE

 config GPIO_STARFIVE_VIC
 	bool "Starfive VIC GPIO support"
+	depends on SOC_STARFIVE_VIC7100
 	depends on OF_GPIO
 	select GPIOLIB_IRQCHIP
-	default y if SOC_STARFIVE_VIC7100
 	help
 	  Say yes here to support the GPIO device on Starfive VIC SoCs.


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

* [stffrdhrn:starfive-bad-dcache-flush 4/39] drivers/char/hw_random/starfive-vic-rng.c:238:34: warning: unused variable 'vic_rng_dt_ids'
@ 2021-05-24  0:53 kernel test robot
  2021-05-24  1:40 ` Huan Feng
  0 siblings, 1 reply; 6+ messages in thread
From: kernel test robot @ 2021-05-24  0:53 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://github.com/stffrdhrn/linux.git starfive-bad-dcache-flush
head:   a5c948a9cc2b8944f00056c067fb7bde19b34843
commit: c9f02856ce72f3de501b56484ecdc71e261fdaa5 [4/39] drivers/hw_random: Add Starfive VIC Random Number Generator driver
config: x86_64-randconfig-b001-20210522 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project e84a9b9bb3051c35dea993cdad7b3d2575638f85)
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 x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://github.com/stffrdhrn/linux/commit/c9f02856ce72f3de501b56484ecdc71e261fdaa5
        git remote add stffrdhrn https://github.com/stffrdhrn/linux.git
        git fetch --no-tags stffrdhrn starfive-bad-dcache-flush
        git checkout c9f02856ce72f3de501b56484ecdc71e261fdaa5
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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 >>):

>> drivers/char/hw_random/starfive-vic-rng.c:238:34: warning: unused variable 'vic_rng_dt_ids' [-Wunused-const-variable]
   static const struct of_device_id vic_rng_dt_ids[] = {
                                    ^
   1 warning generated.


vim +/vic_rng_dt_ids +238 drivers/char/hw_random/starfive-vic-rng.c

c9f02856ce72f3 Huan Feng 2021-01-08  237  
c9f02856ce72f3 Huan Feng 2021-01-08 @238  static const struct of_device_id vic_rng_dt_ids[] = {
c9f02856ce72f3 Huan Feng 2021-01-08  239  	{ .compatible = "starfive,vic-rng" },
c9f02856ce72f3 Huan Feng 2021-01-08  240  	{ }
c9f02856ce72f3 Huan Feng 2021-01-08  241  };
c9f02856ce72f3 Huan Feng 2021-01-08  242  MODULE_DEVICE_TABLE(of, vic_rng_dt_ids);
c9f02856ce72f3 Huan Feng 2021-01-08  243  

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

_______________________________________________
kbuild mailing list -- kbuild(a)lists.01.org
To unsubscribe send an email to kbuild-leave(a)lists.01.org

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

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

* [stffrdhrn:starfive-bad-dcache-flush 4/39] drivers/char/hw_random/starfive-vic-rng.c:238:34: warning: unused variable 'vic_rng_dt_ids'
@ 2021-05-22 17:21 kernel test robot
  0 siblings, 0 replies; 6+ messages in thread
From: kernel test robot @ 2021-05-22 17:21 UTC (permalink / raw)
  To: kbuild

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

CC: kbuild-all(a)lists.01.org
CC: clang-built-linux(a)googlegroups.com
TO: Huan Feng <huan.feng@starfivetech.com>
CC: Emil Renner Berthing <kernel@esmil.dk>

tree:   https://github.com/stffrdhrn/linux.git starfive-bad-dcache-flush
head:   a5c948a9cc2b8944f00056c067fb7bde19b34843
commit: c9f02856ce72f3de501b56484ecdc71e261fdaa5 [4/39] drivers/hw_random: Add Starfive VIC Random Number Generator driver
:::::: branch date: 33 hours ago
:::::: commit date: 6 days ago
config: x86_64-randconfig-b001-20210522 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project e84a9b9bb3051c35dea993cdad7b3d2575638f85)
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 x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://github.com/stffrdhrn/linux/commit/c9f02856ce72f3de501b56484ecdc71e261fdaa5
        git remote add stffrdhrn https://github.com/stffrdhrn/linux.git
        git fetch --no-tags stffrdhrn starfive-bad-dcache-flush
        git checkout c9f02856ce72f3de501b56484ecdc71e261fdaa5
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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 >>):

>> drivers/char/hw_random/starfive-vic-rng.c:238:34: warning: unused variable 'vic_rng_dt_ids' [-Wunused-const-variable]
   static const struct of_device_id vic_rng_dt_ids[] = {
                                    ^
   1 warning generated.


vim +/vic_rng_dt_ids +238 drivers/char/hw_random/starfive-vic-rng.c

c9f02856ce72f3 Huan Feng 2021-01-08  237  
c9f02856ce72f3 Huan Feng 2021-01-08 @238  static const struct of_device_id vic_rng_dt_ids[] = {
c9f02856ce72f3 Huan Feng 2021-01-08  239  	{ .compatible = "starfive,vic-rng" },
c9f02856ce72f3 Huan Feng 2021-01-08  240  	{ }
c9f02856ce72f3 Huan Feng 2021-01-08  241  };
c9f02856ce72f3 Huan Feng 2021-01-08  242  MODULE_DEVICE_TABLE(of, vic_rng_dt_ids);
c9f02856ce72f3 Huan Feng 2021-01-08  243  

---
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: 34426 bytes --]

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

end of thread, other threads:[~2021-05-24  6:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-23  8:20 [stffrdhrn:starfive-bad-dcache-flush 4/39] drivers/char/hw_random/starfive-vic-rng.c:238:34: warning: unused variable 'vic_rng_dt_ids' kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2021-05-24  0:53 kernel test robot
2021-05-24  1:40 ` Huan Feng
2021-05-24  2:34   ` Rong Chen
2021-05-24  6:38   ` Rong Chen
2021-05-22 17:21 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.