@@ -34,7 +34,11 @@ thermal_zone_device_register_with_trips(const char *type,
#endif /* <6,0,0 */
#if LINUX_VERSION_IS_LESS(6,4,0)
-void *thermal_zone_device_priv(struct thermal_zone_device *tzd);
+#define thermal_zone_device_priv LINUX_BACKPORT(thermal_zone_device_priv)
+static inline void *thermal_zone_device_priv(struct thermal_zone_device *tzd)
+{
+ return tzd->devdata;
+}
#endif /* < 6.4.0 */
#else /* CONFIG_THERMAL */
#if LINUX_VERSION_IS_LESS(5,9,0)
@@ -17,7 +17,7 @@ compat-$(CPTCFG_KERNEL_5_11) += backport-5.11.o
compat-$(CPTCFG_KERNEL_5_13) += backport-5.13.o
compat-$(CPTCFG_KERNEL_5_15) += backport-5.15.o
compat-$(CPTCFG_KERNEL_6_0) += backport-6.0.o
-compat-$(CPTCFG_KERNEL_6_4) += backport-6.4.o
+compat-$(CPTCFG_KERNEL_6_5) += backport-6.5.o
compat-$(CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION) += verification/verify.o
compat-$(CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION) += verification/pkcs7.asn1.o
similarity index 65%
rename from backport/compat/backport-6.4.c
rename to backport/compat/backport-6.5.c
@@ -2,10 +2,8 @@
#include <linux/types.h>
#include <linux/netdevice.h>
-#include <net/dropreason.h>
-#include <linux/thermal.h>
-#if LINUX_VERSION_IS_GEQ(6,2,0) && defined(CONFIG_KUNIT)
+#if LINUX_VERSION_IS_GEQ(6,2,0) && IS_ENABLED(CONFIG_KUNIT)
#include <kunit/test.h>
struct kunit_auto_cleanup {
@@ -45,20 +43,3 @@ void kunit_add_cleanup(struct kunit *test, kunit_cleanup_t cleanup_func,
}
EXPORT_SYMBOL_GPL(kunit_add_cleanup);
#endif /* LINUX_VERSION_IS_GEQ(6,2,0) */
-
-void drop_reasons_register_subsys(enum skb_drop_reason_subsys subsys,
- const struct drop_reason_list *list)
-{}
-EXPORT_SYMBOL_GPL(drop_reasons_register_subsys);
-
-void drop_reasons_unregister_subsys(enum skb_drop_reason_subsys subsys)
-{}
-EXPORT_SYMBOL_GPL(drop_reasons_unregister_subsys);
-
-#ifdef CONFIG_THERMAL
-void *thermal_zone_device_priv(struct thermal_zone_device *tzd)
-{
- return tzd->devdata;
-}
-EXPORT_SYMBOL_GPL(thermal_zone_device_priv);
-#endif /* CONFIG_THERMAL */