Centos-kernel-stream-9/drivers/scsi
Herton R. Krzesinski a1b9805d99 kbuild: use $(src) instead of $(srctree)/$(src) for source directory
JIRA: https://issues.redhat.com/browse/RHEL-107194

commit b1992c3772e69a6fd0e3fc81cd4d2820c8b6eca0
Author: Masahiro Yamada <masahiroy@kernel.org>
Date:   Sat Apr 27 23:55:02 2024 +0900

    kbuild: use $(src) instead of $(srctree)/$(src) for source directory

    Kbuild conventionally uses $(obj)/ for generated files, and $(src)/ for
    checked-in source files. It is merely a convention without any functional
    difference. In fact, $(obj) and $(src) are exactly the same, as defined
    in scripts/Makefile.build:

        src := $(obj)

    When the kernel is built in a separate output directory, $(src) does
    not accurately reflect the source directory location. While Kbuild
    resolves this discrepancy by specifying VPATH=$(srctree) to search for
    source files, it does not cover all cases. For example, when adding a
    header search path for local headers, -I$(srctree)/$(src) is typically
    passed to the compiler.

    This introduces inconsistency between upstream and downstream Makefiles
    because $(src) is used instead of $(srctree)/$(src) for the latter.

    To address this inconsistency, this commit changes the semantics of
    $(src) so that it always points to the directory in the source tree.

    Going forward, the variables used in Makefiles will have the following
    meanings:

      $(obj)     - directory in the object tree
      $(src)     - directory in the source tree  (changed by this commit)
      $(objtree) - the top of the kernel object tree
      $(srctree) - the top of the kernel source tree

    Consequently, $(srctree)/$(src) in upstream Makefiles need to be replaced
    with $(src).

    Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
    Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>

Conflicts:

There is a extensive list of fixes/conflicts due the amount of files originally
changed by this commit, plus the difference of rhel-9 code against upstream. All
conflicts/differences are listed below:

- Context difference at Documentation/Makefile since RHEL 9 does not have the
  change "docs: allow to pass extra DOCS_CSS themes via make" and later changes.
- Conflict at Documentation/devicetree/bindings/Makefile, patch find_cmd instead
  of find_all_cmd since RHEL-9 doesn't have "dt-bindings: Consider
  DT_SCHEMA_FILES when finding all json-schema", "dt-bindings: kbuild: Split
  targets out to separate rules" and later changes.
- Conflict at Documentation/kbuild/makefiles.rst due different identation since
  RHEL-9 doesn't have the change "docs/kbuild/makefiles: clean up indentation
  and whitespace"
- Patched additional $(srctree)/$(src) references at:
   * arch/arm/mach-davinci/Makefile
   * arch/arm/mach-omap2/Makefile
   * arch/arm/mach-spear/Makefile
   * arch/arm/plat-pxa/Makefile
   * arch/arm/plat-versatile/Makefile
   * arch/ia64/kernel/Makefile
   * arch/nds32/boot/Makefile
   * arch/nds32/kernel/vdso/Makefile
   * drivers/net/ethernet/hisilicon/hns3/hns3pf/Makefile
   * drivers/net/ethernet/hisilicon/hns3/hns3vf/Makefile
   * drivers/staging/rtl8188eu/Makefile
   * drivers/staging/unisys/visorhba/Makefile
   * drivers/staging/unisys/visornic/Makefile
   * scripts/gcc-plugins/Makefile
  Since RHEL-9 does not have later upstream changes that dropped/made those
  references uneeded.
- Conflict at arch/arm/mach-s3c/Makefile since RHEL-9 doesn't have
  "ARM: s3c: remove s3c24xx specific hacks" and related changes. Also,
  extra locations needed patching because of not having the changes
  "ARM: s3c: remove all s3c24xx support" and "ARM: s3c: fix include path".
  Due lacking the last change also arch/arm/mach-s3c/Makefile.s3c64xx needs
  additional two places patched as well.
- Conflict at arch/arm/plat-orion/Makefile since RHEL-9 doesn't have
  the commit "ARM: orion: fix include path" and its previous related
  changes.
- Dropped changes for arch/loongarch since it doesn't exist on rhel-9
- Dropped changes to arch/parisc/kernel/{vdso32,vdso64}/Makefile since RHEL 9
  does not have the change "parisc: Add vDSO support" and later updates to it.
- Dropped change to arch/riscv/kernel/compat_vdso/Makefile since RHEL 9 does
  not have the change "riscv: compat: vdso: Add COMPAT_VDSO base code implementation"
- Dropped change to arch/riscv/kvm/Makefile since there is no KVM support/commits
  in RHEL 9 for riscv.
- Apply change for arch/riscv/kernel/vdso/Makefile in a different place since
  RHEL-9 does not have the change "riscv: explicitly use symbol offsets for VDSO"
  which changed the location of the $(srctree)/$(src) reference
- Dropped change to certs/Makefile related to check-blacklist-hashes.awk since
  that script was only added with commit "certs: Check that builtin blacklist
  hashes are valid" which is not backported/available in RHEL 9 code right now.
- Dropped change to drivers/md/dm-vdo/Makefile since dm-vdo was never backported
  to RHEL-9 main.
- Dropped change to drivers/net/ethernet/fungible/funeth/Makefile since fungible
  ethernet driver/devices code is not available/backported to RHEL-9.
- Fixed conflict at drivers/net/ethernet/hisilicon/hns3/Makefile since RHEL-9
  does not have the change "net: hns3: refactor hns3 makefile to support
  hns3_common module"
- Fixed conflict at drivers/net/wireless/intel/iwlwifi/mvm/Makefile due already
  backported commit "wifi: iwlwifi: mvm: implement link grading"
- Dropped change to init/Makefile since we are not backporting
  "kbuild: build init/built-in.a just once" that introduced the section patched.
- Dropped change to rust/Makefile since there is no rust support backported
  to RHEL-9.
- Fixed conflict at scripts/dtc/Makefile since RHEL-9 does not have the change
  "dt-bindings: kbuild: Use DTB files for validation"
- Dropped change to security/tomoyo/Makefile since it's not needed, it's just
  reverting the change "tomoyo: fix broken dependency on *.conf.default" which
  was never applied to RHEL-9. However, we also bring a different change/patch
  location since RHEL-9 does not have the change "tomoyo: Omit use of bin2c".
- Dropped change to usr/include/Makefile since "kbuild: move headers_check.pl to
  usr/include/" is not being backported to RHEL-9.
- Misc/minor context differences at other places.

Signed-off-by: Herton R. Krzesinski <herton@redhat.com>
2025-08-19 20:06:24 -03:00
..
aacraid scsi: aacraid: Stop using PCI_IRQ_AFFINITY 2025-08-05 17:37:50 -04:00
aic7xxx kbuild: use $(src) instead of $(srctree)/$(src) for source directory 2025-08-19 20:06:24 -03:00
aic94xx
arcmsr scsi: Constify struct pci_device_id 2025-06-02 11:16:25 -04:00
arm
be2iscsi scsi: Constify struct pci_error_handlers 2025-04-16 02:08:55 +05:30
bfa scsi: Constify struct pci_error_handlers 2025-04-16 02:08:55 +05:30
bnx2fc scsi: bnx2fc: Use kthread_create_on_cpu() 2025-06-03 13:45:22 -04:00
bnx2i scsi: bnx2i: Use kthread_create_on_cpu() 2025-05-09 14:20:00 -07:00
csiostor scsi: Constify struct pci_error_handlers 2025-04-16 02:08:55 +05:30
cxgbi scsi: libcxgbi: Remove an unused field in struct cxgbi_device 2024-11-15 11:18:23 -08:00
cxlflash scsi: Constify struct pci_device_id 2025-06-02 11:16:25 -04:00
device_handler scsi: Expand all create*_workqueue() invocations 2024-11-15 17:58:03 -05:00
dpt treewide: Replace zero-length arrays with flexible-array members 2023-10-20 06:12:35 -04:00
elx scsi: Constify struct pci_device_id 2025-06-02 11:16:25 -04:00
esas2r scsi: esas2r: Simplify an alloc_ordered_workqueue() invocation 2024-11-15 17:58:03 -05:00
fcoe scsi: fcoe: Make fcoe_bus_type const 2025-06-03 13:45:21 -04:00
fnic scsi: fnic: Fix missing DMA mapping error in fnic_send_frame() 2025-06-27 14:47:19 -07:00
hisi_sas block: simplify tag allocation policy selection 2025-03-14 16:48:39 +08:00
ibmvscsi scsi: scsi_transport_fc: Add a max_bsg_segments field to struct fc_function_template 2024-09-27 11:19:01 +08:00
ibmvscsi_tgt scsi: ibmvscsi_tgt: Simplify an alloc_workqueue() invocation 2024-11-15 17:58:03 -05:00
isci minmax: make generic MIN() and MAX() macros available everywhere 2024-11-18 10:30:14 -03:00
libfc scsi: libfc: replace deprecated strncpy() with memcpy() 2025-06-03 13:45:21 -04:00
libsas Merge: ahci driver fixes, update 2024-11-22 09:37:08 +00:00
lpfc scsi: lpfc: Create lpfc_vmid_info sysfs entry 2025-06-09 08:42:54 -04:00
megaraid scsi: Constify struct pci_device_id 2025-06-02 11:16:25 -04:00
mpi3mr scsi: mpi3mr: Fix ATA NCQ priority support 2025-05-29 12:40:27 -04:00
mpt3sas scsi: mpi3mr: Fix ATA NCQ priority support 2025-05-29 12:40:27 -04:00
mvsas scsi: Constify struct pci_device_id 2025-06-02 11:16:25 -04:00
pcmcia
pm8001 scsi: Constify struct pci_device_id 2025-06-02 11:16:25 -04:00
qedf Merge: BNX2X driver updates for 9.7 2025-06-17 15:42:42 -03:00
qedi scsi: Constify struct pci_device_id 2025-06-02 11:16:25 -04:00
qla2xxx Merge: scsi: qla2xxx: update driver to latest upstream 2025-07-07 16:55:56 -03:00
qla4xxx scsi: Constify struct pci_device_id 2025-06-02 11:16:25 -04:00
smartpqi scsi: smartpqi: Delete a stray tab in pqi_is_parity_write_stream() 2025-06-11 17:14:49 -05:00
snic scsi: Constify struct pci_device_id 2025-06-02 11:16:25 -04:00
sym53c8xx_2 scsi: Constify struct pci_device_id 2025-06-02 11:16:25 -04:00
.gitignore
3w-9xxx.c scsi: Constify struct pci_device_id 2025-06-02 11:16:25 -04:00
3w-9xxx.h
3w-sas.c scsi: Constify struct pci_device_id 2025-06-02 11:16:25 -04:00
3w-sas.h
3w-xxxx.c scsi: Constify struct pci_device_id 2025-06-02 11:16:25 -04:00
3w-xxxx.h
53c700.c
53c700.h
53c700.scr
53c700_d.h_shipped
BusLogic.c scsi: Constify struct pci_device_id 2025-06-02 11:16:25 -04:00
BusLogic.h
FlashPoint.c
Kconfig scsi: scsi_proto: Add structures and constants related to I/O groups and streams 2025-03-14 16:48:21 +08:00
Makefile scsi: scsi_proto: Add structures and constants related to I/O groups and streams 2025-03-14 16:48:21 +08:00
NCR5380.c scsi: NCR5380: Use default @max_active for hostdata->work_q 2024-05-03 13:39:25 -04:00
NCR5380.h
a100u2w.c scsi: Constify struct pci_device_id 2025-06-02 11:16:25 -04:00
a100u2w.h
a2091.c
a2091.h
a3000.c
a3000.h
a4000t.c
advansys.c scsi: Constify struct pci_device_id 2025-06-02 11:16:25 -04:00
aha152x.c scsi: core: Add a no_highmem flag to struct Scsi_Host 2024-09-27 11:19:01 +08:00
aha152x.h
aha1542.c
aha1542.h
aha1740.c
aha1740.h
am53c974.c scsi: Constify struct pci_device_id 2025-06-02 11:16:25 -04:00
atari_scsi.c
atp870u.c scsi: Constify struct pci_device_id 2025-06-02 11:16:25 -04:00
atp870u.h
bvme6000_scsi.c
ch.c scsi: ch: Make ch_sysfs_class constant 2024-06-03 13:47:21 -04:00
constants.c
dc395x.c scsi: Constify struct pci_device_id 2025-06-02 11:16:25 -04:00
dc395x.h
dmx3191d.c scsi: Constify struct pci_device_id 2025-06-02 11:16:25 -04:00
dpt_i2o.c
dpti.h
esp_scsi.c
esp_scsi.h
fdomain.c
fdomain.h
fdomain_isa.c
fdomain_pci.c scsi: Constify struct pci_device_id 2025-06-02 11:16:25 -04:00
g_NCR5380.c
gvp11.c
gvp11.h
hosts.c scsi: core: Simplify an alloc_workqueue() invocation 2024-11-15 17:58:04 -05:00
hpsa.c scsi: hpsa: Use PCI_IRQ_INTX instead of PCI_IRQ_LEGACY 2024-08-15 15:31:13 -06:00
hpsa.h
hpsa_cmd.h
hptiop.c scsi: Constify struct pci_device_id 2025-06-02 11:16:25 -04:00
hptiop.h
imm.c scsi: core: Add a no_highmem flag to struct Scsi_Host 2024-09-27 11:19:01 +08:00
imm.h
initio.c scsi: Constify struct pci_device_id 2025-06-02 11:16:25 -04:00
initio.h
ipr.c scsi: Constify struct pci_device_id 2025-06-02 11:16:25 -04:00
ipr.h scsi: ipr: Remove SATA support 2024-09-27 11:19:00 +08:00
ips.c
ips.h
iscsi_boot_sysfs.c
iscsi_tcp.c block: move the stable_writes flag to queue_limits 2024-09-27 11:19:08 +08:00
iscsi_tcp.h
jazz_esp.c
lasi700.c
libiscsi.c
libiscsi_tcp.c
mac53c94.c
mac53c94.h
mac_esp.c
mac_scsi.c
megaraid.c scsi: Constify struct pci_device_id 2025-06-02 11:16:25 -04:00
megaraid.h
mesh.c
mesh.h
mvme16x_scsi.c
mvme147.c
mvme147.h
mvumi.c
mvumi.h
myrb.c scsi: myrb: Simplify an alloc_ordered_workqueue() invocation 2024-11-15 17:58:04 -05:00
myrb.h scsi: myrb: Simplify an alloc_ordered_workqueue() invocation 2024-11-15 17:58:04 -05:00
myrs.c scsi: myrs: Simplify an alloc_ordered_workqueue() invocation 2024-11-15 17:58:04 -05:00
myrs.h scsi: myrs: Simplify an alloc_ordered_workqueue() invocation 2024-11-15 17:58:04 -05:00
ncr53c8xx.c
ncr53c8xx.h
nsp32.c scsi: Constify struct pci_device_id 2025-06-02 11:16:25 -04:00
nsp32.h
nsp32_debug.c
nsp32_io.h
pmcraid.c scsi: Constify struct pci_device_id 2025-06-02 11:16:25 -04:00
pmcraid.h
ppa.c scsi: core: Add a no_highmem flag to struct Scsi_Host 2024-09-27 11:19:01 +08:00
ppa.h
ps3rom.c
qla1280.c scsi: Constify struct pci_device_id 2025-06-02 11:16:25 -04:00
qla1280.h
qlogicfas.c
qlogicfas408.c
qlogicfas408.h
qlogicpti.c
qlogicpti.h
raid_class.c
script_asm.pl
scsi.c scsi: Improve CDL control 2025-05-30 11:28:41 -04:00
scsi_bsg.c scsi: replace the fmode_t argument to ->sg_io_fn with a simple bool 2023-09-18 17:59:17 +08:00
scsi_common.c scsi: Add support for block PR read keys/reservation 2024-11-15 17:57:59 -05:00
scsi_debug.c scsi: scsi_debug: Fix uninitialized variable use 2025-05-30 11:28:39 -04:00
scsi_debugfs.c scsi: core: Improve the code for showing commands in debugfs 2024-11-15 17:58:01 -05:00
scsi_debugfs.h
scsi_devinfo.c scsi: core: Fix an incorrect comment 2024-11-15 17:58:02 -05:00
scsi_dh.c
scsi_error.c scsi: scsi_error: Add comments to scsi_check_sense() 2025-05-30 11:28:40 -04:00
scsi_ioctl.c scsi: scsi_ioctl: Add kernel-doc for exported functions 2025-04-13 14:10:18 -04:00
scsi_lib.c scsi: core: Clear flags for scsi_cmnd that did not complete 2025-05-30 11:28:41 -04:00
scsi_lib_dma.c
scsi_logging.c
scsi_logging.h
scsi_netlink.c
scsi_pm.c scsi: block: pm: Always set request queue runtime active in blk_post_runtime_resume() 2025-05-29 12:03:16 -04:00
scsi_priv.h scsi: sd: Handle read/write CDL timeout failures 2024-06-03 13:47:20 -04:00
scsi_proc.c scsi: core: Fix legacy /proc parsing buffer overflow 2023-11-03 12:17:07 -04:00
scsi_proto_test.c scsi: scsi_proto: Add structures and constants related to I/O groups and streams 2025-03-14 16:48:21 +08:00
scsi_sas_internal.h
scsi_scan.c scsi: core: Fix missing lock protection 2025-05-30 11:28:39 -04:00
scsi_sysctl.c scsi: logging: Fix scsi_logging_level bounds 2025-05-30 11:28:40 -04:00
scsi_sysfs.c scsi: core: Query the Block Limits Extension VPD page 2025-03-14 16:48:21 +08:00
scsi_trace.c scsi: sd: Atomic write support 2024-09-27 11:19:10 +08:00
scsi_transport_api.h
scsi_transport_fc.c scsi: scsi_transport_fc: Allow setting rport state to current state 2025-04-13 14:10:17 -04:00
scsi_transport_iscsi.c scsi: iscsi: Fix missing scsi_host_put() in error path 2025-05-09 14:20:10 -07:00
scsi_transport_sas.c scsi: mpi3mr: Fix ATA NCQ priority support 2025-05-29 12:40:27 -04:00
scsi_transport_spi.c scsi: transport: sas: spi: Fix kernel-doc for exported functions 2025-04-13 14:10:19 -04:00
scsi_transport_srp.c scsi: scsi_transport_srp: Replace min/max nesting with clamp() 2025-05-30 11:28:41 -04:00
scsicam.c
sd.c scsi: core: Introduce the BLIST_SKIP_IO_HINTS flag 2025-03-14 16:50:51 +08:00
sd.h scsi: sd: Translate data lifetime information 2025-03-14 16:48:21 +08:00
sd_dif.c block: move integrity information into queue_limits 2024-09-27 11:19:06 +08:00
sd_trace.h
sd_zbc.c scsi: sd_zbc: block: Respect bio vector limits for REPORT ZONES buffer 2025-05-30 11:28:41 -04:00
sense_codes.h
ses.c scsi: ses: Drop driver owner initialization 2024-11-15 17:58:00 -05:00
sg.c scsi: sg: Enable runtime power management 2025-05-29 13:19:36 -04:00
sgiwd93.c
sim710.c
sni_53c710.c
sr.c block: add a queue_limits_commit_update_frozen helper 2025-01-16 19:21:01 +08:00
sr.h scsi: sr: Fix unintentional arithmetic wraparound 2024-11-15 17:58:01 -05:00
sr_ioctl.c minmax: scsi: fix mis-use of 'clamp()' in sr.c 2024-11-15 17:58:02 -05:00
sr_vendor.c
st.c scsi: st: Tighten the page format heuristics with MODE SELECT 2025-05-30 11:28:41 -04:00
st.h scsi: st: Modify st.c to use the new scsi_error counters 2025-05-29 15:00:37 -04:00
st_options.h
stex.c scsi: Constify struct pci_device_id 2025-06-02 11:16:25 -04:00
storvsc_drv.c scsi: storvsc: Increase the timeouts to storvsc_timeout 2025-07-24 13:23:59 +08:00
sun3_scsi.c
sun3_scsi_vme.c
sun3x_esp.c
sun_esp.c
virtio_scsi.c virtio: blk/scsi: replace blk_mq_virtio_map_queues with blk_mq_map_hw_queues 2025-03-14 16:48:34 +08:00
vmw_pvscsi.c scsi: Expand all create*_workqueue() invocations 2024-11-15 17:58:03 -05:00
vmw_pvscsi.h
wd33c93.c
wd33c93.h
wd719x.c
wd719x.h
xen-scsifront.c
zalon.c
zorro7xx.c
zorro_esp.c