|
|
|
Re: [microblaze-linux] [PATCH 2/5] microblaze: s/#if[!] CONFIG/#if[n]def CONFIG/ | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
|
Hi Geert, NACK - please see comments below On Mon, Feb 20, 2012 at 1:11 AM, Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> wrote: > Signed-off-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> > Cc: Michal Simek <monstr@xxxxxxxxx> > Cc: microblaze-uclinux@xxxxxxxxxxxxxx > --- > arch/microblaze/include/asm/exceptions.h | 2 +- > arch/microblaze/include/asm/irqflags.h | 2 +- > arch/microblaze/kernel/entry-nommu.S | 2 +- > arch/microblaze/kernel/entry.S | 4 ++-- > arch/microblaze/kernel/setup.c | 4 ++-- > 5 files changed, 7 insertions(+), 7 deletions(-) > > diff --git a/arch/microblaze/include/asm/exceptions.h b/arch/microblaze/include/asm/exceptions.h > index e6a8dde..48c197b 100644 > --- a/arch/microblaze/include/asm/exceptions.h > +++ b/arch/microblaze/include/asm/exceptions.h > @@ -25,7 +25,7 @@ > /* Define MSR enable bit for HW exceptions */ > #define HWEX_MSR_BIT (1 << 8) > > -#if CONFIG_XILINX_MICROBLAZE0_USE_MSR_INSTR > +#ifdef CONFIG_XILINX_MICROBLAZE0_USE_MSR_INSTR We actually care about the value of this one - it is always defined, but is either 0 or 1 depending upon the presence or absence of this feature in the target CPU. These CPU feature-related configs are defined in arch/microblaze/platform/generic/Kconfig.auto http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=blob;f=arch/microblaze/platform/generic/Kconfig.auto;h=25a6f019e94d5d9a1c884dfef9e906435685f980;hb=HEAD not as bools, but as integers. Kconfig.auto is actually a placeholder for a design file which is emitted from the MicroBlaze CPU / SoC design tool flow and copied into place by the user. In my view these should remain integers rather than booleans for a couple of reasons: * breakage for all current users * MicroBlaze is an evolving architecture, there are other cases of seemingly boolean HW parametesr growing to become integers, such as the USE_FPU option. Once upon a time it was yes/no, now there's 2 different flavours of FPU as well as 'none'. MSR is just as likely to change in future. > -#if CONFIG_MANUAL_RESET_VECTOR > +#ifdef CONFIG_MANUAL_RESET_VECTOR This guy is also always defined (Kconfig 'hex' type), we just need to do something different for a non-zero value. Regards, John -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[Other Archives] [Linux Kernel Newbies] [Linux Driver Development] [Fedora Kernel] [Linux Kernel Testers] [Linux SH] [Linux Omap] [Linux Kbuild] [Linux Tape] [Linux Input] [Linux Kernel Janitors] [Linux Kernel Packagers] [Linux Doc] [Linux Man Pages] [Linux API] [Linux Memory Management] [Linux Modules] [Linux Standards] [Kernel Announce] [Netdev] [Git] [Linux PCI] Linux CAN Development [Linux I2C] [Linux RDMA] [Linux NUMA] [Netfilter] [Netfilter Devel] [SELinux] [Bugtraq] [FIO] [Linux Perf Users] [Linux Serial] [Linux PPP] [Linux ISDN] [Linux Next] [Kernel Stable Commits] [Linux Tip Commits] [Kernel MM Commits] [Linux Security Module] [Filesystem Development] [Ext3 Filesystem] [Linux bcache] [Ext4 Filesystem] [Linux BTRFS] [Linux CEPH Filesystem] [Linux XFS] [XFS] [Linux NFS] [Linux CIFS] [Ecryptfs] [Linux NILFS] [Linux Cachefs] [Reiser FS] [Initramfs] [Linux FB Devel] [Linux OpenGL] [DRI Devel] [Fastboot] [Linux RT Users] [Linux RT Stable] [eCos] [Corosync] [Linux Clusters] [LVS Devel] [Hot Plug] [Linux Virtualization] [KVM] [KVM PPC] [KVM ia64] [Linux Containers] [Linux Hexagon] [Linux Cgroups] [Util Linux] [Wireless] [Linux Bluetooth] [Bluez Devel] [Ethernet Bridging] [Embedded Linux] [Barebox] [Linux MMC] [Linux IIO] [Sparse] [Smatch] [Linux Arch] [x86 Platform Driver] [Linux ACPI] [Linux IBM ACPI] [LM Sensors] [CPU Freq] [Linux Power Management] [Linmodems] [Linux DCCP] [Linux SCTP] [ALSA Devel] [Linux USB] [Linux PA RISC] [Linux Samsung SOC] [MIPS Linux] [IBM S/390 Linux] [ARM Linux] [ARM Kernel] [ARM MSM] [Tegra Devel] [Sparc Linux] [Linux Security] [Linux Sound] [Linux Media] [Video 4 Linux] [Linux IRDA Users] [Linux for the blind] [Linux RAID] [Linux ATA RAID] [Device Mapper] [Linux SCSI] [SCSI Target Devel] [Linux SCSI Target Infrastructure] [Linux IDE] [Linux SMP] [Linux AXP] [Linux Alpha] [Linux M68K] [Linux ia64] [Linux 8086] [Linux x86_64] [Linux Config] [Linux Apps] [Linux MSDOS] [Linux X.25] [Linux Crypto] [DM Crypt] [Linux Trace Users] [Linux Btrace] [Linux Watchdog] [Utrace Devel] [Linux C Programming] [Linux Assembly] [Dash] [DWARVES] [Hail Devel] [Linux Kernel Debugger] [Linux gcc] [Gcc Help] [X.Org] [Wine]
![]() |
![]() |
[Older Kernel Discussion] [Yosemite National Park Forum] [Large Format Photos] [Gimp] [Yosemite Photos] [Stuff]