Re: [PATCH] Detect and warn on atomic_inc/atomic_dec wrappingaround

From: Andrew Morton
Date: Fri May 01 2009 - 01:09:39 EST


On Fri, 1 May 2009 10:27:46 +0530 Nikanth Karthikesan <knikanth@xxxxxxxxxx> wrote:

> I tried with linux/bug.h. But it creates a cyclic dependency. linux/bug.h
> pulls in linux/module.h => linux/spinlock.h => asm/spinlock.h (which uses
> atomic_inc) => asm/atomic.h,.

And why on earth does bug.h need module.h?

int module_bug_finalize(const Elf_Ehdr *, const Elf_Shdr *,
struct module *);

The ever-smelly Elf_Ehdr and Elf_Shdr.

Probably the module_bug_finalize/module_bug_cleanup declarations and
definitions should be in module.h.

--
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/