View Issue Details

IDProjectCategoryView StatusLast Update
0001402channel: elrepo/el9kmod-rr64xlpublic2023-11-11 08:08
Reporterpperry Assigned Topperry  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Summary0001402: Errors building kmod-rr64xl for RHEL9.3
DescriptionOpened to track errors building kmod-rr64xl for RHEL9.3

/home/phil/rpmbuild/BUILD/kmod-rr64xl-1.5.6/product/rr64xl/linux/.build/os_linux.c: In function 'get_dmapool_phy_addr':
/home/phil/rpmbuild/BUILD/kmod-rr64xl-1.5.6/product/rr64xl/linux/.build/os_linux.c:185:29: error: implicit declaration of function 'virt_to_bus'; did you mean 'virt_to_fix'? [-Werror=implicit-function-declaration]
  185 | return (BUS_ADDRESS)virt_to_bus(dmapool_virt_addr);
      | ^~~~~~~~~~~
      | virt_to_fix
 
TagsNo tags attached.

Activities

pperry

2023-11-11 08:04

administrator   ~0009414

Fixed with:

diff -Naurp a/osm/linux/os_linux.c b/osm/linux/os_linux.c
--- a/osm/linux/os_linux.c 2021-10-26 08:22:36.000000000 +0100
+++ b/osm/linux/os_linux.c 2023-11-11 12:54:56.904363034 +0000
@@ -182,7 +182,7 @@ void freelist_put_dma(struct freelist *l
 
 BUS_ADDRESS get_dmapool_phy_addr(void *osext, void * dmapool_virt_addr)
 {
- return (BUS_ADDRESS)virt_to_bus(dmapool_virt_addr);
+ return (BUS_ADDRESS)virt_to_phys(dmapool_virt_addr);
 }
 
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,18)) && defined(CONFIG_HIGHMEM)

pperry

2023-11-11 08:08

administrator   ~0009415

Built and released to the testing repo for now:

kmod-rr64xl-1.5.6-4.el9_3.elrepo.src.rpm
kmod-rr64xl-1.5.6-4.el9_3.elrepo.x86_64.rpm

Issue History

Date Modified Username Field Change
2023-11-11 07:33 pperry New Issue
2023-11-11 07:33 pperry Status new => assigned
2023-11-11 07:33 pperry Assigned To => pperry
2023-11-11 08:03 pperry Description Updated
2023-11-11 08:04 pperry Note Added: 0009414
2023-11-11 08:08 pperry Note Added: 0009415
2023-11-11 08:08 pperry Status assigned => resolved
2023-11-11 08:08 pperry Resolution open => fixed