Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 733cac2a authored by Robert Callicotte's avatar Robert Callicotte Committed by Joerg Roedel
Browse files

iommu: Fix checkpatch warnings for Missing a blank line after declarations



Fixed checkpatch warnings for missing blank line after
declaration of struct.

Signed-off-by: default avatarRobert Callicotte <rcallicotte@gmail.com>
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent 5ebe6afa
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -227,6 +227,7 @@ iova_insert_rbtree(struct rb_root *root, struct iova *iova)
	/* Figure out where to put new node */
	/* Figure out where to put new node */
	while (*new) {
	while (*new) {
		struct iova *this = container_of(*new, struct iova, node);
		struct iova *this = container_of(*new, struct iova, node);

		parent = *new;
		parent = *new;


		if (iova->pfn_lo < this->pfn_lo)
		if (iova->pfn_lo < this->pfn_lo)
@@ -350,6 +351,7 @@ void
free_iova(struct iova_domain *iovad, unsigned long pfn)
free_iova(struct iova_domain *iovad, unsigned long pfn)
{
{
	struct iova *iova = find_iova(iovad, pfn);
	struct iova *iova = find_iova(iovad, pfn);

	if (iova)
	if (iova)
		__free_iova(iovad, iova);
		__free_iova(iovad, iova);


@@ -369,6 +371,7 @@ void put_iova_domain(struct iova_domain *iovad)
	node = rb_first(&iovad->rbroot);
	node = rb_first(&iovad->rbroot);
	while (node) {
	while (node) {
		struct iova *iova = container_of(node, struct iova, node);
		struct iova *iova = container_of(node, struct iova, node);

		rb_erase(node, &iovad->rbroot);
		rb_erase(node, &iovad->rbroot);
		free_iova_mem(iova);
		free_iova_mem(iova);
		node = rb_first(&iovad->rbroot);
		node = rb_first(&iovad->rbroot);
@@ -482,6 +485,7 @@ copy_reserved_iova(struct iova_domain *from, struct iova_domain *to)
	for (node = rb_first(&from->rbroot); node; node = rb_next(node)) {
	for (node = rb_first(&from->rbroot); node; node = rb_next(node)) {
		struct iova *iova = container_of(node, struct iova, node);
		struct iova *iova = container_of(node, struct iova, node);
		struct iova *new_iova;
		struct iova *new_iova;

		new_iova = reserve_iova(to, iova->pfn_lo, iova->pfn_hi);
		new_iova = reserve_iova(to, iova->pfn_lo, iova->pfn_hi);
		if (!new_iova)
		if (!new_iova)
			printk(KERN_ERR "Reserve iova range %lx@%lx failed\n",
			printk(KERN_ERR "Reserve iova range %lx@%lx failed\n",