[PATCH] Re: svn commit: r262439 - head/sys/dev/usb/input

From: David Wolfskill <david_at_catwhisker.org>
Date: Mon, 24 Feb 2014 08:51:39 -0800
I encountered an error during buildkernel:

...
===> usb/atp (all)
--- atp.o ---
clang -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc   -DHAVE_KERNEL_OPTION_HEADERS -include /common/S4/obj/usr/src/sys/CANARY/opt_global.h -I. -I_at_ -I_at_/contrib/altq -fno-common -gdwarf-2 -I/common/S4/obj/usr/src/sys/CANARY  -mno-aes -mno-avx -mno-mmx -mno-sse -msoft-float -ffreestanding -fstack-protector -std=iso9899:1999 -Qunused-arguments  -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs -fdiagnostics-show-option  -Wno-error-tautological-compare -Wno-error-empty-body  -Wno-error-parentheses-equality -Wno-unused-function   -c /usr/src/sys/modules/usb/atp/../../../dev/usb/input/atp.c
/usr/src/sys/modules/usb/atp/../../../dev/usb/input/atp.c:797:40: error: unused variable 'atp_sensor_data_interpreters' [-Werror,-Wunused-const-variable]
static const sensor_data_interpreter_t atp_sensor_data_interpreters[TRACKPAD_FAMILY_MAX] = {
                                       ^
1 error generated.
*** [atp.o] Error code 1


The attached patch worked for me.

Now running:

FreeBSD 11.0-CURRENT #1172  r262439M/262439:1100009: Mon Feb 24 08:06:04 PST 2014     root_at_localhost:/common/S4/obj/usr/src/sys/CANARY  i386

Peace,
david
-- 
David H. Wolfskill				david_at_catwhisker.org
Taliban: Evil cowards with guns afraid of truth from a 14-year old girl.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.

Received on Mon Feb 24 2014 - 15:51:40 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:47 UTC