Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/msm/registers: Remove license/etc from generated headers

Since these generated files are no longer checked in, either in mesa or
in the linux kernel, simplify things by dropping the verbose generated
comment.

These were semi-nerf'd on the kernel side, in the name of build
reproducibility, by commit ba64c6737f86 ("drivers: gpu: drm: msm:
registers: improve reproducibility"), but in a way that was semi-
kernel specific. We can just reduce the divergence between kernel
and mesa by just dropping all of this.

Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com>
Patchwork: https://patchwork.freedesktop.org/patch/673551/

Rob Clark f03464c6 a643abb6

+1 -36
+1 -36
drivers/gpu/drm/msm/registers/gen_header.py
··· 444 444 self.variants = set() 445 445 self.file = [] 446 446 self.xml_files = [] 447 - self.copyright_year = None 448 - self.authors = [] 449 - self.license = None 450 447 451 448 def error(self, message): 452 449 parser, filename = self.stack[-1] ··· 683 686 self.parse_field(attrs["name"], attrs) 684 687 elif name == "database": 685 688 self.do_validate(attrs["xsi:schemaLocation"]) 686 - elif name == "copyright": 687 - self.copyright_year = attrs["year"] 688 - elif name == "author": 689 - self.authors.append(attrs["name"] + " <" + attrs["email"] + "> " + attrs["name"]) 690 689 691 690 def end_element(self, name): 692 691 if name == "domain": ··· 699 706 self.current_array = self.current_array.parent 700 707 elif name == "enum": 701 708 self.current_enum = None 702 - elif name == "license": 703 - self.license = self.cdata 704 709 705 710 def character_data(self, data): 706 711 self.cdata += data ··· 859 868 860 869 print("#ifndef %s\n#define %s\n" % (guard, guard)) 861 870 862 - print("""/* Autogenerated file, DO NOT EDIT manually! 863 - 864 - This file was generated by the rules-ng-ng gen_header.py tool in this git repository: 865 - http://gitlab.freedesktop.org/mesa/mesa/ 866 - git clone https://gitlab.freedesktop.org/mesa/mesa.git 867 - 868 - The rules-ng-ng source files this header was generated from are: 869 - """) 870 - maxlen = 0 871 - for filepath in p.xml_files: 872 - new_filepath = re.sub("^.+drivers","drivers",filepath) 873 - maxlen = max(maxlen, len(new_filepath)) 874 - for filepath in p.xml_files: 875 - pad = " " * (maxlen - len(new_filepath)) 876 - filesize = str(os.path.getsize(filepath)) 877 - filesize = " " * (7 - len(filesize)) + filesize 878 - filetime = time.ctime(os.path.getmtime(filepath)) 879 - print("- " + new_filepath + pad + " (" + filesize + " bytes, from <stripped>)") 880 - if p.copyright_year: 881 - current_year = str(datetime.date.today().year) 882 - print() 883 - print("Copyright (C) %s-%s by the following authors:" % (p.copyright_year, current_year)) 884 - for author in p.authors: 885 - print("- " + author) 886 - if p.license: 887 - print(p.license) 888 - print("*/") 871 + print("/* Autogenerated file, DO NOT EDIT manually! */") 889 872 890 873 print() 891 874 print("#ifdef __KERNEL__")