* [PATCH 0/6] Declare functions and structures as static
@ 2015-10-01 17:29 Shraddha Barke
2015-10-01 17:29 ` [PATCH 1/6] Staging: lustre: ptlrpc: Declare sptlrpc_rule_set_merge " Shraddha Barke
` (6 more replies)
0 siblings, 7 replies; 13+ messages in thread
From: Shraddha Barke @ 2015-10-01 17:29 UTC (permalink / raw)
To: outreachy-kernel
These patches declare the functions and structures which are not
used anywhere else as static.
Shraddha Barke (6):
Staging: lustre: ptlrpc: Declare sptlrpc_rule_set_merge as static
Staging: lustre: ptlrpc: Declare sptlrpc_rule_set_free as static
Staging: lustre: ptlrpc: Declare sptlrpc_rule_set_expand as static
Staging: lustre: ptlrpc: Declare sptlrpc_rule_set_choose as static
Staging: lustre: ptlrpc: Declare sptlrpc_req_replace_dead_ctx as
static
Staging: lustre: ptlrpc: Declare sptlrpc_parse_rule as static
drivers/staging/lustre/lustre/include/lustre_sec.h | 11 ----------
drivers/staging/lustre/lustre/ptlrpc/sec.c | 3 +--
drivers/staging/lustre/lustre/ptlrpc/sec_config.c | 25 +++++++++-------------
3 files changed, 11 insertions(+), 28 deletions(-)
--
2.1.4
^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH 1/6] Staging: lustre: ptlrpc: Declare sptlrpc_rule_set_merge as static
2015-10-01 17:29 [PATCH 0/6] Declare functions and structures as static Shraddha Barke
@ 2015-10-01 17:29 ` Shraddha Barke
2015-10-01 17:29 ` [PATCH 2/6] Staging: lustre: ptlrpc: Declare sptlrpc_rule_set_free " Shraddha Barke
` (5 subsequent siblings)
6 siblings, 0 replies; 13+ messages in thread
From: Shraddha Barke @ 2015-10-01 17:29 UTC (permalink / raw)
To: outreachy-kernel
Declare sptlrpc_rule_set_merge as static since it is accessed from this
particular file only. Also remove it's declaration from
header file
Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
---
drivers/staging/lustre/lustre/include/lustre_sec.h | 2 --
drivers/staging/lustre/lustre/ptlrpc/sec_config.c | 5 ++---
2 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/drivers/staging/lustre/lustre/include/lustre_sec.h b/drivers/staging/lustre/lustre/include/lustre_sec.h
index d36752e..dc7d4d0 100644
--- a/drivers/staging/lustre/lustre/include/lustre_sec.h
+++ b/drivers/staging/lustre/lustre/include/lustre_sec.h
@@ -332,8 +332,6 @@ static inline void sptlrpc_rule_set_init(struct sptlrpc_rule_set *set)
void sptlrpc_rule_set_free(struct sptlrpc_rule_set *set);
int sptlrpc_rule_set_expand(struct sptlrpc_rule_set *set);
-int sptlrpc_rule_set_merge(struct sptlrpc_rule_set *set,
- struct sptlrpc_rule *rule);
int sptlrpc_rule_set_choose(struct sptlrpc_rule_set *rset,
enum lustre_sec_part from,
enum lustre_sec_part to,
diff --git a/drivers/staging/lustre/lustre/ptlrpc/sec_config.c b/drivers/staging/lustre/lustre/ptlrpc/sec_config.c
index e7f2f33..6721541 100644
--- a/drivers/staging/lustre/lustre/ptlrpc/sec_config.c
+++ b/drivers/staging/lustre/lustre/ptlrpc/sec_config.c
@@ -306,8 +306,8 @@ static inline int rule_match_net(struct sptlrpc_rule *r1,
* merge @rule into @rset.
* the @rset slots might be expanded.
*/
-int sptlrpc_rule_set_merge(struct sptlrpc_rule_set *rset,
- struct sptlrpc_rule *rule)
+static int sptlrpc_rule_set_merge(struct sptlrpc_rule_set *rset,
+ struct sptlrpc_rule *rule)
{
struct sptlrpc_rule *p = rset->srs_rules;
int spec_dir, spec_net;
@@ -391,7 +391,6 @@ int sptlrpc_rule_set_merge(struct sptlrpc_rule_set *rset,
return 0;
}
-EXPORT_SYMBOL(sptlrpc_rule_set_merge);
/**
* given from/to/nid, determine a matching flavor in ruleset.
--
2.1.4
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 2/6] Staging: lustre: ptlrpc: Declare sptlrpc_rule_set_free as static
2015-10-01 17:29 [PATCH 0/6] Declare functions and structures as static Shraddha Barke
2015-10-01 17:29 ` [PATCH 1/6] Staging: lustre: ptlrpc: Declare sptlrpc_rule_set_merge " Shraddha Barke
@ 2015-10-01 17:29 ` Shraddha Barke
2015-10-01 17:29 ` [PATCH 3/6] Staging: lustre: ptlrpc: Declare sptlrpc_rule_set_expand " Shraddha Barke
` (4 subsequent siblings)
6 siblings, 0 replies; 13+ messages in thread
From: Shraddha Barke @ 2015-10-01 17:29 UTC (permalink / raw)
To: outreachy-kernel
Declare sptlrpc_rule_set_free as static since it is accessed from this
particular file only. Also remove it's declaration from
header file
Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
---
drivers/staging/lustre/lustre/include/lustre_sec.h | 1 -
drivers/staging/lustre/lustre/ptlrpc/sec_config.c | 3 +--
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/staging/lustre/lustre/include/lustre_sec.h b/drivers/staging/lustre/lustre/include/lustre_sec.h
index dc7d4d0..00a67cf 100644
--- a/drivers/staging/lustre/lustre/include/lustre_sec.h
+++ b/drivers/staging/lustre/lustre/include/lustre_sec.h
@@ -330,7 +330,6 @@ static inline void sptlrpc_rule_set_init(struct sptlrpc_rule_set *set)
memset(set, 0, sizeof(*set));
}
-void sptlrpc_rule_set_free(struct sptlrpc_rule_set *set);
int sptlrpc_rule_set_expand(struct sptlrpc_rule_set *set);
int sptlrpc_rule_set_choose(struct sptlrpc_rule_set *rset,
enum lustre_sec_part from,
diff --git a/drivers/staging/lustre/lustre/ptlrpc/sec_config.c b/drivers/staging/lustre/lustre/ptlrpc/sec_config.c
index 6721541..394429f 100644
--- a/drivers/staging/lustre/lustre/ptlrpc/sec_config.c
+++ b/drivers/staging/lustre/lustre/ptlrpc/sec_config.c
@@ -236,7 +236,7 @@ int sptlrpc_parse_rule(char *param, struct sptlrpc_rule *rule)
}
EXPORT_SYMBOL(sptlrpc_parse_rule);
-void sptlrpc_rule_set_free(struct sptlrpc_rule_set *rset)
+static void sptlrpc_rule_set_free(struct sptlrpc_rule_set *rset)
{
LASSERT(rset->srs_nslot ||
(rset->srs_nrule == 0 && rset->srs_rules == NULL));
@@ -246,7 +246,6 @@ void sptlrpc_rule_set_free(struct sptlrpc_rule_set *rset)
sptlrpc_rule_set_init(rset);
}
}
-EXPORT_SYMBOL(sptlrpc_rule_set_free);
/*
* return 0 if the rule set could accommodate one more rule.
--
2.1.4
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 3/6] Staging: lustre: ptlrpc: Declare sptlrpc_rule_set_expand as static
2015-10-01 17:29 [PATCH 0/6] Declare functions and structures as static Shraddha Barke
2015-10-01 17:29 ` [PATCH 1/6] Staging: lustre: ptlrpc: Declare sptlrpc_rule_set_merge " Shraddha Barke
2015-10-01 17:29 ` [PATCH 2/6] Staging: lustre: ptlrpc: Declare sptlrpc_rule_set_free " Shraddha Barke
@ 2015-10-01 17:29 ` Shraddha Barke
2015-10-01 17:29 ` [PATCH 4/6] Staging: lustre: ptlrpc: Declare sptlrpc_rule_set_choose " Shraddha Barke
` (3 subsequent siblings)
6 siblings, 0 replies; 13+ messages in thread
From: Shraddha Barke @ 2015-10-01 17:29 UTC (permalink / raw)
To: outreachy-kernel
Declare sptlrpc_rule_set_expand as static since it is accessed from this
particular file only. Also remove it's declaration from
header file
Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
---
drivers/staging/lustre/lustre/include/lustre_sec.h | 1 -
drivers/staging/lustre/lustre/ptlrpc/sec_config.c | 3 +--
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/staging/lustre/lustre/include/lustre_sec.h b/drivers/staging/lustre/lustre/include/lustre_sec.h
index 00a67cf..47c4c64 100644
--- a/drivers/staging/lustre/lustre/include/lustre_sec.h
+++ b/drivers/staging/lustre/lustre/include/lustre_sec.h
@@ -330,7 +330,6 @@ static inline void sptlrpc_rule_set_init(struct sptlrpc_rule_set *set)
memset(set, 0, sizeof(*set));
}
-int sptlrpc_rule_set_expand(struct sptlrpc_rule_set *set);
int sptlrpc_rule_set_choose(struct sptlrpc_rule_set *rset,
enum lustre_sec_part from,
enum lustre_sec_part to,
diff --git a/drivers/staging/lustre/lustre/ptlrpc/sec_config.c b/drivers/staging/lustre/lustre/ptlrpc/sec_config.c
index 394429f..fac9532 100644
--- a/drivers/staging/lustre/lustre/ptlrpc/sec_config.c
+++ b/drivers/staging/lustre/lustre/ptlrpc/sec_config.c
@@ -250,7 +250,7 @@ static void sptlrpc_rule_set_free(struct sptlrpc_rule_set *rset)
/*
* return 0 if the rule set could accommodate one more rule.
*/
-int sptlrpc_rule_set_expand(struct sptlrpc_rule_set *rset)
+static int sptlrpc_rule_set_expand(struct sptlrpc_rule_set *rset)
{
struct sptlrpc_rule *rules;
int nslot;
@@ -279,7 +279,6 @@ int sptlrpc_rule_set_expand(struct sptlrpc_rule_set *rset)
rset->srs_nslot = nslot;
return 0;
}
-EXPORT_SYMBOL(sptlrpc_rule_set_expand);
static inline int rule_spec_dir(struct sptlrpc_rule *rule)
{
--
2.1.4
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 4/6] Staging: lustre: ptlrpc: Declare sptlrpc_rule_set_choose as static
2015-10-01 17:29 [PATCH 0/6] Declare functions and structures as static Shraddha Barke
` (2 preceding siblings ...)
2015-10-01 17:29 ` [PATCH 3/6] Staging: lustre: ptlrpc: Declare sptlrpc_rule_set_expand " Shraddha Barke
@ 2015-10-01 17:29 ` Shraddha Barke
2015-10-02 4:57 ` [Outreachy kernel] " Sudip Mukherjee
2015-10-01 17:29 ` [PATCH 5/6] Staging: lustre: ptlrpc: Declare sptlrpc_req_replace_dead_ctx " Shraddha Barke
` (2 subsequent siblings)
6 siblings, 1 reply; 13+ messages in thread
From: Shraddha Barke @ 2015-10-01 17:29 UTC (permalink / raw)
To: outreachy-kernel
Declare sptlrpc_rule_set_choose as static since it is accessed from this
particular file only. Also remove it's declaration from
header file
Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
---
drivers/staging/lustre/lustre/include/lustre_sec.h | 5 -----
drivers/staging/lustre/lustre/ptlrpc/sec_config.c | 11 +++++------
2 files changed, 5 insertions(+), 11 deletions(-)
diff --git a/drivers/staging/lustre/lustre/include/lustre_sec.h b/drivers/staging/lustre/lustre/include/lustre_sec.h
index 47c4c64..ed0eb4d 100644
--- a/drivers/staging/lustre/lustre/include/lustre_sec.h
+++ b/drivers/staging/lustre/lustre/include/lustre_sec.h
@@ -330,11 +330,6 @@ static inline void sptlrpc_rule_set_init(struct sptlrpc_rule_set *set)
memset(set, 0, sizeof(*set));
}
-int sptlrpc_rule_set_choose(struct sptlrpc_rule_set *rset,
- enum lustre_sec_part from,
- enum lustre_sec_part to,
- lnet_nid_t nid,
- struct sptlrpc_flavor *sf);
void sptlrpc_rule_set_dump(struct sptlrpc_rule_set *set);
int sptlrpc_process_config(struct lustre_cfg *lcfg);
diff --git a/drivers/staging/lustre/lustre/ptlrpc/sec_config.c b/drivers/staging/lustre/lustre/ptlrpc/sec_config.c
index fac9532..6de9aa6 100644
--- a/drivers/staging/lustre/lustre/ptlrpc/sec_config.c
+++ b/drivers/staging/lustre/lustre/ptlrpc/sec_config.c
@@ -394,11 +394,11 @@ static int sptlrpc_rule_set_merge(struct sptlrpc_rule_set *rset,
* given from/to/nid, determine a matching flavor in ruleset.
* return 1 if a match found, otherwise return 0.
*/
-int sptlrpc_rule_set_choose(struct sptlrpc_rule_set *rset,
- enum lustre_sec_part from,
- enum lustre_sec_part to,
- lnet_nid_t nid,
- struct sptlrpc_flavor *sf)
+static int sptlrpc_rule_set_choose(struct sptlrpc_rule_set *rset,
+ enum lustre_sec_part from,
+ enum lustre_sec_part to,
+ lnet_nid_t nid,
+ struct sptlrpc_flavor *sf)
{
struct sptlrpc_rule *r;
int n;
@@ -425,7 +425,6 @@ int sptlrpc_rule_set_choose(struct sptlrpc_rule_set *rset,
return 0;
}
-EXPORT_SYMBOL(sptlrpc_rule_set_choose);
void sptlrpc_rule_set_dump(struct sptlrpc_rule_set *rset)
{
--
2.1.4
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 5/6] Staging: lustre: ptlrpc: Declare sptlrpc_req_replace_dead_ctx as static
2015-10-01 17:29 [PATCH 0/6] Declare functions and structures as static Shraddha Barke
` (3 preceding siblings ...)
2015-10-01 17:29 ` [PATCH 4/6] Staging: lustre: ptlrpc: Declare sptlrpc_rule_set_choose " Shraddha Barke
@ 2015-10-01 17:29 ` Shraddha Barke
2015-10-01 17:29 ` [PATCH 6/6] Staging: lustre: ptlrpc: Declare sptlrpc_parse_rule " Shraddha Barke
2015-10-01 20:17 ` [Outreachy kernel] [PATCH 0/6] Declare functions and structures " Arnd Bergmann
6 siblings, 0 replies; 13+ messages in thread
From: Shraddha Barke @ 2015-10-01 17:29 UTC (permalink / raw)
To: outreachy-kernel
Declare sptlrpc_req_replace_dead_ctx as static since it is accessed from
this particular file only. Also remove it's declaration from
header file
Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
---
drivers/staging/lustre/lustre/include/lustre_sec.h | 1 -
drivers/staging/lustre/lustre/ptlrpc/sec.c | 3 +--
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/staging/lustre/lustre/include/lustre_sec.h b/drivers/staging/lustre/lustre/include/lustre_sec.h
index ed0eb4d..5433fce 100644
--- a/drivers/staging/lustre/lustre/include/lustre_sec.h
+++ b/drivers/staging/lustre/lustre/include/lustre_sec.h
@@ -1035,7 +1035,6 @@ void sptlrpc_import_flush_all_ctx(struct obd_import *imp);
int sptlrpc_req_get_ctx(struct ptlrpc_request *req);
void sptlrpc_req_put_ctx(struct ptlrpc_request *req, int sync);
int sptlrpc_req_refresh_ctx(struct ptlrpc_request *req, long timeout);
-int sptlrpc_req_replace_dead_ctx(struct ptlrpc_request *req);
void sptlrpc_req_set_flavor(struct ptlrpc_request *req, int opcode);
int sptlrpc_parse_rule(char *param, struct sptlrpc_rule *rule);
diff --git a/drivers/staging/lustre/lustre/ptlrpc/sec.c b/drivers/staging/lustre/lustre/ptlrpc/sec.c
index 70aa271..e967389 100644
--- a/drivers/staging/lustre/lustre/ptlrpc/sec.c
+++ b/drivers/staging/lustre/lustre/ptlrpc/sec.c
@@ -509,7 +509,7 @@ int sptlrpc_req_ctx_switch(struct ptlrpc_request *req,
* \note a request must have a context, to keep other parts of code happy.
* In any case of failure during the switching, we must restore the old one.
*/
-int sptlrpc_req_replace_dead_ctx(struct ptlrpc_request *req)
+static int sptlrpc_req_replace_dead_ctx(struct ptlrpc_request *req)
{
struct ptlrpc_cli_ctx *oldctx = req->rq_cli_ctx;
struct ptlrpc_cli_ctx *newctx;
@@ -562,7 +562,6 @@ int sptlrpc_req_replace_dead_ctx(struct ptlrpc_request *req)
sptlrpc_cli_ctx_put(oldctx, 1);
return 0;
}
-EXPORT_SYMBOL(sptlrpc_req_replace_dead_ctx);
static
int ctx_check_refresh(struct ptlrpc_cli_ctx *ctx)
--
2.1.4
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 6/6] Staging: lustre: ptlrpc: Declare sptlrpc_parse_rule as static
2015-10-01 17:29 [PATCH 0/6] Declare functions and structures as static Shraddha Barke
` (4 preceding siblings ...)
2015-10-01 17:29 ` [PATCH 5/6] Staging: lustre: ptlrpc: Declare sptlrpc_req_replace_dead_ctx " Shraddha Barke
@ 2015-10-01 17:29 ` Shraddha Barke
2015-10-01 20:17 ` [Outreachy kernel] [PATCH 0/6] Declare functions and structures " Arnd Bergmann
6 siblings, 0 replies; 13+ messages in thread
From: Shraddha Barke @ 2015-10-01 17:29 UTC (permalink / raw)
To: outreachy-kernel
Declare sptlrpc_parse_rule as static since it is accessed from this
particular file only. Also remove it's declaration from
header file
Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
---
drivers/staging/lustre/lustre/include/lustre_sec.h | 1 -
drivers/staging/lustre/lustre/ptlrpc/sec_config.c | 3 +--
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/staging/lustre/lustre/include/lustre_sec.h b/drivers/staging/lustre/lustre/include/lustre_sec.h
index 5433fce..0dd5687 100644
--- a/drivers/staging/lustre/lustre/include/lustre_sec.h
+++ b/drivers/staging/lustre/lustre/include/lustre_sec.h
@@ -1037,7 +1037,6 @@ void sptlrpc_req_put_ctx(struct ptlrpc_request *req, int sync);
int sptlrpc_req_refresh_ctx(struct ptlrpc_request *req, long timeout);
void sptlrpc_req_set_flavor(struct ptlrpc_request *req, int opcode);
-int sptlrpc_parse_rule(char *param, struct sptlrpc_rule *rule);
/* gc */
void sptlrpc_gc_add_sec(struct ptlrpc_sec *sec);
diff --git a/drivers/staging/lustre/lustre/ptlrpc/sec_config.c b/drivers/staging/lustre/lustre/ptlrpc/sec_config.c
index 6de9aa6..0b96f62 100644
--- a/drivers/staging/lustre/lustre/ptlrpc/sec_config.c
+++ b/drivers/staging/lustre/lustre/ptlrpc/sec_config.c
@@ -180,7 +180,7 @@ static void sptlrpc_rule_init(struct sptlrpc_rule *rule)
/*
* format: network[.direction]=flavor
*/
-int sptlrpc_parse_rule(char *param, struct sptlrpc_rule *rule)
+static int sptlrpc_parse_rule(char *param, struct sptlrpc_rule *rule)
{
char *flavor, *dir;
int rc;
@@ -234,7 +234,6 @@ int sptlrpc_parse_rule(char *param, struct sptlrpc_rule *rule)
return 0;
}
-EXPORT_SYMBOL(sptlrpc_parse_rule);
static void sptlrpc_rule_set_free(struct sptlrpc_rule_set *rset)
{
--
2.1.4
^ permalink raw reply related [flat|nested] 13+ messages in thread
* Re: [Outreachy kernel] [PATCH 0/6] Declare functions and structures as static
2015-10-01 17:29 [PATCH 0/6] Declare functions and structures as static Shraddha Barke
` (5 preceding siblings ...)
2015-10-01 17:29 ` [PATCH 6/6] Staging: lustre: ptlrpc: Declare sptlrpc_parse_rule " Shraddha Barke
@ 2015-10-01 20:17 ` Arnd Bergmann
6 siblings, 0 replies; 13+ messages in thread
From: Arnd Bergmann @ 2015-10-01 20:17 UTC (permalink / raw)
To: outreachy-kernel; +Cc: Shraddha Barke
On Thursday 01 October 2015 22:59:35 Shraddha Barke wrote:
> These patches declare the functions and structures which are not
> used anywhere else as static.
>
>
> Shraddha Barke (6):
> Staging: lustre: ptlrpc: Declare sptlrpc_rule_set_merge as static
> Staging: lustre: ptlrpc: Declare sptlrpc_rule_set_free as static
> Staging: lustre: ptlrpc: Declare sptlrpc_rule_set_expand as static
> Staging: lustre: ptlrpc: Declare sptlrpc_rule_set_choose as static
> Staging: lustre: ptlrpc: Declare sptlrpc_req_replace_dead_ctx as
> static
> Staging: lustre: ptlrpc: Declare sptlrpc_parse_rule as static
>
>
Individually, each of these looks good and can be applied
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Now that you get the principle right, I think it would be better
to continue with similar patches that do multiple functions at
once and look at the bigger picture. In case of this series, it would
be worth noting that there are two more sptlrpc_rule_set_* functions,
and neither of them should be global. The sptlrpc_rule_set_init()
one is slightly different because it's static inline but can simply
be moved into the file that holds the other functions.
Try to find patterns like this and then handle all symbols that
fall into a similar category as a combined patch.
Arnd
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Outreachy kernel] [PATCH 4/6] Staging: lustre: ptlrpc: Declare sptlrpc_rule_set_choose as static
2015-10-01 17:29 ` [PATCH 4/6] Staging: lustre: ptlrpc: Declare sptlrpc_rule_set_choose " Shraddha Barke
@ 2015-10-02 4:57 ` Sudip Mukherjee
2015-10-02 5:38 ` Shraddha Barke
0 siblings, 1 reply; 13+ messages in thread
From: Sudip Mukherjee @ 2015-10-02 4:57 UTC (permalink / raw)
To: Shraddha Barke; +Cc: outreachy-kernel
On Thu, Oct 01, 2015 at 10:59:39PM +0530, Shraddha Barke wrote:
> Declare sptlrpc_rule_set_choose as static since it is accessed from this
> particular file only. Also remove it's declaration from
> header file
>
> Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
> ---
This patch will not apply because of some other changes done by:
d97cc6442a44 ("staging/lustre/ptlrpc: secure wrapping code cleanup")
regards
sudip
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Outreachy kernel] [PATCH 4/6] Staging: lustre: ptlrpc: Declare sptlrpc_rule_set_choose as static
2015-10-02 4:57 ` [Outreachy kernel] " Sudip Mukherjee
@ 2015-10-02 5:38 ` Shraddha Barke
2015-10-02 5:47 ` Sudip Mukherjee
0 siblings, 1 reply; 13+ messages in thread
From: Shraddha Barke @ 2015-10-02 5:38 UTC (permalink / raw)
To: Sudip Mukherjee; +Cc: Shraddha Barke, outreachy-kernel
On Fri, 2 Oct 2015, Sudip Mukherjee wrote:
> On Thu, Oct 01, 2015 at 10:59:39PM +0530, Shraddha Barke wrote:
>> Declare sptlrpc_rule_set_choose as static since it is accessed from this
>> particular file only. Also remove it's declaration from
>> header file
>>
>> Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
>> ---
> This patch will not apply because of some other changes done by:
> d97cc6442a44 ("staging/lustre/ptlrpc: secure wrapping code cleanup")
I'm confused as to how it applied to my staging-testing :(
Should I send a v2 dropping this one?
Thanks,
Shraddha
>
> regards
> sudip
>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Outreachy kernel] [PATCH 4/6] Staging: lustre: ptlrpc: Declare sptlrpc_rule_set_choose as static
2015-10-02 5:38 ` Shraddha Barke
@ 2015-10-02 5:47 ` Sudip Mukherjee
2015-10-02 5:56 ` Shraddha Barke
0 siblings, 1 reply; 13+ messages in thread
From: Sudip Mukherjee @ 2015-10-02 5:47 UTC (permalink / raw)
To: Shraddha Barke; +Cc: outreachy-kernel
On Fri, Oct 02, 2015 at 11:08:48AM +0530, Shraddha Barke wrote:
>
>
> On Fri, 2 Oct 2015, Sudip Mukherjee wrote:
>
> >On Thu, Oct 01, 2015 at 10:59:39PM +0530, Shraddha Barke wrote:
> >>Declare sptlrpc_rule_set_choose as static since it is accessed from this
> >>particular file only. Also remove it's declaration from
> >>header file
> >>
> >>Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
> >>---
> >This patch will not apply because of some other changes done by:
> >d97cc6442a44 ("staging/lustre/ptlrpc: secure wrapping code cleanup")
>
> I'm confused as to how it applied to my staging-testing :(
> Should I send a v2 dropping this one?
Try to see if you have this commit in the tree. Try to rebase. It is not
applying because sptlrpc_rule_set_dump() is not there in the file
anymore.
regards
sudip
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Outreachy kernel] [PATCH 4/6] Staging: lustre: ptlrpc: Declare sptlrpc_rule_set_choose as static
2015-10-02 5:47 ` Sudip Mukherjee
@ 2015-10-02 5:56 ` Shraddha Barke
2015-10-02 6:31 ` Sudip Mukherjee
0 siblings, 1 reply; 13+ messages in thread
From: Shraddha Barke @ 2015-10-02 5:56 UTC (permalink / raw)
To: Sudip Mukherjee; +Cc: Shraddha Barke, outreachy-kernel
On Fri, 2 Oct 2015, Sudip Mukherjee wrote:
> On Fri, Oct 02, 2015 at 11:08:48AM +0530, Shraddha Barke wrote:
>>
>>
>> On Fri, 2 Oct 2015, Sudip Mukherjee wrote:
>>
>>> On Thu, Oct 01, 2015 at 10:59:39PM +0530, Shraddha Barke wrote:
>>>> Declare sptlrpc_rule_set_choose as static since it is accessed from this
>>>> particular file only. Also remove it's declaration from
>>>> header file
>>>>
>>>> Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
>>>> ---
>>> This patch will not apply because of some other changes done by:
>>> d97cc6442a44 ("staging/lustre/ptlrpc: secure wrapping code cleanup")
>>
>> I'm confused as to how it applied to my staging-testing :(
>> Should I send a v2 dropping this one?
>
> Try to see if you have this commit in the tree. Try to rebase. It is not
> applying because sptlrpc_rule_set_dump() is not there in the file
> anymore.
Okay, should I send a version 2 for this series?
>
> regards
> sudip
>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Outreachy kernel] [PATCH 4/6] Staging: lustre: ptlrpc: Declare sptlrpc_rule_set_choose as static
2015-10-02 5:56 ` Shraddha Barke
@ 2015-10-02 6:31 ` Sudip Mukherjee
0 siblings, 0 replies; 13+ messages in thread
From: Sudip Mukherjee @ 2015-10-02 6:31 UTC (permalink / raw)
To: Shraddha Barke; +Cc: outreachy-kernel
On Fri, Oct 02, 2015 at 11:26:58AM +0530, Shraddha Barke wrote:
>
>
> On Fri, 2 Oct 2015, Sudip Mukherjee wrote:
>
> >On Fri, Oct 02, 2015 at 11:08:48AM +0530, Shraddha Barke wrote:
> >>
> >>
> >>On Fri, 2 Oct 2015, Sudip Mukherjee wrote:
> >>
> >>>On Thu, Oct 01, 2015 at 10:59:39PM +0530, Shraddha Barke wrote:
> >>>>Declare sptlrpc_rule_set_choose as static since it is accessed from this
> >>>>particular file only. Also remove it's declaration from
> >>>>header file
> >>>>
> >>>>Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
> >>>>---
> >>>This patch will not apply because of some other changes done by:
> >>>d97cc6442a44 ("staging/lustre/ptlrpc: secure wrapping code cleanup")
> >>
> >>I'm confused as to how it applied to my staging-testing :(
> >>Should I send a v2 dropping this one?
> >
> >Try to see if you have this commit in the tree. Try to rebase. It is not
> >applying because sptlrpc_rule_set_dump() is not there in the file
> >anymore.
>
> Okay, should I send a version 2 for this series?
Yes, please.
regards
sudip
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2015-10-02 6:31 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-01 17:29 [PATCH 0/6] Declare functions and structures as static Shraddha Barke
2015-10-01 17:29 ` [PATCH 1/6] Staging: lustre: ptlrpc: Declare sptlrpc_rule_set_merge " Shraddha Barke
2015-10-01 17:29 ` [PATCH 2/6] Staging: lustre: ptlrpc: Declare sptlrpc_rule_set_free " Shraddha Barke
2015-10-01 17:29 ` [PATCH 3/6] Staging: lustre: ptlrpc: Declare sptlrpc_rule_set_expand " Shraddha Barke
2015-10-01 17:29 ` [PATCH 4/6] Staging: lustre: ptlrpc: Declare sptlrpc_rule_set_choose " Shraddha Barke
2015-10-02 4:57 ` [Outreachy kernel] " Sudip Mukherjee
2015-10-02 5:38 ` Shraddha Barke
2015-10-02 5:47 ` Sudip Mukherjee
2015-10-02 5:56 ` Shraddha Barke
2015-10-02 6:31 ` Sudip Mukherjee
2015-10-01 17:29 ` [PATCH 5/6] Staging: lustre: ptlrpc: Declare sptlrpc_req_replace_dead_ctx " Shraddha Barke
2015-10-01 17:29 ` [PATCH 6/6] Staging: lustre: ptlrpc: Declare sptlrpc_parse_rule " Shraddha Barke
2015-10-01 20:17 ` [Outreachy kernel] [PATCH 0/6] Declare functions and structures " Arnd Bergmann
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.