igb: mark expected switch fall-through
Subsystems (2)
PATCH 1/6 igb: mark expected switch fall-through
From: "Gustavo A. R. Silva" <[email protected]>
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.
This patch fixes the following warning:
drivers/net/ethernet/intel/igb/igb_main.c: In function ?__igb_notify_dca?:drivers/net/ethernet/intel/igb/igb_main.c:6694:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
if (dca_add_requester(dev) == 0) {
^drivers/net/ethernet/intel/igb/igb_main.c:6701:2: note: here
case DCA_PROVIDER_REMOVE:
^~~~
Warning level 3 was used: -Wimplicit-fallthrough=3
Notice that, in this particular case, the code comment is modified in accordance with what GCC is expecting to find.
This patch is part of the ongoing efforts to enable -Wimplicit-fallthrough.
--- drivers/net/ethernet/intel/igb/igb_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/igb/igb_main.c +1 -1
@@ -6701,7 +6701,7 @@ static int __igb_notify_dca(struct device *dev, void *data)igb_setup_dca (adapter);break ; } -/* Fall Through since DCA is disabled. */ +/* Fall Through - since DCA is disabled. */ case DCA_PROVIDER_REMOVE :if (adapter->flags &IGB_FLAG_DCA_ENABLED ) {/* without this a class_device is left
Signature · 1 line
2.20.1
PATCH 2/6 igb: mark expected switch fall-through
From: "Gustavo A. R. Silva" <[email protected]>
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.
This patch fixes the following warning:
drivers/net/ethernet/intel/igb/e1000_82575.c: In function ?igb_get_invariants_82575?:drivers/net/ethernet/intel/igb/e1000_82575.c:636:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
if (igb_sgmii_uses_mdio_82575(hw)) {
^drivers/net/ethernet/intel/igb/e1000_82575.c:642:2: note: here
case E1000_CTRL_EXT_LINK_MODE_PCIE_SERDES:
^~~~
Warning level 3 was used: -Wimplicit-fallthrough=3
Notice that, in this particular case, the code comment is modified in accordance with what GCC is expecting to find.
This patch is part of the ongoing efforts to enable -Wimplicit-fallthrough.
--- drivers/net/ethernet/intel/igb/e1000_82575.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/igb/e1000_82575.c +1 -1
@@ -638,7 +638,7 @@ static s32 igb_get_invariants_82575(struct e1000_hw *hw) dev_spec->sgmii_active = true;break ; } -/* fall through for I2C based SGMII */ +/* fall through - for I2C based SGMII */ case E1000_CTRL_EXT_LINK_MODE_PCIE_SERDES :/* read media type from SFP EEPROM */ ret_val =igb_set_sfp_media_type_82575 (hw);
Signature · 1 line
2.20.1
Brown
PATCH 2/6 igb: mark expected switch fall-through
Quoted 28 lines
From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On Behalf Of Jeff Kirsher
Sent: Friday, March 29, 2019 4:39 PM
To: intel-wired-lan at lists.osuosl.org
Subject: [Intel-wired-lan] [PATCH 2/6] igb: mark expected switch fall-throughFrom: "Gustavo A. R. Silva" <[email protected]>
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.
This patch fixes the following warning:
drivers/net/ethernet/intel/igb/e1000_82575.c: In function ?igb_get_invariants_82575?:drivers/net/ethernet/intel/igb/e1000_82575.c:636:6: warning: this statement may fall through [-Wimplicit-fallthrough=]if (igb_sgmii_uses_mdio_82575(hw)) { ^
drivers/net/ethernet/intel/igb/e1000_82575.c:642:2: note: here
caseE1000_CTRL_EXT_LINK_MODE_PCIE_SERDES:
^~~~Warning level 3 was used: -Wimplicit-fallthrough=3
Notice that, in this particular case, the code comment is modified in accordance with what GCC is expecting to find.
Quoted 7 lines
This patch is part of the ongoing efforts to enable -Wimplicit-fallthrough.
Signed-off-by "Gustavo A. R. Silva" <[email protected]>--- drivers/net/ethernet/intel/igb/e1000_82575.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
PATCH 3/6 ice: Use struct_size() helper
In reply to Jeff KirsherFrom: "Gustavo A. R. Silva" <[email protected]>
One of the more common cases of allocation size calculations is finding the size of a structure that has a zero-sized array at the end, along with memory for some number of elements for that array. For example:
struct foo {
int stuff;
struct boo entry[];
};size = sizeof(struct foo) + count * sizeof(struct boo); instance = alloc(size, GFP_KERNEL);
Instead of leaving these open-coded and prone to type mistakes, we can now use the new struct_size() helper:
size = struct_size(instance, entry, count);
This code was detected with the help of Coccinelle.
--- drivers/net/ethernet/intel/ice/ice_sched.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/intel/ice/ice_sched.c +2 -2
@@ -683,10 +683,10 @@ ice_sched_add_elems(struct ice_port_info *pi, struct ice_sched_node *tc_node,u16 i, num_groups_added =0 ;enum ice_status status =0 ;struct ice_hw *hw = pi->hw; -u16 buf_size; +size_t buf_size;u32 teid; - buf_size =sizeof (*buf) +sizeof (*buf->generic) * (num_nodes -1 ); + buf_size =struct_size (buf, generic, num_nodes -1 ); buf =devm_kzalloc (ice_hw_to_dev (hw), buf_size,GFP_KERNEL );if (!buf)return ICE_ERR_NO_MEMORY ;
Signature · 1 line
2.20.1
Bowers
PATCH 3/6 ice: Use struct_size() helper
Quoted 24 lines
-----Original Message-----
From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On Behalf Of Jeff Kirsher
Sent: Friday, March 29, 2019 4:39 PM
To: intel-wired-lan at lists.osuosl.org
Subject: [Intel-wired-lan] [PATCH 3/6] ice: Usestruct_size()helperFrom: "Gustavo A. R. Silva" <[email protected]>
One of the more common cases of allocation size calculations is finding the size of a structure that has a zero-sized array at the end, along with memory for some number of elements for that array. For example:
struct foo { int stuff; struct boo entry[]; };size = sizeof(struct foo) + count * sizeof(struct boo); instance =
alloc(size, GFP_KERNEL);Instead of leaving these open-coded and prone to type mistakes, we can now use the new
struct_size()helper:
Quoted 8 lines
size =
struct_size(instance, entry, count);This code was detected with the help of Coccinelle.
Signed-off-by "Gustavo A. R. Silva" <[email protected]>--- drivers/net/ethernet/intel/ice/ice_sched.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
PATCH 4/6 iavf: use struct_size() in kzalloc()
In reply to Jeff KirsherFrom: "Gustavo A. R. Silva" <[email protected]>
One of the more common cases of allocation size calculations is finding the size of a structure that has a zero-sized array at the end, along with memory for some number of elements for that array. For example:
struct foo {
int stuff;
struct boo entry[];
};size = sizeof(struct foo) + count * sizeof(struct boo); instance = kzalloc(size, GFP_KERNEL)
Instead of leaving these open-coded and prone to type mistakes, we can now use the new struct_size() helper:
instance = kzalloc(struct_size(instance, entry, count), GFP_KERNEL)
Notice that, in this case, variable bufsz is not necessary, hence it is removed.
This code was detected with the help of Coccinelle.
--- drivers/net/ethernet/intel/iavf/iavf_main.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
drivers/net/ethernet/intel/iavf/iavf_main.c +4 -5
@@ -3353,7 +3353,7 @@ static void iavf_init_task(struct work_struct *work)struct net_device *netdev = adapter->netdev;struct iavf_hw *hw = &adapter->hw;struct pci_dev *pdev = adapter->pdev; -int err, bufsz; +int err;switch (adapter->state) {case __IAVF_STARTUP:
@@ -3423,10 +3423,9 @@ static void iavf_init_task(struct work_struct *work)case __IAVF_INIT_GET_RESOURCES:/* aq msg sent, awaiting reply */ if (!adapter->vf_res) { - bufsz =sizeof (struct virtchnl_vf_resource ) + - (IAVF_MAX_VF_VSI * -sizeof (struct virtchnl_vsi_resource )); - adapter->vf_res =kzalloc (bufsz,GFP_KERNEL ); + adapter->vf_res =kzalloc (struct_size (adapter->vf_res, + vsi_res,IAVF_MAX_VF_VSI ), +GFP_KERNEL );if (!adapter->vf_res) goto err; }
Signature · 1 line
2.20.1
Bowers
PATCH 4/6 iavf: use struct_size() in kzalloc()
Quoted 26 lines
-----Original Message-----
From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On Behalf Of Jeff Kirsher
Sent: Friday, March 29, 2019 4:39 PM
To: intel-wired-lan at lists.osuosl.org
Subject: [Intel-wired-lan] [PATCH 4/6] iavf: usestruct_size()inkzalloc()From: "Gustavo A. R. Silva" <[email protected]>
One of the more common cases of allocation size calculations is finding the size of a structure that has a zero-sized array at the end, along with memory for some number of elements for that array. For example:
struct foo { int stuff; struct boo entry[]; };size = sizeof(struct foo) + count * sizeof(struct boo); instance =
kzalloc(size, GFP_KERNEL)Instead of leaving these open-coded and prone to type mistakes, we can now use the new
struct_size()helper:instance =
kzalloc(struct_size(instance, entry, count), GFP_KERNEL)
Quoted 8 lines
Notice that, in this case, variable bufsz is not necessary, hence it is removed.
This code was detected with the help of Coccinelle.
Signed-off-by "Gustavo A. R. Silva" <[email protected]>--- drivers/net/ethernet/intel/iavf/iavf_main.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
PATCH 5/6 i40e: Use struct_size() in kzalloc()
In reply to Jeff KirsherFrom: "Gustavo A. R. Silva" <[email protected]>
One of the more common cases of allocation size calculations is finding the size of a structure that has a zero-sized array at the end, along with memory for some number of elements for that array. For example:
struct foo {
int stuff;
struct boo entry[];
};size = sizeof(struct foo) + count * sizeof(struct boo); instance = kzalloc(size, GFP_KERNEL)
Instead of leaving these open-coded and prone to type mistakes, we can now use the new struct_size() helper:
instance = kzalloc(struct_size(instance, entry, count), GFP_KERNEL)
Notice that, in this case, variable size is not necessary, hence it is removed.
This code was detected with the help of Coccinelle.
--- drivers/net/ethernet/intel/i40e/i40e_client.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/net/ethernet/intel/i40e/i40e_client.c +2 -4
@@ -578,11 +578,9 @@ static int i40e_client_setup_qvlist(struct i40e_info *ldev,struct i40e_hw *hw = &pf->hw;struct i40e_qv_info *qv_info;u32 v_idx, i, reg_idx, reg; -u32 size; - size =sizeof (struct i40e_qvlist_info ) + - (sizeof (struct i40e_qv_info ) * (qvlist_info->num_vectors -1 )); - ldev->qvlist_info =kzalloc (size,GFP_KERNEL ); + ldev->qvlist_info =kzalloc (struct_size (ldev->qvlist_info, qv_info, + qvlist_info->num_vectors -1 ),GFP_KERNEL );if (!ldev->qvlist_info)return -ENOMEM ; ldev->qvlist_info->num_vectors = qvlist_info->num_vectors;
Signature · 1 line
2.20.1
Bowers
PATCH 5/6 i40e: Use struct_size() in kzalloc()
Quoted 26 lines
-----Original Message-----
From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On Behalf Of Jeff Kirsher
Sent: Friday, March 29, 2019 4:39 PM
To: intel-wired-lan at lists.osuosl.org
Subject: [Intel-wired-lan] [PATCH 5/6] i40e: Usestruct_size()inkzalloc()From: "Gustavo A. R. Silva" <[email protected]>
One of the more common cases of allocation size calculations is finding the size of a structure that has a zero-sized array at the end, along with memory for some number of elements for that array. For example:
struct foo { int stuff; struct boo entry[]; };size = sizeof(struct foo) + count * sizeof(struct boo); instance =
kzalloc(size, GFP_KERNEL)Instead of leaving these open-coded and prone to type mistakes, we can now use the new
struct_size()helper:instance =
kzalloc(struct_size(instance, entry, count), GFP_KERNEL)
Quoted 8 lines
Notice that, in this case, variable size is not necessary, hence it is removed.
This code was detected with the help of Coccinelle.
Signed-off-by "Gustavo A. R. Silva" <[email protected]>--- drivers/net/ethernet/intel/i40e/i40e_client.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
PATCH 6/6 iavf: iavf_client: use struct_size() helper
In reply to Jeff KirsherFrom: "Gustavo A. R. Silva" <[email protected]>
One of the more common cases of allocation size calculations is finding the size of a structure that has a zero-sized array at the end, along with memory for some number of elements for that array. For example:
struct foo {
int stuff;
struct boo entry[];
};size = sizeof(struct foo) + count * sizeof(struct boo);
Instead of leaving these open-coded and prone to type mistakes, we can now use the new struct_size() helper:
size = struct_size(instance, entry, count);
This code was detected with the help of Coccinelle.
--- drivers/net/ethernet/intel/iavf/iavf_client.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
drivers/net/ethernet/intel/iavf/iavf_client.c +3 -4
@@ -451,7 +451,7 @@ static int iavf_client_setup_qvlist(struct i40e_info *ldev,struct i40e_qv_info *qv_info;iavf_status err;u32 v_idx, i; -u32 msg_size; +size_t msg_size;if (adapter->aq_required)return -EAGAIN ;
@@ -469,9 +469,8 @@ static int iavf_client_setup_qvlist(struct i40e_info *ldev, } v_qvlist_info = (struct virtchnl_iwarp_qvlist_info *)qvlist_info; - msg_size =sizeof (struct virtchnl_iwarp_qvlist_info ) + - (sizeof (struct virtchnl_iwarp_qv_info ) * - (v_qvlist_info->num_vectors -1 )); + msg_size =struct_size (v_qvlist_info, qv_info, + v_qvlist_info->num_vectors -1 ); adapter->client_pending |=BIT (VIRTCHNL_OP_CONFIG_IWARP_IRQ_MAP ); err = iavf_aq_send_msg_to_pf(&adapter->hw,
Signature · 1 line
2.20.1
Bowers
PATCH 6/6 iavf: iavf_client: use struct_size() helper
Quoted 24 lines
-----Original Message-----
From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On Behalf Of Jeff Kirsher
Sent: Friday, March 29, 2019 4:39 PM
To: intel-wired-lan at lists.osuosl.org
Subject: [Intel-wired-lan] [PATCH 6/6] iavf:iavf_client: usestruct_size()helperFrom: "Gustavo A. R. Silva" <[email protected]>
One of the more common cases of allocation size calculations is finding the size of a structure that has a zero-sized array at the end, along with memory for some number of elements for that array. For example:
struct foo { int stuff; struct boo entry[]; };size = sizeof(struct foo) + count * sizeof(struct boo);
Instead of leaving these open-coded and prone to type mistakes, we can now use the new
struct_size()helper:
Quoted 8 lines
size =
struct_size(instance, entry, count);This code was detected with the help of Coccinelle.
Signed-off-by "Gustavo A. R. Silva" <[email protected]>--- drivers/net/ethernet/intel/iavf/iavf_client.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
Brown
PATCH 1/6 igb: mark expected switch fall-through
In reply to Jeff KirsherQuoted 27 lines
From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On Behalf Of Jeff Kirsher
Sent: Friday, March 29, 2019 4:39 PM
To: intel-wired-lan at lists.osuosl.org
Subject: [Intel-wired-lan] [PATCH 1/6] igb: mark expected switch fall-throughFrom: "Gustavo A. R. Silva" <[email protected]>
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.
This patch fixes the following warning:
drivers/net/ethernet/intel/igb/igb_main.c: In function ?__igb_notify_dca?:drivers/net/ethernet/intel/igb/igb_main.c:6694:6: warning: this statement may fall through [-Wimplicit-fallthrough=]if (dca_add_requester(dev) == 0) { ^
drivers/net/ethernet/intel/igb/igb_main.c:6701:2: note: here
caseDCA_PROVIDER_REMOVE:
^~~~Warning level 3 was used: -Wimplicit-fallthrough=3
Notice that, in this particular case, the code comment is modified in accordance with what GCC is expecting to find.
Quoted 8 lines
This patch is part of the ongoing efforts to enable -Wimplicit-fallthrough.
Signed-off-by "Gustavo A. R. Silva" <[email protected]>--- drivers/net/ethernet/intel/igb/igb_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
PATCH 1/6 igb: mark expected switch fall-through
In reply to Jeff KirsherHi Jeff,
I just wanted to check if this series has already been applied somewhere.
Thanks
--
Gustavo
Quoted 42 lines · Jeff Kirsher
From: "Gustavo A. R. Silva" <[email protected]>
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.
This patch fixes the following warning:
drivers/net/ethernet/intel/igb/igb_main.c: In function ?__igb_notify_dca?:drivers/net/ethernet/intel/igb/igb_main.c:6694:6: warning: this statement may fall through [-Wimplicit-fallthrough=]if (dca_add_requester(dev) == 0) { ^
drivers/net/ethernet/intel/igb/igb_main.c:6701:2: note: here
caseDCA_PROVIDER_REMOVE:
^~~~Warning level 3 was used: -Wimplicit-fallthrough=3
Notice that, in this particular case, the code comment is modified in accordance with what GCC is expecting to find.
This patch is part of the ongoing efforts to enable -Wimplicit-fallthrough.
Signed-off-by "Gustavo A. R. Silva" <[email protected]>--- drivers/net/ethernet/intel/igb/igb_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/net/ethernet/intel/igb/igb_main.c +1
-1@@ -6701,7 +6701,7 @@ static int __igb_notify_dca(struct device *dev, void *data)igb_setup_dca (adapter);break ; } -/* Fall Through since DCA is disabled. */ +/* Fall Through - since DCA is disabled. */ case DCA_PROVIDER_REMOVE :if (adapter->flags &IGB_FLAG_DCA_ENABLED ) {/* without this a class_device is left
PATCH 1/6 igb: mark expected switch fall-through
Hi Jeff,
I wonder if there is any chance for this series to be queued up for 5.2-rc1.
Thanks
--
Gustavo
Quoted 56 lines · Gustavo A. R. Silva
Hi Jeff,
I just wanted to check if this series has already been applied somewhere.
Thanks
--
GustavoQuoted 34 lines · Jeff Kirsher
From: "Gustavo A. R. Silva" <[email protected]>
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.
This patch fixes the following warning:
drivers/net/ethernet/intel/igb/igb_main.c: In function ?__igb_notify_dca?:drivers/net/ethernet/intel/igb/igb_main.c:6694:6: warning: this statement may fall through [-Wimplicit-fallthrough=]if (dca_add_requester(dev) == 0) { ^
drivers/net/ethernet/intel/igb/igb_main.c:6701:2: note: here
caseDCA_PROVIDER_REMOVE:
^~~~Warning level 3 was used: -Wimplicit-fallthrough=3
Notice that, in this particular case, the code comment is modified in accordance with what GCC is expecting to find.
This patch is part of the ongoing efforts to enable -Wimplicit-fallthrough.
Signed-off-by "Gustavo A. R. Silva" <[email protected]>--- drivers/net/ethernet/intel/igb/igb_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/net/ethernet/intel/igb/igb_main.c +0
-0drivers/net/ethernet/intel/igb/igb_main.c static int __igb_notify_dca(struct device *dev, void *data) · line 6707
Quoted 8 lines
drivers/net/ethernet/intel/igb/igb_main.c +1
-1@@ -6701,7 +6701,7 @@ static int __igb_notify_dca(struct device *dev, void *data)igb_setup_dca (adapter);break ; } -/* Fall Through since DCA is disabled. */ +/* Fall Through - since DCA is disabled. */ case DCA_PROVIDER_REMOVE :if (adapter->flags &IGB_FLAG_DCA_ENABLED ) {/* without this a class_device is left _______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan at osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan
PATCH 1/6 igb: mark expected switch fall-through
Quoted 4 lines · Gustavo A. R. Silva
Hi Jeff,
I wonder if there is any chance for this series to be queued up for 5.2-rc1.
Possibly, but since the nature of your patch is to just modify a code comment because the tools used to check are not sophisticated enough to realize the code comment already clearly states "Fall through ...", I do not feel this is *really* necessary to get into 'net'. If I have other 'fixes' in my queue that need to get pushed, I may add this change to the series. I have not decided yet whether it warrants being in 'net' or could wait till 'net-next'.
Quoted 57 lines · Gustavo A. R. Silva
Quoted 55 lines
Hi Jeff,
I just wanted to check if this series has already been applied somewhere.
Thanks
--
GustavoQuoted 45 lines · Jeff Kirsher
From: "Gustavo A. R. Silva" <[email protected]>
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.This patch fixes the following warning:
drivers/net/ethernet/intel/igb/igb_main.c: In function ?__igb_notify_dca?:drivers/net/ethernet/intel/igb/igb_main.c:6694:6: warning: this statement may fall through [-Wimplicit-fallthrough=]if (dca_add_requester(dev) == 0) { ^
drivers/net/ethernet/intel/igb/igb_main.c:6701:2: note: here
caseDCA_PROVIDER_REMOVE:
^~~~Warning level 3 was used: -Wimplicit-fallthrough=3
Notice that, in this particular case, the code comment is modified
in accordance with what GCC is expecting to find.This patch is part of the ongoing efforts to enable -Wimplicit-fallthrough.
Signed-off-by "Gustavo A. R. Silva" <[email protected]>--- drivers/net/ethernet/intel/igb/igb_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/net/ethernet/intel/igb/igb_main.c +1
-1@@ -6701,7 +6701,7 @@ static int __igb_notify_dca(struct device *dev, void *data)igb_setup_dca (adapter);break ; } -/* Fall Through since DCA is disabled. */ +/* Fall Through - since DCA is disabled. */ case DCA_PROVIDER_REMOVE :
Quoted 8 lines
Quoted 8 lines
Quoted 3 lines
drivers/net/ethernet/intel/igb/igb_main.c +0
-0if (adapter->flags &IGB_FLAG_DCA_ENABLED ) {/* without this a
class_deviceis left_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan at osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.osuosl.org/pipermail/intel-wired-lan/attachments/20190516/2801b9e1/attachment-0001.asc>
PATCH 1/6 igb: mark expected switch fall-through
Jeff,
Quoted 6 lines · Jeff Kirsher
Quoted 4 lines · Gustavo A. R. Silva
Hi Jeff,
I wonder if there is any chance for this series to be queued up for 5.2-rc1.
Quoted 8 lines
Possibly, but since the nature of your patch is to just modify a code comment because the tools used to check are not sophisticated enough to realize the code comment already clearly states "Fall through ...", I do not feel this is *really* necessary to get into 'net'. If I have other 'fixes' in my queue that need to get pushed, I may add this change to the series. I have not decided yet whether it warrants being in 'net' or could wait till 'net-next'.
I get it, net-next is fine. However, I noticed this series is still in net-next/dev-queue.
There are only 6 of these fall-through warnings left in linux-next. Half of them are fixed by this series. We want to add -Wimplicit-fallthrough to the Makefile and start testing it in linux-next. And it'd be of great help if you can move this series to your net-next/master, so it can be merged into linux-next and be part of the test. :)
Thanks!
--
Gustavo