rte_virtio: reformat with check_format.sh
Remove the exclusion of the rte_virtio code from scripts/check_format.sh since we will be maintaining this code going forward (unlike rte_vhost, which we intend to keep up to date with upstream DPDK). Change-Id: I30c186e566ca777dff552a36af53443d197a8824 Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-on: https://review.gerrithub.io/383002 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
44a3f09b15
commit
94678ad9ee
@ -96,7 +96,7 @@ enum vhost_user_request {
|
|||||||
VHOST_USER_MAX
|
VHOST_USER_MAX
|
||||||
};
|
};
|
||||||
|
|
||||||
extern const char * const vhost_msg_strings[VHOST_USER_MAX];
|
extern const char *const vhost_msg_strings[VHOST_USER_MAX];
|
||||||
|
|
||||||
struct vhost_memory_region {
|
struct vhost_memory_region {
|
||||||
uint64_t guest_phys_addr;
|
uint64_t guest_phys_addr;
|
||||||
|
@ -261,7 +261,7 @@ prepare_vhost_memory_user(struct vhost_user_msg *msg, int fds[])
|
|||||||
|
|
||||||
static struct vhost_user_msg m;
|
static struct vhost_user_msg m;
|
||||||
|
|
||||||
const char * const vhost_msg_strings[] = {
|
const char *const vhost_msg_strings[] = {
|
||||||
[VHOST_USER_SET_OWNER] = "VHOST_SET_OWNER",
|
[VHOST_USER_SET_OWNER] = "VHOST_SET_OWNER",
|
||||||
[VHOST_USER_RESET_OWNER] = "VHOST_RESET_OWNER",
|
[VHOST_USER_RESET_OWNER] = "VHOST_RESET_OWNER",
|
||||||
[VHOST_USER_SET_FEATURES] = "VHOST_SET_FEATURES",
|
[VHOST_USER_SET_FEATURES] = "VHOST_SET_FEATURES",
|
||||||
|
@ -17,7 +17,7 @@ if hash astyle; then
|
|||||||
# rather than making diffs more complicated by a lot of changes to follow SPDK
|
# rather than making diffs more complicated by a lot of changes to follow SPDK
|
||||||
# coding standards.
|
# coding standards.
|
||||||
git ls-files '*.[ch]' '*.cpp' '*.cc' '*.cxx' '*.hh' '*.hpp' | \
|
git ls-files '*.[ch]' '*.cpp' '*.cc' '*.cxx' '*.hh' '*.hpp' | \
|
||||||
grep -v rte_vhost | grep -v rte_virtio | grep -v cpp_headers | \
|
grep -v rte_vhost | grep -v cpp_headers | \
|
||||||
xargs astyle --options=.astylerc >> astyle.log
|
xargs astyle --options=.astylerc >> astyle.log
|
||||||
if grep -q "^Formatted" astyle.log; then
|
if grep -q "^Formatted" astyle.log; then
|
||||||
echo " errors detected"
|
echo " errors detected"
|
||||||
@ -39,7 +39,7 @@ fi
|
|||||||
echo -n "Checking comment style..."
|
echo -n "Checking comment style..."
|
||||||
|
|
||||||
git grep --line-number -e '/[*][^ *-]' -- '*.[ch]' > comment.log || true
|
git grep --line-number -e '/[*][^ *-]' -- '*.[ch]' > comment.log || true
|
||||||
git grep --line-number -e '[^ ][*]/' -- '*.[ch]' ':!lib/vhost/rte_vhost*/*' ':!lib/bdev/virtio/rte_virtio*/*' >> comment.log || true
|
git grep --line-number -e '[^ ][*]/' -- '*.[ch]' ':!lib/vhost/rte_vhost*/*' >> comment.log || true
|
||||||
git grep --line-number -e '^[*]' -- '*.[ch]' >> comment.log || true
|
git grep --line-number -e '^[*]' -- '*.[ch]' >> comment.log || true
|
||||||
|
|
||||||
if [ -s comment.log ]; then
|
if [ -s comment.log ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user