| // SPDX-License-Identifier: GPL-2.0 |
| /// Make sure (of/i2c/platform)_device_id tables are NULL terminated |
| // Keywords: of_table i2c_table platform_table |
| // Options: --include-headers |
| struct \(of_device_id \| i2c_device_id \| platform_device_id\) arr[] = { |
| struct \(of_device_id \| i2c_device_id \| platform_device_id\) arr[] = { |
| struct \(of_device_id \| i2c_device_id \| platform_device_id\) arr[] = { |
| struct \(of_device_id \| i2c_device_id \| platform_device_id\) arr[] = { |
| @r depends on org || report@ |
| struct \(of_device_id \| i2c_device_id \| platform_device_id\) arr[] = { |
| struct \(of_device_id \| i2c_device_id \| platform_device_id\) arr[] = { |
| @script:python depends on org@ |
| @script:python depends on report@ |
| msg = "%s is not NULL terminated at line %s" % (arr, p1[0].line) |
| coccilib.report.print_report(p1[0],msg) |