Makefile (03c11eb3b16dc0058589751dfd91f254be2be613) Makefile (a6581ebe76856bf23d1a7f3ee95828173b560a05)
1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for the drm device driver. This driver provides support for the
4# Direct Rendering Infrastructure (DRI) in XFree86 4.1.0 and higher.
5
6# Unconditionally enable W=1 warnings locally
7# --- begin copy-paste W=1 warnings from scripts/Makefile.extrawarn
8subdir-ccflags-y += -Wextra -Wunused -Wno-unused-parameter
9subdir-ccflags-y += -Wmissing-declarations
10subdir-ccflags-y += $(call cc-option, -Wrestrict)
11subdir-ccflags-y += -Wmissing-format-attribute
12subdir-ccflags-y += -Wmissing-prototypes
13subdir-ccflags-y += -Wold-style-definition
14subdir-ccflags-y += -Wmissing-include-dirs
15subdir-ccflags-y += $(call cc-option, -Wunused-but-set-variable)
16subdir-ccflags-y += $(call cc-option, -Wunused-const-variable)
17subdir-ccflags-y += $(call cc-option, -Wpacked-not-aligned)
18subdir-ccflags-y += $(call cc-option, -Wformat-overflow)
19subdir-ccflags-y += $(call cc-option, -Wformat-truncation)
1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for the drm device driver. This driver provides support for the
4# Direct Rendering Infrastructure (DRI) in XFree86 4.1.0 and higher.
5
6# Unconditionally enable W=1 warnings locally
7# --- begin copy-paste W=1 warnings from scripts/Makefile.extrawarn
8subdir-ccflags-y += -Wextra -Wunused -Wno-unused-parameter
9subdir-ccflags-y += -Wmissing-declarations
10subdir-ccflags-y += $(call cc-option, -Wrestrict)
11subdir-ccflags-y += -Wmissing-format-attribute
12subdir-ccflags-y += -Wmissing-prototypes
13subdir-ccflags-y += -Wold-style-definition
14subdir-ccflags-y += -Wmissing-include-dirs
15subdir-ccflags-y += $(call cc-option, -Wunused-but-set-variable)
16subdir-ccflags-y += $(call cc-option, -Wunused-const-variable)
17subdir-ccflags-y += $(call cc-option, -Wpacked-not-aligned)
18subdir-ccflags-y += $(call cc-option, -Wformat-overflow)
19subdir-ccflags-y += $(call cc-option, -Wformat-truncation)
20subdir-ccflags-y += $(call cc-option, -Wstringop-overflow)
20subdir-ccflags-y += $(call cc-option, -Wstringop-truncation)
21# The following turn off the warnings enabled by -Wextra
22ifeq ($(findstring 2, $(KBUILD_EXTRA_WARN)),)
23subdir-ccflags-y += -Wno-missing-field-initializers
24subdir-ccflags-y += -Wno-type-limits
25subdir-ccflags-y += -Wno-shift-negative-value
26endif
27ifeq ($(findstring 3, $(KBUILD_EXTRA_WARN)),)

--- 112 unchanged lines hidden (view full) ---

140 xe_wait_user_fence.o \
141 xe_wa.o \
142 xe_wopcm.o
143
144# graphics hardware monitoring (HWMON) support
145xe-$(CONFIG_HWMON) += xe_hwmon.o
146
147# graphics virtualization (SR-IOV) support
21subdir-ccflags-y += $(call cc-option, -Wstringop-truncation)
22# The following turn off the warnings enabled by -Wextra
23ifeq ($(findstring 2, $(KBUILD_EXTRA_WARN)),)
24subdir-ccflags-y += -Wno-missing-field-initializers
25subdir-ccflags-y += -Wno-type-limits
26subdir-ccflags-y += -Wno-shift-negative-value
27endif
28ifeq ($(findstring 3, $(KBUILD_EXTRA_WARN)),)

--- 112 unchanged lines hidden (view full) ---

141 xe_wait_user_fence.o \
142 xe_wa.o \
143 xe_wopcm.o
144
145# graphics hardware monitoring (HWMON) support
146xe-$(CONFIG_HWMON) += xe_hwmon.o
147
148# graphics virtualization (SR-IOV) support
148xe-y += xe_sriov.o
149xe-y += \
150 xe_memirq.o \
151 xe_sriov.o
149
150xe-$(CONFIG_PCI_IOV) += \
151 xe_lmtt.o \
152 xe_lmtt_2l.o \
153 xe_lmtt_ml.o
154
155# i915 Display compat #defines and #includes
156subdir-ccflags-$(CONFIG_DRM_XE_DISPLAY) += \

--- 148 unchanged lines hidden ---
152
153xe-$(CONFIG_PCI_IOV) += \
154 xe_lmtt.o \
155 xe_lmtt_2l.o \
156 xe_lmtt_ml.o
157
158# i915 Display compat #defines and #includes
159subdir-ccflags-$(CONFIG_DRM_XE_DISPLAY) += \

--- 148 unchanged lines hidden ---