[Bug 1940] New: Console_Port_Tbl: initialization from incompatible pointer type

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Thu Oct 20 03:12:13 UTC 2011


https://www.rtems.org/bugzilla/show_bug.cgi?id=1940

           Summary: Console_Port_Tbl: initialization from incompatible
                    pointer type
           Product: RTEMS
           Version: unknown
          Platform: All
        OS/Version: RTEMS
            Status: NEW
          Severity: major
          Priority: P3
         Component: misc
        AssignedTo: joel.sherrill at oarcorp.com
        ReportedBy: ralf.corsepius at rtems.org


Building RTEMS currently raises this kind of warnings (The exact location
varies between targets/BSPs, c.f. below):
...
../../../../../c/src/libchip/serial/ns16550.c:206:20: warning: initialization
from incompatible pointer type [enabled by default]
...

The spots GCC warns about all look like this:
...
console_tbl *c = &Console_Port_Tbl [minor];
...

>From what I can gather, these all should be
console_tbl *c = Console_Port_Tbl [minor];


Provided some of these spots have undergone such conversion in the 
2011-10-18 "dynamic console" patch, I am assuming some may have been missed.

Candidate places to look into (hard to verify due to the excessive number of
defines being involved):

# grep -n 'console_tbl.*Console_Port_Tbl' c/src/libchip/serial/ns16550.c
175:  console_tbl *c = Console_Port_Tbl [minor];
206:  console_tbl *c = &Console_Port_Tbl [minor];
229:  console_tbl *c = Console_Port_Tbl [minor];
488:  console_tbl *c = Console_Port_Tbl [minor];
547:  console_tbl *c = Console_Port_Tbl [minor];
604:  console_tbl *c = &Console_Port_Tbl [minor];
664:    console_tbl *c = &Console_Port_Tbl [minor];
677:    console_tbl *c = &Console_Port_Tbl [minor];

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the bugs mailing list