anolis-cloud-kernel/drivers
Geliang Tang c6dd932e4d nvme: drop unused variable ctrl in nvme_setup_cmd
ANBZ: #22935

commit 3a605e32a7 upstream.

The variable 'ctrl' became useless since the code using it was dropped
from nvme_setup_cmd() in the commit 292ddf67bbd5 ("nvme: increment
request genctr on completion"). Fix it to get rid of this compilation
warning in the nvme-5.17 branch:

 drivers/nvme/host/core.c: In function ‘nvme_setup_cmd’:
 drivers/nvme/host/core.c:993:20: warning: unused variable ‘ctrl’ [-Wunused-variable]
   struct nvme_ctrl *ctrl = nvme_req(req)->ctrl;
                     ^~~~

Fixes: 292ddf67bbd5 ("nvme: increment request genctr on completion")
Signed-off-by: Geliang Tang <geliang.tang@suse.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Joseph Qi <joseph.qi@linux.alibaba.com>
Reviewed-by: Guixin Liu <kanie@linux.alibaba.com>
Link: https://gitee.com/anolis/cloud-kernel/pulls/5544
2025-07-31 02:49:39 +00:00
..
accessibility
acpi ACPI: sysfs: validate return type of _STR method 2025-07-04 07:16:23 +00:00
amba
android binder: signal epoll threads of self-work 2025-05-15 02:11:18 +00:00
ata anolis: Update Zhaoxin AHCI SGPIO driver 2024-11-18 18:53:34 +08:00
atm atm: idt77252: fix use-after-free bugs caused by tst_timer 2022-12-02 05:59:03 +00:00
auxdisplay
base anolis: mm/memory_hotplug: support parallel deferred memory online 2025-07-15 01:37:35 +00:00
bcma
block anolis: virtio-blk: rename no_align to pt_enable 2025-06-18 10:50:34 +08:00
bluetooth Bluetooth: hci_ldisc: check HCI_UART_PROTO_READY flag in HCIUARTGETPROTO 2023-10-25 07:33:45 +00:00
bus bus: fsl-mc-bus: fix KASAN use-after-free in fsl_mc_bus_remove() 2025-03-27 05:38:02 +00:00
cdrom block: remove unnecessary argument from blk_execute_rq 2024-11-26 01:40:15 +00:00
char ppdev: Add an error check in register_device 2025-03-31 02:39:21 +00:00
clk clk: mediatek: clk-mt7629-eth: Add check for mtk_alloc_clk_data 2025-03-31 02:09:09 +00:00
clocksource anolis: sw64: cpufreq: optimize the granularity of cpufreq 2025-07-08 06:46:50 +00:00
connector
counter
cpufreq anolis: sw64: cpufreq: optimize the granularity of cpufreq 2025-07-08 06:46:50 +00:00
cpuidle anolis: cpuidle: Do not call default idle in idle=halt and haltpoll 2024-09-14 09:53:12 +08:00
crypto anolis: crypto: ccp: use time_after() instead of time_before() to checks schedule condition 2025-07-23 06:27:52 +00:00
dax anolis: mm: fix some memory interface kabi changes 2025-05-19 03:52:57 +00:00
dca
devfreq
dio
dma dmaengine: at_xdmac: avoid null_prt_deref in at_xdmac_prep_dma_memset 2025-05-26 03:14:14 +00:00
dma-buf dma-buf/sw-sync: don't enable IRQ from sync_print_obj() 2025-03-31 02:36:35 +00:00
edac anolis: EDAC/amd64: Use unicast instead of broadcast to access the cs_config register 2025-06-30 08:00:43 +00:00
eisa
extcon
firewire firewire: fix memory leak for payload of request subaction to IEC 61883-1 FCP region 2023-03-31 03:47:55 +00:00
firmware anolis: efi/libstub: should redefine for_each_set_bitrange_from 2025-04-28 05:45:25 +00:00
fpga fpga: region: add owner module and take its refcount 2025-03-31 02:34:03 +00:00
fsi
gnss
gpio gpio: prevent potential speculation leaks in gpio_device_get_desc() 2024-11-13 02:00:39 +00:00
gpu vfio: Rename vfio_device_put() and vfio_device_try_get() 2025-07-02 03:31:13 +00:00
greybus
hid HID: i2c-hid: remove I2C_HID_READ_PENDING flag to prevent lock-up 2025-05-19 03:50:32 +00:00
hsi
hv
hwmon hwmon: (drivetemp) Fix driver producing garbage data when SCSI errors occur 2025-03-27 03:34:50 +00:00
hwspinlock
hwtracing stm class: Fix a double free in stm_register_device() 2025-03-31 02:09:55 +00:00
i2c i2c: smbus: fix NULL function pointer dereference 2025-05-19 03:51:47 +00:00
i3c i3c: Use i3cdev->desc->info instead of calling i3c_device_get_info() to avoid deadlock 2025-03-25 11:14:47 +00:00
ide block: remove unnecessary argument from blk_execute_rq 2024-11-26 01:40:15 +00:00
idle intel_idle: fix ACPI _CST matching for newer Xeon platforms 2024-11-08 07:03:29 +00:00
iio iio: adc: ti-ads8688: fix information leak in triggered buffer 2025-05-26 03:18:15 +00:00
infiniband IB/core: Fix ib_cache_setup_one error flow cleanup 2025-07-01 09:47:04 +00:00
input Input: uinput - reject requests with unreasonable number of slots 2025-05-15 02:16:46 +00:00
interconnect
iommu anolis: sw64: iommu: do real map on iova in 32bit mmio space 2025-06-05 06:59:14 +00:00
ipack
irqchip anolis: sw64: irqchip: update effective affinity for PINTC 2025-07-08 06:46:50 +00:00
isdn mISDN: Fix a use after free in hfcmulti_tx() 2024-11-01 03:14:12 +00:00
leds leds: trigger: Unregister sysfs attributes before calling deactivate() 2025-03-31 02:13:42 +00:00
lightnvm block: switch polling to be bio based 2024-11-26 01:40:15 +00:00
macintosh
mailbox mailbox: bcm2835: Fix timeout during suspend mode 2025-03-19 06:34:16 +00:00
mcb
md bcache: call force_wake_up_gc() if necessary in check_should_bypass() 2025-05-27 07:31:09 +00:00
media media: dvb-core: Fix use-after-free due on race condition at dvb_net 2025-05-27 09:48:29 +00:00
memory
memstick memstick: r592: Fix UAF bug in r592_remove due to race condition 2023-07-04 01:37:28 +00:00
message scsi: message: mptlan: Fix use after free bug in mptlan_remove() due to race condition 2024-08-15 06:20:33 +00:00
mfd mfd: syscon: Fix null pointer dereference in of_syscon_register() 2025-04-24 11:18:42 +00:00
misc anolis: ccs: add CPU utilization control functionality 2025-07-10 05:33:28 +00:00
mmc block: remove unnecessary argument from blk_execute_rq 2024-11-26 01:40:15 +00:00
most
mtd ubi: Check for too small LEB size in VTBL code 2025-04-24 11:20:59 +00:00
mux
net anolis: net: supports linkdata ethernet controllers 2025-06-23 01:53:55 +00:00
nfc nfc: st-nci: Fix use after free bug in ndlc_remove due to race condition 2023-06-27 03:29:15 +00:00
ntb ntb: intel: Fix the NULL vs IS_ERR() bug for debugfs_create_dir() 2025-03-19 06:39:59 +00:00
nubus
nvdimm nvdimm: Fix devs leaks in scan_labels() 2025-03-28 01:39:21 +00:00
nvme nvme: drop unused variable ctrl in nvme_setup_cmd 2025-07-31 02:49:39 +00:00
nvmem
of of: Fix double free in of_parse_phandle_with_args_map 2025-03-31 02:08:26 +00:00
opp
oprofile
parisc anolis: platform: Support loongson laptop generic driver 2023-07-27 01:36:36 +00:00
parport
pci PCI/MSI: Set device flag indicating only 32-bit MSI support 2025-07-29 16:46:59 +08:00
pcmcia
perf anolis: kvm: fix compilation error when kvm is compiled as m 2024-12-24 11:30:04 +08:00
phy anolis: riscv: remove unused T-HEAD Light file 2023-04-26 12:49:30 +00:00
pinctrl pinctrl: fix deadlock in create_pinctrl() when handling -EPROBE_DEFER 2025-03-31 02:30:27 +00:00
platform anolis: sw64: add powercap driver 2025-06-05 06:59:14 +00:00
pnp
power power: supply: bq24190: Fix use after free bug in bq24190_remove due to race condition 2023-06-27 06:47:07 +00:00
powercap powercap: intel_rapl: Use standard Energy Unit for SPR Dram RAPL domain 2024-08-07 05:55:44 +00:00
pps
ps3
ptp ptp: Ensure info->enable callback is always set 2025-03-27 05:35:28 +00:00
pwm anolis: riscv: pwm: add T-HEAD Light support 2023-02-26 01:51:05 +00:00
rapidio anolis: Revert "dmaengine: Remove the last, used parameters in dma_async_is_tx_complete" 2024-06-03 11:32:38 +00:00
ras anolis: RAS/AMD/ATL: fix error nodes per socket on for Hygon Dhyana processor 2025-07-17 03:51:21 +00:00
regulator regulator: da9211: Use irq handler when ready 2025-03-31 02:19:31 +00:00
remoteproc remoteproc: imx_rproc: Skip over memory region when node value is NULL 2025-03-31 02:12:56 +00:00
reset
rpmsg
rtc rtc: check if __rtc_read_time was successful in rtc_timer_do_work() 2025-03-19 10:02:51 +00:00
s390 block: switch polling to be bio based 2024-11-26 01:40:15 +00:00
sbus
scsi anolis: scsi: support linkdata HBA/RAID controllers 2025-06-23 01:49:06 +00:00
sfi
sh
siox
slimbus
soc anolis: soc: kunpeng_hccs: add driver for kunpeng hccs 2024-12-18 08:52:00 +00:00
soundwire
spi spi: spi-mt65xx: Fix NULL pointer access in interrupt handler 2025-03-31 02:03:20 +00:00
spmi
ssb
staging anolis: arm64: add extra protective code for kunpeng mpam 2024-12-20 04:05:11 +00:00
target scsi: target: core: Fix null-ptr-deref in target_alloc_device() 2025-03-19 09:13:01 +00:00
tc
tee tee: amdtee: fix use-after-free vulnerability in amdtee_close_session 2025-03-19 11:50:42 +08:00
thermal thermal: sysfs: Fix cooling_device_stats_setup() error code path 2024-07-18 03:51:51 +00:00
thunderbolt
tty tty: n_gsm: fix possible out-of-bounds in gsm0_receive() 2025-03-31 02:38:11 +00:00
uio uio_hv_generic: Fix kernel NULL pointer dereference in hv_uio_rescind 2024-09-29 02:11:03 +00:00
usb anolis: sw64: ioremap: map some IO space with ioremap 2025-06-05 06:59:14 +00:00
vdpa vdpa/mlx5: Use the correct dma device when registering memory 2023-07-04 11:10:18 +00:00
vfio vfio: Rename vfio_device_put() and vfio_device_try_get() 2025-07-02 03:31:13 +00:00
vhost vhost: use kzalloc() instead of kmalloc() followed by memset() 2025-05-19 03:41:36 +00:00
video fbcon: Use kzalloc() in fbcon_prepare_logo() 2025-03-28 01:40:18 +00:00
virt anolis: virt: csv-guest: Add support for extended attestation aware request in the CSV3 guest 2025-06-30 07:47:52 +00:00
virtio anolis: virtio-mem: apply parallel deferred memory online 2025-07-15 01:37:35 +00:00
visorbus
vlynq
vme
w1
watchdog watchdog: set cdev owner before adding 2024-08-19 02:14:32 +00:00
xen anolis: mm: fix some memory interface kabi changes 2025-05-19 03:52:57 +00:00
zorro
Kconfig
Makefile