mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
Revert "GCC4.6: Convert various empty macros to inline functions"
This reverts commit 60ce53cf9f
.
The commit causes build breakage for a number of boards. This results
from the fact that now the arguments of debug() actually get
referenced (even if there is hope that the compiler will optimize
away the debug() call). The obvious fix to that probem (change the
code to always declare the referenced variables and data structures)
increases the code size, and was this rejected. So it was decided to
revert this commit until a better solution is found.
This commit is contained in:
parent
7b8ffea2ac
commit
f092f15d39
4 changed files with 6 additions and 9 deletions
|
@ -55,10 +55,7 @@
|
|||
#else
|
||||
#define CONFIG_SYS_MAX_I2C_BUS 1
|
||||
#define I2C_GET_BUS() 0
|
||||
static inline int I2C_SET_BUS(unsigned int bus)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#define I2C_SET_BUS(a)
|
||||
#endif
|
||||
|
||||
/* define the I2C bus number for RTC and DTT if not already done */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue