ntop / PF_RING

High-speed packet processing framework
http://www.ntop.org
GNU Lesser General Public License v2.1
2.68k stars 353 forks source link

kernel: Replace deprecated SUBDIRS with M in Makefile #925

Closed ReeseWang closed 4 months ago

ReeseWang commented 6 months ago

Please sign (check) the below before submitting the Pull Request:

Describe changes:

The use of SUBDIRS to specify the location of external module source files has been deprecated since Linux kernel version 5.3. It caused unintended file deletion in my Linux 6.8.1 source tree. The recommended replacement is to use M instead.

This commit updates the Makefile to use M=$(HERE) instead of SUBDIRS=$(HERE) in the 'clean' target. This change ensures compatibility with newer Linux kernels and avoids potential issues during the build process, such as the unintended deletion of files.