<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_1_1434475273539_2844">Hello Team,</div><div id="yui_3_16_0_1_1434475273539_3056"><br></div><div id="yui_3_16_0_1_1434475273539_3057">I'm trying to make a commit to a checkpatch fix , and i have followed the instructions in the first patch tutorial but i'm not able to commit .</div><div id="yui_3_16_0_1_1434475273539_3273"><br></div><div id="yui_3_16_0_1_1434475273539_3106">Following were the steps done .</div><div id="yui_3_16_0_1_1434475273539_3107"><br></div><div id="yui_3_16_0_1_1434475273539_3108">1)Made changes to the file <br></div><div id="yui_3_16_0_1_1434475273539_3109"><br></div><div id="yui_3_16_0_1_1434475273539_3110">2)Run <b>git diff</b> command got the below output <br></div><div id="yui_3_16_0_1_1434475273539_3111"><br></div><div id="yui_3_16_0_1_1434475273539_3128" dir="ltr">diff --git a/drivers/staging/comedi/comedi_fops.c b/drivers/staging/comedi/comedi_fops.c<br style="" class="">index 146ab00..02a41bc 100644<br style="" class="">--- a/drivers/staging/comedi/comedi_fops.c<br style="" class="">+++ b/drivers/staging/comedi/comedi_fops.c<br style="" class="">@@ -2611,7 +2611,7 @@ static int comedi_open(struct inode *inode, struct file *file)<br style="" class=""> }<br style="" class=""> if (dev->attached && dev->use_count == 0) {<br style="" class=""> if (!try_module_get(dev->driver->module)) {<br style="" class="">- rc = -ENOSYS;<br style="" class="">+ rc = -ENODATA;<br style="" class=""> goto out;<br style="" class=""> }<br style="" class=""> if (dev->open) {</div><div id="yui_3_16_0_1_1434475273539_3144" dir="ltr"><br style="" class=""></div><div id="yui_3_16_0_1_1434475273539_3129" dir="ltr">3) when i run <b id="yui_3_16_0_1_1434475273539_3174">git commit -a</b> i get the below message and the same goes for <b id="yui_3_16_0_1_1434475273539_3267">git commit -s -v </b><br></div><div id="yui_3_16_0_1_1434475273539_3155" dir="ltr"><br></div><div id="yui_3_16_0_1_1434475273539_3175" dir="ltr">bash-4.2$ git commit -a<br style="" class="">usage: git diff-index [-m] [--cached] [<common diff options>] <tree-ish> [<path>...]<br style="" class="">common diff options:<br style="" class=""> -z output diff-raw with lines terminated with NUL.<br style="" class=""> -p output patch format.<br style="" class=""> -u synonym for -p.<br style="" class=""> --patch-with-raw<br style="" class=""> output both a patch and the diff-raw format.<br style="" class=""> --stat show diffstat instead of patch.<br style="" class=""> --numstat show numeric diffstat instead of patch.<br style="" class=""> --patch-with-stat<br style="" class=""> output a patch and prepend its diffstat.<br style="" class=""> --name-only show only names of changed files.<br style="" class=""> --name-status show names and status of changed files.<br style="" class=""> --full-index show full object name on index lines.<br style="" class=""> --abbrev=<n> abbreviate object names in diff-tree header and diff-raw.<br style="" class=""> -R swap input file pairs.<br style="" class=""> -B detect complete rewrites.<br style="" class=""> -M detect renames.<br style="" class=""> -C detect copies.<br style="" class=""> --find-copies-harder<br style="" class=""> try unchanged files as candidate for copy detection.<br style="" class=""> -l<n> limit rename attempts up to <n> paths.<br style="" class=""> -O<file> reorder diffs according to the <file>.<br style="" class=""> -S<string> find filepair whose only one side contains the string.<br style="" class=""> --pickaxe-all<br style="" class=""> show all files diff when -S is used and hit is found.<br style="" class=""> -a --text treat all files as text.<br style="" class=""></div><div id="yui_3_16_0_1_1434475273539_3216" dir="ltr"><br></div><div id="yui_3_16_0_1_1434475273539_3252" dir="ltr">i'm not able to commit the changes ,let us know what could be the problem . Below is the details of the git version <br></div><div dir="ltr"><b><br></b></div><div id="yui_3_16_0_1_1434475273539_3279" dir="ltr"><b>git version 1.7.11.7</b></div><div id="yui_3_16_0_1_1434475273539_3258" dir="ltr"><b>OS : Fedora </b><br></div><div id="yui_3_16_0_1_1434475273539_3259" style="" class=""><br></div><div id="yui_3_16_0_1_1434475273539_3280" style="" class="">Regards,</div><div id="yui_3_16_0_1_1434475273539_3266" style="" class=""><br></div><div id="yui_3_16_0_1_1434475273539_3265" style="" class="">Santosh Pai<br style="" class=""></div></div></body></html>