lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202301060326.qh0NHlzm-lkp@intel.com>
Date:   Fri, 6 Jan 2023 03:49:31 +0800
From:   kernel test robot <lkp@...el.com>
To:     Arnd Bergmann <arnd@...nel.org>,
        Krzysztof Kozlowski <krzk@...nel.org>,
        Sylwester Nawrocki <s.nawrocki@...sung.com>,
        Tomasz Figa <tomasz.figa@...il.com>,
        Chanwoo Choi <cw00.choi@...sung.com>,
        Michael Turquette <mturquette@...libre.com>,
        Stephen Boyd <sboyd@...nel.org>
Cc:     oe-kbuild-all@...ts.linux.dev, Arnd Bergmann <arnd@...db.de>,
        Alim Akhtar <alim.akhtar@...sung.com>,
        Ajay Kumar <ajaykumar.rs@...sung.com>,
        Pankaj Dubey <pankaj.dubey@...sung.com>,
        linux-samsung-soc@...r.kernel.org, linux-clk@...r.kernel.org,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH] clk: samsung: remove s3c24xx specific pll bits

Hi Arnd,

I love your patch! Yet something to improve:

[auto build test ERROR on krzk/for-next]
[also build test ERROR on linus/master v6.2-rc2 next-20230105]
[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/Arnd-Bergmann/clk-samsung-remove-s3c24xx-specific-pll-bits/20230105-221537
base:   https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux.git for-next
patch link:    https://lore.kernel.org/r/20230105141231.2006353-1-arnd%40kernel.org
patch subject: [PATCH] clk: samsung: remove s3c24xx specific pll bits
config: s390-allyesconfig
compiler: s390-linux-gcc (GCC) 12.1.0
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
        # https://github.com/intel-lab-lkp/linux/commit/f3493e33c0b212b32ebc32a7e4fe6e7cf1c325d2
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Arnd-Bergmann/clk-samsung-remove-s3c24xx-specific-pll-bits/20230105-221537
        git checkout f3493e33c0b212b32ebc32a7e4fe6e7cf1c325d2
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=s390 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=s390 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>

All errors (new ones prefixed by >>):

>> drivers/clk/samsung/clk-s3c2410.c:123:9: error: implicit declaration of function 'PLL_S3C2410_MPLL_RATE' [-Werror=implicit-function-declaration]
     123 |         PLL_S3C2410_MPLL_RATE(12 * MHZ, 270000000, 127, 1, 1),
         |         ^~~~~~~~~~~~~~~~~~~~~
>> drivers/clk/samsung/clk-s3c2410.c:123:9: error: initializer element is not constant
   drivers/clk/samsung/clk-s3c2410.c:123:9: note: (near initialization for 'pll_s3c2410_12mhz_tbl[0].rate')
   drivers/clk/samsung/clk-s3c2410.c:124:9: error: initializer element is not constant
     124 |         PLL_S3C2410_MPLL_RATE(12 * MHZ, 268000000, 126, 1, 1),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:124:9: note: (near initialization for 'pll_s3c2410_12mhz_tbl[0].pdiv')
   drivers/clk/samsung/clk-s3c2410.c:125:9: error: initializer element is not constant
     125 |         PLL_S3C2410_MPLL_RATE(12 * MHZ, 266000000, 125, 1, 1),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:125:9: note: (near initialization for 'pll_s3c2410_12mhz_tbl[0].mdiv')
   drivers/clk/samsung/clk-s3c2410.c:126:9: error: initializer element is not constant
     126 |         PLL_S3C2410_MPLL_RATE(12 * MHZ, 226000000, 105, 1, 1),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:126:9: note: (near initialization for 'pll_s3c2410_12mhz_tbl[0].sdiv')
   drivers/clk/samsung/clk-s3c2410.c:127:9: error: initializer element is not constant
     127 |         PLL_S3C2410_MPLL_RATE(12 * MHZ, 210000000, 132, 2, 1),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:127:9: note: (near initialization for 'pll_s3c2410_12mhz_tbl[0].kdiv')
   drivers/clk/samsung/clk-s3c2410.c:129:9: error: initializer element is not constant
     129 |         PLL_S3C2410_MPLL_RATE(12 * MHZ, 202800000, 161, 3, 1),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:129:9: note: (near initialization for 'pll_s3c2410_12mhz_tbl[0].afc')
   drivers/clk/samsung/clk-s3c2410.c:130:9: error: initializer element is not constant
     130 |         PLL_S3C2410_MPLL_RATE(12 * MHZ, 192000000, 88, 1, 1),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:130:9: note: (near initialization for 'pll_s3c2410_12mhz_tbl[0].mfr')
   drivers/clk/samsung/clk-s3c2410.c:131:9: error: initializer element is not constant
     131 |         PLL_S3C2410_MPLL_RATE(12 * MHZ, 186000000, 85, 1, 1),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:131:9: note: (near initialization for 'pll_s3c2410_12mhz_tbl[0].mrr')
   drivers/clk/samsung/clk-s3c2410.c:132:9: error: initializer element is not constant
     132 |         PLL_S3C2410_MPLL_RATE(12 * MHZ, 180000000, 82, 1, 1),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:132:9: note: (near initialization for 'pll_s3c2410_12mhz_tbl[0].vsel')
   drivers/clk/samsung/clk-s3c2410.c:133:9: error: initializer element is not constant
     133 |         PLL_S3C2410_MPLL_RATE(12 * MHZ, 170000000, 77, 1, 1),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:133:9: note: (near initialization for 'pll_s3c2410_12mhz_tbl[1].rate')
   drivers/clk/samsung/clk-s3c2410.c:134:9: error: initializer element is not constant
     134 |         PLL_S3C2410_MPLL_RATE(12 * MHZ, 158000000, 71, 1, 1),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:134:9: note: (near initialization for 'pll_s3c2410_12mhz_tbl[1].pdiv')
   drivers/clk/samsung/clk-s3c2410.c:135:9: error: initializer element is not constant
     135 |         PLL_S3C2410_MPLL_RATE(12 * MHZ, 152000000, 68, 1, 1),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:135:9: note: (near initialization for 'pll_s3c2410_12mhz_tbl[1].mdiv')
   drivers/clk/samsung/clk-s3c2410.c:136:9: error: initializer element is not constant
     136 |         PLL_S3C2410_MPLL_RATE(12 * MHZ, 147000000, 90, 2, 1),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:136:9: note: (near initialization for 'pll_s3c2410_12mhz_tbl[1].sdiv')
   drivers/clk/samsung/clk-s3c2410.c:137:9: error: initializer element is not constant
     137 |         PLL_S3C2410_MPLL_RATE(12 * MHZ, 135000000, 82, 2, 1),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:137:9: note: (near initialization for 'pll_s3c2410_12mhz_tbl[1].kdiv')
   drivers/clk/samsung/clk-s3c2410.c:138:9: error: initializer element is not constant
     138 |         PLL_S3C2410_MPLL_RATE(12 * MHZ, 124000000, 116, 1, 2),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:138:9: note: (near initialization for 'pll_s3c2410_12mhz_tbl[1].afc')
   drivers/clk/samsung/clk-s3c2410.c:139:9: error: initializer element is not constant
     139 |         PLL_S3C2410_MPLL_RATE(12 * MHZ, 118500000, 150, 2, 2),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:139:9: note: (near initialization for 'pll_s3c2410_12mhz_tbl[1].mfr')
   drivers/clk/samsung/clk-s3c2410.c:140:9: error: initializer element is not constant
     140 |         PLL_S3C2410_MPLL_RATE(12 * MHZ, 113000000, 105, 1, 2),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:140:9: note: (near initialization for 'pll_s3c2410_12mhz_tbl[1].mrr')
   drivers/clk/samsung/clk-s3c2410.c:141:9: error: initializer element is not constant
     141 |         PLL_S3C2410_MPLL_RATE(12 * MHZ, 101250000, 127, 2, 2),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:141:9: note: (near initialization for 'pll_s3c2410_12mhz_tbl[1].vsel')
   drivers/clk/samsung/clk-s3c2410.c:142:9: error: initializer element is not constant
     142 |         PLL_S3C2410_MPLL_RATE(12 * MHZ, 90000000, 112, 2, 2),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:142:9: note: (near initialization for 'pll_s3c2410_12mhz_tbl[2].rate')
   drivers/clk/samsung/clk-s3c2410.c:143:9: error: initializer element is not constant
     143 |         PLL_S3C2410_MPLL_RATE(12 * MHZ, 84750000, 105, 2, 2),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:143:9: note: (near initialization for 'pll_s3c2410_12mhz_tbl[2].pdiv')
   drivers/clk/samsung/clk-s3c2410.c:144:9: error: initializer element is not constant
     144 |         PLL_S3C2410_MPLL_RATE(12 * MHZ, 79000000, 71, 1, 2),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:144:9: note: (near initialization for 'pll_s3c2410_12mhz_tbl[2].mdiv')
   drivers/clk/samsung/clk-s3c2410.c:145:9: error: initializer element is not constant
     145 |         PLL_S3C2410_MPLL_RATE(12 * MHZ, 67500000, 82, 2, 2),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:145:9: note: (near initialization for 'pll_s3c2410_12mhz_tbl[2].sdiv')
   drivers/clk/samsung/clk-s3c2410.c:146:9: error: initializer element is not constant
     146 |         PLL_S3C2410_MPLL_RATE(12 * MHZ, 56250000, 142, 2, 3),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:146:9: note: (near initialization for 'pll_s3c2410_12mhz_tbl[2].kdiv')
   drivers/clk/samsung/clk-s3c2410.c:147:9: error: initializer element is not constant
     147 |         PLL_S3C2410_MPLL_RATE(12 * MHZ, 48000000, 120, 2, 3),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:147:9: note: (near initialization for 'pll_s3c2410_12mhz_tbl[2].afc')
   drivers/clk/samsung/clk-s3c2410.c:148:9: error: initializer element is not constant
     148 |         PLL_S3C2410_MPLL_RATE(12 * MHZ, 50700000, 161, 3, 3),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:148:9: note: (near initialization for 'pll_s3c2410_12mhz_tbl[2].mfr')
   drivers/clk/samsung/clk-s3c2410.c:149:9: error: initializer element is not constant
     149 |         PLL_S3C2410_MPLL_RATE(12 * MHZ, 45000000, 82, 1, 3),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:149:9: note: (near initialization for 'pll_s3c2410_12mhz_tbl[2].mrr')
   drivers/clk/samsung/clk-s3c2410.c:150:9: error: initializer element is not constant
     150 |         PLL_S3C2410_MPLL_RATE(12 * MHZ, 33750000, 82, 2, 3),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:150:9: note: (near initialization for 'pll_s3c2410_12mhz_tbl[2].vsel')
   In file included from drivers/clk/samsung/clk-s3c2410.c:15:
>> drivers/clk/samsung/clk-s3c2410.c:155:22: error: 'pll_s3c2410_mpll' undeclared here (not in a function); did you mean 's3c2410_plls'?
     155 |         [mpll] = PLL(pll_s3c2410_mpll, MPLL, "mpll", "xti",
         |                      ^~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk.h:261:35: note: in definition of macro '__PLL'
     261 |                 .type           = _typ,                                 \
         |                                   ^~~~
   drivers/clk/samsung/clk-s3c2410.c:155:18: note: in expansion of macro 'PLL'
     155 |         [mpll] = PLL(pll_s3c2410_mpll, MPLL, "mpll", "xti",
         |                  ^~~
>> drivers/clk/samsung/clk-s3c2410.c:157:22: error: 'pll_s3c2410_upll' undeclared here (not in a function); did you mean 's3c2410_plls'?
     157 |         [upll] = PLL(pll_s3c2410_upll, UPLL, "upll", "xti",
         |                      ^~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk.h:261:35: note: in definition of macro '__PLL'
     261 |                 .type           = _typ,                                 \
         |                                   ^~~~
   drivers/clk/samsung/clk-s3c2410.c:157:18: note: in expansion of macro 'PLL'
     157 |         [upll] = PLL(pll_s3c2410_upll, UPLL, "upll", "xti",
         |                  ^~~
>> drivers/clk/samsung/clk-s3c2410.c:190:9: error: implicit declaration of function 'PLL_S3C2440_MPLL_RATE' [-Werror=implicit-function-declaration]
     190 |         PLL_S3C2440_MPLL_RATE(12 * MHZ, 400000000, 0x5c, 1, 1),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:190:9: error: initializer element is not constant
   drivers/clk/samsung/clk-s3c2410.c:190:9: note: (near initialization for 'pll_s3c244x_12mhz_tbl[0].rate')
   drivers/clk/samsung/clk-s3c2410.c:191:9: error: initializer element is not constant
     191 |         PLL_S3C2440_MPLL_RATE(12 * MHZ, 390000000, 0x7a, 2, 1),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:191:9: note: (near initialization for 'pll_s3c244x_12mhz_tbl[0].pdiv')
   drivers/clk/samsung/clk-s3c2410.c:192:9: error: initializer element is not constant
     192 |         PLL_S3C2440_MPLL_RATE(12 * MHZ, 380000000, 0x57, 1, 1),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:192:9: note: (near initialization for 'pll_s3c244x_12mhz_tbl[0].mdiv')
   drivers/clk/samsung/clk-s3c2410.c:193:9: error: initializer element is not constant
     193 |         PLL_S3C2440_MPLL_RATE(12 * MHZ, 370000000, 0xb1, 4, 1),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:193:9: note: (near initialization for 'pll_s3c244x_12mhz_tbl[0].sdiv')
   drivers/clk/samsung/clk-s3c2410.c:194:9: error: initializer element is not constant
     194 |         PLL_S3C2440_MPLL_RATE(12 * MHZ, 360000000, 0x70, 2, 1),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:194:9: note: (near initialization for 'pll_s3c244x_12mhz_tbl[0].kdiv')
   drivers/clk/samsung/clk-s3c2410.c:195:9: error: initializer element is not constant
     195 |         PLL_S3C2440_MPLL_RATE(12 * MHZ, 350000000, 0xa7, 4, 1),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:195:9: note: (near initialization for 'pll_s3c244x_12mhz_tbl[0].afc')
   drivers/clk/samsung/clk-s3c2410.c:196:9: error: initializer element is not constant
     196 |         PLL_S3C2440_MPLL_RATE(12 * MHZ, 340000000, 0x4d, 1, 1),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:196:9: note: (near initialization for 'pll_s3c244x_12mhz_tbl[0].mfr')
   drivers/clk/samsung/clk-s3c2410.c:197:9: error: initializer element is not constant
     197 |         PLL_S3C2440_MPLL_RATE(12 * MHZ, 330000000, 0x66, 2, 1),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:197:9: note: (near initialization for 'pll_s3c244x_12mhz_tbl[0].mrr')
   drivers/clk/samsung/clk-s3c2410.c:198:9: error: initializer element is not constant
     198 |         PLL_S3C2440_MPLL_RATE(12 * MHZ, 320000000, 0x98, 4, 1),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:198:9: note: (near initialization for 'pll_s3c244x_12mhz_tbl[0].vsel')
   drivers/clk/samsung/clk-s3c2410.c:199:9: error: initializer element is not constant
     199 |         PLL_S3C2440_MPLL_RATE(12 * MHZ, 310000000, 0x93, 4, 1),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:199:9: note: (near initialization for 'pll_s3c244x_12mhz_tbl[1].rate')
   drivers/clk/samsung/clk-s3c2410.c:200:9: error: initializer element is not constant
     200 |         PLL_S3C2440_MPLL_RATE(12 * MHZ, 300000000, 0x75, 3, 1),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:200:9: note: (near initialization for 'pll_s3c244x_12mhz_tbl[1].pdiv')
   drivers/clk/samsung/clk-s3c2410.c:201:9: error: initializer element is not constant
     201 |         PLL_S3C2440_MPLL_RATE(12 * MHZ, 240000000, 0x70, 1, 2),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:201:9: note: (near initialization for 'pll_s3c244x_12mhz_tbl[1].mdiv')
   drivers/clk/samsung/clk-s3c2410.c:202:9: error: initializer element is not constant
     202 |         PLL_S3C2440_MPLL_RATE(12 * MHZ, 230000000, 0x6b, 1, 2),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:202:9: note: (near initialization for 'pll_s3c244x_12mhz_tbl[1].sdiv')
   drivers/clk/samsung/clk-s3c2410.c:203:9: error: initializer element is not constant
     203 |         PLL_S3C2440_MPLL_RATE(12 * MHZ, 220000000, 0x66, 1, 2),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:203:9: note: (near initialization for 'pll_s3c244x_12mhz_tbl[1].kdiv')
   drivers/clk/samsung/clk-s3c2410.c:204:9: error: initializer element is not constant
     204 |         PLL_S3C2440_MPLL_RATE(12 * MHZ, 210000000, 0x84, 2, 2),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:204:9: note: (near initialization for 'pll_s3c244x_12mhz_tbl[1].afc')
   drivers/clk/samsung/clk-s3c2410.c:205:9: error: initializer element is not constant
     205 |         PLL_S3C2440_MPLL_RATE(12 * MHZ, 200000000, 0x5c, 1, 2),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:205:9: note: (near initialization for 'pll_s3c244x_12mhz_tbl[1].mfr')
   drivers/clk/samsung/clk-s3c2410.c:206:9: error: initializer element is not constant
     206 |         PLL_S3C2440_MPLL_RATE(12 * MHZ, 190000000, 0x57, 1, 2),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:206:9: note: (near initialization for 'pll_s3c244x_12mhz_tbl[1].mrr')
   drivers/clk/samsung/clk-s3c2410.c:207:9: error: initializer element is not constant
     207 |         PLL_S3C2440_MPLL_RATE(12 * MHZ, 180000000, 0x70, 2, 2),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:207:9: note: (near initialization for 'pll_s3c244x_12mhz_tbl[1].vsel')
   drivers/clk/samsung/clk-s3c2410.c:208:9: error: initializer element is not constant
     208 |         PLL_S3C2440_MPLL_RATE(12 * MHZ, 170000000, 0x4d, 1, 2),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:208:9: note: (near initialization for 'pll_s3c244x_12mhz_tbl[2].rate')
   drivers/clk/samsung/clk-s3c2410.c:209:9: error: initializer element is not constant
     209 |         PLL_S3C2440_MPLL_RATE(12 * MHZ, 160000000, 0x98, 4, 2),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:209:9: note: (near initialization for 'pll_s3c244x_12mhz_tbl[2].pdiv')
   drivers/clk/samsung/clk-s3c2410.c:210:9: error: initializer element is not constant
     210 |         PLL_S3C2440_MPLL_RATE(12 * MHZ, 150000000, 0x75, 3, 2),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:210:9: note: (near initialization for 'pll_s3c244x_12mhz_tbl[2].mdiv')
   drivers/clk/samsung/clk-s3c2410.c:211:9: error: initializer element is not constant
     211 |         PLL_S3C2440_MPLL_RATE(12 * MHZ, 120000000, 0x70, 1, 3),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:211:9: note: (near initialization for 'pll_s3c244x_12mhz_tbl[2].sdiv')
   drivers/clk/samsung/clk-s3c2410.c:212:9: error: initializer element is not constant
     212 |         PLL_S3C2440_MPLL_RATE(12 * MHZ, 110000000, 0x66, 1, 3),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:212:9: note: (near initialization for 'pll_s3c244x_12mhz_tbl[2].kdiv')
   drivers/clk/samsung/clk-s3c2410.c:213:9: error: initializer element is not constant
     213 |         PLL_S3C2440_MPLL_RATE(12 * MHZ, 100000000, 0x5c, 1, 3),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:213:9: note: (near initialization for 'pll_s3c244x_12mhz_tbl[2].afc')
   drivers/clk/samsung/clk-s3c2410.c:214:9: error: initializer element is not constant
     214 |         PLL_S3C2440_MPLL_RATE(12 * MHZ, 90000000, 0x70, 2, 3),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:214:9: note: (near initialization for 'pll_s3c244x_12mhz_tbl[2].mfr')
   drivers/clk/samsung/clk-s3c2410.c:215:9: error: initializer element is not constant
     215 |         PLL_S3C2440_MPLL_RATE(12 * MHZ, 80000000, 0x98, 4, 3),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:215:9: note: (near initialization for 'pll_s3c244x_12mhz_tbl[2].mrr')
   drivers/clk/samsung/clk-s3c2410.c:216:9: error: initializer element is not constant
     216 |         PLL_S3C2440_MPLL_RATE(12 * MHZ, 75000000, 0x75, 3, 3),
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk-s3c2410.c:216:9: note: (near initialization for 'pll_s3c244x_12mhz_tbl[2].vsel')
>> drivers/clk/samsung/clk-s3c2410.c:221:22: error: 'pll_s3c2440_mpll' undeclared here (not in a function)
     221 |         [mpll] = PLL(pll_s3c2440_mpll, MPLL, "mpll", "xti",
         |                      ^~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk.h:261:35: note: in definition of macro '__PLL'
     261 |                 .type           = _typ,                                 \
         |                                   ^~~~
   drivers/clk/samsung/clk-s3c2410.c:221:18: note: in expansion of macro 'PLL'
     221 |         [mpll] = PLL(pll_s3c2440_mpll, MPLL, "mpll", "xti",
         |                  ^~~
   cc1: some warnings being treated as errors
--
   In file included from drivers/clk/samsung/clk-s3c2412.c:17:
>> drivers/clk/samsung/clk-s3c2412.c:101:13: error: 'pll_s3c2440_mpll' undeclared here (not in a function)
     101 |         PLL(pll_s3c2440_mpll, MPLL, "mpll", "xti", LOCKTIME, MPLLCON, NULL),
         |             ^~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk.h:261:35: note: in definition of macro '__PLL'
     261 |                 .type           = _typ,                                 \
         |                                   ^~~~
   drivers/clk/samsung/clk-s3c2412.c:101:9: note: in expansion of macro 'PLL'
     101 |         PLL(pll_s3c2440_mpll, MPLL, "mpll", "xti", LOCKTIME, MPLLCON, NULL),
         |         ^~~
>> drivers/clk/samsung/clk-s3c2412.c:102:13: error: 'pll_s3c2410_upll' undeclared here (not in a function)
     102 |         PLL(pll_s3c2410_upll, UPLL, "upll", "urefclk", LOCKTIME, UPLLCON, NULL),
         |             ^~~~~~~~~~~~~~~~
   drivers/clk/samsung/clk.h:261:35: note: in definition of macro '__PLL'
     261 |                 .type           = _typ,                                 \
         |                                   ^~~~
   drivers/clk/samsung/clk-s3c2412.c:102:9: note: in expansion of macro 'PLL'
     102 |         PLL(pll_s3c2410_upll, UPLL, "upll", "urefclk", LOCKTIME, UPLLCON, NULL),
         |         ^~~


vim +/PLL_S3C2410_MPLL_RATE +123 drivers/clk/samsung/clk-s3c2410.c

3f7c01ade226e7 Heiko Stuebner 2014-05-09  119  
3f7c01ade226e7 Heiko Stuebner 2014-05-09  120  static struct samsung_pll_rate_table pll_s3c2410_12mhz_tbl[] __initdata = {
3f7c01ade226e7 Heiko Stuebner 2014-05-09  121  	/* sorted in descending order */
3f7c01ade226e7 Heiko Stuebner 2014-05-09  122  	/* 2410A extras */
1d5013f1b64dbd Andrzej Hajda  2018-02-20 @123  	PLL_S3C2410_MPLL_RATE(12 * MHZ, 270000000, 127, 1, 1),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  124  	PLL_S3C2410_MPLL_RATE(12 * MHZ, 268000000, 126, 1, 1),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  125  	PLL_S3C2410_MPLL_RATE(12 * MHZ, 266000000, 125, 1, 1),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  126  	PLL_S3C2410_MPLL_RATE(12 * MHZ, 226000000, 105, 1, 1),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  127  	PLL_S3C2410_MPLL_RATE(12 * MHZ, 210000000, 132, 2, 1),
3f7c01ade226e7 Heiko Stuebner 2014-05-09  128  	/* 2410 common */
1d5013f1b64dbd Andrzej Hajda  2018-02-20  129  	PLL_S3C2410_MPLL_RATE(12 * MHZ, 202800000, 161, 3, 1),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  130  	PLL_S3C2410_MPLL_RATE(12 * MHZ, 192000000, 88, 1, 1),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  131  	PLL_S3C2410_MPLL_RATE(12 * MHZ, 186000000, 85, 1, 1),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  132  	PLL_S3C2410_MPLL_RATE(12 * MHZ, 180000000, 82, 1, 1),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  133  	PLL_S3C2410_MPLL_RATE(12 * MHZ, 170000000, 77, 1, 1),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  134  	PLL_S3C2410_MPLL_RATE(12 * MHZ, 158000000, 71, 1, 1),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  135  	PLL_S3C2410_MPLL_RATE(12 * MHZ, 152000000, 68, 1, 1),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  136  	PLL_S3C2410_MPLL_RATE(12 * MHZ, 147000000, 90, 2, 1),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  137  	PLL_S3C2410_MPLL_RATE(12 * MHZ, 135000000, 82, 2, 1),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  138  	PLL_S3C2410_MPLL_RATE(12 * MHZ, 124000000, 116, 1, 2),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  139  	PLL_S3C2410_MPLL_RATE(12 * MHZ, 118500000, 150, 2, 2),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  140  	PLL_S3C2410_MPLL_RATE(12 * MHZ, 113000000, 105, 1, 2),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  141  	PLL_S3C2410_MPLL_RATE(12 * MHZ, 101250000, 127, 2, 2),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  142  	PLL_S3C2410_MPLL_RATE(12 * MHZ, 90000000, 112, 2, 2),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  143  	PLL_S3C2410_MPLL_RATE(12 * MHZ, 84750000, 105, 2, 2),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  144  	PLL_S3C2410_MPLL_RATE(12 * MHZ, 79000000, 71, 1, 2),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  145  	PLL_S3C2410_MPLL_RATE(12 * MHZ, 67500000, 82, 2, 2),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  146  	PLL_S3C2410_MPLL_RATE(12 * MHZ, 56250000, 142, 2, 3),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  147  	PLL_S3C2410_MPLL_RATE(12 * MHZ, 48000000, 120, 2, 3),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  148  	PLL_S3C2410_MPLL_RATE(12 * MHZ, 50700000, 161, 3, 3),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  149  	PLL_S3C2410_MPLL_RATE(12 * MHZ, 45000000, 82, 1, 3),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  150  	PLL_S3C2410_MPLL_RATE(12 * MHZ, 33750000, 82, 2, 3),
3f7c01ade226e7 Heiko Stuebner 2014-05-09  151  	{ /* sentinel */ },
3f7c01ade226e7 Heiko Stuebner 2014-05-09  152  };
3f7c01ade226e7 Heiko Stuebner 2014-05-09  153  
3f7c01ade226e7 Heiko Stuebner 2014-05-09  154  static struct samsung_pll_clock s3c2410_plls[] __initdata = {
3f7c01ade226e7 Heiko Stuebner 2014-05-09 @155  	[mpll] = PLL(pll_s3c2410_mpll, MPLL, "mpll", "xti",
3f7c01ade226e7 Heiko Stuebner 2014-05-09  156  						LOCKTIME, MPLLCON, NULL),
3f7c01ade226e7 Heiko Stuebner 2014-05-09 @157  	[upll] = PLL(pll_s3c2410_upll, UPLL, "upll", "xti",
3f7c01ade226e7 Heiko Stuebner 2014-05-09  158  						LOCKTIME, UPLLCON, NULL),
3f7c01ade226e7 Heiko Stuebner 2014-05-09  159  };
3f7c01ade226e7 Heiko Stuebner 2014-05-09  160  
1871f0fcba5deb Stephen Boyd   2018-03-16  161  static struct samsung_div_clock s3c2410_dividers[] __initdata = {
3f7c01ade226e7 Heiko Stuebner 2014-05-09  162  	DIV(HCLK, "hclk", "mpll", CLKDIVN, 1, 1),
3f7c01ade226e7 Heiko Stuebner 2014-05-09  163  };
3f7c01ade226e7 Heiko Stuebner 2014-05-09  164  
1871f0fcba5deb Stephen Boyd   2018-03-16  165  static struct samsung_fixed_factor_clock s3c2410_ffactor[] __initdata = {
3f7c01ade226e7 Heiko Stuebner 2014-05-09  166  	/*
3f7c01ade226e7 Heiko Stuebner 2014-05-09  167  	 * armclk is directly supplied by the fclk, without
3f7c01ade226e7 Heiko Stuebner 2014-05-09  168  	 * switching possibility like on the s3c244x below.
3f7c01ade226e7 Heiko Stuebner 2014-05-09  169  	 */
3f7c01ade226e7 Heiko Stuebner 2014-05-09  170  	FFACTOR(ARMCLK, "armclk", "fclk", 1, 1, 0),
3f7c01ade226e7 Heiko Stuebner 2014-05-09  171  
3f7c01ade226e7 Heiko Stuebner 2014-05-09  172  	/* uclk is fed from the unmodified upll */
3f7c01ade226e7 Heiko Stuebner 2014-05-09  173  	FFACTOR(UCLK, "uclk", "upll", 1, 1, 0),
3f7c01ade226e7 Heiko Stuebner 2014-05-09  174  };
3f7c01ade226e7 Heiko Stuebner 2014-05-09  175  
1871f0fcba5deb Stephen Boyd   2018-03-16  176  static struct samsung_clock_alias s3c2410_aliases[] __initdata = {
3f7c01ade226e7 Heiko Stuebner 2014-05-09  177  	ALIAS(PCLK_UART0, "s3c2410-uart.0", "uart"),
3f7c01ade226e7 Heiko Stuebner 2014-05-09  178  	ALIAS(PCLK_UART1, "s3c2410-uart.1", "uart"),
3f7c01ade226e7 Heiko Stuebner 2014-05-09  179  	ALIAS(PCLK_UART2, "s3c2410-uart.2", "uart"),
3f7c01ade226e7 Heiko Stuebner 2014-05-09  180  	ALIAS(PCLK_UART0, "s3c2410-uart.0", "clk_uart_baud0"),
3f7c01ade226e7 Heiko Stuebner 2014-05-09  181  	ALIAS(PCLK_UART1, "s3c2410-uart.1", "clk_uart_baud0"),
3f7c01ade226e7 Heiko Stuebner 2014-05-09  182  	ALIAS(PCLK_UART2, "s3c2410-uart.2", "clk_uart_baud0"),
3f7c01ade226e7 Heiko Stuebner 2014-05-09  183  	ALIAS(UCLK, NULL, "clk_uart_baud1"),
3f7c01ade226e7 Heiko Stuebner 2014-05-09  184  };
3f7c01ade226e7 Heiko Stuebner 2014-05-09  185  
3f7c01ade226e7 Heiko Stuebner 2014-05-09  186  /* S3C244x specific clocks */
3f7c01ade226e7 Heiko Stuebner 2014-05-09  187  
3f7c01ade226e7 Heiko Stuebner 2014-05-09  188  static struct samsung_pll_rate_table pll_s3c244x_12mhz_tbl[] __initdata = {
3f7c01ade226e7 Heiko Stuebner 2014-05-09  189  	/* sorted in descending order */
1d5013f1b64dbd Andrzej Hajda  2018-02-20 @190  	PLL_S3C2440_MPLL_RATE(12 * MHZ, 400000000, 0x5c, 1, 1),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  191  	PLL_S3C2440_MPLL_RATE(12 * MHZ, 390000000, 0x7a, 2, 1),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  192  	PLL_S3C2440_MPLL_RATE(12 * MHZ, 380000000, 0x57, 1, 1),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  193  	PLL_S3C2440_MPLL_RATE(12 * MHZ, 370000000, 0xb1, 4, 1),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  194  	PLL_S3C2440_MPLL_RATE(12 * MHZ, 360000000, 0x70, 2, 1),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  195  	PLL_S3C2440_MPLL_RATE(12 * MHZ, 350000000, 0xa7, 4, 1),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  196  	PLL_S3C2440_MPLL_RATE(12 * MHZ, 340000000, 0x4d, 1, 1),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  197  	PLL_S3C2440_MPLL_RATE(12 * MHZ, 330000000, 0x66, 2, 1),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  198  	PLL_S3C2440_MPLL_RATE(12 * MHZ, 320000000, 0x98, 4, 1),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  199  	PLL_S3C2440_MPLL_RATE(12 * MHZ, 310000000, 0x93, 4, 1),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  200  	PLL_S3C2440_MPLL_RATE(12 * MHZ, 300000000, 0x75, 3, 1),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  201  	PLL_S3C2440_MPLL_RATE(12 * MHZ, 240000000, 0x70, 1, 2),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  202  	PLL_S3C2440_MPLL_RATE(12 * MHZ, 230000000, 0x6b, 1, 2),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  203  	PLL_S3C2440_MPLL_RATE(12 * MHZ, 220000000, 0x66, 1, 2),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  204  	PLL_S3C2440_MPLL_RATE(12 * MHZ, 210000000, 0x84, 2, 2),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  205  	PLL_S3C2440_MPLL_RATE(12 * MHZ, 200000000, 0x5c, 1, 2),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  206  	PLL_S3C2440_MPLL_RATE(12 * MHZ, 190000000, 0x57, 1, 2),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  207  	PLL_S3C2440_MPLL_RATE(12 * MHZ, 180000000, 0x70, 2, 2),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  208  	PLL_S3C2440_MPLL_RATE(12 * MHZ, 170000000, 0x4d, 1, 2),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  209  	PLL_S3C2440_MPLL_RATE(12 * MHZ, 160000000, 0x98, 4, 2),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  210  	PLL_S3C2440_MPLL_RATE(12 * MHZ, 150000000, 0x75, 3, 2),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  211  	PLL_S3C2440_MPLL_RATE(12 * MHZ, 120000000, 0x70, 1, 3),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  212  	PLL_S3C2440_MPLL_RATE(12 * MHZ, 110000000, 0x66, 1, 3),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  213  	PLL_S3C2440_MPLL_RATE(12 * MHZ, 100000000, 0x5c, 1, 3),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  214  	PLL_S3C2440_MPLL_RATE(12 * MHZ, 90000000, 0x70, 2, 3),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  215  	PLL_S3C2440_MPLL_RATE(12 * MHZ, 80000000, 0x98, 4, 3),
1d5013f1b64dbd Andrzej Hajda  2018-02-20  216  	PLL_S3C2440_MPLL_RATE(12 * MHZ, 75000000, 0x75, 3, 3),
3f7c01ade226e7 Heiko Stuebner 2014-05-09  217  	{ /* sentinel */ },
3f7c01ade226e7 Heiko Stuebner 2014-05-09  218  };
3f7c01ade226e7 Heiko Stuebner 2014-05-09  219  
3f7c01ade226e7 Heiko Stuebner 2014-05-09  220  static struct samsung_pll_clock s3c244x_common_plls[] __initdata = {
3f7c01ade226e7 Heiko Stuebner 2014-05-09 @221  	[mpll] = PLL(pll_s3c2440_mpll, MPLL, "mpll", "xti",
3f7c01ade226e7 Heiko Stuebner 2014-05-09  222  						LOCKTIME, MPLLCON, NULL),
3f7c01ade226e7 Heiko Stuebner 2014-05-09  223  	[upll] = PLL(pll_s3c2410_upll, UPLL, "upll", "xti",
3f7c01ade226e7 Heiko Stuebner 2014-05-09  224  						LOCKTIME, UPLLCON, NULL),
3f7c01ade226e7 Heiko Stuebner 2014-05-09  225  };
3f7c01ade226e7 Heiko Stuebner 2014-05-09  226  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

View attachment "config" of type "text/plain" (311941 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ