lkml.org 
[lkml]   [2023]   [Mar]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v2 1/7] genetlink: make _genl_cmd_to_str static
    Date
    Primarily to silence warnings like:
    warning: no previous prototype for 'xxx_genl_cmd_to_str' [-Wmissing-prototypes]

    Signed-off-by: Christoph Böhmwalder <christoph.boehmwalder@linbit.com>
    ---
    include/linux/genl_magic_func.h | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/include/linux/genl_magic_func.h b/include/linux/genl_magic_func.h
    index 4a4b387181ad..2984b0cb24b1 100644
    --- a/include/linux/genl_magic_func.h
    +++ b/include/linux/genl_magic_func.h
    @@ -209,7 +209,7 @@ static int s_name ## _from_attrs_for_change(struct s_name *s, \
    * Magic: define op number to op name mapping {{{1
    * {{{2
    */
    -const char *CONCAT_(GENL_MAGIC_FAMILY, _genl_cmd_to_str)(__u8 cmd)
    +static const char *CONCAT_(GENL_MAGIC_FAMILY, _genl_cmd_to_str)(__u8 cmd)
    {
    switch (cmd) {
    #undef GENL_op
    --
    2.39.1
    \
     
     \ /
      Last update: 2023-03-27 00:41    [W:3.134 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site