View Issue Details

IDProjectCategoryView StatusLast Update
0001229channel: elrepo/el8kmod-moxa-mxupciepublic2022-06-04 12:11
Reporteroden Assigned Totoracat  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Summary0001229: kmod-moxa-mxupcie does not compile on RHEL 8.6
DescriptionThe module does not compile on RHEL 8.6. Attached patch fixes the problem.

Gives the following error:

mxser/driver/kernel4.x/mxpcie.c:3756:11: error: 'struct task_struct' has no member named 'state'; did you mean '__state'?
  current->state = TASK_INTERRUPTIBLE;
           ^~~~~
           __state

Additionally, kmod-moxa-mxupcie is absent from the category list in mantisbt.
TagsNo tags attached.
Attached Files
mxpcie.c.diff (366 bytes)   
--- driver/kernel4.x/mxpcie.c	2021-11-08 06:42:32.000000001 +0100
+++ driver/kernel4.x/mxpcie.c.rhel8.6	2022-05-31 08:20:05.585756742 +0200
@@ -3753,7 +3753,7 @@ static void mx_process_txrx_fifo(struct
 
 static void mx_pci_mdelay(unsigned howlong)
 {
-	current->state = TASK_INTERRUPTIBLE;
+	current->__state = TASK_INTERRUPTIBLE;
 	schedule_timeout(howlong);
 }
 
mxpcie.c.diff (366 bytes)   

Activities

toracat

2022-05-31 12:11

administrator   ~0008378

Thanks for the patch. Will build the package for EL 8.6.

We did not rebuild kmod-moxa-mxupcie for 8.6 because the existing version seemed to work fine under 8.6 (no kABI breakage).

toracat

2022-05-31 13:42

administrator   ~0008379

The following packages will be sync'ing to our mirrors shortly:

x86:
kmod-moxa-mxupcie-4.1-3.el8_6.elrepo.x86_64.rpm
kmod-moxa-mxupcie-tools-4.1-3.el8_6.elrepo.x86_64.rpm

src:
kmod-moxa-mxupcie-4.1-3.el8_6.elrepo.src.rpm

Issue History

Date Modified Username Field Change
2022-05-31 03:58 oden New Issue
2022-05-31 03:58 oden Status new => assigned
2022-05-31 03:58 oden Assigned To => toracat
2022-05-31 03:58 oden File Added: mxpcie.c.diff
2022-05-31 06:41 pperry Project channel: elrepo/el7 => channel: elrepo/el8
2022-05-31 06:42 pperry Category --elrepo--request-for-enhancement-- => kmod-moxa-mxupcie
2022-05-31 12:11 toracat Note Added: 0008378
2022-05-31 13:42 toracat Note Added: 0008379
2022-06-04 12:11 toracat Status assigned => resolved
2022-06-04 12:11 toracat Resolution open => fixed