LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 727|回复: 0

如何给open source的代码的patch里加上自己的email信息?

[复制链接]
发表于 2009-9-16 18:39:39 | 显示全部楼层 |阅读模式
patch能生成出来,用diff -uN a.c.old a.c > a.patch,
但是在patch里面没有自己的标识,因为看到老外提交的patch里面,很多都是有自己email的,这个宏不知道在哪里设置才能加入到patch里?

就是这个signed-off-by

  1. Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
  2. ---
  3. .../hyperthreading/ht_affinity/smt_smp_affinity.sh |    3 +--
  4. .../hyperthreading/ht_enabled/smt_smp_enabled.sh   |    3 +--
  5. 2 files changed, 2 insertions(+), 4 deletions(-)

  6. diff --git a/testcases/kernel/sched/hyperthreading/ht_affinity/smt_smp_affinity.sh b/testcases/kernel/sched/hyperthreading/ht_affinity/smt_smp_affinity.sh
  7. index 109800d..0a33f51 100755
  8. --- a/testcases/kernel/sched/hyperthreading/ht_affinity/smt_smp_affinity.sh
  9. +++ b/testcases/kernel/sched/hyperthreading/ht_affinity/smt_smp_affinity.sh
  10. @@ -44,8 +44,7 @@ if [ -f ./ht_enabled ];then
  11.        if [ $ret_value -ne 0 ];then
  12.                tst_resm TCONF "SMT/SMP is not supported"
  13.                tst_resm TINFO "End: SMT/SMP Affinity"
  14. -               TFAILCNT=$(( $TFAILCNT+1 ))
  15. -               exit $TFAILCNT
  16. +               exit 0
  17.        fi
  18. else
  19.        tst_resm TBROK "ht_enabled:File not found"
  20. diff --git a/testcases/kernel/sched/hyperthreading/ht_enabled/smt_smp_enabled.sh b/testcases/kernel/sched/hyperthreading/ht_enabled/smt_smp_enabled.sh
  21. index 8b8a909..e234ea4 100755
  22. --- a/testcases/kernel/sched/hyperthreading/ht_enabled/smt_smp_enabled.sh
  23. +++ b/testcases/kernel/sched/hyperthreading/ht_enabled/smt_smp_enabled.sh
  24. @@ -41,8 +41,7 @@ if [ -f ./ht_enabled ];then
  25.        if [ $ret_value -ne 0 ];then
  26.                tst_resm TCONF "SMT/SMP is not supported"
  27.                tst_resm TINFO "End: SMT/SMP Enabled"
  28. -               TFAILCNT=$(( $TFAILCNT+1 ))
  29. -               exit $TFAILCNT
  30. +               exit 0
  31.        fi
  32. else
  33.        tst_resm TBROK "ht_enabled:File not found"
  34. --
  35. 1.6.2.4
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表