June 11, 2018
2:29 a.m.
On Sat, 09 Jun 2018 17:17:45 +0530, Subhashini Rao Beerisetty said:
My question related to backward compatibility is: If an API’s signature changed from kernel version x.y.z onwards, does the mainline tree code uses the below mentioned logic?
#if LINUX_VERSION_CODE >= KERNEL_VERSION(x,y,z)
No, because whenever an in-kernel API is changed, the person changing it is responsible for fixing all the in-tree uses of the API. You only see the #ifdef above for out-of-tree drivers.