Skip to contentSkip to conversation

staging: unisys: remove unused functions

PATCH Superseded Sudip Mukherjee 3 participants 8 messages May 7, 2015 – May 8, 2015 Staging

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 staging: unisys: remove unused functions

these functions were just defined and never used.

---
 drivers/staging/unisys/visorchipset/visorchipset.h |  4 ---
 .../unisys/visorchipset/visorchipset_main.c        | 41 ----------------------
 2 files changed, 45 deletions(-)
drivers/staging/unisys/visorchipset/visorchipset.h +0 -4
index 87b63f0..fb10b46 100644
@@ -224,9 +224,5 @@ int visorchipset_chipset_selftest(void);
 int visorchipset_chipset_notready(void);
 void visorchipset_save_message(struct controlvm_message *msg,
 			       enum crash_obj_type type);
-void *visorchipset_cache_alloc(struct kmem_cache *pool,
-			       bool ok_to_block, char *fn, int ln);
-void visorchipset_cache_free(struct kmem_cache *pool, void *p,
-			     char *fn, int ln);
 
 #endif
drivers/staging/unisys/visorchipset/visorchipset_main.c +0 -41

47 lines not on this page · raw message

Signature · 1 line
1.8.1.2
#1 lore raw

PATCH 2/2 staging: unisys: remove unused variable

the previous patch of the series made this variable unused.

---
 drivers/staging/unisys/visorchipset/visorchipset_main.c | 2 --
 1 file changed, 2 deletions(-)
drivers/staging/unisys/visorchipset/visorchipset_main.c +0 -2
index 0468dc2..1f4c529 100644
@@ -200,8 +200,6 @@ struct putfile_request {
 	int completion_status;
 };
 
-static atomic_t visorchipset_cache_buffers_in_use = ATOMIC_INIT(0);
-
 struct parahotplug_request {
 	struct list_head list;
 	int id;
Signature · 1 line
1.8.1.2
#2 lore raw

Re: [PATCH 2/2] staging: unisys: remove unused variable

Quoted 1 line · Sudip Mukherjee

the previous patch of the series made this variable unused.

What do you mean? There was only one other patch in this series, never send a patch that causes a build warning.

greg k-h

#3 lore raw

Re: [PATCH 2/2] staging: unisys: remove unused variable

Quoted 5 lines · Greg Kroah-Hartman
Quoted 1 line · Sudip Mukherjee

the previous patch of the series made this variable unused.

What do you mean? There was only one other patch in this series, never send a patch that causes a build warning.

This patch is 2/2 , the 1/2 patch when applied will cause a build warning about unused variable.

should i then send a v2 mentioning that "1/2 will cause a build warning which is fixed in 2/2" ?

regards
sudip

Quoted 2 lines

greg k-h

#4 lore raw

Re: [PATCH 2/2] staging: unisys: remove unused variable

Quoted 11 lines · Sudip Mukherjee
Quoted 5 lines · Greg Kroah-Hartman
Quoted 1 line · Sudip Mukherjee

the previous patch of the series made this variable unused.

What do you mean? There was only one other patch in this series, never send a patch that causes a build warning.

This patch is 2/2 , the 1/2 patch when applied will cause a build warning about unused variable.

should i then send a v2 mentioning that "1/2 will cause a build warning which is fixed in 2/2" ?

No, you fix 1/2 to not create a build warning.

#5 lore raw

Re: [PATCH 2/2] staging: unisys: remove unused variable

In reply to Sudip Mukherjee
Quoted 4 lines · Sudip Mukherjee
Quoted 3 lines · Greg Kroah-Hartman
Quoted 1 line · Sudip Mukherjee

the previous patch of the series made this variable unused.

Quoted 8 lines
Quoted 2 lines

What do you mean? There was only one other patch in this series, never send a patch that causes a build warning.

This patch is 2/2 , the 1/2 patch when applied will cause a build warning about unused variable.

should i then send a v2 mentioning that "1/2 will cause a build warning which is fixed in 2/2" ?

Gar... No. Fold them together into one patch...

The one thing per patch rule means that you shouldn't do half a thing per patch.

regards,
dan carpenter

#6 lore raw

Re: [PATCH 2/2] staging: unisys: remove unused variable

Quoted 10 lines · Dan Carpenter
Quoted 9 lines · Sudip Mukherjee
Quoted 5 lines · Greg Kroah-Hartman
Quoted 1 line · Sudip Mukherjee

the previous patch of the series made this variable unused.

What do you mean? There was only one other patch in this series, never send a patch that causes a build warning.

This patch is 2/2 , the 1/2 patch when applied will cause a build warning about unused variable.

Quoted 8 lines
Quoted 3 lines

should i then send a v2 mentioning that "1/2 will cause a build warning which is fixed in 2/2" ?

Gar... No. Fold them together into one patch...

The one thing per patch rule means that you shouldn't do half a thing per patch.

already sent that one combined patch.

but this rule is really confusing me now .. :(
if i can understand the devicemodel then this rule should not be tough to understand.
so, what i understood till now:
1) any patch of the series should not break the build.
(you told me that in my parport patch series :) )

2) any patch of the series should not introduce build warning.

3) when i am modifying some line, i can make simple changes in style. but if its big change in style then that should be a separate patch.

regards
sudip

Quoted 4 lines

regards,
dan carpenter

#7 lore raw

Re: [PATCH 2/2] staging: unisys: remove unused variable

Quoted 10 lines · Sudip Mukherjee

so, what i understood till now:
1) any patch of the series should not break the build. (you told me that in my parport patch series :) )

2) any patch of the series should not introduce build warning.

3) when i am modifying some line, i can make simple changes in style. but if its big change in style then that should be a separate patch.

Yes.

regards,
carpenter