From: kernel test robot <lkp@intel.com>
To: Zhao Qunqin <zhaoqunqin@loongson.cn>,
chenhuacai@kernel.org, kernel@xen0n.name, bp@alien8.de,
tony.luck@intel.com, james.morse@arm.com, mchehab@kernel.org,
rric@kernel.org, robh@kernel.org, krzk+dt@kernel.org,
conor+dt@kernel.org
Cc: oe-kbuild-all@lists.linux.dev, loongarch@lists.linux.dev,
linux-kernel@vger.kernel.org, linux-edac@vger.kernel.org,
devicetree@vger.kernel.org, zhaoqunqin <zhaoqunqin@loongson.cn>
Subject: Re: [PATCH v1 1/2] Loongarch: EDAC driver for loongson memory controller
Date: Fri, 23 Aug 2024 10:42:22 +0800 [thread overview]
Message-ID: <202408231055.okLH0uuC-lkp@intel.com> (raw)
In-Reply-To: <20240821064728.8642-2-zhaoqunqin@loongson.cn>
Hi Zhao,
kernel test robot noticed the following build warnings:
[auto build test WARNING on ras/edac-for-next]
[also build test WARNING on robh/for-next linus/master v6.11-rc4 next-20240822]
[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/Zhao-Qunqin/Loongarch-EDAC-driver-for-loongson-memory-controller/20240821-145127
base: https://git.kernel.org/pub/scm/linux/kernel/git/ras/ras.git edac-for-next
patch link: https://lore.kernel.org/r/20240821064728.8642-2-zhaoqunqin%40loongson.cn
patch subject: [PATCH v1 1/2] Loongarch: EDAC driver for loongson memory controller
config: loongarch-loongson3_defconfig (https://download.01.org/0day-ci/archive/20240823/202408231055.okLH0uuC-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 13.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240823/202408231055.okLH0uuC-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/202408231055.okLH0uuC-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/edac/loongson_edac.c: In function 'get_dimm_config':
drivers/edac/loongson_edac.c:90:16: error: implicit declaration of function 'EDAC_DIMM_PTR' [-Werror=implicit-function-declaration]
90 | dimm = EDAC_DIMM_PTR(mci->layers, mci->dimms, mci->n_layers,
| ^~~~~~~~~~~~~
>> drivers/edac/loongson_edac.c:90:14: warning: assignment to 'struct dimm_info *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
90 | dimm = EDAC_DIMM_PTR(mci->layers, mci->dimms, mci->n_layers,
| ^
drivers/edac/loongson_edac.c: At top level:
drivers/edac/loongson_edac.c:181:27: error: initialization of 'void (*)(struct platform_device *)' from incompatible pointer type 'int (*)(struct platform_device *)' [-Werror=incompatible-pointer-types]
181 | .remove = loongson_edac_remove,
| ^~~~~~~~~~~~~~~~~~~~
drivers/edac/loongson_edac.c:181:27: note: (near initialization for 'loongson_edac_driver.<anonymous>.remove')
cc1: some warnings being treated as errors
vim +90 drivers/edac/loongson_edac.c
80
81 static int get_dimm_config(struct mem_ctl_info *mci)
82 {
83 u32 size, npages;
84 struct dimm_info *dimm;
85
86 /* size not used */
87 size = -1;
88 npages = MiB_TO_PAGES(size);
89
> 90 dimm = EDAC_DIMM_PTR(mci->layers, mci->dimms, mci->n_layers,
91 0, 0, 0);
92 dimm->nr_pages = npages;
93 snprintf(dimm->label, sizeof(dimm->label),
94 "MC#%uChannel#%u_DIMM#%u",
95 mci->mc_idx, 0, 0);
96 dimm->grain = 8;
97
98 return 0;
99 }
100
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2024-08-23 2:43 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-21 6:47 [PATCH v1 0/2] Add EDAC driver for loongson memory controller Zhao Qunqin
2024-08-21 6:47 ` [PATCH v1 1/2] Loongarch: " Zhao Qunqin
2024-08-21 6:51 ` Xi Ruoyao
2024-08-21 8:24 ` Krzysztof Kozlowski
2024-08-22 0:07 ` kernel test robot
2024-08-22 3:14 ` kernel test robot
2024-08-23 2:42 ` kernel test robot [this message]
2024-08-21 6:47 ` [PATCH v1 2/2] dt-bindings: EDAC " Zhao Qunqin
2024-08-21 8:18 ` Rob Herring (Arm)
2024-08-21 8:20 ` Krzysztof Kozlowski
2024-08-21 14:59 ` Conor Dooley
2024-08-28 2:24 ` Zhao Qunqin
2024-08-21 7:01 ` [PATCH v1 0/2] Add EDAC driver " Xi Ruoyao
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=202408231055.okLH0uuC-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