* [linux-next:master 6932/13542] drivers/acpi/arm64/iort.c:1406:2: error: call to undeclared function 'iort_iommu_rmr_get_resv_regions'; ISO C99 and later do not support implicit function declarations
@ 2022-07-29 5:28 kernel test robot
2022-07-29 8:03 ` Shameerali Kolothum Thodi
0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2022-07-29 5:28 UTC (permalink / raw)
To: Shameer Kolothum
Cc: llvm, kbuild-all, Linux Memory Management List, Joerg Roedel, Hanjun Guo
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 7c5e07b73ff3011c9b82d4a3286a3362b951ad2b
commit: e302eea8f49717253ac64fd45b7cc719e87fa010 [6932/13542] ACPI/IORT: Add a helper to retrieve RMR info directly
config: arm64-buildonly-randconfig-r005-20220728 (https://download.01.org/0day-ci/archive/20220729/202207291335.1sImjcbY-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 8dfaecc4c24494337933aff9d9166486ca0949f1)
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
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=e302eea8f49717253ac64fd45b7cc719e87fa010
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 e302eea8f49717253ac64fd45b7cc719e87fa010
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/acpi/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> drivers/acpi/arm64/iort.c:1406:2: error: call to undeclared function 'iort_iommu_rmr_get_resv_regions'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
iort_iommu_rmr_get_resv_regions(iommu_fwnode, NULL, head);
^
drivers/acpi/arm64/iort.c:1406:2: note: did you mean 'iort_iommu_get_resv_regions'?
drivers/acpi/arm64/iort.c:1329:6: note: 'iort_iommu_get_resv_regions' declared here
void iort_iommu_get_resv_regions(struct device *dev, struct list_head *head)
^
1 error generated.
vim +/iort_iommu_rmr_get_resv_regions +1406 drivers/acpi/arm64/iort.c
1396
1397 /**
1398 * iort_get_rmr_sids - Retrieve IORT RMR node reserved regions with
1399 * associated StreamIDs information.
1400 * @iommu_fwnode: fwnode associated with IOMMU
1401 * @head: Resereved region list
1402 */
1403 void iort_get_rmr_sids(struct fwnode_handle *iommu_fwnode,
1404 struct list_head *head)
1405 {
> 1406 iort_iommu_rmr_get_resv_regions(iommu_fwnode, NULL, head);
1407 }
1408 EXPORT_SYMBOL_GPL(iort_get_rmr_sids);
1409
--
0-DAY CI Kernel Test Service
https://01.org/lkp
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [linux-next:master 6932/13542] drivers/acpi/arm64/iort.c:1406:2: error: call to undeclared function 'iort_iommu_rmr_get_resv_regions'; ISO C99 and later do not support implicit function declarations
2022-07-29 5:28 [linux-next:master 6932/13542] drivers/acpi/arm64/iort.c:1406:2: error: call to undeclared function 'iort_iommu_rmr_get_resv_regions'; ISO C99 and later do not support implicit function declarations kernel test robot
@ 2022-07-29 8:03 ` Shameerali Kolothum Thodi
0 siblings, 0 replies; 3+ messages in thread
From: Shameerali Kolothum Thodi @ 2022-07-29 8:03 UTC (permalink / raw)
To: kernel test robot
Cc: llvm, kbuild-all, Linux Memory Management List, Joerg Roedel,
Guohanjun (Hanjun Guo),
renzhijie
> -----Original Message-----
> From: kernel test robot [mailto:lkp@intel.com]
> Sent: 29 July 2022 06:29
> To: Shameerali Kolothum Thodi <shameerali.kolothum.thodi@huawei.com>
> Cc: llvm@lists.linux.dev; kbuild-all@lists.01.org; Linux Memory Management
> List <linux-mm@kvack.org>; Joerg Roedel <jroedel@suse.de>; Guohanjun
> (Hanjun Guo) <guohanjun@huawei.com>
> Subject: [linux-next:master 6932/13542] drivers/acpi/arm64/iort.c:1406:2:
> error: call to undeclared function 'iort_iommu_rmr_get_resv_regions'; ISO
> C99 and later do not support implicit function declarations
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
> master
> head: 7c5e07b73ff3011c9b82d4a3286a3362b951ad2b
> commit: e302eea8f49717253ac64fd45b7cc719e87fa010 [6932/13542]
> ACPI/IORT: Add a helper to retrieve RMR info directly
> config: arm64-buildonly-randconfig-r005-20220728
> (https://download.01.org/0day-ci/archive/20220729/202207291335.1sImjc
> bY-lkp@intel.com/config)
> compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project
> 8dfaecc4c24494337933aff9d9166486ca0949f1)
> 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
> # install arm64 cross compiling tool for clang build
> # apt-get install binutils-aarch64-linux-gnu
> #
> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/
> ?id=e302eea8f49717253ac64fd45b7cc719e87fa010
> 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 e302eea8f49717253ac64fd45b7cc719e87fa010
> # save the config file
> mkdir build_dir && cp config build_dir/.config
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang
> make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/acpi/
>
> If you fix the issue, kindly add following tag where applicable
> Reported-by: kernel test robot <lkp@intel.com>
>
> All errors (new ones prefixed by >>):
>
> >> drivers/acpi/arm64/iort.c:1406:2: error: call to undeclared function
> 'iort_iommu_rmr_get_resv_regions'; ISO C99 and later do not support
> implicit function declarations [-Wimplicit-function-declaration]
> iort_iommu_rmr_get_resv_regions(iommu_fwnode, NULL,
> head);
> ^
> drivers/acpi/arm64/iort.c:1406:2: note: did you mean
> 'iort_iommu_get_resv_regions'?
> drivers/acpi/arm64/iort.c:1329:6: note: 'iort_iommu_get_resv_regions'
> declared here
> void iort_iommu_get_resv_regions(struct device *dev, struct list_head
> *head)
> ^
> 1 error generated.
Right. This is already reported and a fix is provided by Zhijie here,
https://lore.kernel.org/linux-arm-kernel/20220726033520.47865-1-renzhijie2@huawei.com/
Thanks,
Shameer
>
> vim +/iort_iommu_rmr_get_resv_regions +1406 drivers/acpi/arm64/iort.c
>
> 1396
> 1397 /**
> 1398 * iort_get_rmr_sids - Retrieve IORT RMR node reserved regions
> with
> 1399 * associated StreamIDs information.
> 1400 * @iommu_fwnode: fwnode associated with IOMMU
> 1401 * @head: Resereved region list
> 1402 */
> 1403 void iort_get_rmr_sids(struct fwnode_handle *iommu_fwnode,
> 1404 struct list_head *head)
> 1405 {
> > 1406 iort_iommu_rmr_get_resv_regions(iommu_fwnode, NULL,
> head);
> 1407 }
> 1408 EXPORT_SYMBOL_GPL(iort_get_rmr_sids);
> 1409
>
> --
> 0-DAY CI Kernel Test Service
> https://01.org/lkp
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-next:master 6932/13542] drivers/acpi/arm64/iort.c:1406:2: error: call to undeclared function 'iort_iommu_rmr_get_resv_regions'; ISO C99 and later do not support implicit function declarations
@ 2022-07-29 8:03 ` Shameerali Kolothum Thodi
0 siblings, 0 replies; 3+ messages in thread
From: Shameerali Kolothum Thodi @ 2022-07-29 8:03 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3698 bytes --]
> -----Original Message-----
> From: kernel test robot [mailto:lkp(a)intel.com]
> Sent: 29 July 2022 06:29
> To: Shameerali Kolothum Thodi <shameerali.kolothum.thodi@huawei.com>
> Cc: llvm(a)lists.linux.dev; kbuild-all(a)lists.01.org; Linux Memory Management
> List <linux-mm@kvack.org>; Joerg Roedel <jroedel@suse.de>; Guohanjun
> (Hanjun Guo) <guohanjun@huawei.com>
> Subject: [linux-next:master 6932/13542] drivers/acpi/arm64/iort.c:1406:2:
> error: call to undeclared function 'iort_iommu_rmr_get_resv_regions'; ISO
> C99 and later do not support implicit function declarations
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
> master
> head: 7c5e07b73ff3011c9b82d4a3286a3362b951ad2b
> commit: e302eea8f49717253ac64fd45b7cc719e87fa010 [6932/13542]
> ACPI/IORT: Add a helper to retrieve RMR info directly
> config: arm64-buildonly-randconfig-r005-20220728
> (https://download.01.org/0day-ci/archive/20220729/202207291335.1sImjc
> bY-lkp(a)intel.com/config)
> compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project
> 8dfaecc4c24494337933aff9d9166486ca0949f1)
> 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
> # install arm64 cross compiling tool for clang build
> # apt-get install binutils-aarch64-linux-gnu
> #
> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/
> ?id=e302eea8f49717253ac64fd45b7cc719e87fa010
> 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 e302eea8f49717253ac64fd45b7cc719e87fa010
> # save the config file
> mkdir build_dir && cp config build_dir/.config
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang
> make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/acpi/
>
> If you fix the issue, kindly add following tag where applicable
> Reported-by: kernel test robot <lkp@intel.com>
>
> All errors (new ones prefixed by >>):
>
> >> drivers/acpi/arm64/iort.c:1406:2: error: call to undeclared function
> 'iort_iommu_rmr_get_resv_regions'; ISO C99 and later do not support
> implicit function declarations [-Wimplicit-function-declaration]
> iort_iommu_rmr_get_resv_regions(iommu_fwnode, NULL,
> head);
> ^
> drivers/acpi/arm64/iort.c:1406:2: note: did you mean
> 'iort_iommu_get_resv_regions'?
> drivers/acpi/arm64/iort.c:1329:6: note: 'iort_iommu_get_resv_regions'
> declared here
> void iort_iommu_get_resv_regions(struct device *dev, struct list_head
> *head)
> ^
> 1 error generated.
Right. This is already reported and a fix is provided by Zhijie here,
https://lore.kernel.org/linux-arm-kernel/20220726033520.47865-1-renzhijie2(a)huawei.com/
Thanks,
Shameer
>
> vim +/iort_iommu_rmr_get_resv_regions +1406 drivers/acpi/arm64/iort.c
>
> 1396
> 1397 /**
> 1398 * iort_get_rmr_sids - Retrieve IORT RMR node reserved regions
> with
> 1399 * associated StreamIDs information.
> 1400 * @iommu_fwnode: fwnode associated with IOMMU
> 1401 * @head: Resereved region list
> 1402 */
> 1403 void iort_get_rmr_sids(struct fwnode_handle *iommu_fwnode,
> 1404 struct list_head *head)
> 1405 {
> > 1406 iort_iommu_rmr_get_resv_regions(iommu_fwnode, NULL,
> head);
> 1407 }
> 1408 EXPORT_SYMBOL_GPL(iort_get_rmr_sids);
> 1409
>
> --
> 0-DAY CI Kernel Test Service
> https://01.org/lkp
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-07-29 8:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-29 5:28 [linux-next:master 6932/13542] drivers/acpi/arm64/iort.c:1406:2: error: call to undeclared function 'iort_iommu_rmr_get_resv_regions'; ISO C99 and later do not support implicit function declarations kernel test robot
2022-07-29 8:03 ` Shameerali Kolothum Thodi
2022-07-29 8:03 ` Shameerali Kolothum Thodi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.