tools: Fix local variable block
PATCH 1/1 tools: Fix local variable block
c-indent-level isn't considered a safe variable, and "solaris" isn't a recognised C style. Both cause prompts when opening the files.
Fix all blocks up per CODING_STYLE
---
CC: Ian Jackson <[email protected]>
CC: Wei Liu <[email protected]>
CC: Juergen Gross <[email protected]>
This finally irritated me to the point at which I decided to fix it. It would be nice to get into 4.13, and has 0 risk, as it is only comment changes.
--- tools/console/daemon/io.c | 2 +- tools/console/daemon/main.c | 2 +- tools/include/xen-sys/SunOS/evtchn.h | 4 ++-- tools/python/xen/lowlevel/xc/xc.c | 2 +- tools/python/xen/lowlevel/xs/xs.c | 2 +- tools/xenstore/include/xenstore.h | 2 +- tools/xenstore/utils.h | 2 +- tools/xenstore/xenstored_core.c | 2 +- tools/xenstore/xenstored_core.h | 2 +- tools/xenstore/xenstored_domain.c | 2 +- tools/xenstore/xenstored_transaction.c | 2 +- tools/xenstore/xenstored_watch.c | 2 +- tools/xenstore/xs.c | 2 +- 13 files changed, 14 insertions(+), 14 deletions(-)
tools/console/daemon/io.c +1 -1
@@ -1470,9 +1470,9 @@ void handle_io(void)/* * Local variables: +* mode: C * c-file-style: "linux" * indent-tabs-mode: t -* c-indent-level: 8 * c-basic-offset: 8 * tab-width: 8 * End:
tools/console/daemon/main.c +1 -1
@@ -216,9 +216,9 @@ int main(int argc, char **argv)/* * Local variables: +* mode: C * c-file-style: "linux" * indent-tabs-mode: t -* c-indent-level: 8 * c-basic-offset: 8 * tab-width: 8 * End:
tools/include/xen-sys/SunOS/evtchn.h +2 -2
@@ -85,9 +85,9 @@ struct ioctl_evtchn_notify {/* * Local variables: -* c-file-style: "solaris" +* mode: C +* c-file-style: "linux" * indent-tabs-mode: t -* c-indent-level: 8 * c-basic-offset: 8 * tab-width: 8 * End:
tools/python/xen/lowlevel/xc/xc.c +1 -1
@@ -2661,7 +2661,7 @@ PyMODINIT_FUNC initxc(void)/* * Local variables: -* c-indent-level: 4 +* mode: C * c-basic-offset: 4 * End: */
tools/python/xen/lowlevel/xs/xs.c +1 -1
@@ -1079,7 +1079,7 @@ PyMODINIT_FUNC initxs(void)/* * Local variables: -* c-indent-level: 4 +* mode: C * c-basic-offset: 4 * End: */
tools/xenstore/include/xenstore.h +1 -1
@@ -276,9 +276,9 @@ int xs_suspend_evtchn_port(int domid);/* * Local variables: +* mode: C * c-file-style: "linux" * indent-tabs-mode: t -* c-indent-level: 8 * c-basic-offset: 8 * tab-width: 8 * End:
tools/xenstore/utils.h +1 -1
@@ -52,9 +52,9 @@ static inline long IS_ERR(const void *ptr)/* * Local variables: +* mode: C * c-file-style: "linux" * indent-tabs-mode: t -* c-indent-level: 8 * c-basic-offset: 8 * tab-width: 8 * End:
tools/xenstore/xenstored_core.c +1 -1
@@ -2151,9 +2151,9 @@ int main(int argc, char *argv[])/* * Local variables: +* mode: C * c-file-style: "linux" * indent-tabs-mode: t -* c-indent-level: 8 * c-basic-offset: 8 * tab-width: 8 * End:
tools/xenstore/xenstored_core.h +1 -1
@@ -212,9 +212,9 @@ int remember_string(struct hashtable *hash, const char *str);/* * Local variables: +* mode: C * c-file-style: "linux" * indent-tabs-mode: t -* c-indent-level: 8 * c-basic-offset: 8 * tab-width: 8 * End:
tools/xenstore/xenstored_domain.c +1 -1
@@ -979,9 +979,9 @@ void wrl_apply_debit_trans_commit(struct connection *conn)/* * Local variables: +* mode: C * c-file-style: "linux" * indent-tabs-mode: t -* c-indent-level: 8 * c-basic-offset: 8 * tab-width: 8 * End:
tools/xenstore/xenstored_transaction.c +1 -1
@@ -612,9 +612,9 @@ int check_transactions(struct hashtable *hash)/* * Local variables: +* mode: C * c-file-style: "linux" * indent-tabs-mode: t -* c-indent-level: 8 * c-basic-offset: 8 * tab-width: 8 * End:
tools/xenstore/xenstored_watch.c +1 -1
@@ -247,9 +247,9 @@ void conn_delete_all_watches(struct connection *conn)/* * Local variables: +* mode: C * c-file-style: "linux" * indent-tabs-mode: t -* c-indent-level: 8 * c-basic-offset: 8 * tab-width: 8 * End:
tools/xenstore/xs.c +1 -1
@@ -1458,9 +1458,9 @@ void unsanitise_value(char *out, unsigned *out_len_r, const char *in)/* * Local variables: +* mode: C * c-file-style: "linux" * indent-tabs-mode: t -* c-indent-level: 8 * c-basic-offset: 8 * tab-width: 8 * End:
Signature · 7 lines
2.11.0 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 6 lines · Andrew Cooper
c-indent-level isn't considered a safe variable, and "solaris" isn't a recognised C style. Both cause prompts when opening the files.
Fix all blocks up per
CODING_STYLESigned-off-by Andrew Cooper <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 6 lines · Andrew Cooper
c-indent-level isn't considered a safe variable, and "solaris" isn't a recognised C style. Both cause prompts when opening the files.
Fix all blocks up per
CODING_STYLESigned-off-by Andrew Cooper <[email protected]>
Juergen
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel