From ad3cf350d35f835887ff12cba73badcefc64149e Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Tue, 30 May 2006 09:38:54 +0000 Subject: [PATCH] Dike out WARNS from kernel module makefiles. Kernels and modules use a different mechanism for setting warning flags, and using WARNS here only has null or negative effects. Submitted by: bde (I think it means "submitted") --- sys/modules/acpi/acpi/Makefile | 1 - sys/modules/acpi/acpi_asus/Makefile | 1 - sys/modules/acpi/acpi_panasonic/Makefile | 1 - sys/modules/acpi/acpi_toshiba/Makefile | 1 - sys/modules/acpi/acpi_video/Makefile | 1 - sys/modules/cpufreq/Makefile | 1 - sys/modules/fdc/Makefile | 1 - sys/modules/geom/geom_eli/Makefile | 1 - 8 files changed, 8 deletions(-) diff --git a/sys/modules/acpi/acpi/Makefile b/sys/modules/acpi/acpi/Makefile index d6ae1d13fe93..4672eb37b91d 100644 --- a/sys/modules/acpi/acpi/Makefile +++ b/sys/modules/acpi/acpi/Makefile @@ -7,7 +7,6 @@ ${.CURDIR}/../../../${MACHINE_ARCH}/acpica KMOD= acpi -WARNS?= 2 # ACPI CA sources CFLAGS+= -I${.CURDIR}/../../../contrib/dev/acpica diff --git a/sys/modules/acpi/acpi_asus/Makefile b/sys/modules/acpi/acpi_asus/Makefile index 17ba482ae494..da7bcf8c10ba 100644 --- a/sys/modules/acpi/acpi_asus/Makefile +++ b/sys/modules/acpi/acpi_asus/Makefile @@ -3,7 +3,6 @@ .PATH: ${.CURDIR}/../../../dev/acpi_support KMOD= acpi_asus -WARNS?= 2 CFLAGS+= -I${.CURDIR}/../../../contrib/dev/acpica SRCS= acpi_asus.c opt_acpi.h acpi_if.h bus_if.h device_if.h SRCS+= opt_ddb.h diff --git a/sys/modules/acpi/acpi_panasonic/Makefile b/sys/modules/acpi/acpi_panasonic/Makefile index 20f33b05a3cb..663d3c2ca49f 100644 --- a/sys/modules/acpi/acpi_panasonic/Makefile +++ b/sys/modules/acpi/acpi_panasonic/Makefile @@ -3,7 +3,6 @@ .PATH: ${.CURDIR}/../../../dev/acpi_support KMOD= acpi_panasonic -WARNS?= 2 CFLAGS+= -I${.CURDIR}/../../../contrib/dev/acpica SRCS= acpi_panasonic.c opt_acpi.h acpi_if.h bus_if.h device_if.h diff --git a/sys/modules/acpi/acpi_toshiba/Makefile b/sys/modules/acpi/acpi_toshiba/Makefile index 9ab04fe3f6a8..24df0915fcce 100644 --- a/sys/modules/acpi/acpi_toshiba/Makefile +++ b/sys/modules/acpi/acpi_toshiba/Makefile @@ -3,7 +3,6 @@ .PATH: ${.CURDIR}/../../../dev/acpi_support KMOD= acpi_toshiba -WARNS?= 2 CFLAGS+= -I${.CURDIR}/../../../contrib/dev/acpica SRCS= acpi_toshiba.c opt_acpi.h acpi_if.h bus_if.h device_if.h diff --git a/sys/modules/acpi/acpi_video/Makefile b/sys/modules/acpi/acpi_video/Makefile index c527efd8fce7..0752a40582bc 100644 --- a/sys/modules/acpi/acpi_video/Makefile +++ b/sys/modules/acpi/acpi_video/Makefile @@ -3,7 +3,6 @@ .PATH: ${.CURDIR}/../../../dev/acpica KMOD= acpi_video -WARNS?= 2 CFLAGS+= -I@/contrib/dev/acpica SRCS= acpi_video.c SRCS+= opt_acpi.h acpi_if.h bus_if.h device_if.h diff --git a/sys/modules/cpufreq/Makefile b/sys/modules/cpufreq/Makefile index 8f675b29fa85..4e820080a30b 100644 --- a/sys/modules/cpufreq/Makefile +++ b/sys/modules/cpufreq/Makefile @@ -4,7 +4,6 @@ ${.CURDIR}/../../${MACHINE_ARCH}/cpufreq KMOD= cpufreq -WARNS?= 2 SRCS= ichss.c SRCS+= bus_if.h cpufreq_if.h device_if.h pci_if.h diff --git a/sys/modules/fdc/Makefile b/sys/modules/fdc/Makefile index b632dcd15896..d61a3073944b 100644 --- a/sys/modules/fdc/Makefile +++ b/sys/modules/fdc/Makefile @@ -1,7 +1,6 @@ # $FreeBSD$ KMOD= fdc -WARNS?= 2 .if ${MACHINE} == "pc98" .PATH: ${.CURDIR}/../../pc98/cbus diff --git a/sys/modules/geom/geom_eli/Makefile b/sys/modules/geom/geom_eli/Makefile index e94fb88307b7..ab4e02444fa6 100644 --- a/sys/modules/geom/geom_eli/Makefile +++ b/sys/modules/geom/geom_eli/Makefile @@ -4,6 +4,5 @@ KMOD= geom_eli SRCS= g_eli.c g_eli_crypto.c g_eli_ctl.c g_eli_key.c pkcs5v2.c vnode_if.h -WARNS?= 2 .include