Skip to contentSkip to conversation

Abridged summary of [email protected] - 100 updates in 21 topics

Outreachy kernel Anchal Jain 1 participant 1 message Oct 15, 2015 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

I am working on linux kernel . I try to understand on these bug can anyone help me
http://bugzilla.netfilter.org/show_bug.cgi?id=895#c0

Quoted 1,131 lines · On Tue, Oct 13, 2015 at 5:55 PM, <[email protected]> wrote:

[email protected]
<https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/outreachy-kernel/topics> Google Groups
<https://groups.google.com/forum/?utm_source=digest&utm_medium=email/#!overview>
<https://groups.google.com/forum/?utm_source=digest&utm_medium=email/#!overview>
Today's topic summary
View all topics
<https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/outreachy-kernel/topics>

- [PATCH] Staging: wilc1000: Use kzalloc instead of kmalloc and memset <#1506129b9668439c_group_thread_0> - 2 Updates
- [PATCH v3 2/9] staging: iio: adc: properly indent to match open paranthesis <#1506129b9668439c_group_thread_1> - 19 Updates
- [PATCH] Staging: wilc1000: wilc_wlan: Remove unnecessary cast <#1506129b9668439c_group_thread_2> - 1 Update
- [PATCH 0/2] Fix various issues <#1506129b9668439c_group_thread_3> - 4 Updates
- [PATCH v3 0/3] Fix issues discovered by coccinelle <#1506129b9668439c_group_thread_4> - 9 Updates
- [PATCH v2] Staging: wilc1000: wilc_wfi_cfgoperations: Remove unnecessary constants <#1506129b9668439c_group_thread_5> - 3 Updates
- [PATCH] Staging: wilc1000: wilc_wfi_cfgoperations: Remove unused code <#1506129b9668439c_group_thread_6> - 2 Updates
- [PATCH 0/3] Remove useless cast on void pointer <#1506129b9668439c_group_thread_7> - 12 Updates
- [PATCH 1/2] Staging: wilc1000: host_interface: Use kmemdup instead of kmalloc and memcpy <#1506129b9668439c_group_thread_8> - 1 Update
- [PATCH] staging: sm750fb: Remove multiple blank lines <#1506129b9668439c_group_thread_9> - 1 Update
- sending patch revisions w mutt ??? <#1506129b9668439c_group_thread_10> - 2 Updates
- [PATCH] staging: lustre: llite: Remove useless cast on void pointer <#1506129b9668439c_group_thread_11> - 1 Update
- [PATCH v2] staging: rdma: hfi1: remove unnecessary out of memory messages <#1506129b9668439c_group_thread_12> - 1 Update
- [PATCH v2] staging: gdmwm: move variables to right side of comparison test <#1506129b9668439c_group_thread_13> - 1 Update
- [PATCH v2] staging: wilc1000: move open brace in line with control flow statement <#1506129b9668439c_group_thread_14> - 1 Update
- [PATCH 0/3] Fix issues detected by coccinelle <#1506129b9668439c_group_thread_15> - 25 Updates
- [PATCH] Staging: vt6655: mac: Remove extra braces <#1506129b9668439c_group_thread_16> - 2 Updates
- [PATCH v4 1/3] Staging: rtl8192u: ieee80211: ieee80211_softmac:

   Remove commented printk messages <#1506129b9668439c_group_thread_17> - 3
   Updates
   - [PATCH v2 1/2] Staging: vt6655: mac: Remove character limit warning
   <#1506129b9668439c_group_thread_18> - 2 Updates
   - [PATCH 0/3] Remove NULL check before kfree
   <#1506129b9668439c_group_thread_19> - 7 Updates
   - [PATCH] Staging: most: hdm-i2c: Drop owner assignment from i2c driver
   <#1506129b9668439c_group_thread_20> - 1 Update

[PATCH] Staging: wilc1000: Use kzalloc instead of kmalloc and memset
<http://groups.google.com/group/outreachy-kernel/t/9106dd04ff835e59?utm_source=digest&utm_medium=email>
Greg KH <[email protected]>: Oct 12 09:00PM -0700

Quoted 3 lines · Shraddha Barke

---
drivers/staging/wilc1000/host_interface.c | 11 +++--------

1 file changed, 3 insertions(+), 8 deletions(-)

...more
<http://groups.google.com/group/outreachy-kernel/msg/b3af5636d1d59?utm_source=digest&utm_medium=email>
Shraddha Barke <[email protected]>: Oct 13 05:46PM +0530

Replace kmalloc and memset with a single call to kzalloc.

---
Changes in v2-
Based on the current staging-testing branch
...more
<http://groups.google.com/group/outreachy-kernel/msg/b50390e099227?utm_source=digest&utm_medium=email>
Back to top <#1506129b9668439c_digest_top>
[PATCH v3 2/9] staging: iio: adc: properly indent to match open paranthesis
<http://groups.google.com/group/outreachy-kernel/t/fc88e7a3b2c59b5c?utm_source=digest&utm_medium=email>
Daniel Baluta <[email protected]>: Oct 12 06:14PM +0300

Quoted 3 lines

- nothing
Changes in v3:
- rework changes in order to avoid introducing new checkpatch warnings

<snip>

Quoted 1 line

ad7280_store_balance_sw; ...more

<http://groups.google.com/group/outreachy-kernel/msg/b0b51c5659369?utm_source=digest&utm_medium=email>
Daniel Baluta <[email protected]>: Oct 12 07:26PM +0300

Quoted 3 lines

Use !condition instead off condition == NULL when comparing with NULL

...more
<http://groups.google.com/group/outreachy-kernel/msg/b0f422c2e07d5?utm_source=digest&utm_medium=email>
Daniel Baluta <[email protected]>: Oct 12 07:31PM +0300

Quoted 4 lines

Remove the space after an explicit cast because there is no point in having it

<http://groups.google.com/group/outreachy-kernel/msg/b0f8806d3b1bc?utm_source=digest&utm_medium=email>
Daniel Baluta <[email protected]>: Oct 12 07:38PM +0300

Quoted 3 lines

static IIO_DEVICE_ATTR_NAMED(in_v_m_v_scale_available,
- in_voltage-voltage_scale_available,
+ in_voltage - voltage_scale_available,

...more
<http://groups.google.com/group/outreachy-kernel/msg/b0fe49bf522b0?utm_source=digest&utm_medium=email>
Daniel Baluta <[email protected]>: Oct 12 07:39PM +0300

Quoted 3 lines

Insert a blank line after declarations

...more
<http://groups.google.com/group/outreachy-kernel/msg/b0ff548eb9564?utm_source=digest&utm_medium=email>
Daniel Baluta <[email protected]>: Oct 12 07:40PM +0300

Quoted 4 lines

Remove multiple blank lines since there is no practical reason to have it

...more
<http://groups.google.com/group/outreachy-kernel/msg/b100222a4ab2f?utm_source=digest&utm_medium=email>
Daniel Baluta <[email protected]>: Oct 12 07:50PM +0300

Quoted 3 lines

Remove the use of CamelCase to follow the kernel naming conventions

Some of this names I think are intended because are easier to read. ...more
<http://groups.google.com/group/outreachy-kernel/msg/b10956a3ab6ea?utm_source=digest&utm_medium=email>
Daniel Baluta <[email protected]>: Oct 12 07:53PM +0300

Quoted 5 lines

+ */

/* Configuration Register Bit Designations (AD7192_REG_CONF) */

--

This patch is correct. Anyhow, I think it is better to add the ...more
<http://groups.google.com/group/outreachy-kernel/msg/b10c0a2432806?utm_source=digest&utm_medium=email>
Daniel Baluta <[email protected]>: Oct 12 07:59PM +0300

Quoted 4 lines

Convert uint32_t to u32 and uint64_t to u64 in order to follow the kernel best practice

Reviewed-by: Daniel Baluta ...more
<http://groups.google.com/group/outreachy-kernel/msg/b11161c9eadcc?utm_source=digest&utm_medium=email>
Ioana Ciornei <[email protected]>: Oct 12 10:00PM +0300

Quoted 4 lines

no binary operator
here.

If checkpatch complains about this then it's a false positive.

Yes, checkpatch generated a warning and also there were no build errors. Sorry about this. ...more
<http://groups.google.com/group/outreachy-kernel/msg/b17aab2756684?utm_source=digest&utm_medium=email>
Greg KH <[email protected]>: Oct 12 05:01PM -0700

Quoted 3 lines · Ioana Ciornei
Quoted 1 line

If checkpatch complains about this then it's a false positive.

Yes, checkpatch generated a warning and also there were no ...more

<http://groups.google.com/group/outreachy-kernel/msg/b2811a05f8549?utm_source=digest&utm_medium=email>
Ioana Ciornei <[email protected]>: Oct 13 08:47AM +0300

Quoted 3 lines · Ioana Ciornei
Quoted 1 line

On Mon, Oct 12, 2015 at 7:38 PM, Daniel Baluta <[email protected]

Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line

On Fri, Oct 9, 2015 at 10:51 PM, Ioana ...more

<http://groups.google.com/group/outreachy-kernel/msg/b3afd02d9f0c1?utm_source=digest&utm_medium=email>
Ioana Ciornei <[email protected]>: Oct 13 12:52PM +0300

Quoted 4 lines
Quoted 1 line

- kasprintf(GFP_KERNEL,

This line looks good to me as it is. Is there any particular reason for which you we want GFP_KERNEL to be moved on the next line?

...more
<http://groups.google.com/group/outreachy-kernel/msg/b485e02d6f116?utm_source=digest&utm_medium=email>
Julia Lawall <[email protected]>: Oct 13 11:56AM +0200

...more
<http://groups.google.com/group/outreachy-kernel/msg/b48969c74eae1?utm_source=digest&utm_medium=email>
Ioana Ciornei <[email protected]>: Oct 13 01:05PM +0300

Quoted 1 line

Do the other arguments not fit if they are lines up with the right side

of

Quoted 2 lines

the (? Perhaps it is possible to break up the longer arguments more so that they fit better?

The first argument ...more
<http://groups.google.com/group/outreachy-kernel/msg/b4913fb8d92e3?utm_source=digest&utm_medium=email>
Julia Lawall <[email protected]>: Oct 13 12:19PM +0200

...more
<http://groups.google.com/group/outreachy-kernel/msg/b49cc88126c96?utm_source=digest&utm_medium=email>
Sudip Mukherjee <[email protected]>: Oct 13 05:21PM +0530

Quoted 4 lines · Ioana Ciornei

If use a variable instead of 'dev * AD7280A_CELLS_PER_DEV + ch' all the problems would be solved.

Is this a proper way to ...more

<http://groups.google.com/group/outreachy-kernel/msg/b4ed20418c7c4?utm_source=digest&utm_medium=email>
Julia Lawall <[email protected]>: Oct 13 01:52PM +0200

...more
<http://groups.google.com/group/outreachy-kernel/msg/b4edf7c04bc29?utm_source=digest&utm_medium=email>
Daniel Baluta <[email protected]>: Oct 13 02:54PM +0300

Quoted 4 lines

If use a variable instead of 'dev * AD7280A_CELLS_PER_DEV + ch' all the problems would be solved.

Is this a proper way to handle it?

There will be one line of 81 chars. ...more
<http://groups.google.com/group/outreachy-kernel/msg/b4f022032fd87?utm_source=digest&utm_medium=email>
Back to top <#1506129b9668439c_digest_top>
[PATCH] Staging: wilc1000: wilc_wlan: Remove unnecessary cast
<http://groups.google.com/group/outreachy-kernel/t/18f936bf4067ddce?utm_source=digest&utm_medium=email>
Shivani Bhardwaj <[email protected]>: Oct 13 05:04PM +0530

Remove cast which is not required.
Semantic patch used:
@@
type T;
T e;
identifier x;
@@

* T x = (T)e;

--- ...more
<http://groups.google.com/group/outreachy-kernel/msg/b4deee2f886b2?utm_source=digest&utm_medium=email>
Back to top <#1506129b9668439c_digest_top>
[PATCH 0/2] Fix various issues
<http://groups.google.com/group/outreachy-kernel/t/cbaf50ee25137fd5?utm_source=digest&utm_medium=email>
Shivani Bhardwaj <[email protected]>: Oct 13 04:33PM +0530

This patch removes unused code and changes the variable type to more effective one.
After applying this patch, code becomes better.

Shivani Bhardwaj (2):
Staging: wilc1000: ...more
<http://groups.google.com/group/outreachy-kernel/msg/b4c400fa2e36e?utm_source=digest&utm_medium=email>
Shivani Bhardwaj <[email protected]>: Oct 13 04:34PM +0530

Remove a flag variable which is not used anywhere in the code. Semantic patch used:

@@
type T;
identifier i;
constant C;
position p != e.p;
@@

- T i@p;
<+... when != i
- i = C; ...more
<http://groups.google.com/group/outreachy-kernel/msg/b4c44806dd648?utm_source=digest&utm_medium=email>
Shivani Bhardwaj <[email protected]>: Oct 13 04:34PM +0530

Change variable of the type u8 to bool as the only values acquired by it are true or false.

--- ...more
<http://groups.google.com/group/outreachy-kernel/msg/b4c491de59a56?utm_source=digest&utm_medium=email>
Julia Lawall <[email protected]>: Oct 13 01:20PM +0200

...more
<http://groups.google.com/group/outreachy-kernel/msg/b4d21ae5aa5b9?utm_source=digest&utm_medium=email>
Back to top <#1506129b9668439c_digest_top>
[PATCH v3 0/3] Fix issues discovered by coccinelle
<http://groups.google.com/group/outreachy-kernel/t/f1c71247e4dde304?utm_source=digest&utm_medium=email>
Shivani Bhardwaj <[email protected]>: Oct 13 12:36PM +0530

This patch removes extra NULL tests, extra casts and irrelevant typedefs and code.
After applying this patch, code becomes cleaner.

Shivani Bhardwaj (3):
Staging: wilc1000: host_interface: ...more
<http://groups.google.com/group/outreachy-kernel/msg/b3f46bfbede9a?utm_source=digest&utm_medium=email>
Shivani Bhardwaj <[email protected]>: Oct 13 12:36PM +0530

Remove NULL test on a variable as it is preceded by another NULL test on the same variable in the code. Also, it is unnecessary to NULL test before kfree().
Semantic patch used:
...more
<http://groups.google.com/group/outreachy-kernel/msg/b3f4df522933d?utm_source=digest&utm_medium=email>
Shivani Bhardwaj <[email protected]>: Oct 13 12:37PM +0530

Remove a typedef and the code that is not required. Semantic patch used:

@@
type T;
identifier i;
constant C;
position p != e.p;
@@

- T i@p;
<+... when != i
- i = C;
...+>
...more
<http://groups.google.com/group/outreachy-kernel/msg/b3f581e2e8e24?utm_source=digest&utm_medium=email>
Shivani Bhardwaj <[email protected]>: Oct 13 12:38PM +0530

Remove irrelevant cast throughout the code.
Semantic patch used:

@@
type T;
T e;
identifier x;
@@

* T x = (T)e;

--- ...more
<http://groups.google.com/group/outreachy-kernel/msg/b3f60dab55614?utm_source=digest&utm_medium=email>
Daniel Baluta <[email protected]>: Oct 13 10:45AM +0300

On Tue, Oct 13, 2015 at 10:06 AM, Shivani Bhardwaj

Quoted 4 lines

- }
+ kfree(E);

...more
<http://groups.google.com/group/outreachy-kernel/msg/b4167ef704bcc?utm_source=digest&utm_medium=email>
Julia Lawall <[email protected]>: Oct 13 09:49AM +0200

...more
<http://groups.google.com/group/outreachy-kernel/msg/b419ff9c204ac?utm_source=digest&utm_medium=email>
Shivani Bhardwaj <[email protected]>: Oct 13 01:21PM +0530

Quoted 4 lines

- (T)
e;

julia

Thanks, Julia. :)

...more
<http://groups.google.com/group/outreachy-kernel/msg/b41b742c73874?utm_source=digest&utm_medium=email>
Shivani Bhardwaj <[email protected]>: Oct 13 04:18PM +0530

Quoted 4 lines
Quoted 4 lines

- (T)
e;

julia

Going by the usual way cocci scripts are written, is writing the following to make the change wrong?
@@
type T;
T e;
identifier x;
@@

- * T x = (T)e; ...more
<http://groups.google.com/group/outreachy-kernel/msg/b4b60b43d6cc8?utm_source=digest&utm_medium=email>
Julia Lawall <[email protected]>: Oct 13 01:18PM +0200

...more
<http://groups.google.com/group/outreachy-kernel/msg/b4d0bde94f308?utm_source=digest&utm_medium=email>
Back to top <#1506129b9668439c_digest_top>
[PATCH v2] Staging: wilc1000: wilc_wfi_cfgoperations: Remove unnecessary constants
<http://groups.google.com/group/outreachy-kernel/t/9f333cbe7f10286e?utm_source=digest&utm_medium=email>
Shivani Bhardwaj <[email protected]>: Oct 13 03:55PM +0530

Remove constants wherever not required and change variables to bool type to get rid of constants.
Semantic patch used:

@@
type T;
identifier i;
constant C;
position p != e.p;
@@

- T i@p; ...more
<http://groups.google.com/group/outreachy-kernel/msg/b4a2af3a8321b?utm_source=digest&utm_medium=email>
Julia Lawall <[email protected]>: Oct 13 12:41PM +0200

...more
<http://groups.google.com/group/outreachy-kernel/msg/b4b0a392a7203?utm_source=digest&utm_medium=email>
Shivani Bhardwaj <[email protected]>: Oct 13 04:14PM +0530

Quoted 4 lines

Actually, my thought was to have a bool variable called pmkid_found. That would be more understandable than flag.

Also the initial value should be false, not 0.

Fine. ...more
<http://groups.google.com/group/outreachy-kernel/msg/b4b30c2ae7cbf?utm_source=digest&utm_medium=email>
Back to top <#1506129b9668439c_digest_top>
[PATCH] Staging: wilc1000: wilc_wfi_cfgoperations: Remove unused code
<http://groups.google.com/group/outreachy-kernel/t/d1a40dc6a2ca95e9?utm_source=digest&utm_medium=email>
Shivani Bhardwaj <[email protected]>: Oct 13 03:18PM +0530

Remove the declaration, initialization and statement having a variable that is not used anywhere in the code. Semantic patch used:

@@
type T;
identifier i;
constant C;
position p != e.p;
@@ ...more
<http://groups.google.com/group/outreachy-kernel/msg/b48281d722cb6?utm_source=digest&utm_medium=email>
Julia Lawall <[email protected]>: Oct 13 11:54AM +0200

...more
<http://groups.google.com/group/outreachy-kernel/msg/b486efbd43b71?utm_source=digest&utm_medium=email>
Back to top <#1506129b9668439c_digest_top>
[PATCH 0/3] Remove useless cast on void pointer
<http://groups.google.com/group/outreachy-kernel/t/491431a1e1b965a2?utm_source=digest&utm_medium=email>
Amitoj Kaur Chawla <[email protected]>: Oct 13 01:35PM +0530

This patchset removes multiple useless cast on void pointer.

Amitoj Kaur Chawla (3):
staging: rtl8712: Remove useless cast on void pointer
staging: rtl8712: Remove useless cast on void ...more
<http://groups.google.com/group/outreachy-kernel/msg/b427ddb274975?utm_source=digest&utm_medium=email>
Amitoj Kaur Chawla <[email protected]>: Oct 13 01:36PM +0530

The semantic patch used to find this is:

@r@
expression x;
void* e;
type T;
identifier f;
@@

(
*((T *)e)
|
((T *)x)[...]
|
((T *)x)->f
|
- (T *)
e
)

Signed-off-by: ...more
<http://groups.google.com/group/outreachy-kernel/msg/b42954408b53d?utm_source=digest&utm_medium=email>
Amitoj Kaur Chawla <[email protected]>: Oct 13 01:37PM +0530

The semantic patch used to find this is:

@r@
expression x;
void* e;
type T;
identifier f;
@@

(
*((T *)e)
|
((T *)x)[...]
|
((T *)x)->f
|
- (T *)
e
)

Signed-off-by: ...more
<http://groups.google.com/group/outreachy-kernel/msg/b42a30993eb79?utm_source=digest&utm_medium=email>
Amitoj Kaur Chawla <[email protected]>: Oct 13 01:38PM +0530

The semantic patch used to find this is:

@r@
expression x;
void* e;
type T;
identifier f;
@@

(
*((T *)e)
|
((T *)x)[...]
|
((T *)x)->f
|
- (T *)
e
)

Signed-off-by: ...more
<http://groups.google.com/group/outreachy-kernel/msg/b42af6a26dcb0?utm_source=digest&utm_medium=email>
Julia Lawall <[email protected]>: Oct 13 10:11AM +0200

...more
<http://groups.google.com/group/outreachy-kernel/msg/b42ce37e011c8?utm_source=digest&utm_medium=email>
Amitoj Kaur Chawla <[email protected]>: Oct 13 01:44PM +0530

Quoted 5 lines

of the cast, it would be reasonable to also drop them.

Likewise elsewhere.

julia

Will do. Sending v2.

--
Amitoj
...more
<http://groups.google.com/group/outreachy-kernel/msg/b4303241a7a8b?utm_source=digest&utm_medium=email>
Amitoj Kaur Chawla <[email protected]>: Oct 13 02:03PM +0530

This patchset removes multiple useless cast on void pointer.

The semantic patch used to find this is:

@r@
expression x;
void* e;
type T;
identifier f;
@@

(
*((T *)e)
| ...more
<http://groups.google.com/group/outreachy-kernel/msg/b440bb84843ba?utm_source=digest&utm_medium=email>
Amitoj Kaur Chawla <[email protected]>: Oct 13 02:05PM +0530

The semantic patch used to find this is:

@r@
expression x;
void* e;
type T;
identifier f;
@@

(
*((T *)e)
|
((T *)x)[...]
|
((T *)x)->f
|
- (T *)
e
)

...more
<http://groups.google.com/group/outreachy-kernel/msg/b442382eca1c2?utm_source=digest&utm_medium=email>
Amitoj Kaur Chawla <[email protected]>: Oct 13 02:06PM +0530

The semantic patch used to find this is:

@r@
expression x;
void* e;
type T;
identifier f;
@@

(
*((T *)e)
|
((T *)x)[...]
|
((T *)x)->f
|
- (T *)
e
)

...more
<http://groups.google.com/group/outreachy-kernel/msg/b44348d331739?utm_source=digest&utm_medium=email>
Amitoj Kaur Chawla <[email protected]>: Oct 13 02:08PM +0530

The semantic patch used to find this is:

@r@
expression x;
void* e;
type T;
identifier f;
@@

(
*((T *)e)
|
((T *)x)[...]
|
((T *)x)->f
|
- (T *)
e
)

...more
<http://groups.google.com/group/outreachy-kernel/msg/b44486a0d8575?utm_source=digest&utm_medium=email>
Julia Lawall <[email protected]>: Oct 13 10:38AM +0200

...more
<http://groups.google.com/group/outreachy-kernel/msg/b44553dcae32d?utm_source=digest&utm_medium=email>
Amitoj Kaur Chawla <[email protected]>: Oct 13 02:19PM +0530

Quoted 4 lines
Quoted 1 line

)

When you make a change by hand beyond what the semantic patch does, it should be mentioned up here, not just below the ---.

Oh, okay. Will keep that in mind for the future.
...more
<http://groups.google.com/group/outreachy-kernel/msg/b44e2828cb6d9?utm_source=digest&utm_medium=email>
Back to top <#1506129b9668439c_digest_top>
[PATCH 1/2] Staging: wilc1000: host_interface: Use kmemdup instead of kmalloc and memcpy
<http://groups.google.com/group/outreachy-kernel/t/76de83f71cfb3011?utm_source=digest&utm_medium=email>
Greg KH <[email protected]>: Oct 12 09:01PM -0700

Quoted 3 lines · Shraddha Barke

---
drivers/staging/wilc1000/host_interface.c | 14 ++++++--------

1 file changed, 6 insertions(+), 8 deletions(-)

...more
<http://groups.google.com/group/outreachy-kernel/msg/b3af57bfe1813?utm_source=digest&utm_medium=email>
Back to top <#1506129b9668439c_digest_top> [PATCH] staging: sm750fb: Remove multiple blank lines
<http://groups.google.com/group/outreachy-kernel/t/2e7a3e039f1942?utm_source=digest&utm_medium=email>
Greg KH <[email protected]>: Oct 12 08:33PM -0700

Quoted 3 lines · Amitoj Kaur Chawla

---
drivers/staging/sm750fb/ddk750_chip.c | 3 ---

1 file changed, 3 deletions(-)

This doesn't apply to my ...more
<http://groups.google.com/group/outreachy-kernel/msg/b3a94920879ae?utm_source=digest&utm_medium=email>
Back to top <#1506129b9668439c_digest_top>
sending patch revisions w mutt ???
<http://groups.google.com/group/outreachy-kernel/t/8098151244e36971?utm_source=digest&utm_medium=email>
Alison Schofield <[email protected]>: Oct 12 02:35PM -0700

Quoted 4 lines · Sudip Mukherjee

send-email.

regards
sudip

Thanks Sudip! I used git send-email today. (I still hold out hope of finding mutt instructs ...more
<http://groups.google.com/group/outreachy-kernel/msg/b201901c39029?utm_source=digest&utm_medium=email>
Greg KH <[email protected]>: Oct 12 04:40PM -0700

Quoted 4 lines · Alison Schofield

Is there a better way?

Also, do you want it threaded right on top, ie. in reply to the previous patch message.

...more
<http://groups.google.com/group/outreachy-kernel/msg/b27b01ff30fa0?utm_source=digest&utm_medium=email>
Back to top <#1506129b9668439c_digest_top>
[PATCH] staging: lustre: llite: Remove useless cast on void pointer
<http://groups.google.com/group/outreachy-kernel/t/16849a895fab7dc6?utm_source=digest&utm_medium=email>
Amitoj Kaur Chawla <[email protected]>: Oct 13 03:13AM +0530

The semantic patch used to find this is:

@r@
expression x;
void* e;
type T;
identifier f;
@@

(
*((T *)e)
|
((T *)x)[...]
|
((T *)x)->f
|
- (T *)
e
)

Signed-off-by: ...more
<http://groups.google.com/group/outreachy-kernel/msg/b208a1c8cef58?utm_source=digest&utm_medium=email>
Back to top <#1506129b9668439c_digest_top>
[PATCH v2] staging: rdma: hfi1: remove unnecessary out of memory messages
<http://groups.google.com/group/outreachy-kernel/t/3a3541d58e33a1bb?utm_source=digest&utm_medium=email>
Alison Schofield <[email protected]>: Oct 12 02:28PM -0700

Out of memory messages are unnecssary in the drivers as they are reported by memory management.

Addresses checkpatch.pl: WARNING: Possible unnecessary 'out of memory' message

...more
<http://groups.google.com/group/outreachy-kernel/msg/b1fc10b44b2a2?utm_source=digest&utm_medium=email>
Back to top <#1506129b9668439c_digest_top>
[PATCH v2] staging: gdmwm: move variables to right side of comparison test
<http://groups.google.com/group/outreachy-kernel/t/de940d28ccf2cf40?utm_source=digest&utm_medium=email>
Alison Schofield <[email protected]>: Oct 12 01:53PM -0700

Move variables to right side of comparison test to improve readability.

---

Changes in v2: clarified commit message and description ...more
<http://groups.google.com/group/outreachy-kernel/msg/b1dd5494f928b?utm_source=digest&utm_medium=email>
Back to top <#1506129b9668439c_digest_top>
[PATCH v2] staging: wilc1000: move open brace in line with control flow statement
<http://groups.google.com/group/outreachy-kernel/t/f17101de2b6e3af6?utm_source=digest&utm_medium=email>
Alison Schofield <[email protected]>: Oct 12 01:22PM -0700

Move open braces to be in line with "if" control flow statements. Addresses checkpatch.pl:
ERROR: that open brace { should be on the previous line

Signed-off-by: Alison Schofield ...more
<http://groups.google.com/group/outreachy-kernel/msg/b1c29990fb6fd?utm_source=digest&utm_medium=email>
Back to top <#1506129b9668439c_digest_top>
[PATCH 0/3] Fix issues detected by coccinelle
<http://groups.google.com/group/outreachy-kernel/t/95216c0a3b0a3e09?utm_source=digest&utm_medium=email>
Shivani Bhardwaj <[email protected]>: Oct 12 07:04PM +0530

Replace appropriate functions with kzalloc(), fix NULL tests and remove unnecessary code.
After applying this patch, code becomes better.

Shivani Bhardwaj (3):
Staging: wilc1000: ...more
<http://groups.google.com/group/outreachy-kernel/msg/b05e453471548?utm_source=digest&utm_medium=email>
Shivani Bhardwaj <[email protected]>: Oct 12 07:05PM +0530

Replace the function kmalloc and following memset function with a single function kzalloc.
Issue found using coccinelle.

--- ...more
<http://groups.google.com/group/outreachy-kernel/msg/b05edc6d71da7?utm_source=digest&utm_medium=email>
Shivani Bhardwaj <[email protected]>: Oct 12 07:05PM +0530

Remove NULL test statement as it is preceded by another NULL test on the same variable in the code.
Issue found using coccinelle.

--- ...more
<http://groups.google.com/group/outreachy-kernel/msg/b05f631cfdac8?utm_source=digest&utm_medium=email>
Shivani Bhardwaj <[email protected]>: Oct 12 07:06PM +0530

Remove declaration and initialization of variables that are not used anywhere in the code.
Issue found using coccinelle.

--- ...more
<http://groups.google.com/group/outreachy-kernel/msg/b05fec77deee4?utm_source=digest&utm_medium=email>
Shraddha Barke <[email protected]>: Oct 12 07:15PM +0530

...more
<http://groups.google.com/group/outreachy-kernel/msg/b068366635084?utm_source=digest&utm_medium=email>
Julia Lawall <[email protected]>: Oct 12 03:54PM +0200

...more
<http://groups.google.com/group/outreachy-kernel/msg/b06f6cfdc1e6f?utm_source=digest&utm_medium=email>
Shivani Bhardwaj <[email protected]>: Oct 12 07:51PM +0530

Quoted 5 lines

* T x = (T)e;

will highlight initializations with useless casts.

julia

Thanks so much, Julia. I'm applying all of this. Thank you for the coccinelle script. Also, I want to know that ...more
<http://groups.google.com/group/outreachy-kernel/msg/b0875470e09a7?utm_source=digest&utm_medium=email>
Julia Lawall <[email protected]>: Oct 12 04:27PM +0200

...more
<http://groups.google.com/group/outreachy-kernel/msg/b08cb4d72210a?utm_source=digest&utm_medium=email>
Shivani Bhardwaj <[email protected]>: Oct 12 08:54PM +0530

Quoted 1 line

declaration updated to remove the type too, and as much of the rest as

you

Quoted 3 lines

want to do in the short term.

julia

OK. Thanks. I'm sending v2.
...more
<http://groups.google.com/group/outreachy-kernel/msg/b0bdef0337b5d?utm_source=digest&utm_medium=email>
Shraddha Barke <[email protected]>: Oct 12 09:12PM +0530

...more
<http://groups.google.com/group/outreachy-kernel/msg/b0cdd25a14cf4?utm_source=digest&utm_medium=email>
Shivani Bhardwaj <[email protected]>: Oct 12 09:18PM +0530

Quoted 4 lines

file. There are other instances of unnecessary null test which can be found using Coccinelle.I didn't work on this one since you already are :)

Shraddha

Thanks! Are you writing your own ...more
<http://groups.google.com/group/outreachy-kernel/msg/b0d369b6f07b1?utm_source=digest&utm_medium=email>
Shivani Bhardwaj <[email protected]>: Oct 12 11:00PM +0530

This patch removes useless casts and code.
After applying this patch, code becomes better and compact.

Shivani Bhardwaj (3):
Staging: wilc1000: host_interface: Remove extra NULL test ...more
<http://groups.google.com/group/outreachy-kernel/msg/b12c44b1be472?utm_source=digest&utm_medium=email>
Shivani Bhardwaj <[email protected]>: Oct 12 11:02PM +0530

Remove NULL test statement as it is preceded by another NULL test on the same variable in the code.
Issue found using coccinelle.

--- ...more
<http://groups.google.com/group/outreachy-kernel/msg/b12d96d25bf03?utm_source=digest&utm_medium=email>
Shivani Bhardwaj <[email protected]>: Oct 12 11:02PM +0530

Remove useless casts that occur throughout the code. Issue detected using coccinelle.

---
Changes in v2:
Deleted one patch and ...more
<http://groups.google.com/group/outreachy-kernel/msg/b12e6b63e26b0?utm_source=digest&utm_medium=email>
Shivani Bhardwaj <[email protected]>: Oct 12 11:03PM +0530

Remove declaration and initialization of variables that are not used anywhere in the code.
Issue found using coccinelle.

--- ...more
<http://groups.google.com/group/outreachy-kernel/msg/b12f0961d3735?utm_source=digest&utm_medium=email>
Daniel Baluta <[email protected]>: Oct 12 09:00PM +0300

Quoted 3 lines

- if (pstrWFIDrv != NULL) {
kfree(pstrWFIDrv);
/* pstrWFIDrv=NULL; */

You should also remove this comment.

...more
<http://groups.google.com/group/outreachy-kernel/msg/b146928861bd3?utm_source=digest&utm_medium=email>
Arnd Bergmann <[email protected]>: Oct 12 08:47PM +0200

Quoted 4 lines · On Monday 12 October 2015 23:03:33 Shivani Bhardwaj wrote:

anywhere in the code.
Issue found using coccinelle.

Nice find!
...more
<http://groups.google.com/group/outreachy-kernel/msg/b16f27d653fba?utm_source=digest&utm_medium=email>
Arnd Bergmann <[email protected]>: Oct 12 08:49PM +0200

Quoted 4 lines · On Monday 12 October 2015 23:02:53 Shivani Bhardwaj wrote:

- tstrWILC_WFIDrv *pstrWFIDrv = (tstrWILC_WFIDrv *)drvHandler;

/*prepare configuration packet*/
...more

<http://groups.google.com/group/outreachy-kernel/msg/b170a302baca0?utm_source=digest&utm_medium=email>
Arnd Bergmann <[email protected]>: Oct 12 08:50PM +0200

Quoted 2 lines · On Monday 12 October 2015 23:02:01 Shivani Bhardwaj wrote:

Deleted one patch and added another. Improved the other ones. drivers/staging/wilc1000/host_interface.c | 3 --- ...more

<http://groups.google.com/group/outreachy-kernel/msg/b1724bb7797b6?utm_source=digest&utm_medium=email>
Shivani Bhardwaj <[email protected]>: Oct 13 12:21AM +0530

Quoted 4 lines

can be removed. I haven't checked the other variables, but I'd guess that the same is true for them, because gcc tends to warn otherwise.

Arnd

Yes, Arnd. I've just removed the ...more
<http://groups.google.com/group/outreachy-kernel/msg/b17301ad44ba3?utm_source=digest&utm_medium=email>
Shivani Bhardwaj <[email protected]>: Oct 13 12:22AM +0530

Quoted 4 lines

to the left. Also, the comment behind it can be removed in the same patch.

Arnd

Yes, I'm fixing that and removing the comment. Sending v3. thank you.
...more
<http://groups.google.com/group/outreachy-kernel/msg/b173ba2d48e5b?utm_source=digest&utm_medium=email>
Julia Lawall <[email protected]>: Oct 12 09:26PM +0200

...more
<http://groups.google.com/group/outreachy-kernel/msg/b1915e68b8ed2?utm_source=digest&utm_medium=email>
Julia Lawall <[email protected]>: Oct 12 09:28PM +0200

...more
<http://groups.google.com/group/outreachy-kernel/msg/b192db77be613?utm_source=digest&utm_medium=email>
Julia Lawall <[email protected]>: Oct 12 09:34PM +0200

...more
<http://groups.google.com/group/outreachy-kernel/msg/b198adb79d72b?utm_source=digest&utm_medium=email>
Shivani Bhardwaj <[email protected]>: Oct 13 01:17AM +0530

Quoted 4 lines

This is too much. I think the varialbe is still used? You should just remove the (tstrWILC_WFIDrv *).

julia

I just realized what Arnd had to say. I'm so sorry. I'm correcting ...more
<http://groups.google.com/group/outreachy-kernel/msg/b1a4132fcd761?utm_source=digest&utm_medium=email>
Back to top <#1506129b9668439c_digest_top>
[PATCH] Staging: vt6655: mac: Remove extra braces
<http://groups.google.com/group/outreachy-kernel/t/7f74f75f5ab81fff?utm_source=digest&utm_medium=email>
Shivani Bhardwaj <[email protected]>: Oct 12 11:14PM +0530

Remove braces from an if block as it comprises of a single statement. Fix checkpatch warning: braces {} are not necessary for single statement blocks

Signed-off-by: Shivani Bhardwaj ...more
<http://groups.google.com/group/outreachy-kernel/msg/b138374063056?utm_source=digest&utm_medium=email>
Daniel Baluta <[email protected]>: Oct 12 08:48PM +0300

Quoted 4 lines

Fix checkpatch warning: braces {} are not necessary for single statement blocks

Reviewed-by: Daniel Baluta ...more
<http://groups.google.com/group/outreachy-kernel/msg/b13b7923371e0?utm_source=digest&utm_medium=email>
Back to top <#1506129b9668439c_digest_top>
[PATCH v4 1/3] Staging: rtl8192u: ieee80211: ieee80211_softmac: Remove commented printk messages
<http://groups.google.com/group/outreachy-kernel/t/9823ee8f81f3a223?utm_source=digest&utm_medium=email>
Daniel Baluta <[email protected]>: Oct 12 08:24PM +0300

Quoted 3 lines

Remove commented printk since it is not needed

...more
<http://groups.google.com/group/outreachy-kernel/msg/b126eb9eeac4c?utm_source=digest&utm_medium=email>
Daniel Baluta <[email protected]>: Oct 12 08:27PM +0300

Quoted 3 lines

Remove commented out printk messages since they are not needed

...more
<http://groups.google.com/group/outreachy-kernel/msg/b1292a3a6400c?utm_source=digest&utm_medium=email>
Daniel Baluta <[email protected]>: Oct 12 08:31PM +0300

Quoted 1 line

Remove commented out printk messages since they are not needed. Also

remove

Quoted 3 lines

the unnecessary braces and blank lines

...more
<http://groups.google.com/group/outreachy-kernel/msg/b12d35a145c5f?utm_source=digest&utm_medium=email>
Back to top <#1506129b9668439c_digest_top>
[PATCH v2 1/2] Staging: vt6655: mac: Remove character limit warning
<http://groups.google.com/group/outreachy-kernel/t/4ae7c031e482edd0?utm_source=digest&utm_medium=email>
Daniel Baluta <[email protected]>: Oct 12 08:06PM +0300

Quoted 4 lines

Break the lines with over 80 characters into sensible chunks of data. Fixes the chackpacth warning: line over 80 characters

...more
<http://groups.google.com/group/outreachy-kernel/msg/b11724457c77e?utm_source=digest&utm_medium=email>
Shivani Bhardwaj <[email protected]>: Oct 12 11:01PM +0530

Quoted 4 lines

+ unsigned long dwCurrDescAddr)

thanks,
Daniel.

I'll take care next time. Thanks, Daniel.
...more
<http://groups.google.com/group/outreachy-kernel/msg/b12ca44f6e0e1?utm_source=digest&utm_medium=email>
Back to top <#1506129b9668439c_digest_top>
[PATCH 0/3] Remove NULL check before kfree
<http://groups.google.com/group/outreachy-kernel/t/ccdee4c432092ab3?utm_source=digest&utm_medium=email>
Shraddha Barke <[email protected]>: Oct 12 08:49PM +0530

These patches remove null check before kfree using the Coccinelle script-

// <smpl>
@@ expression E; @@
- if (E != NULL) { kfree(E); }
+ kfree(E);
@@ expression E; @@
- if (E != NULL) { ...more
<http://groups.google.com/group/outreachy-kernel/msg/b0b9c4cf050d4?utm_source=digest&utm_medium=email>
Shraddha Barke <[email protected]>: Oct 12 08:49PM +0530

kfree on NULL pointer is a no-op.
The semantic patch used to find such an instance where NULL check is present before kfree-

// <smpl>
@@ expression E; @@
- if (E != NULL) { kfree(E); } ...more
<http://groups.google.com/group/outreachy-kernel/msg/b0b9cbdfff01f?utm_source=digest&utm_medium=email>
Shraddha Barke <[email protected]>: Oct 12 08:49PM +0530

kfree on NULL pointer is a no-op.

The semantic patch used-

// <smpl>
@@ expression E; @@
- if (E != NULL) { kfree(E); }
+ kfree(E);
@@ expression E; @@
- if (E != NULL) { kfree(E); E = ...more
<http://groups.google.com/group/outreachy-kernel/msg/b0b9d56b61e86?utm_source=digest&utm_medium=email>
Shraddha Barke <[email protected]>: Oct 12 08:49PM +0530

kfree on NULL pointer is a no-op.

The semantic patch used -

// <smpl>
@@ expression E; @@
- if (E != NULL) { kfree(E); }
+ kfree(E);
@@ expression E; @@
- if (E != NULL) { kfree(E); E = ...more
<http://groups.google.com/group/outreachy-kernel/msg/b0b9dd88623de?utm_source=digest&utm_medium=email>
Julia Lawall <[email protected]>: Oct 12 05:26PM +0200

...more
<http://groups.google.com/group/outreachy-kernel/msg/b0c036c53e616?utm_source=digest&utm_medium=email>
Julia Lawall <[email protected]>: Oct 12 05:28PM +0200

...more
<http://groups.google.com/group/outreachy-kernel/msg/b0c1d91278655?utm_source=digest&utm_medium=email>
Daniel Baluta <[email protected]>: Oct 12 08:20PM +0300

Quoted 4 lines

+ E = NULL;
// </smpl>smpl>

...more
<http://groups.google.com/group/outreachy-kernel/msg/b1237a082475d?utm_source=digest&utm_medium=email>
Back to top <#1506129b9668439c_digest_top>
[PATCH] Staging: most: hdm-i2c: Drop owner assignment from i2c driver
<http://groups.google.com/group/outreachy-kernel/t/fe8e5e07b188c9a6?utm_source=digest&utm_medium=email>
Shraddha Barke <[email protected]>: Oct 12 06:44PM +0530

i2c_driver does not need to set an owner because core will set it

---
drivers/staging/most/hdm-i2c/hdm_i2c.c | 1 -

1 file changed, 1 ...more

<http://groups.google.com/group/outreachy-kernel/msg/b04cbd40fe33e?utm_source=digest&utm_medium=email>
Back to top <#1506129b9668439c_digest_top>
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page
<https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/outreachy-kernel/join>
.
To unsubscribe from this group and stop receiving emails from it send an email to [email protected].