Lines Matching refs:fname
69 def get_lib_from_filename(fname): argument
71 if DO_CHECK_INTREE.match(fname) is None:
73 if DO_NOT_CHECK_INTREE.match(fname):
76 if os.path.basename(fname) == "external.mk" and \
77 os.path.exists(fname[:-2] + "desc"):
79 if CONFIG_IN_FILENAME.search(fname):
81 if fname.endswith(".hash"):
83 if fname.endswith(".mk"):
85 if fname.endswith(".patch"):
114 def check_file_using_lib(fname): argument
119 lib = get_lib_from_filename(fname)
122 print("{}: ignored".format(fname))
128 print("{}: would run: {}".format(fname, functions_to_run))
131 objects = [c[1](fname, flags.manual_url) for c in classes]
136 f = open(fname, "r", errors="surrogateescape")
138 f = open(fname, "r")
175 for fname in files_to_check:
176 nwarnings, nlines = check_file_using_lib(fname)