HID: hiddev: Fix slab-out-of-bounds write in hiddev_ioctl_usage()
[linux/fpc-iii.git] / Documentation / features / list-arch.sh
blob6065124a072f9b0229e77489462a001e884a01a1
2 # Small script that visualizes the kernel feature support status
3 # of an architecture.
5 # (If no arguments are given then it will print the host architecture's status.)
8 ARCH=${1:-$(arch | sed 's/x86_64/x86/' | sed 's/i386/x86/')}
10 cd $(dirname $0)
11 echo "#"
12 echo "# Kernel feature support matrix of the '$ARCH' architecture:"
13 echo "#"
15 for F in */*/arch-support.txt; do
16 SUBSYS=$(echo $F | cut -d/ -f1)
17 N=$(grep -h "^# Feature name:" $F | cut -c25-)
18 C=$(grep -h "^# Kconfig:" $F | cut -c25-)
19 D=$(grep -h "^# description:" $F | cut -c25-)
20 S=$(grep -hw $ARCH $F | cut -d\| -f3)
22 printf "%10s/%-22s:%s| %35s # %s\n" "$SUBSYS" "$N" "$S" "$C" "$D"
23 done