Project

General

Profile

Bug #12515

vfalls: array subscript is above array bounds

Added by Toomas Soome 3 months ago. Updated 14 days ago.

Status:
New
Priority:
Normal
Assignee:
Category:
driver - device drivers
Start date:
Due date:
% Done:

90%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

While building on SPARC:

    ../../sun4v/cpu/niagara_perfctr.c: In function 'niagara_kstat_init':
    ../../sun4v/cpu/niagara_perfctr.c:381:20: error: array subscript is above array bounds [-Werror=array-bounds]
        ksinfop->pic_reg[1] = lpu_perf_regs[i].pic_reg[1];
        ~~~~~~~~~~~~~~~~^~~
    ../../sun4v/cpu/niagara_perfctr.c: In function 'zam_cntr_kstat_update':
    ../../sun4v/cpu/niagara_perfctr.c:742:51: error: array subscript is above array bounds [-Werror=array-bounds]
        pic1_stat = hv_niagara_getperf(ksinfop->pic_reg[1],
                                       ~~~~~~~~~~~~~~~~^~~
    cc1: all warnings being treated as errors

Apparently there are not 1, but 2 regs.

Testing done: build, install, boot (on T4-1).

History

#1

Updated by Electric Monk 19 days ago

  • Gerrit CR set to 503
#2

Updated by Toomas Soome 14 days ago

  • Description updated (diff)

Also available in: Atom PDF