summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
6719f31)
This patch removes unnecessary inline keywords from functions
that do not have to be inlined. It also corrects the ordering
of the keywords in several functions from "inline static" to
"static inline".
Test-Parameters: trivial
Signed-off-by: Steve Guminski <stephenx.guminski@intel.com>
Change-Id: I13dde114a803513b72d6497f42be460c4df06883
Reviewed-on: https://review.whamcloud.com/23979
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
kgnilnd_cksum_kiov(unsigned int nkiov, lnet_kiov_t *kiov,
unsigned int offset, unsigned int nob, int dump_blob)
{
kgnilnd_cksum_kiov(unsigned int nkiov, lnet_kiov_t *kiov,
unsigned int offset, unsigned int nob, int dump_blob)
{
}
/* lets us know if we can push this RDMA through now */
}
/* lets us know if we can push this RDMA through now */
kgnilnd_auth_rdma_bytes(kgn_device_t *dev, kgn_tx_t *tx)
{
long bytes_left;
kgnilnd_auth_rdma_bytes(kgn_device_t *dev, kgn_tx_t *tx)
{
long bytes_left;
/* display functions */
/* ------------------------------------------------------------------- */
/* display str in left corner and in COL */
/* display functions */
/* ------------------------------------------------------------------- */
/* display str in left corner and in COL */
-/* TODO : do we need to use inline here ?*/
/* @gint col : the col where we add the information */
/* @gint col : the col where we add the information */
-inline static void display_info_str(proto_item *pi, column_info *cinfo, gint col, const gchar* str)
+static void display_info_str(proto_item *pi, column_info *cinfo, gint col,
+ const gchar *str)
{
if (NULL !=pi)
proto_item_append_text(pi, str);
{
if (NULL !=pi)
proto_item_append_text(pi, str);
EXPORT_SYMBOL(kuc_alloc);
/* Takes pointer to payload area */
EXPORT_SYMBOL(kuc_alloc);
/* Takes pointer to payload area */
-inline void kuc_free(void *p, int payload_len)
+void kuc_free(void *p, int payload_len)
{
struct kuc_hdr *lh = kuc_ptr(p);
OBD_FREE(lh, kuc_len(payload_len));
{
struct kuc_hdr *lh = kuc_ptr(p);
OBD_FREE(lh, kuc_len(payload_len));
#include <sys/types.h>
#include <netinet/in.h> /* for ntohl */
#include <sys/types.h>
#include <netinet/in.h> /* for ntohl */
write_bytes(char **ptr, const char *end, const void *arg, int arg_len)
{
char *p = *ptr, *arg_end;
write_bytes(char **ptr, const char *end, const void *arg, int arg_len)
{
char *p = *ptr, *arg_end;
#define WRITE_BYTES(p, end, arg) write_bytes(p, end, &arg, sizeof(arg))
#define WRITE_BYTES(p, end, arg) write_bytes(p, end, &arg, sizeof(arg))
write_buffer(char **p, char *end, gss_buffer_desc *arg)
{
int len = (int)arg->length; /* make an int out of size_t */
write_buffer(char **p, char *end, gss_buffer_desc *arg)
{
int len = (int)arg->length; /* make an int out of size_t */
write_oid(char **p, char *end, gss_OID_desc *arg)
{
int len = (int)arg->length; /* make an int out of size_t */
write_oid(char **p, char *end, gss_OID_desc *arg)
{
int len = (int)arg->length; /* make an int out of size_t */