mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Zhao Qunqin <zhaoqunqin@loongson.cn>,
	robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
	chenhuacai@kernel.org, bp@alien8.de
Cc: oe-kbuild-all@lists.linux.dev, linux-edac@vger.kernel.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	kernel@xen0n.name, tony.luck@intel.com, james.morse@arm.com,
	mchehab@kernel.org, rric@kernel.org, loongarch@lists.linux.dev,
	Zhao Qunqin <zhaoqunqin@loongson.cn>
Subject: Re: [PATCH v7 2/2] EDAC: Add EDAC driver for loongson memory controller
Date: Mon, 11 Nov 2024 20:01:04 +0800	[thread overview]
Message-ID: <202411111918.lhNjQmXB-lkp@intel.com> (raw)
In-Reply-To: <20241111060939.5349-3-zhaoqunqin@loongson.cn>

Hi Zhao,

kernel test robot noticed the following build errors:

[auto build test ERROR on e14232afa94445e03fc3a0291b07a68f3408c120]

url:    https://github.com/intel-lab-lkp/linux/commits/Zhao-Qunqin/dt-bindings-EDAC-for-ls3a5000-memory-controller/20241111-141155
base:   e14232afa94445e03fc3a0291b07a68f3408c120
patch link:    https://lore.kernel.org/r/20241111060939.5349-3-zhaoqunqin%40loongson.cn
patch subject: [PATCH v7 2/2] EDAC: Add EDAC driver for loongson memory controller
config: i386-allmodconfig (https://download.01.org/0day-ci/archive/20241111/202411111918.lhNjQmXB-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241111/202411111918.lhNjQmXB-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411111918.lhNjQmXB-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/edac/loongson_edac.c: In function 'read_ecc':
>> drivers/edac/loongson_edac.c:28:15: error: implicit declaration of function 'readq'; did you mean 'readl'? [-Werror=implicit-function-declaration]
      28 |         ecc = readq(pvt->ecc_base + ECC_CS_COUNT_REG);
         |               ^~~~~
         |               readl
   cc1: some warnings being treated as errors

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for GET_FREE_REGION
   Depends on [n]: SPARSEMEM [=n]
   Selected by [m]:
   - RESOURCE_KUNIT_TEST [=m] && RUNTIME_TESTING_MENU [=y] && KUNIT [=m]


vim +28 drivers/edac/loongson_edac.c

    18	
    19	static int read_ecc(struct mem_ctl_info *mci)
    20	{
    21		struct loongson_edac_pvt *pvt = mci->pvt_info;
    22		u64 ecc;
    23		int cs;
    24	
    25		if (!pvt->ecc_base)
    26			return pvt->last_ce_count;
    27	
  > 28		ecc = readq(pvt->ecc_base + ECC_CS_COUNT_REG);
    29		/* cs0 -- cs3 */
    30		cs = ecc & 0xff;
    31		cs += (ecc >> 8) & 0xff;
    32		cs += (ecc >> 16) & 0xff;
    33		cs += (ecc >> 24) & 0xff;
    34	
    35		return cs;
    36	}
    37	

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

      reply	other threads:[~2024-11-11 12:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-11  6:09 [PATCH v7 0/2] " Zhao Qunqin
2024-11-11  6:09 ` [PATCH v7 1/2] dt-bindings: EDAC for ls3a5000 " Zhao Qunqin
2024-11-11  6:09 ` [PATCH v7 2/2] EDAC: Add EDAC driver for loongson " Zhao Qunqin
2024-11-11 12:01   ` kernel test robot [this message]

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=202411111918.lhNjQmXB-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=bp@alien8.de \
    --cc=chenhuacai@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=james.morse@arm.com \
    --cc=kernel@xen0n.name \
    --cc=krzk+dt@kernel.org \
    --cc=linux-edac@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=loongarch@lists.linux.dev \
    --cc=mchehab@kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=robh@kernel.org \
    --cc=rric@kernel.org \
    --cc=tony.luck@intel.com \
    --cc=zhaoqunqin@loongson.cn \
    /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

all inboxes | Powered by JetHome®