OSDN Git Service

infiniband: hfi1: drop crazy DEBUGFS_SEQ_FILE_CREATE() macro
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Jan 2019 15:17:54 +0000 (16:17 +0100)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 24 Jan 2019 16:22:29 +0000 (09:22 -0700)
commit5c43276499f912ae7aec06737a3c6e0f0f3ba74b
treeee82b16d4ed6cd8a5d4ce7e01ff1e3427efa6880
parent8283d7872576784c49446532cc87143b145d537b
infiniband: hfi1: drop crazy DEBUGFS_SEQ_FILE_CREATE() macro

The macro was just making things harder to follow, and audit, so remove
it and call debugfs_create_file() directly.  Also, the macro did not
need to warn about the call failing as no one should ever care about any
debugfs functions failing.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hfi1/debugfs.c
drivers/infiniband/hw/hfi1/debugfs.h
drivers/infiniband/hw/hfi1/fault.c