android_kernel_motorola_sm6375/scripts/Makefile.extrawarn
kamasali Satyanarayan 2c3bda25f8 reverting enum-conversion, Handle CPU state and all USB patches
6e3e74dd04 kbuild: Move -Wenum-enum-conversion to W=2
b046ab1642 kbuild: Move -Wenum-{compare-conditional,enum-conversion} into W=1
reverting Handle CPU state
95e4f62df2 hrtimers: Handle CPU state correctly on hotplug
reverting all USB patches
7a6d6b68db HID: usbhid: Eliminate recurrent out-of-bounds bug in usbhid_parse()
b2ce37d86d usb: Flush altsetting 0 endpoints before reinitializating them after reset.
095cc0b588 usb: renesas_usbhs: Reorder clock handling and power management in probe
768668e159 usb: usbtmc: Fix timeout value in get_stb
90da5d9876 usb: storage: Ignore UAS driver for SanDisk 3.2 Gen2 storage device
5db9d2c508 usb: quirks: Add NO_LPM quirk for SanDisk Extreme 55AE
4f72a8dc6f usb: usbtmc: Fix erroneous generic_read ioctl return
85934459bc usb: usbtmc: Fix erroneous wait_srq ioctl return
8d9a5eaeed usb: usbtmc: Fix erroneous get_stb ioctl error returns
388842c35d USB: usbtmc: use interruptible sleep in usbtmc_read
9dda1e2a66 usb: typec: ucsi: displayport: Fix NULL pointer access
64d5ed26bf usb: typec: tcpm: delay SNK_TRY_WAIT_DEBOUNCE to SRC_TRYWAIT transition
30a7a79360 usb: uhci-platform: Make the clock really optional
d086cca921 usb: chipidea: ci_hdrc_imx: implement usb_phy_init() error handling
b8feb22ee5 usb: chipidea: ci_hdrc_imx: use dev_err_probe()
33f2c60835 usb: chipidea: imx: refine the error handling for hsic
8604f11114 usb: chipidea: imx: change hsic power regulator as optional
a777ccfb9b usb: gadget: aspeed: Add NULL pointer check in ast_vhub_init_dev()
f34551a487 usb: host: max3421-hcd: Add missing spi_device_id table
79af6c0fa8 USB: VLI disk crashes if LPM is used
919025be9a usb: quirks: Add delay init quirk for SanDisk 3.2Gen1 Flash Drive
ab0ffd23f3 usb: quirks: add DELAY_INIT quirk for Silicon Motion Flash Drive
015c39f38e usb: dwc3: gadget: check that event count does not exceed event buffer length
7109b8db9c USB: OHCI: Add quirk for LS7A OHCI controller (rev 0x02)
eebfb64c62 usb: cdns3: Fix deadlock when using NCM gadget
ec0f123f4d USB: serial: simple: add OWON HDS200 series oscilloscope support
d75e4f33e7 USB: serial: option: add Sierra Wireless EM9291
244455a70c USB: serial: ftdi_sio: add support for Abacus Electrics Optical Probe
5d53a1329c USB: storage: quirk for ADATA Portable HDD CH94
bd4c12b86c usb: dwc3: support continuous runtime PM with dual role
2175d3c126 USB: serial: option: match on interface class for Telit FN990B
f26a86f829 USB: serial: option: fix Telit Cinterion FE990A name
57f6ae8b88 USB: serial: option: add Telit Cinterion FE990B compositions
abb9f684f8 USB: serial: ftdi_sio: add support for Altera USB Blaster 3
eb00272aa5 Revert "usb: xhci: Add timeout argument in address_device USB HCD callback"
4364e0f8cf Revert "usb: xhci: Fix NULL pointer dereference on certain command aborts"
e722515dab xhci: pci: Fix indentation in the PCI device ID definitions
19b3918840 usb: gadget: Check bmAttributes only if configuration is valid
9af1d5c4d5 usb: gadget: Fix setting self-powered state on suspend
7367e87b6e usb: gadget: Set self-powered based on MaxPower and bmAttributes
094b49dec3 usb: typec: tcpci_rt1711h: Unmask alert interrupts to fix functionality
b654e4c757 usb: typec: ucsi: increase timeout for PPM reset operations
dcd592ab9d usb: atm: cxacru: fix a flaw in existing endpoint checks
4cd847a7b6 usb: renesas_usbhs: Flush the notify_hotplug_work
a5c8be5903 usb: quirks: Add DELAY_INIT and NO_LPM for Prolific Mass Storage Card Reader
97f8c81570 usb: renesas_usbhs: Use devm_usb_get_phy()
d1968edada usb: renesas_usbhs: Call clk_put()
727dee0857 USB: gadget: f_midi: f_midi_complete to call queue_work
89019ab7a6 usb/gadget: f_midi: Replace tasklet with work
ec42b4a0eb usb/gadget: f_midi: convert tasklets to use new tasklet_setup() API
19aad69c2b usb: dwc3: Fix timeout issue during controller enter/exit from halt state
935e842f98 usb: dwc3: Increase DWC3 controller halt timeout
039cc7d94d USB: serial: option: drop MeiG Smart defines
6621ddcdda USB: serial: option: fix Telit Cinterion FN990A name
b95bd1248b USB: serial: option: add Telit Cinterion FN990B compositions
2b03876842 USB: serial: option: add MeiG Smart SLM828
7cfb70e97f usb: cdc-acm: Fix handling of oversized fragments
a4e1ae5c05 usb: cdc-acm: Check control transfer buffer size before access
42b3050171 USB: cdc-acm: Fill in Renesas R-Car D3 USB Download mode quirk
49f077106f USB: hub: Ignore non-compliant devices with too many configs or interfaces
3a983390d1 usb: gadget: f_midi: fix MIDI Streaming descriptor lengths
a0a18484ce USB: Add USB_QUIRK_NO_LPM quirk for sony xperia xz1 smartphone
a120aad69e USB: quirks: add USB_QUIRK_NO_LPM quirk for Teclast dist
2b8a7cfefd USB: pci-quirks: Fix HCCPARAMS register error for LS7A EHCI
1c231617ac usb: dwc2: gadget: remove of_node reference upon udc_stop
3d921d29d4 usb: gadget: udc: renesas_usb3: Fix compiler warning
27a15815af usb: roles: set switch registered flag early on
cc4e1d76a1 usb: gadget: f_tcm: Don't prepare BOT write request twice
54e7215ed1 usb: gadget: f_tcm: ep_autoconfig with fullspeed endpoint
6e10b792fb usb: gadget: f_tcm: Decrement command ref count on cleanup
5e051636b4 usb: gadget: f_tcm: Translate error to sense
fd8bfaeba4 usb: xhci: Fix NULL pointer dereference on certain command aborts
7032df572e usb: xhci: Add timeout argument in address_device USB HCD callback
7cb72dc08e usb: gadget: f_tcm: Don't free command immediately
3b269db6fe usb: typec: tcpm: set SRC_SEND_CAPABILITIES timeout to PD_T_SENDER_RESPONSE
4b7032d01e Partial revert of xhci: use pm_ptr() instead #ifdef for CONFIG_PM conditionals
1f91ebde6e xhci: use pm_ptr() instead of #ifdef for CONFIG_PM conditionals
76e7577bb8 Revert "usb: gadget: u_serial: Disable ep before setting port to null to fix the crash caused by port being null"
fa4c747246 USB: serial: quatech2: fix null-ptr-deref in qt2_process_read_urb()
bfe60030fc usb: gadget: f_fs: Remove WARN_ON in functionfs_bind
b24a6afa56 usb: fix reference leak in usb_new_device()
7369c8ffc2 USB: core: Disable LPM only for non-suspended ports
01af472c23 USB: usblp: return error when setting unsupported protocol
f5f33fb57a usb: gadget: u_serial: Disable ep before setting port to null to fix the crash caused by port being null
faa0eeaf36 USB: serial: cp210x: add Phoenix Contact UPS Device
a5754f7331 usb-storage: Add max sectors quirk for Nokia 208
dffc4f7d2e USB: serial: option: add Neoway N723-EA support
f8d57de3c8 USB: serial: option: add MeiG Smart SRM815

Change-Id: Ie41f23710250fa57ccaee49aeeb96b0c3535b680
Signed-off-by: kamasali Satyanarayan <quic_kamasali@quicinc.com>
2025-09-29 11:14:00 +05:30

94 lines
2.8 KiB
Text

# SPDX-License-Identifier: GPL-2.0
# ==========================================================================
# make W=... settings
#
# There are three warning groups enabled by W=1, W=2, W=3.
# They are independent, and can be combined like W=12 or W=123.
# ==========================================================================
KBUILD_CFLAGS += $(call cc-disable-warning, packed-not-aligned)
# backward compatibility
KBUILD_EXTRA_WARN ?= $(KBUILD_ENABLE_EXTRA_GCC_CHECKS)
ifeq ("$(origin W)", "command line")
KBUILD_EXTRA_WARN := $(W)
endif
export KBUILD_EXTRA_WARN
#
# W=1 - warnings which may be relevant and do not occur too often
#
ifneq ($(findstring 1, $(KBUILD_EXTRA_WARN)),)
KBUILD_CFLAGS += -Wextra -Wunused -Wno-unused-parameter
KBUILD_CFLAGS += -Wmissing-declarations
KBUILD_CFLAGS += -Wmissing-format-attribute
KBUILD_CFLAGS += -Wmissing-prototypes
KBUILD_CFLAGS += -Wold-style-definition
KBUILD_CFLAGS += -Wmissing-include-dirs
KBUILD_CFLAGS += $(call cc-option, -Wunused-but-set-variable)
KBUILD_CFLAGS += $(call cc-option, -Wunused-const-variable)
KBUILD_CFLAGS += $(call cc-option, -Wpacked-not-aligned)
KBUILD_CFLAGS += $(call cc-option, -Wstringop-truncation)
# The following turn off the warnings enabled by -Wextra
KBUILD_CFLAGS += -Wno-missing-field-initializers
KBUILD_CFLAGS += -Wno-sign-compare
KBUILD_CPPFLAGS += -DKBUILD_EXTRA_WARN1
else
# Some diagnostics enabled by default are noisy.
# Suppress them by using -Wno... except for W=1.
ifdef CONFIG_CC_IS_CLANG
KBUILD_CFLAGS += -Wno-initializer-overrides
KBUILD_CFLAGS += -Wno-format
KBUILD_CFLAGS += -Wno-sign-compare
KBUILD_CFLAGS += -Wno-format-zero-length
KBUILD_CFLAGS += $(call cc-disable-warning, pointer-to-enum-cast)
KBUILD_CFLAGS += $(call cc-disable-warning, unaligned-access)
KBUILD_CFLAGS += $(call cc-disable-warning, cast-function-type-strict)
endif
endif
#
# W=2 - warnings which occur quite often but may still be relevant
#
ifneq ($(findstring 2, $(KBUILD_EXTRA_WARN)),)
KBUILD_CFLAGS += -Wcast-align
KBUILD_CFLAGS += -Wdisabled-optimization
KBUILD_CFLAGS += -Wnested-externs
KBUILD_CFLAGS += -Wshadow
KBUILD_CFLAGS += $(call cc-option, -Wlogical-op)
KBUILD_CFLAGS += -Wmissing-field-initializers
KBUILD_CFLAGS += -Wsign-compare
KBUILD_CFLAGS += $(call cc-option, -Wmaybe-uninitialized)
KBUILD_CFLAGS += $(call cc-option, -Wunused-macros)
KBUILD_CPPFLAGS += -DKBUILD_EXTRA_WARN2
endif
#
# W=3 - more obscure warnings, can most likely be ignored
#
ifneq ($(findstring 3, $(KBUILD_EXTRA_WARN)),)
KBUILD_CFLAGS += -Wbad-function-cast
KBUILD_CFLAGS += -Wcast-qual
KBUILD_CFLAGS += -Wconversion
KBUILD_CFLAGS += -Wpacked
KBUILD_CFLAGS += -Wpadded
KBUILD_CFLAGS += -Wpointer-arith
KBUILD_CFLAGS += -Wredundant-decls
KBUILD_CFLAGS += -Wswitch-default
KBUILD_CFLAGS += $(call cc-option, -Wpacked-bitfield-compat)
KBUILD_CPPFLAGS += -DKBUILD_EXTRA_WARN3
endif