All of lore.kernel.org
 help / color / mirror / Atom feed
* compiling your changes
@ 2016-02-10  6:40 Julia Lawall
  0 siblings, 0 replies; only message in thread
From: Julia Lawall @ 2016-02-10  6:40 UTC (permalink / raw)
  To: outreachy-kernel

Hello all,

There were a couple of remoarks about code that doesn't compile.  To help 
avoid this, always be sure that you have a .o file for every .c file that 
you have changed, and that the .o file is more recent than the .c file.  
Sometimes you can think that you have compiled the kernel, but you have 
not actually compiled the code that you modified, due to configuration 
issues.  If you have made changes that should only have a very local 
effect, such as adding whitespace, it should be safe to just compile the 
file you are working on, with make path/file.o.  If you are doing 
something with a more global effect, such as adding or removing const, 
adding or removing static, etc, then it is probably safe to just compile 
your specific driver, with make path/driver/.  In the latter case, you 
make need to check the configuration options to be sure that your specific 
file will be compiled.

Get in the habit of compiling for every change you make, no matter how 
simple it seems.  It's always possible to accidentally type a strange 
character and end up with something different than what you intended.

julia


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-02-10  6:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-10  6:40 compiling your changes 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.