kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* regarding const variables/structures
@ 2018-09-12  6:20 inventsekar
  2018-09-12  6:51 ` Greg KH
  2018-09-12  7:08 ` Nicholas Mc Guire
  0 siblings, 2 replies; 15+ messages in thread
From: inventsekar @ 2018-09-12  6:20 UTC (permalink / raw)
  To: kernelnewbies

Hi All...
One curious question..

Linux Foundation tweeted this -
Meet Bhumika Goyal, age 22, from India. She has had more 340 patches
accepted into the Linux kernel, which helped her land one of our two Linux
Kernel Guru LiFT scholarships:
https://twitter.com/linuxfoundation/status/940340927897489408?lang=en

and her commits are -
https://github.com/torvalds/linux/commits?author=bhumikagoyal

One of my friend told me that, most/many of patches are just converting
variables to "*constant*"

For example - platform/chrome: chromeos_laptop: make chromeos_laptop const
-

Declare chromeos_laptop structures as *const *as they are only used during
a copy operation. As their value is never modified during runtime, they
can be made const.


the question is that, how these many const variable issues are left/missed
by the previous developers?!?! per my little knowledge, this task looks
like a simple one.. many other Kernel Developers should have thought and
made these changes long before, but i am not able to understand why this
wasnt done until recently?!?!?


-- 
Best Regards,
Sekar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20180912/71c10aea/attachment.html>

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

end of thread, other threads:[~2018-09-18  5:46 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-12  6:20 regarding const variables/structures inventsekar
2018-09-12  6:51 ` Greg KH
2018-09-12  7:08 ` Nicholas Mc Guire
2018-09-12 17:10   ` inventsekar
2018-09-12 17:53     ` valdis.kletnieks at vt.edu
2018-09-12 18:23       ` inventsekar
2018-09-13  9:50         ` Tobin C. Harding
2018-09-14 19:49           ` inventsekar
2018-09-17  7:29             ` Shakthi Kannan
2018-09-18  5:46               ` inventsekar
2018-09-17 15:00             ` valdis.kletnieks at vt.edu
2018-09-13  3:42   ` inventsekar
2018-09-13  6:07     ` Nicholas Mc Guire
2018-09-14 19:52       ` inventsekar
2018-09-14 22:09         ` Kenneth Adam Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).