From 7ec889b4ca1bcdd3f3e4e8a45a6521dc0bc233c3 Mon Sep 17 00:00:00 2001 From: Pavel Skripkin Date: Tue, 7 Sep 2021 23:03:31 +0300 Subject: tools/syz-usbgen: fix usb_ids.patch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previous patch causes build error on top of v5.14: error: ‘usb_bus_type’ undeclared (first use in this function); did you mean ‘hid_bus_type’? 2299 | bus_for_each_drv(&usb_bus_type, NULL, NULL, usb_device_id_dump_driver); | ^~~~~~~~~~~~ | hid_bus_type Fix it by including drivers/usb/core/usb.h where usb_bus_type declaration is. Also, removed duplicate is_usb_device_driver definition, since it's already in drivers/usb/core/usb.h. Tested localy on qemu Signed-off-by: Pavel Skripkin --- CONTRIBUTORS | 1 + 1 file changed, 1 insertion(+) (limited to 'CONTRIBUTORS') diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 5026bf693..08bc3898a 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -96,3 +96,4 @@ ANSSI Vincent Dagonneau Desmond Cheong Zhi Xi Chuck Silvers +Pavel Skripkin -- cgit mrf-deployment