[superna9999:amlogic/v5.9/s400-mipi-dsi 12/16] drivers/gpu/drm/drm_bridge.c:181:43: warning: format specifies type 'unsigned int' but the argument has type 'struct drm_encoder
by kernel test robot
tree: https://github.com/superna9999/linux amlogic/v5.9/s400-mipi-dsi
head: 4cbe7065356e7e68a59a0787bc4a4a3ca9375065
commit: 87c65f7a5406d7484a6e9aeab87b275f29542aed [12/16] drm: bridge: debug
config: x86_64-randconfig-a001-20200731 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c23ae3f18ee3ff11671f4c62ffc66d150b1bcdc2)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout 87c65f7a5406d7484a6e9aeab87b275f29542aed
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/drm_bridge.c:181:43: warning: format specifies type 'unsigned int' but the argument has type 'struct drm_encoder *' [-Wformat]
pr_info("%s %08x %08x %08x\n", __func__, encoder, bridge, previous);
~~~~ ^~~~~~~
include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
>> drivers/gpu/drm/drm_bridge.c:181:52: warning: format specifies type 'unsigned int' but the argument has type 'struct drm_bridge *' [-Wformat]
pr_info("%s %08x %08x %08x\n", __func__, encoder, bridge, previous);
~~~~ ^~~~~~
include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
drivers/gpu/drm/drm_bridge.c:181:60: warning: format specifies type 'unsigned int' but the argument has type 'struct drm_bridge *' [-Wformat]
pr_info("%s %08x %08x %08x\n", __func__, encoder, bridge, previous);
~~~~ ^~~~~~~~
include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
>> drivers/gpu/drm/drm_bridge.c:201:45: warning: variable 'ret' is uninitialized when used here [-Wuninitialized]
pr_info("%s:%d %d\n", __func__, __LINE__, ret);
^~~
include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~~
drivers/gpu/drm/drm_bridge.c:179:9: note: initialize the variable 'ret' to silence this warning
int ret;
^
= 0
4 warnings generated.
vim +181 drivers/gpu/drm/drm_bridge.c
151
152 /**
153 * drm_bridge_attach - attach the bridge to an encoder's chain
154 *
155 * @encoder: DRM encoder
156 * @bridge: bridge to attach
157 * @previous: previous bridge in the chain (optional)
158 * @flags: DRM_BRIDGE_ATTACH_* flags
159 *
160 * Called by a kms driver to link the bridge to an encoder's chain. The previous
161 * argument specifies the previous bridge in the chain. If NULL, the bridge is
162 * linked directly at the encoder's output. Otherwise it is linked at the
163 * previous bridge's output.
164 *
165 * If non-NULL the previous bridge must be already attached by a call to this
166 * function.
167 *
168 * Note that bridges attached to encoders are auto-detached during encoder
169 * cleanup in drm_encoder_cleanup(), so drm_bridge_attach() should generally
170 * *not* be balanced with a drm_bridge_detach() in driver code.
171 *
172 * RETURNS:
173 * Zero on success, error code on failure
174 */
175 int drm_bridge_attach(struct drm_encoder *encoder, struct drm_bridge *bridge,
176 struct drm_bridge *previous,
177 enum drm_bridge_attach_flags flags)
178 {
179 int ret;
180
> 181 pr_info("%s %08x %08x %08x\n", __func__, encoder, bridge, previous);
182
183 if (!encoder || !bridge)
184 return -EINVAL;
185
186 if (previous && (!previous->dev || previous->encoder != encoder))
187 return -EINVAL;
188
189 if (bridge->dev)
190 return -EBUSY;
191
192 bridge->dev = encoder->dev;
193 bridge->encoder = encoder;
194
195 if (previous)
196 list_add(&bridge->chain_node, &previous->chain_node);
197 else
198 list_add(&bridge->chain_node, &encoder->bridge_chain);
199
200 if (bridge->funcs->attach) {
> 201 pr_info("%s:%d %d\n", __func__, __LINE__, ret);
202 ret = bridge->funcs->attach(bridge, flags);
203 if (ret < 0)
204 goto err_reset_bridge;
205 }
206
207 if (bridge->funcs->atomic_reset) {
208 struct drm_bridge_state *state;
209
210 state = bridge->funcs->atomic_reset(bridge);
211 if (IS_ERR(state)) {
212 ret = PTR_ERR(state);
213 goto err_detach_bridge;
214 }
215
216 drm_atomic_private_obj_init(bridge->dev, &bridge->base,
217 &state->base,
218 &drm_bridge_priv_state_funcs);
219 }
220
221 return 0;
222
223 err_detach_bridge:
224 if (bridge->funcs->detach)
225 bridge->funcs->detach(bridge);
226
227 err_reset_bridge:
228 bridge->dev = NULL;
229 bridge->encoder = NULL;
230 list_del(&bridge->chain_node);
231 return ret;
232 }
233 EXPORT_SYMBOL(drm_bridge_attach);
234
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
[mips-linux:mips-next 76/76] arch/mips/kernel/traps.c:1904:17: warning: no previous prototype for 'do_gsexc'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mips/linux.git mips-next
head: bc6e8dc112133a60efbede8acde36dd5d1e748a1
commit: bc6e8dc112133a60efbede8acde36dd5d1e748a1 [76/76] MIPS: handle Loongson-specific GSExc exception
config: mips-allyesconfig (attached as .config)
compiler: mips-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
git checkout bc6e8dc112133a60efbede8acde36dd5d1e748a1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
arch/mips/kernel/traps.c:438:17: warning: no previous prototype for 'do_be' [-Wmissing-prototypes]
438 | asmlinkage void do_be(struct pt_regs *regs)
| ^~~~~
arch/mips/kernel/traps.c:741:17: warning: no previous prototype for 'do_ov' [-Wmissing-prototypes]
741 | asmlinkage void do_ov(struct pt_regs *regs)
| ^~~~~
arch/mips/kernel/traps.c:865:17: warning: no previous prototype for 'do_fpe' [-Wmissing-prototypes]
865 | asmlinkage void do_fpe(struct pt_regs *regs, unsigned long fcr31)
| ^~~~~~
arch/mips/kernel/traps.c:1018:17: warning: no previous prototype for 'do_bp' [-Wmissing-prototypes]
1018 | asmlinkage void do_bp(struct pt_regs *regs)
| ^~~~~
arch/mips/kernel/traps.c:1110:17: warning: no previous prototype for 'do_tr' [-Wmissing-prototypes]
1110 | asmlinkage void do_tr(struct pt_regs *regs)
| ^~~~~
arch/mips/kernel/traps.c:1152:17: warning: no previous prototype for 'do_ri' [-Wmissing-prototypes]
1152 | asmlinkage void do_ri(struct pt_regs *regs)
| ^~~~~
arch/mips/kernel/traps.c:1391:17: warning: no previous prototype for 'do_cpu' [-Wmissing-prototypes]
1391 | asmlinkage void do_cpu(struct pt_regs *regs)
| ^~~~~~
arch/mips/kernel/traps.c:1496:17: warning: no previous prototype for 'do_msa_fpe' [-Wmissing-prototypes]
1496 | asmlinkage void do_msa_fpe(struct pt_regs *regs, unsigned int msacsr)
| ^~~~~~~~~~
arch/mips/kernel/traps.c:1516:17: warning: no previous prototype for 'do_msa' [-Wmissing-prototypes]
1516 | asmlinkage void do_msa(struct pt_regs *regs)
| ^~~~~~
arch/mips/kernel/traps.c:1537:17: warning: no previous prototype for 'do_mdmx' [-Wmissing-prototypes]
1537 | asmlinkage void do_mdmx(struct pt_regs *regs)
| ^~~~~~~
arch/mips/kernel/traps.c:1549:17: warning: no previous prototype for 'do_watch' [-Wmissing-prototypes]
1549 | asmlinkage void do_watch(struct pt_regs *regs)
| ^~~~~~~~
arch/mips/kernel/traps.c:1576:17: warning: no previous prototype for 'do_mcheck' [-Wmissing-prototypes]
1576 | asmlinkage void do_mcheck(struct pt_regs *regs)
| ^~~~~~~~~
arch/mips/kernel/traps.c: In function 'do_mcheck':
arch/mips/kernel/traps.c:1579:17: warning: variable 'prev_state' set but not used [-Wunused-but-set-variable]
1579 | enum ctx_state prev_state;
| ^~~~~~~~~~
arch/mips/kernel/traps.c: At top level:
arch/mips/kernel/traps.c:1607:17: warning: no previous prototype for 'do_mt' [-Wmissing-prototypes]
1607 | asmlinkage void do_mt(struct pt_regs *regs)
| ^~~~~
arch/mips/kernel/traps.c:1643:17: warning: no previous prototype for 'do_dsp' [-Wmissing-prototypes]
1643 | asmlinkage void do_dsp(struct pt_regs *regs)
| ^~~~~~
arch/mips/kernel/traps.c:1651:17: warning: no previous prototype for 'do_reserved' [-Wmissing-prototypes]
1651 | asmlinkage void do_reserved(struct pt_regs *regs)
| ^~~~~~~~~~~
arch/mips/kernel/traps.c:1827:17: warning: no previous prototype for 'cache_parity_error' [-Wmissing-prototypes]
1827 | asmlinkage void cache_parity_error(void)
| ^~~~~~~~~~~~~~~~~~
arch/mips/kernel/traps.c:1875:17: warning: no previous prototype for 'do_ftlb' [-Wmissing-prototypes]
1875 | asmlinkage void do_ftlb(void)
| ^~~~~~~
>> arch/mips/kernel/traps.c:1904:17: warning: no previous prototype for 'do_gsexc' [-Wmissing-prototypes]
1904 | asmlinkage void do_gsexc(struct pt_regs *regs, u32 diag1)
| ^~~~~~~~
arch/mips/kernel/traps.c:1939:6: warning: no previous prototype for 'ejtag_exception_handler' [-Wmissing-prototypes]
1939 | void ejtag_exception_handler(struct pt_regs *regs)
| ^~~~~~~~~~~~~~~~~~~~~~~
arch/mips/kernel/traps.c:1984:17: warning: no previous prototype for 'nmi_exception_handler' [-Wmissing-prototypes]
1984 | void __noreturn nmi_exception_handler(struct pt_regs *regs)
| ^~~~~~~~~~~~~~~~~~~~~
vim +/do_gsexc +1904 arch/mips/kernel/traps.c
1903
> 1904 asmlinkage void do_gsexc(struct pt_regs *regs, u32 diag1)
1905 {
1906 u32 exccode = (diag1 & LOONGSON_DIAG1_EXCCODE) >>
1907 LOONGSON_DIAG1_EXCCODE_SHIFT;
1908 enum ctx_state prev_state;
1909
1910 prev_state = exception_enter();
1911
1912 switch (exccode) {
1913 case 0x08:
1914 /* Undocumented exception, will trigger on certain
1915 * also-undocumented instructions accessible from userspace.
1916 * Processor state is not otherwise corrupted, but currently
1917 * we don't know how to proceed. Maybe there is some
1918 * undocumented control flag to enable the instructions?
1919 */
1920 force_sig(SIGILL);
1921 break;
1922
1923 default:
1924 /* None of the other exceptions, documented or not, have
1925 * further details given; none are encountered in the wild
1926 * either. Panic in case some of them turn out to be fatal.
1927 */
1928 show_regs(regs);
1929 panic("Unhandled Loongson exception - GSCause = %08x", diag1);
1930 }
1931
1932 exception_exit(prev_state);
1933 }
1934
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
[linux-next:master 12053/13260] net/core/fib_rules.c:271: undefined reference to `fib4_rule_match'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 01830e6c042e8eb6eb202e05d7df8057135b4c26
commit: b9aaec8f0be518096d1377082e0abe6a85e86ff3 [12053/13260] fib: use indirect call wrappers in the most common fib_rules_ops
config: i386-randconfig-a006-20200731 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce (this is a W=1 build):
git checkout b9aaec8f0be518096d1377082e0abe6a85e86ff3
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
ld: net/core/fib_rules.o: in function `fib_rule_match':
net/core/fib_rules.c:271: undefined reference to `fib6_rule_match'
ld: net/core/fib_rules.c:271: undefined reference to `fib6_rule_match'
ld: net/core/fib_rules.c:271: undefined reference to `fib6_rule_match'
ld: net/core/fib_rules.o: in function `fib_rules_lookup':
net/core/fib_rules.c:305: undefined reference to `fib6_rule_action'
ld: net/core/fib_rules.c:305: undefined reference to `fib6_rule_action'
ld: net/core/fib_rules.c:305: undefined reference to `fib6_rule_action'
ld: net/core/fib_rules.c:310: undefined reference to `fib6_rule_suppress'
ld: net/core/fib_rules.c:310: undefined reference to `fib6_rule_suppress'
ld: net/core/fib_rules.c:310: undefined reference to `fib6_rule_suppress'
ld: net/core/fib_rules.o: in function `fib_rule_match':
>> net/core/fib_rules.c:271: undefined reference to `fib4_rule_match'
>> ld: net/core/fib_rules.c:271: undefined reference to `fib4_rule_match'
>> ld: net/core/fib_rules.c:271: undefined reference to `fib4_rule_match'
ld: net/core/fib_rules.o: in function `fib_rules_lookup':
>> net/core/fib_rules.c:305: undefined reference to `fib4_rule_action'
>> ld: net/core/fib_rules.c:305: undefined reference to `fib4_rule_action'
>> ld: net/core/fib_rules.c:305: undefined reference to `fib4_rule_action'
>> ld: net/core/fib_rules.c:310: undefined reference to `fib4_rule_suppress'
>> ld: net/core/fib_rules.c:310: undefined reference to `fib4_rule_suppress'
>> ld: net/core/fib_rules.c:310: undefined reference to `fib4_rule_suppress'
vim +271 net/core/fib_rules.c
245
246 static int fib_rule_match(struct fib_rule *rule, struct fib_rules_ops *ops,
247 struct flowi *fl, int flags,
248 struct fib_lookup_arg *arg)
249 {
250 int ret = 0;
251
252 if (rule->iifindex && (rule->iifindex != fl->flowi_iif))
253 goto out;
254
255 if (rule->oifindex && (rule->oifindex != fl->flowi_oif))
256 goto out;
257
258 if ((rule->mark ^ fl->flowi_mark) & rule->mark_mask)
259 goto out;
260
261 if (rule->tun_id && (rule->tun_id != fl->flowi_tun_key.tun_id))
262 goto out;
263
264 if (rule->l3mdev && !l3mdev_fib_rule_match(rule->fr_net, fl, arg))
265 goto out;
266
267 if (uid_lt(fl->flowi_uid, rule->uid_range.start) ||
268 uid_gt(fl->flowi_uid, rule->uid_range.end))
269 goto out;
270
> 271 ret = INDIRECT_CALL_INET(ops->match,
272 fib6_rule_match,
273 fib4_rule_match,
274 rule, fl, flags);
275 out:
276 return (rule->flags & FIB_RULE_INVERT) ? !ret : ret;
277 }
278
279 int fib_rules_lookup(struct fib_rules_ops *ops, struct flowi *fl,
280 int flags, struct fib_lookup_arg *arg)
281 {
282 struct fib_rule *rule;
283 int err;
284
285 rcu_read_lock();
286
287 list_for_each_entry_rcu(rule, &ops->rules_list, list) {
288 jumped:
289 if (!fib_rule_match(rule, ops, fl, flags, arg))
290 continue;
291
292 if (rule->action == FR_ACT_GOTO) {
293 struct fib_rule *target;
294
295 target = rcu_dereference(rule->ctarget);
296 if (target == NULL) {
297 continue;
298 } else {
299 rule = target;
300 goto jumped;
301 }
302 } else if (rule->action == FR_ACT_NOP)
303 continue;
304 else
> 305 err = INDIRECT_CALL_INET(ops->action,
306 fib6_rule_action,
307 fib4_rule_action,
308 rule, fl, flags, arg);
309
> 310 if (!err && ops->suppress && INDIRECT_CALL_INET(ops->suppress,
311 fib6_rule_suppress,
312 fib4_rule_suppress,
313 rule, arg))
314 continue;
315
316 if (err != -EAGAIN) {
317 if ((arg->flags & FIB_LOOKUP_NOREF) ||
318 likely(refcount_inc_not_zero(&rule->refcnt))) {
319 arg->rule = rule;
320 goto out;
321 }
322 break;
323 }
324 }
325
326 err = -ESRCH;
327 out:
328 rcu_read_unlock();
329
330 return err;
331 }
332 EXPORT_SYMBOL_GPL(fib_rules_lookup);
333
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
[pci:next 20/21] drivers/pci/controller/pci-aardvark.c:650:25: error: 'struct advk_pcie' has no member named 'root_bus_nr'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git next
head: 1270e4a51ac22204d1071129caa119d137a0d107
commit: 62e12ec8a4b2e4d5b8e850741d586cb320a17a96 [20/21] Merge branch 'remotes/lorenzo/pci/misc'
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-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
git checkout 62e12ec8a4b2e4d5b8e850741d586cb320a17a96
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=xtensa
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/kernel.h:11,
from include/linux/delay.h:22,
from drivers/pci/controller/pci-aardvark.c:11:
include/linux/scatterlist.h: In function 'sg_set_buf':
arch/xtensa/include/asm/page.h:193:9: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
193 | ((pfn) >= ARCH_PFN_OFFSET && ((pfn) - ARCH_PFN_OFFSET) < max_mapnr)
| ^~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:143:2: note: in expansion of macro 'BUG_ON'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
arch/xtensa/include/asm/page.h:201:32: note: in expansion of macro 'pfn_valid'
201 | #define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT)
| ^~~~~~~~~
include/linux/scatterlist.h:143:10: note: in expansion of macro 'virt_addr_valid'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
In file included from ./arch/xtensa/include/generated/asm/bug.h:1,
from include/linux/bug.h:5,
from include/linux/thread_info.h:12,
from arch/xtensa/include/asm/current.h:18,
from include/linux/sched.h:12,
from include/linux/ratelimit.h:6,
from include/linux/dev_printk.h:16,
from include/linux/device.h:15,
from include/linux/gpio/driver.h:5,
from include/asm-generic/gpio.h:11,
from include/linux/gpio.h:62,
from drivers/pci/controller/pci-aardvark.c:12:
include/linux/dma-mapping.h: In function 'dma_map_resource':
arch/xtensa/include/asm/page.h:193:9: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
193 | ((pfn) >= ARCH_PFN_OFFSET && ((pfn) - ARCH_PFN_OFFSET) < max_mapnr)
| ^~
include/asm-generic/bug.h:144:27: note: in definition of macro 'WARN_ON_ONCE'
144 | int __ret_warn_once = !!(condition); \
| ^~~~~~~~~
include/linux/dma-mapping.h:352:19: note: in expansion of macro 'pfn_valid'
352 | if (WARN_ON_ONCE(pfn_valid(PHYS_PFN(phys_addr))))
| ^~~~~~~~~
drivers/pci/controller/pci-aardvark.c: In function 'advk_pcie_valid_device':
>> drivers/pci/controller/pci-aardvark.c:650:25: error: 'struct advk_pcie' has no member named 'root_bus_nr'
650 | if (bus->number != pcie->root_bus_nr && !advk_pcie_link_up(pcie))
| ^~
--
In file included from include/linux/build_bug.h:5,
from include/linux/bitfield.h:10,
from drivers/pci/controller/pcie-xilinx-cpm.c:8:
include/linux/scatterlist.h: In function 'sg_set_buf':
arch/xtensa/include/asm/page.h:193:9: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
193 | ((pfn) >= ARCH_PFN_OFFSET && ((pfn) - ARCH_PFN_OFFSET) < max_mapnr)
| ^~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:143:2: note: in expansion of macro 'BUG_ON'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
arch/xtensa/include/asm/page.h:201:32: note: in expansion of macro 'pfn_valid'
201 | #define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT)
| ^~~~~~~~~
include/linux/scatterlist.h:143:10: note: in expansion of macro 'virt_addr_valid'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
In file included from ./arch/xtensa/include/generated/asm/bug.h:1,
from include/linux/bug.h:5,
from include/linux/cpumask.h:14,
from include/linux/interrupt.h:8,
from drivers/pci/controller/pcie-xilinx-cpm.c:9:
include/linux/dma-mapping.h: In function 'dma_map_resource':
arch/xtensa/include/asm/page.h:193:9: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
193 | ((pfn) >= ARCH_PFN_OFFSET && ((pfn) - ARCH_PFN_OFFSET) < max_mapnr)
| ^~
include/asm-generic/bug.h:144:27: note: in definition of macro 'WARN_ON_ONCE'
144 | int __ret_warn_once = !!(condition); \
| ^~~~~~~~~
include/linux/dma-mapping.h:352:19: note: in expansion of macro 'pfn_valid'
352 | if (WARN_ON_ONCE(pfn_valid(PHYS_PFN(phys_addr))))
| ^~~~~~~~~
drivers/pci/controller/pcie-xilinx-cpm.c: In function 'xilinx_cpm_pcie_probe':
>> drivers/pci/controller/pcie-xilinx-cpm.c:552:8: error: implicit declaration of function 'pci_parse_request_of_pci_ranges' [-Werror=implicit-function-declaration]
552 | err = pci_parse_request_of_pci_ranges(dev, &bridge->windows,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +650 drivers/pci/controller/pci-aardvark.c
8a3ebd8de328301 Zachary Zhang 2018-10-18 639
248d4e59616c632 Thomas Petazzoni 2018-04-06 640 static bool advk_pcie_valid_device(struct advk_pcie *pcie, struct pci_bus *bus,
248d4e59616c632 Thomas Petazzoni 2018-04-06 641 int devfn)
248d4e59616c632 Thomas Petazzoni 2018-04-06 642 {
11e97973607fab2 Rob Herring 2020-07-21 643 if (pci_is_root_bus(bus) && PCI_SLOT(devfn) != 0)
248d4e59616c632 Thomas Petazzoni 2018-04-06 644 return false;
248d4e59616c632 Thomas Petazzoni 2018-04-06 645
70e380250c3621c Pali Rohár 2020-07-02 646 /*
70e380250c3621c Pali Rohár 2020-07-02 647 * If the link goes down after we check for link-up, nothing bad
70e380250c3621c Pali Rohár 2020-07-02 648 * happens but the config access times out.
70e380250c3621c Pali Rohár 2020-07-02 649 */
70e380250c3621c Pali Rohár 2020-07-02 @650 if (bus->number != pcie->root_bus_nr && !advk_pcie_link_up(pcie))
70e380250c3621c Pali Rohár 2020-07-02 651 return false;
70e380250c3621c Pali Rohár 2020-07-02 652
248d4e59616c632 Thomas Petazzoni 2018-04-06 653 return true;
248d4e59616c632 Thomas Petazzoni 2018-04-06 654 }
248d4e59616c632 Thomas Petazzoni 2018-04-06 655
:::::: The code at line 650 was first introduced by commit
:::::: 70e380250c3621c55ff218cbaf2272830d9dbb1d PCI: aardvark: Don't touch PCIe registers if no card connected
:::::: TO: Pali Rohár <pali(a)kernel.org>
:::::: CC: Lorenzo Pieralisi <lorenzo.pieralisi(a)arm.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
[csky-linux:linux-next-riscv-optprobe 5/8] arch/riscv/kernel/probes/decode-insn.c:19:31: sparse: sparse: cast to restricted __le32
by kernel test robot
Hi Guo,
First bad commit (maybe != root cause):
tree: https://github.com/c-sky/csky-linux linux-next-riscv-optprobe
head: db7e958a1860da6c865994602526cedf0368e4e5
commit: 332f9b6ac7dc75c6eb21e5b01f0b0ba0a9950fe1 [5/8] riscv: Add uprobes supported
config: riscv-randconfig-s032-20200731 (attached as .config)
compiler: riscv32-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.2-115-g5fc204f2-dirty
git checkout 332f9b6ac7dc75c6eb21e5b01f0b0ba0a9950fe1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> arch/riscv/kernel/probes/decode-insn.c:19:31: sparse: sparse: cast to restricted __le32
vim +19 arch/riscv/kernel/probes/decode-insn.c
6c46ab88f7a6c29 Guo Ren 2020-06-30 11
6c46ab88f7a6c29 Guo Ren 2020-06-30 12 /* Return:
6c46ab88f7a6c29 Guo Ren 2020-06-30 13 * INSN_REJECTED If instruction is one not allowed to kprobe,
6c46ab88f7a6c29 Guo Ren 2020-06-30 14 * INSN_GOOD_NO_SLOT If instruction is supported but doesn't use its slot.
6c46ab88f7a6c29 Guo Ren 2020-06-30 15 */
6c46ab88f7a6c29 Guo Ren 2020-06-30 16 enum probe_insn __kprobes
6c46ab88f7a6c29 Guo Ren 2020-06-30 17 riscv_probe_decode_insn(probe_opcode_t *addr, struct arch_probe_insn *api)
6c46ab88f7a6c29 Guo Ren 2020-06-30 18 {
6c46ab88f7a6c29 Guo Ren 2020-06-30 @19 probe_opcode_t insn = le32_to_cpu(*addr);
:::::: The code at line 19 was first introduced by commit
:::::: 6c46ab88f7a6c29fa61fa951ee8392fd9e857307 riscv: Add kprobes supported
:::::: TO: Guo Ren <guoren(a)linux.alibaba.com>
:::::: CC: Guo Ren <guoren(a)linux.alibaba.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
[jpirko-mlxsw:petrm_qdisc 4/42] drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c:845:3: warning: suggest braces around empty body in an 'if' statement
by kernel test robot
tree: https://github.com/jpirko/linux_mlxsw petrm_qdisc
head: 8acf5e3c9caa88ae168f07c83414e888279c19f8
commit: ce23ae4d43e88e8774944fd2894442f0d7d2222e [4/42] mlxsw: spectrum_span: On policer_id_base_ref_count, use dec_and_test
config: arc-allyesconfig (attached as .config)
compiler: arc-elf-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
git checkout ce23ae4d43e88e8774944fd2894442f0d7d2222e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c: In function 'mlxsw_sp_span_policer_id_base_unset':
>> drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c:845:3: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
845 | ;
| ^
vim +/if +845 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c
837
838 static void mlxsw_sp_span_policer_id_base_unset(struct mlxsw_sp_span *span)
839 {
840 /* There's no cleanup to be done, but use dec_and_test so that the
841 * counter is allowed to reach zero without splats. The function is
842 * __must_check, so just wrap it in a dummy if-block.
843 */
844 if (refcount_dec_and_test(&span->policer_id_base_ref_count))
> 845 ;
846 }
847
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
[intel-linux-intel-lts:5.4/yocto 4/4] drivers//platform/x86/intel_isi_mb.c:136:10: warning: no previous prototype for 'memcpy_s'
by kernel test robot
tree: https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: bb69a3235e529564e97bc62e31920eee5cfaeb9d
commit: bb69a3235e529564e97bc62e31920eee5cfaeb9d [4/4] ISI Mailbox driver for interacting with Intel Safety Island
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce (this is a W=1 build):
git checkout bb69a3235e529564e97bc62e31920eee5cfaeb9d
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers//platform/x86/intel_isi_mb.c:136:10: warning: no previous prototype for 'memcpy_s' [-Wmissing-prototypes]
136 | uint32_t memcpy_s(void *destination, size_t dest_size, void *source,
| ^~~~~~~~
>> drivers//platform/x86/intel_isi_mb.c:403:13: warning: no previous prototype for 'isi_pci_dev_irq_handler' [-Wmissing-prototypes]
403 | irqreturn_t isi_pci_dev_irq_handler(int irq, void *ctx)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers//platform/x86/intel_isi_mb.c: In function 'isi_hw_send':
drivers//platform/x86/intel_isi_mb.c:445:24: warning: unused variable 'tlp_cnt' [-Wunused-variable]
445 | uint32_t doorbell_in, tlp_cnt;
| ^~~~~~~
drivers//platform/x86/intel_isi_mb.c:444:6: warning: unused variable 'len' [-Wunused-variable]
444 | int len = tx_size;
| ^~~
drivers//platform/x86/intel_isi_mb.c: In function 'sync_cmd_req_resp':
drivers//platform/x86/intel_isi_mb.c:852:33: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
852 | if ((sync_req->req_buffer_size >= 0U) &&
| ^~
drivers//platform/x86/intel_isi_mb.c: In function 'isi_dev_ioctl':
>> drivers//platform/x86/intel_isi_mb.c:1004:25: warning: variable 'pctx' set but not used [-Wunused-but-set-variable]
1004 | struct isi_driver_ctx *pctx;
| ^~~~
vim +/memcpy_s +136 drivers//platform/x86/intel_isi_mb.c
122
123 /*
124 * Function :
125 * memcpy_s
126 * Parameters :
127 * void *destination Pointer to destination buffer
128 * size_t dest_size Size of destination buffer
129 * const void *source Constant pointer to source buffer
130 * size_t count Size in bytes to be copied into the destination
131 * buffer.
132 * Return type : 0 - On Success -EINVAL - on Failure Description
133 * This function is local implementation of a library function memcpy_s to fix
134 * Klockwork issue.
135 */
> 136 uint32_t memcpy_s(void *destination, size_t dest_size, void *source,
137 size_t count)
138 {
139 uint32_t status;
140
141 char *src = (char *)source;
142 char *dest = (char *)destination;
143
144 /* Input check. */
145 if ((NULL != src) && (NULL != dest) && (dest_size > 0) && (count > 0) &&
146 (dest_size >= count) && (dest != src)) {
147 /* Overlap condition. */
148 if (((dest > src) && (dest < (src + count))) ||
149 ((src > dest) && (src < (dest + dest_size)))) {
150 status = -EINVAL;
151 } else {
152 memcpy(destination, source, count);
153 status = 0;
154 }
155 } else {
156 status = -EINVAL;
157 }
158
159 return status;
160 }
161
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
[intel-linux-intel-lts:5.4/yocto 8690/8941] drivers/pci/controller/dwc/pcie-keembay.c:799:2: warning: 'strncpy' output truncated before terminating nul copying 2 bytes from a string of the same length
by kernel test robot
tree: https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: 0194b1072920957ee8a7abdfb3ddebee69c1d485
commit: 5f8e6e83b0109640b2711496b4075942798111aa [8690/8941] PCI: keembay: Changes to support VPU PCIe driver
config: riscv-allyesconfig (attached as .config)
compiler: riscv64-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
git checkout 5f8e6e83b0109640b2711496b4075942798111aa
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/pci/controller/dwc/pcie-keembay.c: In function 'keembay_pcie_probe':
>> drivers/pci/controller/dwc/pcie-keembay.c:799:2: warning: 'strncpy' output truncated before terminating nul copying 2 bytes from a string of the same length [-Wstringop-truncation]
799 | strncpy(pcie->stepping, "B0", strlen("B0"));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/strncpy +799 drivers/pci/controller/dwc/pcie-keembay.c
749
750 static int keembay_pcie_probe(struct platform_device *pdev)
751 {
752 const struct keembay_pcie_of_data *data;
753 const struct of_device_id *match;
754 struct device *dev = &pdev->dev;
755 struct keembay_pcie *pcie;
756 struct dw_pcie *pci;
757 struct resource *res;
758 struct device_node *soc_node, *version_node;
759 enum dw_pcie_device_mode mode;
760 const char *prop;
761 int prop_size;
762 int ret;
763
764 match = of_match_device(keembay_pcie_of_match, dev);
765 if (!match)
766 return -EINVAL;
767
768 data = (struct keembay_pcie_of_data *)match->data;
769 mode = (enum dw_pcie_device_mode)data->mode;
770
771 pcie = devm_kzalloc(dev, sizeof(*pcie), GFP_KERNEL);
772 if (!pcie)
773 return -ENOMEM;
774
775 pci = devm_kzalloc(dev, sizeof(*pci), GFP_KERNEL);
776 if (!pci)
777 return -ENOMEM;
778
779 pci->dev = dev;
780 pci->ops = &keembay_pcie_ops;
781
782 pcie->pci = pci;
783 pcie->mode = mode;
784
785 res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "apb");
786 pcie->apb_base = devm_ioremap_resource(dev, res);
787 if (IS_ERR(pcie->apb_base))
788 return PTR_ERR(pcie->apb_base);
789
790 res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "dbi");
791 pci->dbi_base = devm_ioremap_resource(dev, res);
792 if (IS_ERR(pci->dbi_base))
793 return PTR_ERR(pci->dbi_base);
794
795 /* DBI2 shadow register */
796 pci->dbi_base2 = pci->dbi_base + PCIE_DBI2_MASK;
797
798 /* Keem Bay stepping info, based on DT */
> 799 strncpy(pcie->stepping, "B0", strlen("B0"));
800 soc_node = of_get_parent(pdev->dev.of_node);
801 if (soc_node) {
802 version_node = of_get_child_by_name(soc_node, "version-info");
803 if (version_node) {
804 prop = of_get_property(version_node, "stepping",
805 &prop_size);
806 if (prop && prop_size <= KEEMBAY_PCIE_STEPPING_MAXLEN)
807 strncpy(pcie->stepping, prop, prop_size);
808 of_node_put(version_node);
809 }
810 of_node_put(soc_node);
811 }
812
813 platform_set_drvdata(pdev, pcie);
814
815 switch (pcie->mode) {
816 case DW_PCIE_RC_TYPE:
817 if (!IS_ENABLED(CONFIG_PCIE_KEEMBAY_HOST))
818 return -ENODEV;
819
820 ret = keembay_pcie_add_pcie_port(pcie, pdev);
821 if (ret < 0)
822 return ret;
823 break;
824 case DW_PCIE_EP_TYPE:
825 if (!IS_ENABLED(CONFIG_PCIE_KEEMBAY_EP))
826 return -ENODEV;
827
828 ret = keembay_pcie_add_pcie_ep(pcie, pdev);
829 if (ret < 0)
830 return ret;
831 break;
832 default:
833 dev_err(dev, "INVALID device type %d\n", pcie->mode);
834 }
835
836 return 0;
837 }
838
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
[mark-rutland:treewide/thread-flags 1/1] include/linux/thread_info.h:100:12: error: too few arguments to function 'task_thread_info'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git treewide/thread-flags
head: 605be6854b0575e0fe3e7239898e2055c71a8f28
commit: 605be6854b0575e0fe3e7239898e2055c71a8f28 [1/1] treewide: use helper to snapshot thread flags
config: arm64-randconfig-r012-20200731 (attached as .config)
compiler: aarch64-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
git checkout 605be6854b0575e0fe3e7239898e2055c71a8f28
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
arch/arm64/kernel/ptrace.c:1852:5: warning: no previous prototype for 'syscall_trace_enter' [-Wmissing-prototypes]
1852 | int syscall_trace_enter(struct pt_regs *regs)
| ^~~~~~~~~~~~~~~~~~~
In file included from arch/arm64/include/asm/current.h:5,
from include/linux/sched.h:12,
from include/linux/audit.h:12,
from arch/arm64/kernel/ptrace.c:11:
arch/arm64/kernel/ptrace.c: In function 'syscall_trace_enter':
>> include/linux/thread_info.h:100:12: error: too few arguments to function 'task_thread_info'
100 | READ_ONCE(task_thread_info()->flags)
| ^~~~~~~~~~~~~~~~
include/linux/compiler.h:372:9: note: in definition of macro '__compiletime_assert'
372 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler.h:392:2: note: in expansion of macro '_compiletime_assert'
392 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:405:2: note: in expansion of macro 'compiletime_assert'
405 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/linux/compiler.h:405:21: note: in expansion of macro '__native_word'
405 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/linux/compiler.h:291:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
291 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/thread_info.h:100:2: note: in expansion of macro 'READ_ONCE'
100 | READ_ONCE(task_thread_info()->flags)
| ^~~~~~~~~
arch/arm64/kernel/ptrace.c:1854:24: note: in expansion of macro 'read_thread_flags'
1854 | unsigned long flags = read_thread_flags();
| ^~~~~~~~~~~~~~~~~
In file included from include/linux/audit.h:12,
from arch/arm64/kernel/ptrace.c:11:
include/linux/sched.h:1688:35: note: declared here
1688 | static inline struct thread_info *task_thread_info(struct task_struct *task)
| ^~~~~~~~~~~~~~~~
In file included from arch/arm64/include/asm/current.h:5,
from include/linux/sched.h:12,
from include/linux/audit.h:12,
from arch/arm64/kernel/ptrace.c:11:
>> include/linux/thread_info.h:100:12: error: too few arguments to function 'task_thread_info'
100 | READ_ONCE(task_thread_info()->flags)
| ^~~~~~~~~~~~~~~~
include/linux/compiler.h:372:9: note: in definition of macro '__compiletime_assert'
372 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler.h:392:2: note: in expansion of macro '_compiletime_assert'
392 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:405:2: note: in expansion of macro 'compiletime_assert'
405 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/linux/compiler.h:405:21: note: in expansion of macro '__native_word'
405 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/linux/compiler.h:291:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
291 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/thread_info.h:100:2: note: in expansion of macro 'READ_ONCE'
100 | READ_ONCE(task_thread_info()->flags)
| ^~~~~~~~~
arch/arm64/kernel/ptrace.c:1854:24: note: in expansion of macro 'read_thread_flags'
1854 | unsigned long flags = read_thread_flags();
| ^~~~~~~~~~~~~~~~~
In file included from include/linux/audit.h:12,
from arch/arm64/kernel/ptrace.c:11:
include/linux/sched.h:1688:35: note: declared here
1688 | static inline struct thread_info *task_thread_info(struct task_struct *task)
| ^~~~~~~~~~~~~~~~
In file included from arch/arm64/include/asm/current.h:5,
from include/linux/sched.h:12,
from include/linux/audit.h:12,
from arch/arm64/kernel/ptrace.c:11:
>> include/linux/thread_info.h:100:12: error: too few arguments to function 'task_thread_info'
100 | READ_ONCE(task_thread_info()->flags)
| ^~~~~~~~~~~~~~~~
include/linux/compiler.h:372:9: note: in definition of macro '__compiletime_assert'
372 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler.h:392:2: note: in expansion of macro '_compiletime_assert'
392 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:405:2: note: in expansion of macro 'compiletime_assert'
405 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/linux/compiler.h:405:21: note: in expansion of macro '__native_word'
405 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/linux/compiler.h:291:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
291 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/thread_info.h:100:2: note: in expansion of macro 'READ_ONCE'
100 | READ_ONCE(task_thread_info()->flags)
| ^~~~~~~~~
arch/arm64/kernel/ptrace.c:1854:24: note: in expansion of macro 'read_thread_flags'
1854 | unsigned long flags = read_thread_flags();
| ^~~~~~~~~~~~~~~~~
In file included from include/linux/audit.h:12,
from arch/arm64/kernel/ptrace.c:11:
include/linux/sched.h:1688:35: note: declared here
1688 | static inline struct thread_info *task_thread_info(struct task_struct *task)
| ^~~~~~~~~~~~~~~~
In file included from arch/arm64/include/asm/current.h:5,
from include/linux/sched.h:12,
from include/linux/audit.h:12,
from arch/arm64/kernel/ptrace.c:11:
>> include/linux/thread_info.h:100:12: error: too few arguments to function 'task_thread_info'
100 | READ_ONCE(task_thread_info()->flags)
| ^~~~~~~~~~~~~~~~
include/linux/compiler.h:372:9: note: in definition of macro '__compiletime_assert'
372 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler.h:392:2: note: in expansion of macro '_compiletime_assert'
392 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:405:2: note: in expansion of macro 'compiletime_assert'
405 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/linux/compiler.h:405:21: note: in expansion of macro '__native_word'
405 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/linux/compiler.h:291:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
291 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/thread_info.h:100:2: note: in expansion of macro 'READ_ONCE'
100 | READ_ONCE(task_thread_info()->flags)
| ^~~~~~~~~
arch/arm64/kernel/ptrace.c:1854:24: note: in expansion of macro 'read_thread_flags'
1854 | unsigned long flags = read_thread_flags();
| ^~~~~~~~~~~~~~~~~
In file included from include/linux/audit.h:12,
from arch/arm64/kernel/ptrace.c:11:
include/linux/sched.h:1688:35: note: declared here
1688 | static inline struct thread_info *task_thread_info(struct task_struct *task)
| ^~~~~~~~~~~~~~~~
In file included from arch/arm64/include/asm/current.h:5,
from include/linux/sched.h:12,
from include/linux/audit.h:12,
from arch/arm64/kernel/ptrace.c:11:
>> include/linux/thread_info.h:100:12: error: too few arguments to function 'task_thread_info'
100 | READ_ONCE(task_thread_info()->flags)
| ^~~~~~~~~~~~~~~~
include/linux/compiler.h:372:9: note: in definition of macro '__compiletime_assert'
372 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler.h:392:2: note: in expansion of macro '_compiletime_assert'
392 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:405:2: note: in expansion of macro 'compiletime_assert'
405 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/linux/compiler.h:291:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
291 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/thread_info.h:100:2: note: in expansion of macro 'READ_ONCE'
100 | READ_ONCE(task_thread_info()->flags)
| ^~~~~~~~~
arch/arm64/kernel/ptrace.c:1854:24: note: in expansion of macro 'read_thread_flags'
1854 | unsigned long flags = read_thread_flags();
| ^~~~~~~~~~~~~~~~~
In file included from include/linux/audit.h:12,
from arch/arm64/kernel/ptrace.c:11:
include/linux/sched.h:1688:35: note: declared here
1688 | static inline struct thread_info *task_thread_info(struct task_struct *task)
| ^~~~~~~~~~~~~~~~
In file included from <command-line>:
>> include/linux/thread_info.h:100:12: error: too few arguments to function 'task_thread_info'
100 | READ_ONCE(task_thread_info()->flags)
| ^~~~~~~~~~~~~~~~
include/linux/compiler_types.h:264:13: note: in definition of macro '__unqual_scalar_typeof'
264 | _Generic((x), \
| ^
include/linux/compiler.h:292:2: note: in expansion of macro '__READ_ONCE_SCALAR'
292 | __READ_ONCE_SCALAR(x); \
| ^~~~~~~~~~~~~~~~~~
include/linux/thread_info.h:100:2: note: in expansion of macro 'READ_ONCE'
100 | READ_ONCE(task_thread_info()->flags)
| ^~~~~~~~~
arch/arm64/kernel/ptrace.c:1854:24: note: in expansion of macro 'read_thread_flags'
1854 | unsigned long flags = read_thread_flags();
| ^~~~~~~~~~~~~~~~~
In file included from include/linux/audit.h:12,
from arch/arm64/kernel/ptrace.c:11:
include/linux/sched.h:1688:35: note: declared here
1688 | static inline struct thread_info *task_thread_info(struct task_struct *task)
| ^~~~~~~~~~~~~~~~
In file included from <command-line>:
>> include/linux/thread_info.h:100:12: error: too few arguments to function 'task_thread_info'
100 | READ_ONCE(task_thread_info()->flags)
| ^~~~~~~~~~~~~~~~
include/linux/compiler_types.h:264:13: note: in definition of macro '__unqual_scalar_typeof'
264 | _Generic((x), \
| ^
include/linux/compiler.h:284:34: note: in expansion of macro '__READ_ONCE'
284 | __unqual_scalar_typeof(x) __x = __READ_ONCE(x); \
| ^~~~~~~~~~~
include/linux/compiler.h:292:2: note: in expansion of macro '__READ_ONCE_SCALAR'
292 | __READ_ONCE_SCALAR(x); \
| ^~~~~~~~~~~~~~~~~~
include/linux/thread_info.h:100:2: note: in expansion of macro 'READ_ONCE'
100 | READ_ONCE(task_thread_info()->flags)
| ^~~~~~~~~
arch/arm64/kernel/ptrace.c:1854:24: note: in expansion of macro 'read_thread_flags'
1854 | unsigned long flags = read_thread_flags();
| ^~~~~~~~~~~~~~~~~
In file included from include/linux/audit.h:12,
from arch/arm64/kernel/ptrace.c:11:
include/linux/sched.h:1688:35: note: declared here
1688 | static inline struct thread_info *task_thread_info(struct task_struct *task)
| ^~~~~~~~~~~~~~~~
In file included from arch/arm64/include/asm/current.h:5,
from include/linux/sched.h:12,
from include/linux/audit.h:12,
from arch/arm64/kernel/ptrace.c:11:
>> include/linux/thread_info.h:100:12: error: too few arguments to function 'task_thread_info'
100 | READ_ONCE(task_thread_info()->flags)
| ^~~~~~~~~~~~~~~~
include/linux/compiler.h:280:72: note: in definition of macro '__READ_ONCE'
280 | #define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
| ^
include/linux/compiler.h:292:2: note: in expansion of macro '__READ_ONCE_SCALAR'
292 | __READ_ONCE_SCALAR(x); \
| ^~~~~~~~~~~~~~~~~~
include/linux/thread_info.h:100:2: note: in expansion of macro 'READ_ONCE'
100 | READ_ONCE(task_thread_info()->flags)
| ^~~~~~~~~
arch/arm64/kernel/ptrace.c:1854:24: note: in expansion of macro 'read_thread_flags'
1854 | unsigned long flags = read_thread_flags();
| ^~~~~~~~~~~~~~~~~
In file included from include/linux/audit.h:12,
from arch/arm64/kernel/ptrace.c:11:
include/linux/sched.h:1688:35: note: declared here
1688 | static inline struct thread_info *task_thread_info(struct task_struct *task)
| ^~~~~~~~~~~~~~~~
In file included from arch/arm64/include/asm/current.h:5,
from include/linux/sched.h:12,
from include/linux/audit.h:12,
from arch/arm64/kernel/ptrace.c:11:
>> include/linux/thread_info.h:100:12: error: too few arguments to function 'task_thread_info'
100 | READ_ONCE(task_thread_info()->flags)
| ^~~~~~~~~~~~~~~~
include/linux/compiler.h:286:10: note: in definition of macro '__READ_ONCE_SCALAR'
286 | (typeof(x))__x; \
| ^
include/linux/thread_info.h:100:2: note: in expansion of macro 'READ_ONCE'
100 | READ_ONCE(task_thread_info()->flags)
| ^~~~~~~~~
arch/arm64/kernel/ptrace.c:1854:24: note: in expansion of macro 'read_thread_flags'
1854 | unsigned long flags = read_thread_flags();
| ^~~~~~~~~~~~~~~~~
In file included from include/linux/audit.h:12,
from arch/arm64/kernel/ptrace.c:11:
include/linux/sched.h:1688:35: note: declared here
1688 | static inline struct thread_info *task_thread_info(struct task_struct *task)
| ^~~~~~~~~~~~~~~~
arch/arm64/kernel/ptrace.c: At top level:
arch/arm64/kernel/ptrace.c:1875:6: warning: no previous prototype for 'syscall_trace_exit' [-Wmissing-prototypes]
1875 | void syscall_trace_exit(struct pt_regs *regs)
| ^~~~~~~~~~~~~~~~~~
--
arch/arm64/kernel/signal.c:910:17: warning: no previous prototype for 'do_notify_resume' [-Wmissing-prototypes]
910 | asmlinkage void do_notify_resume(struct pt_regs *regs,
| ^~~~~~~~~~~~~~~~
In file included from include/linux/build_bug.h:5,
from include/linux/bits.h:22,
from arch/arm64/include/asm/sysreg.h:12,
from arch/arm64/include/asm/cputype.h:132,
from arch/arm64/include/asm/cache.h:8,
from include/linux/cache.h:6,
from arch/arm64/kernel/signal.c:9:
arch/arm64/kernel/signal.c: In function 'do_notify_resume':
>> include/linux/thread_info.h:100:12: error: too few arguments to function 'task_thread_info'
100 | READ_ONCE(task_thread_info()->flags)
| ^~~~~~~~~~~~~~~~
include/linux/compiler.h:372:9: note: in definition of macro '__compiletime_assert'
372 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler.h:392:2: note: in expansion of macro '_compiletime_assert'
392 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:405:2: note: in expansion of macro 'compiletime_assert'
405 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/linux/compiler.h:405:21: note: in expansion of macro '__native_word'
405 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/linux/compiler.h:291:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
291 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/thread_info.h:100:2: note: in expansion of macro 'READ_ONCE'
100 | READ_ONCE(task_thread_info()->flags)
| ^~~~~~~~~
arch/arm64/kernel/signal.c:949:18: note: in expansion of macro 'read_thread_flags'
949 | thread_flags = read_thread_flags();
| ^~~~~~~~~~~~~~~~~
In file included from arch/arm64/include/asm/tlbflush.h:14,
from arch/arm64/include/asm/pgtable.h:14,
from include/linux/pgtable.h:6,
from include/linux/kasan.h:14,
from include/linux/slab.h:136,
from include/linux/crypto.h:19,
from include/crypto/hash.h:11,
from include/linux/uio.h:10,
from include/linux/socket.h:8,
from include/linux/compat.h:15,
from arch/arm64/kernel/signal.c:10:
include/linux/sched.h:1688:35: note: declared here
1688 | static inline struct thread_info *task_thread_info(struct task_struct *task)
| ^~~~~~~~~~~~~~~~
In file included from include/linux/build_bug.h:5,
from include/linux/bits.h:22,
from arch/arm64/include/asm/sysreg.h:12,
from arch/arm64/include/asm/cputype.h:132,
from arch/arm64/include/asm/cache.h:8,
from include/linux/cache.h:6,
from arch/arm64/kernel/signal.c:9:
>> include/linux/thread_info.h:100:12: error: too few arguments to function 'task_thread_info'
100 | READ_ONCE(task_thread_info()->flags)
| ^~~~~~~~~~~~~~~~
include/linux/compiler.h:372:9: note: in definition of macro '__compiletime_assert'
372 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler.h:392:2: note: in expansion of macro '_compiletime_assert'
392 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:405:2: note: in expansion of macro 'compiletime_assert'
405 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/linux/compiler.h:405:21: note: in expansion of macro '__native_word'
405 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/linux/compiler.h:291:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
291 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/thread_info.h:100:2: note: in expansion of macro 'READ_ONCE'
100 | READ_ONCE(task_thread_info()->flags)
| ^~~~~~~~~
arch/arm64/kernel/signal.c:949:18: note: in expansion of macro 'read_thread_flags'
949 | thread_flags = read_thread_flags();
| ^~~~~~~~~~~~~~~~~
In file included from arch/arm64/include/asm/tlbflush.h:14,
from arch/arm64/include/asm/pgtable.h:14,
from include/linux/pgtable.h:6,
from include/linux/kasan.h:14,
from include/linux/slab.h:136,
from include/linux/crypto.h:19,
from include/crypto/hash.h:11,
from include/linux/uio.h:10,
from include/linux/socket.h:8,
from include/linux/compat.h:15,
from arch/arm64/kernel/signal.c:10:
include/linux/sched.h:1688:35: note: declared here
1688 | static inline struct thread_info *task_thread_info(struct task_struct *task)
| ^~~~~~~~~~~~~~~~
In file included from include/linux/build_bug.h:5,
from include/linux/bits.h:22,
from arch/arm64/include/asm/sysreg.h:12,
from arch/arm64/include/asm/cputype.h:132,
from arch/arm64/include/asm/cache.h:8,
from include/linux/cache.h:6,
from arch/arm64/kernel/signal.c:9:
>> include/linux/thread_info.h:100:12: error: too few arguments to function 'task_thread_info'
100 | READ_ONCE(task_thread_info()->flags)
| ^~~~~~~~~~~~~~~~
include/linux/compiler.h:372:9: note: in definition of macro '__compiletime_assert'
372 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler.h:392:2: note: in expansion of macro '_compiletime_assert'
392 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:405:2: note: in expansion of macro 'compiletime_assert'
405 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/linux/compiler.h:405:21: note: in expansion of macro '__native_word'
405 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/linux/compiler.h:291:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
291 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/thread_info.h:100:2: note: in expansion of macro 'READ_ONCE'
100 | READ_ONCE(task_thread_info()->flags)
| ^~~~~~~~~
arch/arm64/kernel/signal.c:949:18: note: in expansion of macro 'read_thread_flags'
949 | thread_flags = read_thread_flags();
| ^~~~~~~~~~~~~~~~~
In file included from arch/arm64/include/asm/tlbflush.h:14,
from arch/arm64/include/asm/pgtable.h:14,
from include/linux/pgtable.h:6,
from include/linux/kasan.h:14,
from include/linux/slab.h:136,
from include/linux/crypto.h:19,
from include/crypto/hash.h:11,
from include/linux/uio.h:10,
from include/linux/socket.h:8,
from include/linux/compat.h:15,
from arch/arm64/kernel/signal.c:10:
include/linux/sched.h:1688:35: note: declared here
1688 | static inline struct thread_info *task_thread_info(struct task_struct *task)
| ^~~~~~~~~~~~~~~~
In file included from include/linux/build_bug.h:5,
from include/linux/bits.h:22,
from arch/arm64/include/asm/sysreg.h:12,
from arch/arm64/include/asm/cputype.h:132,
from arch/arm64/include/asm/cache.h:8,
from include/linux/cache.h:6,
from arch/arm64/kernel/signal.c:9:
>> include/linux/thread_info.h:100:12: error: too few arguments to function 'task_thread_info'
100 | READ_ONCE(task_thread_info()->flags)
| ^~~~~~~~~~~~~~~~
include/linux/compiler.h:372:9: note: in definition of macro '__compiletime_assert'
372 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler.h:392:2: note: in expansion of macro '_compiletime_assert'
392 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:405:2: note: in expansion of macro 'compiletime_assert'
405 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/linux/compiler.h:405:21: note: in expansion of macro '__native_word'
405 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/linux/compiler.h:291:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
291 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/thread_info.h:100:2: note: in expansion of macro 'READ_ONCE'
100 | READ_ONCE(task_thread_info()->flags)
| ^~~~~~~~~
arch/arm64/kernel/signal.c:949:18: note: in expansion of macro 'read_thread_flags'
949 | thread_flags = read_thread_flags();
| ^~~~~~~~~~~~~~~~~
In file included from arch/arm64/include/asm/tlbflush.h:14,
from arch/arm64/include/asm/pgtable.h:14,
from include/linux/pgtable.h:6,
from include/linux/kasan.h:14,
from include/linux/slab.h:136,
from include/linux/crypto.h:19,
from include/crypto/hash.h:11,
from include/linux/uio.h:10,
from include/linux/socket.h:8,
from include/linux/compat.h:15,
from arch/arm64/kernel/signal.c:10:
include/linux/sched.h:1688:35: note: declared here
1688 | static inline struct thread_info *task_thread_info(struct task_struct *task)
| ^~~~~~~~~~~~~~~~
In file included from include/linux/build_bug.h:5,
from include/linux/bits.h:22,
from arch/arm64/include/asm/sysreg.h:12,
from arch/arm64/include/asm/cputype.h:132,
from arch/arm64/include/asm/cache.h:8,
from include/linux/cache.h:6,
from arch/arm64/kernel/signal.c:9:
>> include/linux/thread_info.h:100:12: error: too few arguments to function 'task_thread_info'
100 | READ_ONCE(task_thread_info()->flags)
| ^~~~~~~~~~~~~~~~
include/linux/compiler.h:372:9: note: in definition of macro '__compiletime_assert'
372 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler.h:392:2: note: in expansion of macro '_compiletime_assert'
392 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:405:2: note: in expansion of macro 'compiletime_assert'
405 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/linux/compiler.h:291:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
291 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/thread_info.h:100:2: note: in expansion of macro 'READ_ONCE'
100 | READ_ONCE(task_thread_info()->flags)
| ^~~~~~~~~
arch/arm64/kernel/signal.c:949:18: note: in expansion of macro 'read_thread_flags'
949 | thread_flags = read_thread_flags();
| ^~~~~~~~~~~~~~~~~
In file included from arch/arm64/include/asm/tlbflush.h:14,
from arch/arm64/include/asm/pgtable.h:14,
from include/linux/pgtable.h:6,
from include/linux/kasan.h:14,
from include/linux/slab.h:136,
from include/linux/crypto.h:19,
from include/crypto/hash.h:11,
from include/linux/uio.h:10,
from include/linux/socket.h:8,
from include/linux/compat.h:15,
from arch/arm64/kernel/signal.c:10:
include/linux/sched.h:1688:35: note: declared here
1688 | static inline struct thread_info *task_thread_info(struct task_struct *task)
| ^~~~~~~~~~~~~~~~
In file included from <command-line>:
>> include/linux/thread_info.h:100:12: error: too few arguments to function 'task_thread_info'
100 | READ_ONCE(task_thread_info()->flags)
| ^~~~~~~~~~~~~~~~
include/linux/compiler_types.h:264:13: note: in definition of macro '__unqual_scalar_typeof'
264 | _Generic((x), \
| ^
include/linux/compiler.h:292:2: note: in expansion of macro '__READ_ONCE_SCALAR'
292 | __READ_ONCE_SCALAR(x); \
| ^~~~~~~~~~~~~~~~~~
include/linux/thread_info.h:100:2: note: in expansion of macro 'READ_ONCE'
100 | READ_ONCE(task_thread_info()->flags)
| ^~~~~~~~~
arch/arm64/kernel/signal.c:949:18: note: in expansion of macro 'read_thread_flags'
949 | thread_flags = read_thread_flags();
| ^~~~~~~~~~~~~~~~~
In file included from arch/arm64/include/asm/tlbflush.h:14,
from arch/arm64/include/asm/pgtable.h:14,
from include/linux/pgtable.h:6,
from include/linux/kasan.h:14,
from include/linux/slab.h:136,
from include/linux/crypto.h:19,
from include/crypto/hash.h:11,
from include/linux/uio.h:10,
from include/linux/socket.h:8,
from include/linux/compat.h:15,
from arch/arm64/kernel/signal.c:10:
include/linux/sched.h:1688:35: note: declared here
1688 | static inline struct thread_info *task_thread_info(struct task_struct *task)
| ^~~~~~~~~~~~~~~~
In file included from <command-line>:
>> include/linux/thread_info.h:100:12: error: too few arguments to function 'task_thread_info'
100 | READ_ONCE(task_thread_info()->flags)
| ^~~~~~~~~~~~~~~~
include/linux/compiler_types.h:264:13: note: in definition of macro '__unqual_scalar_typeof'
264 | _Generic((x), \
| ^
include/linux/compiler.h:284:34: note: in expansion of macro '__READ_ONCE'
284 | __unqual_scalar_typeof(x) __x = __READ_ONCE(x); \
| ^~~~~~~~~~~
include/linux/compiler.h:292:2: note: in expansion of macro '__READ_ONCE_SCALAR'
292 | __READ_ONCE_SCALAR(x); \
| ^~~~~~~~~~~~~~~~~~
include/linux/thread_info.h:100:2: note: in expansion of macro 'READ_ONCE'
100 | READ_ONCE(task_thread_info()->flags)
| ^~~~~~~~~
arch/arm64/kernel/signal.c:949:18: note: in expansion of macro 'read_thread_flags'
949 | thread_flags = read_thread_flags();
| ^~~~~~~~~~~~~~~~~
In file included from arch/arm64/include/asm/tlbflush.h:14,
from arch/arm64/include/asm/pgtable.h:14,
from include/linux/pgtable.h:6,
from include/linux/kasan.h:14,
from include/linux/slab.h:136,
from include/linux/crypto.h:19,
from include/crypto/hash.h:11,
from include/linux/uio.h:10,
from include/linux/socket.h:8,
from include/linux/compat.h:15,
from arch/arm64/kernel/signal.c:10:
include/linux/sched.h:1688:35: note: declared here
1688 | static inline struct thread_info *task_thread_info(struct task_struct *task)
| ^~~~~~~~~~~~~~~~
In file included from include/linux/build_bug.h:5,
from include/linux/bits.h:22,
from arch/arm64/include/asm/sysreg.h:12,
from arch/arm64/include/asm/cputype.h:132,
from arch/arm64/include/asm/cache.h:8,
from include/linux/cache.h:6,
from arch/arm64/kernel/signal.c:9:
>> include/linux/thread_info.h:100:12: error: too few arguments to function 'task_thread_info'
100 | READ_ONCE(task_thread_info()->flags)
| ^~~~~~~~~~~~~~~~
include/linux/compiler.h:280:72: note: in definition of macro '__READ_ONCE'
280 | #define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
| ^
include/linux/compiler.h:292:2: note: in expansion of macro '__READ_ONCE_SCALAR'
292 | __READ_ONCE_SCALAR(x); \
| ^~~~~~~~~~~~~~~~~~
include/linux/thread_info.h:100:2: note: in expansion of macro 'READ_ONCE'
100 | READ_ONCE(task_thread_info()->flags)
| ^~~~~~~~~
arch/arm64/kernel/signal.c:949:18: note: in expansion of macro 'read_thread_flags'
949 | thread_flags = read_thread_flags();
| ^~~~~~~~~~~~~~~~~
In file included from arch/arm64/include/asm/tlbflush.h:14,
from arch/arm64/include/asm/pgtable.h:14,
from include/linux/pgtable.h:6,
from include/linux/kasan.h:14,
from include/linux/slab.h:136,
from include/linux/crypto.h:19,
from include/crypto/hash.h:11,
from include/linux/uio.h:10,
from include/linux/socket.h:8,
from include/linux/compat.h:15,
from arch/arm64/kernel/signal.c:10:
include/linux/sched.h:1688:35: note: declared here
1688 | static inline struct thread_info *task_thread_info(struct task_struct *task)
| ^~~~~~~~~~~~~~~~
In file included from include/linux/build_bug.h:5,
from include/linux/bits.h:22,
from arch/arm64/include/asm/sysreg.h:12,
from arch/arm64/include/asm/cputype.h:132,
from arch/arm64/include/asm/cache.h:8,
from include/linux/cache.h:6,
from arch/arm64/kernel/signal.c:9:
>> include/linux/thread_info.h:100:12: error: too few arguments to function 'task_thread_info'
100 | READ_ONCE(task_thread_info()->flags)
| ^~~~~~~~~~~~~~~~
include/linux/compiler.h:286:10: note: in definition of macro '__READ_ONCE_SCALAR'
286 | (typeof(x))__x; \
| ^
include/linux/thread_info.h:100:2: note: in expansion of macro 'READ_ONCE'
100 | READ_ONCE(task_thread_info()->flags)
| ^~~~~~~~~
arch/arm64/kernel/signal.c:949:18: note: in expansion of macro 'read_thread_flags'
949 | thread_flags = read_thread_flags();
| ^~~~~~~~~~~~~~~~~
In file included from arch/arm64/include/asm/tlbflush.h:14,
from arch/arm64/include/asm/pgtable.h:14,
from include/linux/pgtable.h:6,
from include/linux/kasan.h:14,
from include/linux/slab.h:136,
from include/linux/crypto.h:19,
from include/crypto/hash.h:11,
from include/linux/uio.h:10,
from include/linux/socket.h:8,
from include/linux/compat.h:15,
from arch/arm64/kernel/signal.c:10:
include/linux/sched.h:1688:35: note: declared here
1688 | static inline struct thread_info *task_thread_info(struct task_struct *task)
| ^~~~~~~~~~~~~~~~
..
vim +/task_thread_info +100 include/linux/thread_info.h
86
87 #define set_thread_flag(flag) \
88 set_ti_thread_flag(current_thread_info(), flag)
89 #define clear_thread_flag(flag) \
90 clear_ti_thread_flag(current_thread_info(), flag)
91 #define update_thread_flag(flag, value) \
92 update_ti_thread_flag(current_thread_info(), flag, value)
93 #define test_and_set_thread_flag(flag) \
94 test_and_set_ti_thread_flag(current_thread_info(), flag)
95 #define test_and_clear_thread_flag(flag) \
96 test_and_clear_ti_thread_flag(current_thread_info(), flag)
97 #define test_thread_flag(flag) \
98 test_ti_thread_flag(current_thread_info(), flag)
99 #define read_thread_flags() \
> 100 READ_ONCE(task_thread_info()->flags)
101
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
[intel-linux-intel-lts:5.4/yocto 3/3] drivers/gpu/drm/hantro_driver/hantro.c:465:23: error: implicit declaration of function 'pgprot_noncached'
by kernel test robot
tree: https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: b8b4b73e4f7bffe85610b37cef411bf55b60fbe4
commit: b8b4b73e4f7bffe85610b37cef411bf55b60fbe4 [3/3] drm: Add Keembay media codec driver
config: m68k-randconfig-r011-20200731 (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
git checkout b8b4b73e4f7bffe85610b37cef411bf55b60fbe4
# 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(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/init.h:5,
from include/linux/io.h:10,
from drivers/gpu/drm/hantro_driver/hantro.c:22:
include/linux/scatterlist.h: In function 'sg_set_buf':
arch/m68k/include/asm/page_no.h:33:50: warning: ordered comparison of pointer with null pointer [-Wextra]
33 | #define virt_addr_valid(kaddr) (((void *)(kaddr) >= (void *)PAGE_OFFSET) && \
| ^~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:143:2: note: in expansion of macro 'BUG_ON'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
include/linux/scatterlist.h:143:10: note: in expansion of macro 'virt_addr_valid'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/hantro_driver/hantro.c: In function 'hantro_gem_dumb_create_internal':
drivers/gpu/drm/hantro_driver/hantro.c:183:15: warning: variable 'out_size' set but not used [-Wunused-but-set-variable]
183 | int in_size, out_size;
| ^~~~~~~~
drivers/gpu/drm/hantro_driver/hantro.c: In function 'hantro_mmap':
>> drivers/gpu/drm/hantro_driver/hantro.c:465:23: error: implicit declaration of function 'pgprot_noncached' [-Werror=implicit-function-declaration]
465 | vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
| ^~~~~~~~~~~~~~~~
>> drivers/gpu/drm/hantro_driver/hantro.c:465:23: error: incompatible types when assigning to type 'pgprot_t' {aka 'struct <anonymous>'} from type 'int'
drivers/gpu/drm/hantro_driver/hantro.c:416:22: warning: variable 'pscatter' set but not used [-Wunused-but-set-variable]
416 | struct scatterlist *pscatter = NULL;
| ^~~~~~~~
drivers/gpu/drm/hantro_driver/hantro.c: At top level:
drivers/gpu/drm/hantro_driver/hantro.c:1509:6: warning: no previous prototype for 'hantro_gem_vm_close' [-Wmissing-prototypes]
1509 | void hantro_gem_vm_close(struct vm_area_struct *vma)
| ^~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/hantro_driver/hantro.c:1952:13: warning: no previous prototype for 'hantro_cleanup' [-Wmissing-prototypes]
1952 | void __exit hantro_cleanup(void)
| ^~~~~~~~~~~~~~
drivers/gpu/drm/hantro_driver/hantro.c:1974:12: warning: no previous prototype for 'hantro_init' [-Wmissing-prototypes]
1974 | int __init hantro_init(void)
| ^~~~~~~~~~~
drivers/gpu/drm/hantro_driver/hantro.c:1943:42: warning: 'hantro_platform_info' defined but not used [-Wunused-const-variable=]
1943 | static const struct platform_device_info hantro_platform_info = {
| ^~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/pgprot_noncached +465 drivers/gpu/drm/hantro_driver/hantro.c
404
405 static int hantro_mmap(
406 struct file *filp,
407 struct vm_area_struct *vma)
408 {
409 int ret = 0;
410 struct drm_gem_object *obj = NULL;
411 struct drm_gem_hantro_object *cma_obj;
412 struct drm_vma_offset_node *node;
413 unsigned long page_num = (vma->vm_end - vma->vm_start) >> PAGE_SHIFT;
414 unsigned long address = 0;
415 int sgtidx = 0;
416 struct scatterlist *pscatter = NULL;
417 struct page **pages = NULL;
418
419 if (mutex_lock_interruptible(&hantro_dev.drm_dev->struct_mutex))
420 return -EBUSY;
421 drm_vma_offset_lock_lookup(hantro_dev.drm_dev->vma_offset_manager);
422 node = drm_vma_offset_exact_lookup_locked(hantro_dev.drm_dev->vma_offset_manager,
423 vma->vm_pgoff,
424 vma_pages(vma));
425
426 if (likely(node)) {
427 obj = container_of(node, struct drm_gem_object, vma_node);
428 if (!kref_get_unless_zero(&obj->refcount))
429 obj = NULL;
430 }
431 drm_vma_offset_unlock_lookup(hantro_dev.drm_dev->vma_offset_manager);
432 hantro_unref_drmobj(obj);
433
434 if (!obj) {
435 mutex_unlock(&hantro_dev.drm_dev->struct_mutex);
436 return -EINVAL;
437 }
438 cma_obj = to_drm_gem_hantro_obj(obj);
439
440 if (page_num > cma_obj->num_pages) {
441 mutex_unlock(&hantro_dev.drm_dev->struct_mutex);
442 return -EINVAL;
443 }
444
445 if ((cma_obj->flag & HANTRO_GEM_FLAG_IMPORT) == 0) {
446 address = (unsigned long)cma_obj->vaddr;
447 if (address == 0) {
448 mutex_unlock(&hantro_dev.drm_dev->struct_mutex);
449 return -EINVAL;
450 }
451 ret = drm_gem_mmap_obj(
452 obj,
453 drm_vma_node_size(node) << PAGE_SHIFT,
454 vma);
455
456 if (ret) {
457 mutex_unlock(&hantro_dev.drm_dev->struct_mutex);
458 return ret;
459 }
460 } else {
461 pscatter = &cma_obj->sgt->sgl[sgtidx];
462 #ifdef __amd64__
463 set_memory_uc((unsigned long)cma_obj->vaddr, (int)page_num);
464 #endif
> 465 vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
466 /*else mmap report uncached error for some importer, e.g. i915*/
467 }
468
469 vma->vm_pgoff = 0;
470 if (cma_obj->ddr_channel == DDR0_CHANNEL)
471 ddr_dev = hantro_dev.drm_dev->dev;
472 else if (cma_obj->ddr_channel == DDR1_CHANNEL)
473 ddr_dev = ddr1.dev;
474
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months