Project

General

Profile

Actions

Bug #10298

closed

CIL fails with 'implicit prototype cannot have variadic arguments'

Added by Ilja Zakharov almost 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Start date:
04/22/2020
Due date:
% Done:

0%

Estimated time:
Detected in build:
git
Platform:
Published in build:

Description

CIL fails with the following error:
/home/zakharov/tools/klever/inst/klever-work/native-scheduler/scheduler/jobs/2138e2b0-627a-419d-a738-3dc01e69cffb/klever-core-work-dir/job/vtg/wall/open/weaver/xfuncs.c.aux:93:[kernel] user error: implicit prototype cannot have variadic arguments
91 ldv_access(ldv_func_arg1);
92
93 return ioctl(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
94 }
95
[kernel] user error: skipping file example.c that has errors.

Please, find files in the attachment to reploduce.


Files

command.txt (413 Bytes) command.txt Ilja Zakharov, 04/22/2020 07:04 PM
problem desc.txt (495 Bytes) problem desc.txt Ilja Zakharov, 04/22/2020 07:04 PM
example.c (340 KB) example.c Ilja Zakharov, 04/22/2020 07:04 PM
Actions #1

Updated by Mikhail Mandrykin almost 4 years ago

  • Status changed from New to Resolved

Fixed in framac|88d37324. The error should only be issued for implicit prototypes, but the same code was used for argument promotions regardless of the previously declared prototype.

Actions #2

Updated by Ilja Zakharov almost 4 years ago

Confirm, that it works well.

Actions #3

Updated by Mikhail Mandrykin almost 4 years ago

  • Status changed from Resolved to Closed

Ilja Zakharov confirmed the fix resolved the original issue. Adding Ilja to reporters and closing the issue.

Actions

Also available in: Atom PDF