# git rev-parse -q --verify 044ee890286153a1aefb40cb8b6659921aecb38b^{commit} 044ee890286153a1aefb40cb8b6659921aecb38b already have revision, skipping fetch # git checkout -q -f -B kisskb 044ee890286153a1aefb40cb8b6659921aecb38b # git clean -qxdf # < git log -1 # commit 044ee890286153a1aefb40cb8b6659921aecb38b # Author: Linus Torvalds # Date: Mon Oct 29 11:25:24 2018 -0700 # # HID: input: simplify/fix high-res scroll event handling # # Commit 1ff2e1a44e02 ("HID: input: Create a utility class for counting # scroll events") created the helper function # # hid_scroll_counter_handle_scroll() # # to handle high-res scroll events and also expose them as regular wheel # events. # # But the resulting algorithm was unstable, and causes scrolling to be # very unreliable. When you hit the half-way mark of the highres # multiplier, small highres movements will incorrectly translate into big # traditional wheel movements, causing odd jitters. # # Simplify the code and make the output stable. # # NOTE! I'm pretty sure this will need further tweaking. But this at # least turns a unusable mouse wheel on my Logitech MX Anywhere 2S into # a usable one. # # Cc: Jiri Kosina # Cc: Harry Cutts # Cc: Benjamin Tissoires # Cc: Peter Hutterer # Signed-off-by: Linus Torvalds # < /opt/cross/kisskb/fe-x86-64-core-i7-2017.05/bin/x86_64-linux-gcc --version # < git log --format=%s --max-count=1 044ee890286153a1aefb40cb8b6659921aecb38b # < make -s -j 8 ARCH=um O=/kisskb/build/linus_um-defconfig_um-x86_64 CROSS_COMPILE=/opt/cross/kisskb/fe-x86-64-core-i7-2017.05/bin/x86_64-linux- SUBARCH=x86_64 defconfig # make -s -j 8 ARCH=um O=/kisskb/build/linus_um-defconfig_um-x86_64 CROSS_COMPILE=/opt/cross/kisskb/fe-x86-64-core-i7-2017.05/bin/x86_64-linux- SUBARCH=x86_64 /kisskb/src/scripts/unifdef.c: In function 'Mpass': /kisskb/src/scripts/unifdef.c:453:28: warning: 'strncpy' output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] static void Mpass (void) { strncpy(keyword, "if ", 4); Pelif(); } ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/arch/um/os-Linux/skas/process.c: In function 'start_idle_thread': /kisskb/src/arch/um/os-Linux/skas/process.c:613:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /kisskb/src/arch/um/os-Linux/umid.c: In function 'is_umdir_used': /kisskb/src/arch/um/os-Linux/umid.c:138:2: warning: ISO C90 forbids variable length array 'file' [-Wvla] char file[strlen(uml_dir) + UMID_LEN + sizeof("/pid\0")]; ^ /kisskb/src/arch/um/os-Linux/umid.c: In function 'create_pid_file': /kisskb/src/arch/um/os-Linux/umid.c:213:2: warning: ISO C90 forbids variable length array 'file' [-Wvla] char file[strlen(uml_dir) + UMID_LEN + sizeof("/pid\0")]; ^ /kisskb/src/arch/um/os-Linux/umid.c: In function 'remove_umid_dir': /kisskb/src/arch/um/os-Linux/umid.c:388:2: warning: ISO C90 forbids variable length array 'dir' [-Wvla] char dir[strlen(uml_dir) + UMID_LEN + 1], err; ^ /kisskb/src/net/core/rtnetlink.c: In function 'rtnl_newlink': /kisskb/src/net/core/rtnetlink.c:3224:1: warning: the frame size of 1296 bytes is larger than 1024 bytes [-Wframe-larger-than=] } ^ LINK linux Completed OK # rm -rf /kisskb/build/linus_um-defconfig_um-x86_64 # Build took: 0:01:05.089011