lkml.org 
[lkml]   [2006]   [Aug]   [12]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
FromArnd Bergmann <>
SubjectRe: [PATCH 3/6] unlink: monitor i_nlink
DateSat, 12 Aug 2006 16:15:47 +0200
On Wednesday 09 August 2006 20:27, Andrew Morton wrote:
> struct inode {
>         ...
>         union {
>                 unsigned int i_nlink;
>                 unsigned int i_nlink_use_the_accessors_please;
>         }
>         ...
> };
> 
> then, when everything in-tree is migrated, remove `i_nlink'.

You can also mark a union member deprecated:

struct inode {
        ...
        union {
                unsigned int __deprecated i_nlink;
                unsigned int i_nlink_use_the_accessors_please;
        }
        ...
};
So gcc will warn about any newly introduced users.

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

\
 
 \ /
  Last update: 2006-08-12 16:19    [from the cache]
©2003-2008