summaryrefslogtreecommitdiffstats
path: root/Documentation/iio
diff options
context:
space:
mode:
authorPavel Skripkin <paskripkin@gmail.com>2021-11-08 18:35:25 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2021-11-09 10:02:52 -0800
commit7eb0e28c1d3147e2234512e2beeb99183ac99f58 (patch)
tree5a1fe1a7d9ba50d3ba07f41c2f864b1b3ef3e17b /Documentation/iio
parentba1f70ddd1809c03660ddcfb757e1c1ced8b676d (diff)
downloadlinux-stable-7eb0e28c1d3147e2234512e2beeb99183ac99f58.tar.gz
linux-stable-7eb0e28c1d3147e2234512e2beeb99183ac99f58.tar.bz2
linux-stable-7eb0e28c1d3147e2234512e2beeb99183ac99f58.zip
sysv: use BUILD_BUG_ON instead of runtime check
There were runtime checks about sizes of struct v7_super_block and struct sysv_inode. If one of these checks fail the kernel will panic. Since these values are known at compile time let's use BUILD_BUG_ON(), because it's a standard mechanism for validation checking at build time Link: https://lkml.kernel.org/r/20210813123020.22971-1-paskripkin@gmail.com Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by: Pavel Skripkin <paskripkin@gmail.com> Cc: Christoph Hellwig <hch@lst.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/iio')
0 files changed, 0 insertions, 0 deletions