Lines Matching refs:pm
351 def checkSingleMessage(self, pm, msg, pmtype = 'warning'): argument
359 result = pm.run_checkpatch()
371 pm = PatchMaker()
372 pm.add_line('include/dm/uclass-id.h', 'UCLASS_WIBBLE,')
373 self.checkSingleMessage(pm, 'NEW_UCLASS')
377 pm = PatchMaker()
378 pm.add_line('common/main.c', 'fdtdec_do_something()')
379 self.checkSingleMessage(pm, 'LIVETREE')
383 pm = PatchMaker()
384 pm.add_line('common/main.c', 'do_wibble(struct cmd_tbl *cmd_tbl)')
385 self.checkSingleMessage(pm, 'CMD_TEST')
389 pm = PatchMaker()
390 pm.add_line('common/main.c', '#ifdef CONFIG_YELLOW')
391 pm.add_line('common/init.h', '#ifdef CONFIG_YELLOW')
392 pm.add_line('fred.dtsi', '#ifdef CONFIG_YELLOW')
393 self.checkSingleMessage(pm, "PREFER_IF")
397 pm = PatchMaker()
398 pm.add_line('common/main.c', '#undef CONFIG_CMD_WHICH')
399 self.checkSingleMessage(pm, 'DEFINE_CONFIG_CMD', 'error')
403 pm = PatchMaker()
405 pm.add_line('include/myfile.h', '#include <dm.h>')
406 self.checkSingleMessage(pm, 'BARRED_INCLUDE_IN_HDR', 'error')
410 pm = PatchMaker()
411 pm.add_line('common/main.c', 'if (CONFIG_IS_ENABLED(CONFIG_CLK))')
412 self.checkSingleMessage(pm, 'CONFIG_IS_ENABLED_CONFIG', 'error')
422 pm = PatchMaker()
423 pm.add_line('common/main.c', '.%s = sizeof(struct(fred)),' % auto)
424 pm.add_line('common/main.c', '.%s = sizeof(struct(mary%s)),' %
427 pm, warning, "struct 'fred' should have a %s suffix" % suffix)