Skip to content

Instantly share code, notes, and snippets.

@youxiaojie
Created January 9, 2021 15:19
Show Gist options
  • Save youxiaojie/86cd86a19ceb457be56ff70de0a00492 to your computer and use it in GitHub Desktop.
Save youxiaojie/86cd86a19ceb457be56ff70de0a00492 to your computer and use it in GitHub Desktop.
Replace <asm/uaccess.h> with <linux/uaccess.h> globally
Replace <asm/uaccess.h> with <linux/uaccess.h> globally
This was entirely automated, using the script by Al:
PATT='^[[:blank:]]*#[[:blank:]]*include[[:blank:]]*<asm/uaccess.h>'
sed -i -e "s!$PATT!#include <linux/uaccess.h>!" \
$(git grep -l "$PATT"|grep -v ^include/linux/uaccess.h)
to do the replacement at the end of the merge window.
Requested-by: Al Viro <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment