[Linux-kernel-mentees] [PATCH 0/2] parsing_cocci: Fix struct pointer funcall regression

Jaskaran Singh jaskaransingh7654321 at gmail.com
Wed May 13 07:29:49 UTC 2020

This series is a fix in response to the following bug report:


The following commit:


Introduces a regression in the following SmPL use case:

	struct s *x;


Where x is a pointer to a struct and func is a function belonging to
said struct. The faulty commit mislabels func as a function prototype
due to a missing case in the function-prototype-detection match ladder.

Enclosed in this patch series is a fix for this and a corresponding test

Jaskaran Singh (2):
      parsing_cocci: parse_cocci: Fix struct pointer funcall regression
      tests: Add test case for struct pointer function call

 parsing_cocci/parse_cocci.ml |    1 +
 tests/structptr_func.c       |    5 +++++
 tests/structptr_func.cocci   |   12 ++++++++++++
 tests/structptr_func.res     |    6 ++++++
 4 files changed, 24 insertions(+)

More information about the Linux-kernel-mentees mailing list