login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
December
»
7
Re: [PATCH 7/8] Add yaffs2 file system: verification code and other headers
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Pekka Enberg
Subject:
Re: [PATCH 7/8] Add yaffs2 file system: verification code and other headers
Date: Tuesday, December 7, 2010 - 8:06 am
On Tue, Nov 30, 2010 at 11:57 PM, Charles Manning <cdhmanning@gmail.com> wrote:
quoted text
> +#define YCHAR char > +#define YUCHAR unsigned char > +#define _Y(x) x > +#define yaffs_strcat(a, b) strcat(a, b) > +#define yaffs_strcpy(a, b) strcpy(a, b) > +#define yaffs_strncpy(a, b, c) strncpy(a, b, c) > +#define yaffs_strncmp(a, b, c) strncmp(a, b, c) > +#define yaffs_strnlen(s,m) strnlen(s,m) > +#define yaffs_sprintf sprintf > +#define yaffs_toupper(a) toupper(a) > + > +#define yaffs_sort(base, n, sz, cmp_fn) sort(base, n, sz, cmp_fn, NULL) > + > +#define Y_INLINE __inline__ > + > +#define YAFFS_LOSTNFOUND_NAME "lost+found" > +#define YAFFS_LOSTNFOUND_PREFIX "obj" > + > +#define YMALLOC(x) kmalloc(x, GFP_NOFS) > +#define YFREE(x) kfree(x) > +#define YMALLOC_ALT(x) vmalloc(x) > +#define YFREE_ALT(x) vfree(x) > +#define YMALLOC_DMA(x) YMALLOC(x) > + > +#define YYIELD() schedule() > +#define Y_DUMP_STACK() dump_stack() > + > +#define YAFFS_ROOT_MODE 0755 > +#define YAFFS_LOSTNFOUND_MODE 0700 > + > +#define Y_CURRENT_TIME CURRENT_TIME.tv_sec > +#define Y_TIME_CONVERT(x) (x).tv_sec > + > +#define yaffs_sum_cmp(x, y) ((x) == (y)) > +#define yaffs_strcmp(a, b) strcmp(a, b) > + > +#define TENDSTR "\n" > +#define TSTR(x) KERN_DEBUG x > +#define TCONT(x) x > +#define TOUT(p) printk p > + > +#define compile_time_assertion(assertion) \ > + ({ int x = __builtin_choose_expr(assertion, 0, (void)0); (void) x; }) > + > +#ifndef Y_DUMP_STACK > +#define Y_DUMP_STACK() do { } while (0) > +#endif > + > +#ifndef YBUG > +#define YBUG() do {\ > + T(YAFFS_TRACE_BUG,\ > + (TSTR("==>> yaffs bug: " __FILE__ " %d" TENDSTR),\ > + __LINE__));\ > + Y_DUMP_STACK();\ > +} while (0) > +#endif
Please drop these wrapper macros. --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 0/8] Add yaffs2 file system: Third patchset
, Charles Manning
, (Tue Nov 30, 2:57 pm)
[PATCH 1/8] Add yaffs2 file system: allocator, attribs, bi ...
, Charles Manning
, (Tue Nov 30, 2:57 pm)
[PATCH 2/8] Add yaffs2 file system: checkpoint and ecc code
, Charles Manning
, (Tue Nov 30, 2:57 pm)
[PATCH 3/8] Add yaffs2 file system: guts code
, Charles Manning
, (Tue Nov 30, 2:57 pm)
[PATCH 4/8] Add yaffs2 file system: tags handling code
, Charles Manning
, (Tue Nov 30, 2:57 pm)
[PATCH 5/8] Add yaffs2 file system: mtd and flash handling ...
, Charles Manning
, (Tue Nov 30, 2:57 pm)
[PATCH 6/8] Add yaffs2 file system: xattrib code
, Charles Manning
, (Tue Nov 30, 2:57 pm)
[PATCH 7/8] Add yaffs2 file system: verification code and ...
, Charles Manning
, (Tue Nov 30, 2:57 pm)
[PATCH 8/8] Add yaffs2 file system: VFS glue code, hook in ...
, Charles Manning
, (Tue Nov 30, 2:57 pm)
Re: [PATCH 3/8] Add yaffs2 file system: guts code
, Arnd Bergmann
, (Tue Nov 30, 3:23 pm)
Re: [PATCH 8/8] Add yaffs2 file system: VFS glue code, hoo ...
, Nick Piggin
, (Tue Nov 30, 10:30 pm)
Re: [PATCH 1/8] Add yaffs2 file system: allocator, attribs ...
, Marcin Slusarz
, (Thu Dec 2, 11:14 am)
Re: [PATCH 1/8] Add yaffs2 file system: allocator, attribs ...
, Charles Manning
, (Thu Dec 2, 12:20 pm)
Re: [PATCH 7/8] Add yaffs2 file system: verification code ...
, Ryan Mallon
, (Thu Dec 2, 1:00 pm)
Re: [PATCH 8/8] Add yaffs2 file system: VFS glue code, hoo ...
, Ryan Mallon
, (Thu Dec 2, 1:35 pm)
Re: [PATCH 1/8] Add yaffs2 file system: allocator, attribs ...
, kevin granade
, (Thu Dec 2, 1:48 pm)
Re: [PATCH 7/8] Add yaffs2 file system: verification code ...
, Charles Manning
, (Sun Dec 5, 2:20 pm)
Re: [PATCH 7/8] Add yaffs2 file system: verification code ...
, Ryan Mallon
, (Sun Dec 5, 2:45 pm)
Re: [PATCH 2/8] Add yaffs2 file system: checkpoint and ecc ...
, Jesper Juhl
, (Sun Dec 5, 2:55 pm)
Re: [PATCH 4/8] Add yaffs2 file system: tags handling code
, Jesper Juhl
, (Sun Dec 5, 3:12 pm)
Re: [PATCH 6/8] Add yaffs2 file system: xattrib code
, Jesper Juhl
, (Sun Dec 5, 3:20 pm)
Re: [PATCH 5/8] Add yaffs2 file system: mtd and flash hand ...
, Jesper Juhl
, (Sun Dec 5, 3:42 pm)
Re: [PATCH 3/8] Add yaffs2 file system: guts code
, Arnd Bergmann
, (Mon Dec 6, 5:55 am)
Re: [PATCH 3/8] Add yaffs2 file system: guts code
, Charles Manning
, (Mon Dec 6, 3:13 pm)
Re: [PATCH 3/8] Add yaffs2 file system: guts code
, Jesper Juhl
, (Mon Dec 6, 3:16 pm)
Re: [PATCH 3/8] Add yaffs2 file system: guts code
, Arnd Bergmann
, (Mon Dec 6, 4:03 pm)
Re: [PATCH 3/8] Add yaffs2 file system: guts code
, Steven Rostedt
, (Mon Dec 6, 5:47 pm)
Re: [PATCH 3/8] Add yaffs2 file system: guts code
, Charles Manning
, (Mon Dec 6, 9:12 pm)
Re: [PATCH 3/8] Add yaffs2 file system: guts code
, Steven Rostedt
, (Tue Dec 7, 7:49 am)
Re: [PATCH 7/8] Add yaffs2 file system: verification code ...
, Pekka Enberg
, (Tue Dec 7, 8:06 am)
Re: [PATCH 3/8] Add yaffs2 file system: guts code
, Charles Manning
, (Tue Dec 7, 1:43 pm)
Re: [PATCH 3/8] Add yaffs2 file system: guts code
, Steven Rostedt
, (Tue Dec 7, 3:49 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Trent Waddington
Re: Gaming Interface
Takashi Iwai
Re: [PATCH] usb: usbmixer error path fix
Jeremy Fitzhardinge
Re: [patch 1/6] Re-enable VDSO by default with PARAVIRT
Paul E. McKenney
Re: [PATCH, RFC] v4 scalable classic RCU implementation
Greg Kroah-Hartman
[PATCH 20/36] Driver core: Call device_pm_add() after bus_add_device() in device_a...
linux-driver-devel
:
xcbvaq
“手把手”教您运用股权期权这一独特的“创富机
Greg Kroah-Hartman
[PATCH 021/641] Staging: rtl8187se: remove support for older wireless extensions
Greg Kroah-Hartman
[PATCH 544/641] Staging: IIO: tsl2561 digital light sensor core support
Greg Kroah-Hartman
[PATCH 006/641] Staging: android: binder: cleanup some long lines
Greg KH
[PATCH 005/368] Staging: dream: fix memory leak in camera error path
git
:
Stephen R. van den Berg
Re: [RFC] origin link for cherry-pick and revert
Christian Stimming
git-gui: Fix broken revert confirmation.
Junio C Hamano
Re: git-svnimport
Mark Burton
Re: [PATCH] builtin-branch: highlight current remote branches with an asterisk
Johannes Schindelin
Re: [PATCH] Fix approxidate("never") to always return 0
linux-btrfs
:
Yan, Zheng
Re: 2.6.33-rc2+ bug in fs/btrfs/ordered-data.c:672
Lex "x-demon" Rivera
Btrfs fails randomly
Yan Zheng
[PATCH] Update backrefs during dropping snapshot
Peter Grandi
Re: [Jfs-discussion] benchmark results
Tobias Oetiker
Benchmarking btrfs on HW Raid ... BAD
dragonflybsd-commit
:
Sascha Wildner
Re: cvs commit: src/test/test README
Simon 'corecode' Schubert
Re: cvs commit: src/bin/hostname hostname.1 src/bin/domainname domainname....
Sepherosa Ziehau
cvs commit: src/sys/dev/netif/ral rt2661.c rt2661reg.h
Joerg Sonnenberger
cvs commit: src/lib/libc/stdlib getopt_long.c
Max Okumoto
cvs commit: src/usr.bin/make Makefile
Colocation donated by:
Syndicate