Patch "coccinelle: device_attr_show: Remove useless expression STR" has been added to the 6.8-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    coccinelle: device_attr_show: Remove useless expression STR

to the 6.8-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     coccinelle-device_attr_show-remove-useless-expressio.patch
and it can be found in the queue-6.8 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 221b17915dd8ef47e414951d3352c763f5b13e66
Author: Li Zhijian <lizhijian@xxxxxxxxxxx>
Date:   Sun Feb 18 16:00:54 2024 +0800

    coccinelle: device_attr_show: Remove useless expression STR
    
    [ Upstream commit 173f6cd384ae27bb57af8cc5201b4f4a137d6e55 ]
    
    Commit ff82e84e80fc ("coccinelle: device_attr_show: simplify patch case")
    simplifies the patch case, as a result, STR is no longer needed.
    
    This also helps to fix below coccicheck warning:
    > warning: rp: metavariable STR not used in the - or context code
    
    CC: Julia Lawall <Julia.Lawall@xxxxxxxx>
    CC: Nicolas Palix <nicolas.palix@xxxxxxx>
    CC: cocci@xxxxxxxx
    Fixes: ff82e84e80fc ("coccinelle: device_attr_show: simplify patch case")
    Signed-off-by: Li Zhijian <lizhijian@xxxxxxxxxxx>
    Signed-off-by: Julia Lawall <Julia.Lawall@xxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/scripts/coccinelle/api/device_attr_show.cocci b/scripts/coccinelle/api/device_attr_show.cocci
index 550d1d2fc02a9..dfcf9304195f3 100644
--- a/scripts/coccinelle/api/device_attr_show.cocci
+++ b/scripts/coccinelle/api/device_attr_show.cocci
@@ -28,7 +28,7 @@ ssize_t show(struct device *dev, struct device_attribute *attr, char *buf)
 
 @rp depends on patch@
 identifier show, dev, attr, buf;
-expression BUF, SZ, FORMAT, STR;
+expression BUF, SZ, FORMAT;
 @@
 
 ssize_t show(struct device *dev, struct device_attribute *attr, char *buf)




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux