linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: kbuild-all@lists.01.org,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: [linux-next:master 7132/12612] arch/m68k/coldfire/m525x.c:29:30: error: 'pll' undeclared here (not in a function)
Date: Thu, 24 Jun 2021 19:37:23 +0800	[thread overview]
Message-ID: <202106241918.v0vcL52F-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   d61c8b66c84080ecf8f9f4d9272ab4ec78029a59
commit: 63aadb77669a6856b26d73da85b4f788731524a3 [7132/12612] m68k: coldfire: use clkdev_lookup on most coldfire
config: m68k-randconfig-r014-20210624 (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.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://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=63aadb77669a6856b26d73da85b4f788731524a3
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 63aadb77669a6856b26d73da85b4f788731524a3
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k 

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

All errors (new ones prefixed by >>):

   In file included from arch/m68k/coldfire/m525x.c:12:
>> arch/m68k/coldfire/m525x.c:29:30: error: 'pll' undeclared here (not in a function)
      29 |  CLKDEV_INIT(NULL, "pll.0", &pll),
         |                              ^~~
   include/linux/clkdev.h:30:10: note: in definition of macro 'CLKDEV_INIT'
      30 |   .clk = c, \
         |          ^
   In file included from arch/m68k/coldfire/m525x.c:21:
   arch/m68k/include/asm/mcfclk.h:47:27: warning: 'clk_pll' defined but not used [-Wunused-variable]
      47 |         static struct clk clk_##clk_ref = { \
         |                           ^~~~
   arch/m68k/coldfire/m525x.c:25:1: note: in expansion of macro 'DEFINE_CLK'
      25 | DEFINE_CLK(pll, "pll.0", MCF_CLK);
         | ^~~~~~~~~~


vim +/pll +29 arch/m68k/coldfire/m525x.c

    11	
  > 12	#include <linux/clkdev.h>
    13	#include <linux/kernel.h>
    14	#include <linux/param.h>
    15	#include <linux/init.h>
    16	#include <linux/io.h>
    17	#include <linux/platform_device.h>
    18	#include <asm/machdep.h>
    19	#include <asm/coldfire.h>
    20	#include <asm/mcfsim.h>
    21	#include <asm/mcfclk.h>
    22	
    23	/***************************************************************************/
    24	
    25	DEFINE_CLK(pll, "pll.0", MCF_CLK);
    26	DEFINE_CLK(sys, "sys.0", MCF_BUSCLK);
    27	
    28	static struct clk_lookup m525x_clk_lookup[] = {
  > 29		CLKDEV_INIT(NULL, "pll.0", &pll),
    30		CLKDEV_INIT(NULL, "sys.0", &clk_sys),
    31		CLKDEV_INIT("mcftmr.0", NULL, &clk_sys),
    32		CLKDEV_INIT("mcftmr.1", NULL, &clk_sys),
    33		CLKDEV_INIT("mcfuart.0", NULL, &clk_sys),
    34		CLKDEV_INIT("mcfuart.1", NULL, &clk_sys),
    35		CLKDEV_INIT("mcfqspi.0", NULL, &clk_sys),
    36		CLKDEV_INIT("imx1-i2c.0", NULL, &clk_sys),
    37		CLKDEV_INIT("imx1-i2c.1", NULL, &clk_sys),
    38	};
    39	

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

                 reply	other threads:[~2021-06-24 11:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202106241918.v0vcL52F-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=arnd@arndb.de \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-mm@kvack.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).