All of lore.kernel.org
 help / color / mirror / Atom feed
* [Cocci] Comments removed on (adjacent) lines not touched ... ?
@ 2015-09-09 10:56 Kieran Bingham
  2015-09-09 12:14 ` SF Markus Elfring
  2015-09-09 14:01 ` Julia Lawall
  0 siblings, 2 replies; 11+ messages in thread
From: Kieran Bingham @ 2015-09-09 10:56 UTC (permalink / raw)
  To: cocci

Reviewing the changes made by my s-patch, I've come across the following hunk :

============================================================
--- a/drivers/hwmon/jc42.c
+++ b/drivers/hwmon/jc42.c
...
@@ -529,13 +529,7 @@ static const struct dev_pm_ops jc42_dev_pm_ops = {
 #define JC42_DEV_PM_OPS (&jc42_dev_pm_ops)
 #else
 #define JC42_DEV_PM_OPS NULL
-#endif /* CONFIG_PM */
-
-static const struct i2c_device_id jc42_id[] = {
-       { "jc42", 0 },
-       { }
-};
-MODULE_DEVICE_TABLE(i2c, jc42_id);
+#endif

 static struct i2c_driver jc42_driver = {
        .class          = I2C_CLASS_SPD,
============================================================

Is this removal of the /* CONFIG_PM */ expected behaviour?

I guess under the hood, Coccinelle is stripping comments from code to
make parsing possible/easier?

--
Regards

Kieran

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-09-10 16:24 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-09 10:56 [Cocci] Comments removed on (adjacent) lines not touched ... ? Kieran Bingham
2015-09-09 12:14 ` SF Markus Elfring
2015-09-09 13:33   ` Kieran Bingham
2015-09-09 14:01 ` Julia Lawall
2015-09-09 14:07   ` Kieran Bingham
2015-09-09 14:18     ` Julia Lawall
2015-09-09 14:28       ` Kieran Bingham
2015-09-09 14:48         ` SF Markus Elfring
2015-09-09 14:55           ` Kieran Bingham
2015-09-10 16:24             ` Julia Lawall
2015-09-09 14:38     ` Julia Lawall

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.