[geert-renesas-drivers:renesas-clk-for-v5.19 46/47] drivers/clk/renesas/r9a09g011-cpg.c:118:9: sparse: sparse: Using plain integer as NULL pointer

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git renesas-clk-for-v5.19
head:   2e0e144796fb5cfa637384f1e3ffc045c40bc4ca
commit: 6bca154251df4bdc32391965a49d90e143f272ff [46/47] clk: renesas: Add RZ/V2M support using the rzg2l driver
config: parisc-randconfig-s032-20220506 (https://download.01.org/0day-ci/archive/20220506/202205061401.IHqhpmgm-lkp@xxxxxxxxx/config)
compiler: hppa-linux-gcc (GCC) 11.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.4-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git/commit/?id=6bca154251df4bdc32391965a49d90e143f272ff
        git remote add geert-renesas-drivers https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git
        git fetch --no-tags geert-renesas-drivers renesas-clk-for-v5.19
        git checkout 6bca154251df4bdc32391965a49d90e143f272ff
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=parisc SHELL=/bin/bash drivers/clk/renesas/

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


sparse warnings: (new ones prefixed by >>)
>> drivers/clk/renesas/r9a09g011-cpg.c:118:9: sparse: sparse: Using plain integer as NULL pointer

vim +118 drivers/clk/renesas/r9a09g011-cpg.c

    99	
   100	static const struct cpg_core_clk r9a09g011_core_clks[] __initconst = {
   101		/* External Clock Inputs */
   102		DEF_INPUT("extal",	CLK_EXTAL),
   103	
   104		/* Internal Core Clocks */
   105		DEF_FIXED(".main",	CLK_MAIN,	CLK_EXTAL,	1,	1),
   106		DEF_FIXED(".main_24",	CLK_MAIN_24,	CLK_MAIN,	1,	2),
   107		DEF_FIXED(".main_2",	CLK_MAIN_2,	CLK_MAIN,	1,	24),
   108		DEF_FIXED(".pll1",	CLK_PLL1,	CLK_MAIN_2,	498,	1),
   109		DEF_FIXED(".pll2",	CLK_PLL2,	CLK_MAIN_2,	800,	1),
   110		DEF_FIXED(".pll2_800",	CLK_PLL2_800,	CLK_PLL2,	1,	2),
   111		DEF_FIXED(".pll2_400",	CLK_PLL2_400,	CLK_PLL2_800,	1,	2),
   112		DEF_FIXED(".pll2_200",	CLK_PLL2_200,	CLK_PLL2_800,	1,	4),
   113		DEF_FIXED(".pll2_100",	CLK_PLL2_100,	CLK_PLL2_800,	1,	8),
   114		DEF_SAMPLL(".pll4",	CLK_PLL4,	CLK_MAIN_2,	PLL4_CONF),
   115	
   116		DEF_DIV_RO(".diva",	CLK_DIV_A,	CLK_PLL1,	DIV_A,	dtable_diva),
   117		DEF_DIV_RO(".divb",	CLK_DIV_B,	CLK_PLL2_400,	DIV_B,	dtable_divb),
 > 118		DEF_DIV_RO(".dive",	CLK_DIV_E,	CLK_PLL2_100,	DIV_E,	0),
   119		DEF_DIV_RO(".divw",	CLK_DIV_W,	CLK_PLL4,	DIV_W,	dtable_divw),
   120	
   121		DEF_MUX_RO(".selb",	CLK_SEL_B,	SEL_B,		sel_b),
   122		DEF_MUX_RO(".sele",	CLK_SEL_E,	SEL_E,		sel_e),
   123		DEF_MUX(".selw0",	CLK_SEL_W0,	SEL_W0,		sel_w),
   124	
   125		DEF_FIXED(".selb_d2",	CLK_SEL_B_D2,	CLK_SEL_B,	1,	2),
   126	};
   127	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp



[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux