@denobis
i have checked your provided patch. you need to create a new patch which only contains your changes so i can review it properly. also it's not based on latest git. use following commands to create proper patch.
Code:
git reset --hard remotes/origin/master
git pull
patch -p0 -i ksv-patch.diff
git commit -a -m "KSV Patches"
then apply your changes and create new patch and also don't use any formatting tools.
Code:
git diff --no-prefix > denobis-patch.diff