On Tue, 2018-05-08 at 12:05 +0900, Masashi Honma wrote: > I am trying to backport from Linux 4.4 This will probably not work unless you use an old backports git tree snapshot. > The gentree.py command resulted in these messages. > ---- > Get original source files from git ... > Applying patches from patches to /home/honma/git/linux-stable/backports/ ... > Failed to process SmPL patch > collateral-evolutions/network/0027-genl-const/genl-const.cocci > Traceback (most recent call last): > File "./gentree.py", line 1091, in <module> > ret = _main() > File "./gentree.py", line 724, in _main > logwrite=logwrite) > File "./gentree.py", line 906, in process > apply_patches(args, "backport", source_dir, 'patches', > bpid.target_dir, logwrite) > File "./gentree.py", line 605, in apply_patches > raise Exception('SmPL patch failed') > Exception: SmPL patch failed Then again, this shouldn't happen. > Is this caused by my invalid procedure ? > If so, please tell me right way. No, looks fine - perhaps your spatch version isn't right? What version do you have, and what does it say if you run mkdir /tmp/xyz && spatch --sp-file .../genl-const.cocci --dir /tmp/xyz or something like that? johannes -- To unsubscribe from this list: send the line "unsubscribe backports" in