Most recent kernel where this bug did not occur: Distribution: Hardware Environment: Software Environment: Problem Description: Steps to reproduce: in "Linux/include/asm-arm/tlbflush.h" line:186 188 the "cpu_tlb" should in "#ifdef MULTI_TLB ... #endif" in this file and those include it, unuse the "cpu_tlb". result : if use -O0 will occurs undefined reference to `cpu_tlb' , but use -Os or -O2 will not occurs.
The Linux kernel relies upon having an optimising compiler. -O0 results in no optimisation. Always use at least -O1.
In my experience, many problems arise when trying to use -O0. Closed.