Project

General

Profile

Actions

Bug #5278

closed

CIF misses extern for local declarations

Added by Vadim Mutilin about 10 years ago. Updated about 10 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Start date:
09/19/2014
Due date:
% Done:

0%

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

Description

GCC output:

include/linux/mm.h: In function ‘free_initmem_default’:
include/linux/mm.h:1626:8: error: array size missing in ‘__init_begin’
include/linux/mm.h:1626:8: error: array size missing in ‘__init_end’

CIF prints:

# 1626 "include/linux/mm.h" 
  extern char __init_begin[];
# 1626 "include/linux/mm.h" 
  extern char __init_end[];
# 1624 "include/linux/mm.h" 
static inline long unsigned int free_initmem_default(int poison)
{
  char __init_begin[];
# 1626 "include/linux/mm.h" 
  char __init_end[];
# 1628 "include/linux/mm.h" 
  return free_reserved_area ( ( void *) & __init_begin , ( void *) & __init_end , poison ,
# 1629 "include/linux/mm.h" 
  ( char *) "unused kernel" );
}

Original code:

1624 static inline unsigned long free_initmem_default(int poison)
1625 {
1626         extern char __init_begin[], __init_end[];

LDV Tools f50982e linux-3.17-rc1.tar.xz 32_7a drivers/gpu/drm/vmwgfx/vmwgfx.ko ldv_main22_sequence_infinite_withcheck_stateful

Related issues 1 (1 open0 closed)

Is duplicate of C Instrumentation Framework - Bug #4789: Missing extern declarations for the arraysOpenEvgeny Novikov03/25/2014

Actions
Actions #1

Updated by Evgeny Novikov about 10 years ago

  • Status changed from New to Rejected

Duplicate, use search.

Actions

Also available in: Atom PDF