Skip to content

Commit 50e865a

Browse files
rddunlapjgross1
authored andcommitted
xen/shbuf: eliminate 17 kernel-doc warnings
Don't use kernel-doc markers ("/**") for comments that are not in kernel-doc format. This prevents multiple kernel-doc warnings: xen-front-pgdir-shbuf.c:25: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst * This structure represents the structure of a shared page xen-front-pgdir-shbuf.c:37: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst * Shared buffer ops which are differently implemented xen-front-pgdir-shbuf.c:65: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst * Get granted reference to the very first page of the xen-front-pgdir-shbuf.c:85: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst * Map granted references of the shared buffer. xen-front-pgdir-shbuf.c:106: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst * Unmap granted references of the shared buffer. xen-front-pgdir-shbuf.c:127: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst * Free all the resources of the shared buffer. xen-front-pgdir-shbuf.c:154: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst * Get the number of pages the page directory consumes itself. xen-front-pgdir-shbuf.c:164: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst * Calculate the number of grant references needed to share the buffer xen-front-pgdir-shbuf.c:176: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst * Calculate the number of grant references needed to share the buffer xen-front-pgdir-shbuf.c:194: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst * Unmap the buffer previously mapped with grant references xen-front-pgdir-shbuf.c:242: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst * Map the buffer with grant references provided by the backend. xen-front-pgdir-shbuf.c:324: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst * Fill page directory with grant references to the pages of the xen-front-pgdir-shbuf.c:354: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst * Fill page directory with grant references to the pages of the xen-front-pgdir-shbuf.c:393: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst * Grant references to the frontend's buffer pages. xen-front-pgdir-shbuf.c:422: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst * Grant all the references needed to share the buffer. xen-front-pgdir-shbuf.c:470: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst * Allocate all required structures to mange shared buffer. xen-front-pgdir-shbuf.c:510: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst * Allocate a new instance of a shared buffer. Signed-off-by: Randy Dunlap <[email protected]> Reported-by: kernel test robot <[email protected]> Closes: lore.kernel.org/r/[email protected] Acked-by: Juergen Gross <[email protected]> Cc: Juergen Gross <[email protected]> Cc: Stefano Stabellini <[email protected]> Cc: Oleksandr Tyshchenko <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Juergen Gross <[email protected]>
1 parent bfa993b commit 50e865a

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

drivers/xen/xen-front-pgdir-shbuf.c

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
#include <xen/xen-front-pgdir-shbuf.h>
2323

24-
/**
24+
/*
2525
* This structure represents the structure of a shared page
2626
* that contains grant references to the pages of the shared
2727
* buffer. This structure is common to many Xen para-virtualized
@@ -33,7 +33,7 @@ struct xen_page_directory {
3333
grant_ref_t gref[]; /* Variable length */
3434
};
3535

36-
/**
36+
/*
3737
* Shared buffer ops which are differently implemented
3838
* depending on the allocation mode, e.g. if the buffer
3939
* is allocated by the corresponding backend or frontend.
@@ -61,7 +61,7 @@ struct xen_front_pgdir_shbuf_ops {
6161
int (*unmap)(struct xen_front_pgdir_shbuf *buf);
6262
};
6363

64-
/**
64+
/*
6565
* Get granted reference to the very first page of the
6666
* page directory. Usually this is passed to the backend,
6767
* so it can find/fill the grant references to the buffer's
@@ -81,7 +81,7 @@ xen_front_pgdir_shbuf_get_dir_start(struct xen_front_pgdir_shbuf *buf)
8181
}
8282
EXPORT_SYMBOL_GPL(xen_front_pgdir_shbuf_get_dir_start);
8383

84-
/**
84+
/*
8585
* Map granted references of the shared buffer.
8686
*
8787
* Depending on the shared buffer mode of allocation
@@ -102,7 +102,7 @@ int xen_front_pgdir_shbuf_map(struct xen_front_pgdir_shbuf *buf)
102102
}
103103
EXPORT_SYMBOL_GPL(xen_front_pgdir_shbuf_map);
104104

105-
/**
105+
/*
106106
* Unmap granted references of the shared buffer.
107107
*
108108
* Depending on the shared buffer mode of allocation
@@ -123,7 +123,7 @@ int xen_front_pgdir_shbuf_unmap(struct xen_front_pgdir_shbuf *buf)
123123
}
124124
EXPORT_SYMBOL_GPL(xen_front_pgdir_shbuf_unmap);
125125

126-
/**
126+
/*
127127
* Free all the resources of the shared buffer.
128128
*
129129
* \param buf shared buffer which resources to be freed.
@@ -150,7 +150,7 @@ EXPORT_SYMBOL_GPL(xen_front_pgdir_shbuf_free);
150150
offsetof(struct xen_page_directory, \
151151
gref)) / sizeof(grant_ref_t))
152152

153-
/**
153+
/*
154154
* Get the number of pages the page directory consumes itself.
155155
*
156156
* \param buf shared buffer.
@@ -160,7 +160,7 @@ static int get_num_pages_dir(struct xen_front_pgdir_shbuf *buf)
160160
return DIV_ROUND_UP(buf->num_pages, XEN_NUM_GREFS_PER_PAGE);
161161
}
162162

163-
/**
163+
/*
164164
* Calculate the number of grant references needed to share the buffer
165165
* and its pages when backend allocates the buffer.
166166
*
@@ -172,7 +172,7 @@ static void backend_calc_num_grefs(struct xen_front_pgdir_shbuf *buf)
172172
buf->num_grefs = get_num_pages_dir(buf);
173173
}
174174

175-
/**
175+
/*
176176
* Calculate the number of grant references needed to share the buffer
177177
* and its pages when frontend allocates the buffer.
178178
*
@@ -190,7 +190,7 @@ static void guest_calc_num_grefs(struct xen_front_pgdir_shbuf *buf)
190190
#define xen_page_to_vaddr(page) \
191191
((uintptr_t)pfn_to_kaddr(page_to_xen_pfn(page)))
192192

193-
/**
193+
/*
194194
* Unmap the buffer previously mapped with grant references
195195
* provided by the backend.
196196
*
@@ -238,7 +238,7 @@ static int backend_unmap(struct xen_front_pgdir_shbuf *buf)
238238
return ret;
239239
}
240240

241-
/**
241+
/*
242242
* Map the buffer with grant references provided by the backend.
243243
*
244244
* \param buf shared buffer.
@@ -320,7 +320,7 @@ static int backend_map(struct xen_front_pgdir_shbuf *buf)
320320
return ret;
321321
}
322322

323-
/**
323+
/*
324324
* Fill page directory with grant references to the pages of the
325325
* page directory itself.
326326
*
@@ -350,7 +350,7 @@ static void backend_fill_page_dir(struct xen_front_pgdir_shbuf *buf)
350350
page_dir->gref_dir_next_page = XEN_GREF_LIST_END;
351351
}
352352

353-
/**
353+
/*
354354
* Fill page directory with grant references to the pages of the
355355
* page directory and the buffer we share with the backend.
356356
*
@@ -389,7 +389,7 @@ static void guest_fill_page_dir(struct xen_front_pgdir_shbuf *buf)
389389
}
390390
}
391391

392-
/**
392+
/*
393393
* Grant references to the frontend's buffer pages.
394394
*
395395
* These will be shared with the backend, so it can
@@ -418,7 +418,7 @@ static int guest_grant_refs_for_buffer(struct xen_front_pgdir_shbuf *buf,
418418
return 0;
419419
}
420420

421-
/**
421+
/*
422422
* Grant all the references needed to share the buffer.
423423
*
424424
* Grant references to the page directory pages and, if
@@ -466,7 +466,7 @@ static int grant_references(struct xen_front_pgdir_shbuf *buf)
466466
return 0;
467467
}
468468

469-
/**
469+
/*
470470
* Allocate all required structures to mange shared buffer.
471471
*
472472
* \param buf shared buffer.
@@ -506,7 +506,7 @@ static const struct xen_front_pgdir_shbuf_ops local_ops = {
506506
.grant_refs_for_buffer = guest_grant_refs_for_buffer,
507507
};
508508

509-
/**
509+
/*
510510
* Allocate a new instance of a shared buffer.
511511
*
512512
* \param cfg configuration to be used while allocating a new shared buffer.

0 commit comments

Comments
 (0)