regarding const variables/structures

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

 



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:  

and her commits are - 

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
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]

  Powered by Linux