mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-06 03:45:24 -04:00
6e3e74dd04kbuild: Move -Wenum-enum-conversion to W=2b046ab1642kbuild: Move -Wenum-{compare-conditional,enum-conversion} into W=1 reverting Handle CPU state95e4f62df2hrtimers: Handle CPU state correctly on hotplug reverting all USB patches7a6d6b68dbHID: usbhid: Eliminate recurrent out-of-bounds bug in usbhid_parse()b2ce37d86dusb: Flush altsetting 0 endpoints before reinitializating them after reset.095cc0b588usb: renesas_usbhs: Reorder clock handling and power management in probe768668e159usb: usbtmc: Fix timeout value in get_stb90da5d9876usb: storage: Ignore UAS driver for SanDisk 3.2 Gen2 storage device5db9d2c508usb: quirks: Add NO_LPM quirk for SanDisk Extreme 55AE4f72a8dc6fusb: usbtmc: Fix erroneous generic_read ioctl return85934459bcusb: usbtmc: Fix erroneous wait_srq ioctl return8d9a5eaeedusb: usbtmc: Fix erroneous get_stb ioctl error returns388842c35dUSB: usbtmc: use interruptible sleep in usbtmc_read9dda1e2a66usb: typec: ucsi: displayport: Fix NULL pointer access64d5ed26bfusb: typec: tcpm: delay SNK_TRY_WAIT_DEBOUNCE to SRC_TRYWAIT transition30a7a79360usb: uhci-platform: Make the clock really optionald086cca921usb: chipidea: ci_hdrc_imx: implement usb_phy_init() error handlingb8feb22ee5usb: chipidea: ci_hdrc_imx: use dev_err_probe()33f2c60835usb: chipidea: imx: refine the error handling for hsic8604f11114usb: chipidea: imx: change hsic power regulator as optionala777ccfb9busb: gadget: aspeed: Add NULL pointer check in ast_vhub_init_dev()f34551a487usb: host: max3421-hcd: Add missing spi_device_id table79af6c0fa8USB: VLI disk crashes if LPM is used919025be9ausb: quirks: Add delay init quirk for SanDisk 3.2Gen1 Flash Driveab0ffd23f3usb: quirks: add DELAY_INIT quirk for Silicon Motion Flash Drive015c39f38eusb: dwc3: gadget: check that event count does not exceed event buffer length7109b8db9cUSB: OHCI: Add quirk for LS7A OHCI controller (rev 0x02)eebfb64c62usb: cdns3: Fix deadlock when using NCM gadgetec0f123f4dUSB: serial: simple: add OWON HDS200 series oscilloscope supportd75e4f33e7USB: serial: option: add Sierra Wireless EM9291244455a70cUSB: serial: ftdi_sio: add support for Abacus Electrics Optical Probe5d53a1329cUSB: storage: quirk for ADATA Portable HDD CH94bd4c12b86cusb: dwc3: support continuous runtime PM with dual role2175d3c126USB: serial: option: match on interface class for Telit FN990Bf26a86f829USB: serial: option: fix Telit Cinterion FE990A name57f6ae8b88USB: serial: option: add Telit Cinterion FE990B compositionsabb9f684f8USB: serial: ftdi_sio: add support for Altera USB Blaster 3eb00272aa5Revert "usb: xhci: Add timeout argument in address_device USB HCD callback"4364e0f8cfRevert "usb: xhci: Fix NULL pointer dereference on certain command aborts"e722515dabxhci: pci: Fix indentation in the PCI device ID definitions19b3918840usb: gadget: Check bmAttributes only if configuration is valid9af1d5c4d5usb: gadget: Fix setting self-powered state on suspend7367e87b6eusb: gadget: Set self-powered based on MaxPower and bmAttributes094b49dec3usb: typec: tcpci_rt1711h: Unmask alert interrupts to fix functionalityb654e4c757usb: typec: ucsi: increase timeout for PPM reset operationsdcd592ab9dusb: atm: cxacru: fix a flaw in existing endpoint checks4cd847a7b6usb: renesas_usbhs: Flush the notify_hotplug_worka5c8be5903usb: quirks: Add DELAY_INIT and NO_LPM for Prolific Mass Storage Card Reader97f8c81570usb: renesas_usbhs: Use devm_usb_get_phy()d1968edadausb: renesas_usbhs: Call clk_put()727dee0857USB: gadget: f_midi: f_midi_complete to call queue_work89019ab7a6usb/gadget: f_midi: Replace tasklet with workec42b4a0ebusb/gadget: f_midi: convert tasklets to use new tasklet_setup() API19aad69c2busb: dwc3: Fix timeout issue during controller enter/exit from halt state935e842f98usb: dwc3: Increase DWC3 controller halt timeout039cc7d94dUSB: serial: option: drop MeiG Smart defines6621ddcddaUSB: serial: option: fix Telit Cinterion FN990A nameb95bd1248bUSB: serial: option: add Telit Cinterion FN990B compositions2b03876842USB: serial: option: add MeiG Smart SLM8287cfb70e97fusb: cdc-acm: Fix handling of oversized fragmentsa4e1ae5c05usb: cdc-acm: Check control transfer buffer size before access42b3050171USB: cdc-acm: Fill in Renesas R-Car D3 USB Download mode quirk49f077106fUSB: hub: Ignore non-compliant devices with too many configs or interfaces3a983390d1usb: gadget: f_midi: fix MIDI Streaming descriptor lengthsa0a18484ceUSB: Add USB_QUIRK_NO_LPM quirk for sony xperia xz1 smartphonea120aad69eUSB: quirks: add USB_QUIRK_NO_LPM quirk for Teclast dist2b8a7cfefdUSB: pci-quirks: Fix HCCPARAMS register error for LS7A EHCI1c231617acusb: dwc2: gadget: remove of_node reference upon udc_stop3d921d29d4usb: gadget: udc: renesas_usb3: Fix compiler warning27a15815afusb: roles: set switch registered flag early oncc4e1d76a1usb: gadget: f_tcm: Don't prepare BOT write request twice54e7215ed1usb: gadget: f_tcm: ep_autoconfig with fullspeed endpoint6e10b792fbusb: gadget: f_tcm: Decrement command ref count on cleanup5e051636b4usb: gadget: f_tcm: Translate error to sensefd8bfaeba4usb: xhci: Fix NULL pointer dereference on certain command aborts7032df572eusb: xhci: Add timeout argument in address_device USB HCD callback7cb72dc08eusb: gadget: f_tcm: Don't free command immediately3b269db6feusb: typec: tcpm: set SRC_SEND_CAPABILITIES timeout to PD_T_SENDER_RESPONSE4b7032d01ePartial revert of xhci: use pm_ptr() instead #ifdef for CONFIG_PM conditionals1f91ebde6exhci: use pm_ptr() instead of #ifdef for CONFIG_PM conditionals76e7577bb8Revert "usb: gadget: u_serial: Disable ep before setting port to null to fix the crash caused by port being null"fa4c747246USB: serial: quatech2: fix null-ptr-deref in qt2_process_read_urb()bfe60030fcusb: gadget: f_fs: Remove WARN_ON in functionfs_bindb24a6afa56usb: fix reference leak in usb_new_device()7369c8ffc2USB: core: Disable LPM only for non-suspended ports01af472c23USB: usblp: return error when setting unsupported protocolf5f33fb57ausb: gadget: u_serial: Disable ep before setting port to null to fix the crash caused by port being nullfaa0eeaf36USB: serial: cp210x: add Phoenix Contact UPS Devicea5754f7331usb-storage: Add max sectors quirk for Nokia 208dffc4f7d2eUSB: serial: option: add Neoway N723-EA supportf8d57de3c8USB: serial: option: add MeiG Smart SRM815 Change-Id: Ie41f23710250fa57ccaee49aeeb96b0c3535b680 Signed-off-by: kamasali Satyanarayan <quic_kamasali@quicinc.com>
94 lines
2.8 KiB
Text
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
|