1 // SPDX-License-Identifier: GPL-2.0
2 /// Make sure (of/i2c/platform)_device_id tables are NULL terminated
4 // Keywords: of_table i2c_table platform_table
6 // Options: --include-headers
18 struct \(of_device_id \| i2c_device_id \| platform_device_id\) arr[] = {
25 struct \(of_device_id \| i2c_device_id \| platform_device_id\) arr[] = {
36 struct \(of_device_id \| i2c_device_id \| platform_device_id\) arr[] = {
45 struct \(of_device_id \| i2c_device_id \| platform_device_id\) arr[] = {
52 @r depends on org || report@
58 struct \(of_device_id \| i2c_device_id \| platform_device_id\) arr[] = {
66 struct \(of_device_id \| i2c_device_id \| platform_device_id\) arr[] = {
73 @script:python depends on org@
78 cocci.print_main(arr,p1)
80 @script:python depends on report@
85 msg = "%s is not NULL terminated at line %s" % (arr, p1[0].line)
86 coccilib.report.print_report(p1[0],msg)