mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-11-23 07:58:59 +00:00
More arrays (and arguments) for dcpd were set to 16, when it looks like
DP_RECEIVER_CAP_SIZE (15) should be used. Fix the remaining cases, seen
with GCC 13:
../drivers/gpu/drm/nouveau/nvif/outp.c: In function 'nvif_outp_acquire_dp':
../include/linux/fortify-string.h:57:33: warning: array subscript 'unsigned char[16][0]' is partly outside array bounds of 'u8[15]' {aka 'unsigned char[15]'} [-Warray-bounds=]
57 | #define __underlying_memcpy __builtin_memcpy
| ^
...
../drivers/gpu/drm/nouveau/nvif/outp.c:140:9: note: in expansion of macro 'memcpy'
140 | memcpy(args.dp.dpcd, dpcd, sizeof(args.dp.dpcd));
| ^~~~~~
../drivers/gpu/drm/nouveau/nvif/outp.c:130:49: note: object 'dpcd' of size [0, 15]
130 | nvif_outp_acquire_dp(struct nvif_outp *outp, u8 dpcd[DP_RECEIVER_CAP_SIZE],
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
Fixes:
|
||
|---|---|---|
| .. | ||
| cl0002.h | ||
| cl0046.h | ||
| cl0080.h | ||
| cl9097.h | ||
| class.h | ||
| clb069.h | ||
| client.h | ||
| conn.h | ||
| device.h | ||
| disp.h | ||
| driver.h | ||
| event.h | ||
| fifo.h | ||
| head.h | ||
| if000a.h | ||
| if000b.h | ||
| if000c.h | ||
| if000d.h | ||
| if000e.h | ||
| if500b.h | ||
| if500d.h | ||
| if900b.h | ||
| if900d.h | ||
| if0000.h | ||
| if0001.h | ||
| if0002.h | ||
| if0003.h | ||
| if0004.h | ||
| if0005.h | ||
| if0008.h | ||
| if0010.h | ||
| if0011.h | ||
| if0012.h | ||
| if0013.h | ||
| if0014.h | ||
| if0020.h | ||
| if0021.h | ||
| ifb00d.h | ||
| ifc00d.h | ||
| ioctl.h | ||
| mem.h | ||
| mmu.h | ||
| object.h | ||
| os.h | ||
| outp.h | ||
| parent.h | ||
| printf.h | ||
| push006c.h | ||
| push206e.h | ||
| push507c.h | ||
| push906f.h | ||
| push.h | ||
| pushc37b.h | ||
| timer.h | ||
| unpack.h | ||
| user.h | ||
| vmm.h | ||