1#!/usr/bin/env bash
2# SPDX-License-Identifier: LGPL-2.1-or-later
3set -eu
4set -o pipefail
5
6for i in *.h */*.h; do
7    curl --fail "https://raw.githubusercontent.com/torvalds/linux/master/include/uapi/linux/$i" -o "$i"
8
9    sed -i -e 's/__user //g' -e '/^#include <linux\/compiler.h>/ d' "$i"
10done
11