From: kernel test robot <lkp@intel.com>
To: jasperwang@tencent.com, kaixuxia@tencent.com,
frankjpliu@tencent.com, kasong@tencent.com,
sagazchen@tencent.com, kernelxing@tencent.com,
aurelianliu@tencent.com, deshengwu@tencent.com,
flyingpeng@tencent.com, jason.zeng@intel.com, wu.zheng@intel.com,
yingbao.jia@intel.com, pei.p.jia@intel.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [opencloudos:next 15/48] arch/loongarch/kernel/legacy_boot.c:106:48: error: implicit declaration of function 'nid_to_addrbase'
Date: Tue, 16 Jul 2024 21:17:30 +0800 [thread overview]
Message-ID: <202407162159.aFPdthdi-lkp@intel.com> (raw)
tree: https://gitee.com/OpenCloudOS/OpenCloudOS-Kernel.git next
head: 11cf99a210e4916f7a066658c851c08ab6b123ce
commit: 4fe09071dbc3f9f5088be6504aee65ba1be451c0 [15/48] LoongArch: Old BPI compatibility
config: loongarch-allnoconfig (https://download.01.org/0day-ci/archive/20240716/202407162159.aFPdthdi-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240716/202407162159.aFPdthdi-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/202407162159.aFPdthdi-lkp@intel.com/
All errors (new ones prefixed by >>):
arch/loongarch/kernel/legacy_boot.c:94:6: warning: no previous prototype for 'register_default_pic' [-Wmissing-prototypes]
94 | void register_default_pic(int id, u32 address, u32 irq_base)
| ^~~~~~~~~~~~~~~~~~~~
arch/loongarch/kernel/legacy_boot.c: In function 'register_default_pic':
>> arch/loongarch/kernel/legacy_boot.c:106:48: error: implicit declaration of function 'nid_to_addrbase' [-Wimplicit-function-declaration]
106 | pchpic_default[idx].address |= nid_to_addrbase(id) | HT1LO_OFFSET;
| ^~~~~~~~~~~~~~~
arch/loongarch/kernel/legacy_boot.c: At top level:
arch/loongarch/kernel/legacy_boot.c:242:13: warning: no previous prototype for 'fw_init_cmdline' [-Wmissing-prototypes]
242 | __init void fw_init_cmdline(unsigned long argc, unsigned long cmdp)
| ^~~~~~~~~~~~~~~
arch/loongarch/kernel/legacy_boot.c:341:14: warning: no previous prototype for 'bpi_init' [-Wmissing-prototypes]
341 | unsigned int bpi_init(void)
| ^~~~~~~~
vim +/nid_to_addrbase +106 arch/loongarch/kernel/legacy_boot.c
93
94 void register_default_pic(int id, u32 address, u32 irq_base)
95 {
96 int idx, entries;
97 unsigned long addr;
98
99 if (bad_pch_pic(address))
100 return;
101
102 idx = nr_io_pics;
103
104 pchpic_default[idx].address = address;
105 if (idx)
> 106 pchpic_default[idx].address |= nid_to_addrbase(id) | HT1LO_OFFSET;
107 pchpic_default[idx].id = id;
108 pchpic_default[idx].version = 0;
109 pchpic_default[idx].size = 0x1000;
110 pchpic_default[idx].gsi_base = irq_base;
111
112 msi_group[nr_io_pics].pci_segment = nr_io_pics;
113 pch_group[nr_io_pics].node = msi_group[nr_io_pics].node = id;
114
115 addr = pchpic_default[idx].address;
116 /* Read INT_ID.int_num */
117 entries = (((unsigned long)ls7a_readq(addr) >> 48) & 0xff) + 1;
118 pchmsi_default[idx].msg_address = MSI_MSG_ADDRESS;
119 pchmsi_default[idx].start = entries;
120 pchmsi_default[idx].count = MSI_MSG_DEFAULT_COUNT;
121
122 eiointc_default[idx].cascade = 3;
123 eiointc_default[idx].node = id;
124 eiointc_default[idx].node_map = 1;
125
126 if (idx) {
127 eiointc_default[idx].cascade = 0x4;
128 eiointc_default[0].node_map = 0x1DF;
129 eiointc_default[idx].node_map = 0xFE20;
130 }
131
132 acpi_pchpic[idx] = &pchpic_default[idx];
133 acpi_pchmsi[idx] = &pchmsi_default[idx];
134 acpi_eiointc[idx] = &eiointc_default[idx];
135
136 nr_io_pics++;
137 }
138
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-07-16 13:18 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=202407162159.aFPdthdi-lkp@intel.com \
--to=lkp@intel.com \
--cc=aurelianliu@tencent.com \
--cc=deshengwu@tencent.com \
--cc=flyingpeng@tencent.com \
--cc=frankjpliu@tencent.com \
--cc=jason.zeng@intel.com \
--cc=jasperwang@tencent.com \
--cc=kaixuxia@tencent.com \
--cc=kasong@tencent.com \
--cc=kernelxing@tencent.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=pei.p.jia@intel.com \
--cc=sagazchen@tencent.com \
--cc=wu.zheng@intel.com \
--cc=yingbao.jia@intel.com \
/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 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.