mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] test_firmware: use kernel-doc struct notation
@ 2023-01-02 21:15 Randy Dunlap
  2023-01-03 16:44 ` Luis Chamberlain
  0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2023-01-02 21:15 UTC (permalink / raw)
  To: linux-kernel
  Cc: Randy Dunlap, Luis Chamberlain, Russ Weight, Kees Cook,
	Greg Kroah-Hartman

Add "struct" to the kernel-doc notation to prevent a warning:

lib/test_firmware.c:98: warning: cannot understand function prototype: 'struct test_config '

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Luis Chamberlain <mcgrof@kernel.org>
Cc: Russ Weight <russell.h.weight@intel.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
 lib/test_firmware.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -- a/lib/test_firmware.c b/lib/test_firmware.c
--- a/lib/test_firmware.c
+++ b/lib/test_firmware.c
@@ -50,7 +50,7 @@ struct test_batched_req {
 };
 
 /**
- * test_config - represents configuration for the test for different triggers
+ * struct test_config - represents configuration for the test for different triggers
  *
  * @name: the name of the firmware file to look for
  * @into_buf: when the into_buf is used if this is true

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] test_firmware: use kernel-doc struct notation
  2023-01-02 21:15 [PATCH] test_firmware: use kernel-doc struct notation Randy Dunlap
@ 2023-01-03 16:44 ` Luis Chamberlain
  0 siblings, 0 replies; 2+ messages in thread
From: Luis Chamberlain @ 2023-01-03 16:44 UTC (permalink / raw)
  To: Randy Dunlap, Greg Kroah-Hartman; +Cc: linux-kernel, Russ Weight, Kees Cook

On Mon, Jan 02, 2023 at 01:15:54PM -0800, Randy Dunlap wrote:
> Add "struct" to the kernel-doc notation to prevent a warning:
> 
> lib/test_firmware.c:98: warning: cannot understand function prototype: 'struct test_config '
> 
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> Cc: Luis Chamberlain <mcgrof@kernel.org>
> Cc: Russ Weight <russell.h.weight@intel.com>
> Cc: Kees Cook <keescook@chromium.org>
> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Acked-by: Luis Chamberlain <mcgrof@kernel.org>

 Luis

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-01-03 16:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-02 21:15 [PATCH] test_firmware: use kernel-doc struct notation Randy Dunlap
2023-01-03 16:44 ` Luis Chamberlain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®