From: kernel test robot <lkp@intel.com>
To: Jaegeuk Kim <jaegeuk@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH 2/2] f2fs: add a sysfs entry to request donate file-backed pages
Date: Wed, 15 Jan 2025 03:43:01 +0800 [thread overview]
Message-ID: <202501150319.8pSlgSSX-lkp@intel.com> (raw)
In-Reply-To: <20250113183933.1268282-2-jaegeuk@kernel.org>
Hi Jaegeuk,
kernel test robot noticed the following build errors:
[auto build test ERROR on jaegeuk-f2fs/dev]
[also build test ERROR on linus/master v6.13-rc7 next-20250114]
[cannot apply to jaegeuk-f2fs/dev-test]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Jaegeuk-Kim/f2fs-add-a-sysfs-entry-to-request-donate-file-backed-pages/20250114-025051
base: https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git dev
patch link: https://lore.kernel.org/r/20250113183933.1268282-2-jaegeuk%40kernel.org
patch subject: [PATCH 2/2] f2fs: add a sysfs entry to request donate file-backed pages
config: i386-buildonly-randconfig-004-20250114 (https://download.01.org/0day-ci/archive/20250115/202501150319.8pSlgSSX-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250115/202501150319.8pSlgSSX-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202501150319.8pSlgSSX-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from include/linux/kernel.h:28,
from include/linux/cpumask.h:11,
from include/linux/smp.h:13,
from include/linux/lockdep.h:14,
from include/linux/spinlock.h:63,
from include/linux/wait.h:9,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:6,
from include/linux/proc_fs.h:10,
from fs/f2fs/sysfs.c:10:
fs/f2fs/sysfs.c: In function '__sbi_store':
>> fs/f2fs/sysfs.c:815:48: error: 'struct f2fs_sb_info' has no member named 'ndirty_inode'
815 | sbi->donate_caches = min(t, sbi->ndirty_inode[DONATE_INODE]);
| ^~
include/linux/minmax.h:99:49: note: in definition of macro '__careful_cmp_once'
99 | __auto_type ux = (x); __auto_type uy = (y); \
| ^
include/linux/minmax.h:129:25: note: in expansion of macro '__careful_cmp'
129 | #define min(x, y) __careful_cmp(min, x, y)
| ^~~~~~~~~~~~~
fs/f2fs/sysfs.c:815:38: note: in expansion of macro 'min'
815 | sbi->donate_caches = min(t, sbi->ndirty_inode[DONATE_INODE]);
| ^~~
In file included from fs/f2fs/sysfs.c:9:
>> include/linux/compiler.h:189:45: error: '__UNIQUE_ID_y_948' undeclared (first use in this function); did you mean '__UNIQUE_ID_x_947'?
189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
| ^~~~~~~~~~~~
include/linux/compiler.h:57:52: note: in definition of macro '__trace_if_var'
57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
include/linux/compiler_types.h:522:17: note: in expansion of macro 'if'
522 | if (!(condition)) \
| ^~
include/linux/compiler_types.h:530:9: note: in expansion of macro '__compiletime_assert'
530 | __compiletime_assert(condition, msg, prefix, suffix)
| ^~~~~~~~~~~~~~~~~~~~
include/linux/compiler_types.h:542:9: note: in expansion of macro '_compiletime_assert'
542 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/minmax.h:100:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
100 | BUILD_BUG_ON_MSG(!__types_ok(x,y,ux,uy), \
| ^~~~~~~~~~~~~~~~
include/linux/minmax.h:56:27: note: in expansion of macro 'is_signed_type'
56 | #define __sign_use(x,ux) (is_signed_type(typeof(ux))? \
| ^~~~~~~~~~~~~~
include/linux/minmax.h:82:29: note: in expansion of macro '__sign_use'
82 | (__sign_use(x,ux) & __sign_use(y,uy))
| ^~~~~~~~~~
include/linux/minmax.h:100:27: note: in expansion of macro '__types_ok'
100 | BUILD_BUG_ON_MSG(!__types_ok(x,y,ux,uy), \
| ^~~~~~~~~~
include/linux/minmax.h:105:9: note: in expansion of macro '__careful_cmp_once'
105 | __careful_cmp_once(op, x, y, __UNIQUE_ID(x_), __UNIQUE_ID(y_))
| ^~~~~~~~~~~~~~~~~~
include/linux/compiler_types.h:84:22: note: in expansion of macro '___PASTE'
84 | #define __PASTE(a,b) ___PASTE(a,b)
| ^~~~~~~~
include/linux/compiler.h:189:29: note: in expansion of macro '__PASTE'
189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
| ^~~~~~~
include/linux/compiler_types.h:84:22: note: in expansion of macro '___PASTE'
84 | #define __PASTE(a,b) ___PASTE(a,b)
| ^~~~~~~~
include/linux/compiler.h:189:37: note: in expansion of macro '__PASTE'
189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
| ^~~~~~~
include/linux/minmax.h:105:55: note: in expansion of macro '__UNIQUE_ID'
105 | __careful_cmp_once(op, x, y, __UNIQUE_ID(x_), __UNIQUE_ID(y_))
| ^~~~~~~~~~~
include/linux/minmax.h:129:25: note: in expansion of macro '__careful_cmp'
129 | #define min(x, y) __careful_cmp(min, x, y)
| ^~~~~~~~~~~~~
fs/f2fs/sysfs.c:815:38: note: in expansion of macro 'min'
815 | sbi->donate_caches = min(t, sbi->ndirty_inode[DONATE_INODE]);
| ^~~
include/linux/compiler.h:189:45: note: each undeclared identifier is reported only once for each function it appears in
189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
| ^~~~~~~~~~~~
include/linux/compiler.h:57:52: note: in definition of macro '__trace_if_var'
57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
include/linux/compiler_types.h:522:17: note: in expansion of macro 'if'
522 | if (!(condition)) \
| ^~
include/linux/compiler_types.h:530:9: note: in expansion of macro '__compiletime_assert'
530 | __compiletime_assert(condition, msg, prefix, suffix)
| ^~~~~~~~~~~~~~~~~~~~
include/linux/compiler_types.h:542:9: note: in expansion of macro '_compiletime_assert'
542 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/minmax.h:100:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
100 | BUILD_BUG_ON_MSG(!__types_ok(x,y,ux,uy), \
| ^~~~~~~~~~~~~~~~
include/linux/minmax.h:56:27: note: in expansion of macro 'is_signed_type'
56 | #define __sign_use(x,ux) (is_signed_type(typeof(ux))? \
| ^~~~~~~~~~~~~~
include/linux/minmax.h:82:29: note: in expansion of macro '__sign_use'
82 | (__sign_use(x,ux) & __sign_use(y,uy))
| ^~~~~~~~~~
include/linux/minmax.h:100:27: note: in expansion of macro '__types_ok'
100 | BUILD_BUG_ON_MSG(!__types_ok(x,y,ux,uy), \
| ^~~~~~~~~~
include/linux/minmax.h:105:9: note: in expansion of macro '__careful_cmp_once'
105 | __careful_cmp_once(op, x, y, __UNIQUE_ID(x_), __UNIQUE_ID(y_))
| ^~~~~~~~~~~~~~~~~~
include/linux/compiler_types.h:84:22: note: in expansion of macro '___PASTE'
84 | #define __PASTE(a,b) ___PASTE(a,b)
| ^~~~~~~~
include/linux/compiler.h:189:29: note: in expansion of macro '__PASTE'
189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
| ^~~~~~~
include/linux/compiler_types.h:84:22: note: in expansion of macro '___PASTE'
84 | #define __PASTE(a,b) ___PASTE(a,b)
| ^~~~~~~~
include/linux/compiler.h:189:37: note: in expansion of macro '__PASTE'
189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
| ^~~~~~~
include/linux/minmax.h:105:55: note: in expansion of macro '__UNIQUE_ID'
105 | __careful_cmp_once(op, x, y, __UNIQUE_ID(x_), __UNIQUE_ID(y_))
| ^~~~~~~~~~~
include/linux/minmax.h:129:25: note: in expansion of macro '__careful_cmp'
129 | #define min(x, y) __careful_cmp(min, x, y)
| ^~~~~~~~~~~~~
fs/f2fs/sysfs.c:815:38: note: in expansion of macro 'min'
815 | sbi->donate_caches = min(t, sbi->ndirty_inode[DONATE_INODE]);
| ^~~
>> include/linux/minmax.h:77:36: error: first argument to '__builtin_choose_expr' not a constant
77 | #define __signed_type(ux) typeof(__builtin_choose_expr(sizeof(ux)>4,1LL,1L))
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:57:52: note: in definition of macro '__trace_if_var'
57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
include/linux/compiler_types.h:522:17: note: in expansion of macro 'if'
522 | if (!(condition)) \
| ^~
include/linux/compiler_types.h:530:9: note: in expansion of macro '__compiletime_assert'
530 | __compiletime_assert(condition, msg, prefix, suffix)
| ^~~~~~~~~~~~~~~~~~~~
include/linux/compiler_types.h:542:9: note: in expansion of macro '_compiletime_assert'
542 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/minmax.h:100:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
100 | BUILD_BUG_ON_MSG(!__types_ok(x,y,ux,uy), \
| ^~~~~~~~~~~~~~~~
include/linux/minmax.h:79:27: note: in expansion of macro 'statically_true'
79 | #define __is_nonneg(x,ux) statically_true((__signed_type(ux))(x)>=0)
| ^~~~~~~~~~~~~~~
include/linux/minmax.h:79:44: note: in expansion of macro '__signed_type'
79 | #define __is_nonneg(x,ux) statically_true((__signed_type(ux))(x)>=0)
| ^~~~~~~~~~~~~
include/linux/minmax.h:54:36: note: in expansion of macro '__is_nonneg'
54 | #define __signed_type_use(x,ux) (2+__is_nonneg(x,ux))
| ^~~~~~~~~~~
include/linux/minmax.h:57:9: note: in expansion of macro '__signed_type_use'
57 | __signed_type_use(x,ux):__unsigned_type_use(x,ux))
| ^~~~~~~~~~~~~~~~~
include/linux/minmax.h:82:29: note: in expansion of macro '__sign_use'
82 | (__sign_use(x,ux) & __sign_use(y,uy))
| ^~~~~~~~~~
include/linux/minmax.h:100:27: note: in expansion of macro '__types_ok'
100 | BUILD_BUG_ON_MSG(!__types_ok(x,y,ux,uy), \
| ^~~~~~~~~~
include/linux/minmax.h:105:9: note: in expansion of macro '__careful_cmp_once'
105 | __careful_cmp_once(op, x, y, __UNIQUE_ID(x_), __UNIQUE_ID(y_))
| ^~~~~~~~~~~~~~~~~~
include/linux/minmax.h:129:25: note: in expansion of macro '__careful_cmp'
129 | #define min(x, y) __careful_cmp(min, x, y)
| ^~~~~~~~~~~~~
fs/f2fs/sysfs.c:815:38: note: in expansion of macro 'min'
815 | sbi->donate_caches = min(t, sbi->ndirty_inode[DONATE_INODE]);
| ^~~
>> fs/f2fs/sysfs.c:815:48: error: 'struct f2fs_sb_info' has no member named 'ndirty_inode'
815 | sbi->donate_caches = min(t, sbi->ndirty_inode[DONATE_INODE]);
| ^~
include/linux/compiler.h:57:52: note: in definition of macro '__trace_if_var'
57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
include/linux/compiler_types.h:522:17: note: in expansion of macro 'if'
522 | if (!(condition)) \
| ^~
include/linux/compiler_types.h:530:9: note: in expansion of macro '__compiletime_assert'
530 | __compiletime_assert(condition, msg, prefix, suffix)
| ^~~~~~~~~~~~~~~~~~~~
include/linux/compiler_types.h:542:9: note: in expansion of macro '_compiletime_assert'
542 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/minmax.h:100:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
100 | BUILD_BUG_ON_MSG(!__types_ok(x,y,ux,uy), \
| ^~~~~~~~~~~~~~~~
include/linux/minmax.h:79:27: note: in expansion of macro 'statically_true'
79 | #define __is_nonneg(x,ux) statically_true((__signed_type(ux))(x)>=0)
| ^~~~~~~~~~~~~~~
include/linux/minmax.h:54:36: note: in expansion of macro '__is_nonneg'
54 | #define __signed_type_use(x,ux) (2+__is_nonneg(x,ux))
| ^~~~~~~~~~~
include/linux/minmax.h:57:9: note: in expansion of macro '__signed_type_use'
57 | __signed_type_use(x,ux):__unsigned_type_use(x,ux))
| ^~~~~~~~~~~~~~~~~
include/linux/minmax.h:82:29: note: in expansion of macro '__sign_use'
82 | (__sign_use(x,ux) & __sign_use(y,uy))
| ^~~~~~~~~~
include/linux/minmax.h:100:27: note: in expansion of macro '__types_ok'
100 | BUILD_BUG_ON_MSG(!__types_ok(x,y,ux,uy), \
| ^~~~~~~~~~
include/linux/minmax.h:105:9: note: in expansion of macro '__careful_cmp_once'
105 | __careful_cmp_once(op, x, y, __UNIQUE_ID(x_), __UNIQUE_ID(y_))
| ^~~~~~~~~~~~~~~~~~
include/linux/minmax.h:129:25: note: in expansion of macro '__careful_cmp'
129 | #define min(x, y) __careful_cmp(min, x, y)
| ^~~~~~~~~~~~~
fs/f2fs/sysfs.c:815:38: note: in expansion of macro 'min'
815 | sbi->donate_caches = min(t, sbi->ndirty_inode[DONATE_INODE]);
| ^~~
>> include/linux/minmax.h:77:36: error: first argument to '__builtin_choose_expr' not a constant
77 | #define __signed_type(ux) typeof(__builtin_choose_expr(sizeof(ux)>4,1LL,1L))
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:57:52: note: in definition of macro '__trace_if_var'
57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
include/linux/compiler_types.h:522:17: note: in expansion of macro 'if'
522 | if (!(condition)) \
| ^~
include/linux/compiler_types.h:530:9: note: in expansion of macro '__compiletime_assert'
530 | __compiletime_assert(condition, msg, prefix, suffix)
| ^~~~~~~~~~~~~~~~~~~~
include/linux/compiler_types.h:542:9: note: in expansion of macro '_compiletime_assert'
542 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/minmax.h:100:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
100 | BUILD_BUG_ON_MSG(!__types_ok(x,y,ux,uy), \
| ^~~~~~~~~~~~~~~~
include/linux/minmax.h:79:27: note: in expansion of macro 'statically_true'
79 | #define __is_nonneg(x,ux) statically_true((__signed_type(ux))(x)>=0)
| ^~~~~~~~~~~~~~~
include/linux/minmax.h:79:44: note: in expansion of macro '__signed_type'
79 | #define __is_nonneg(x,ux) statically_true((__signed_type(ux))(x)>=0)
| ^~~~~~~~~~~~~
include/linux/minmax.h:54:36: note: in expansion of macro '__is_nonneg'
54 | #define __signed_type_use(x,ux) (2+__is_nonneg(x,ux))
| ^~~~~~~~~~~
include/linux/minmax.h:57:9: note: in expansion of macro '__signed_type_use'
57 | __signed_type_use(x,ux):__unsigned_type_use(x,ux))
| ^~~~~~~~~~~~~~~~~
include/linux/minmax.h:82:29: note: in expansion of macro '__sign_use'
82 | (__sign_use(x,ux) & __sign_use(y,uy))
| ^~~~~~~~~~
include/linux/minmax.h:100:27: note: in expansion of macro '__types_ok'
100 | BUILD_BUG_ON_MSG(!__types_ok(x,y,ux,uy), \
| ^~~~~~~~~~
include/linux/minmax.h:105:9: note: in expansion of macro '__careful_cmp_once'
105 | __careful_cmp_once(op, x, y, __UNIQUE_ID(x_), __UNIQUE_ID(y_))
| ^~~~~~~~~~~~~~~~~~
include/linux/minmax.h:129:25: note: in expansion of macro '__careful_cmp'
129 | #define min(x, y) __careful_cmp(min, x, y)
| ^~~~~~~~~~~~~
fs/f2fs/sysfs.c:815:38: note: in expansion of macro 'min'
815 | sbi->donate_caches = min(t, sbi->ndirty_inode[DONATE_INODE]);
| ^~~
>> fs/f2fs/sysfs.c:815:48: error: 'struct f2fs_sb_info' has no member named 'ndirty_inode'
815 | sbi->donate_caches = min(t, sbi->ndirty_inode[DONATE_INODE]);
| ^~
include/linux/compiler.h:57:52: note: in definition of macro '__trace_if_var'
57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
include/linux/compiler_types.h:522:17: note: in expansion of macro 'if'
522 | if (!(condition)) \
| ^~
include/linux/compiler_types.h:530:9: note: in expansion of macro '__compiletime_assert'
530 | __compiletime_assert(condition, msg, prefix, suffix)
| ^~~~~~~~~~~~~~~~~~~~
include/linux/compiler_types.h:542:9: note: in expansion of macro '_compiletime_assert'
542 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/minmax.h:100:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
100 | BUILD_BUG_ON_MSG(!__types_ok(x,y,ux,uy), \
| ^~~~~~~~~~~~~~~~
include/linux/minmax.h:79:27: note: in expansion of macro 'statically_true'
79 | #define __is_nonneg(x,ux) statically_true((__signed_type(ux))(x)>=0)
| ^~~~~~~~~~~~~~~
include/linux/minmax.h:54:36: note: in expansion of macro '__is_nonneg'
54 | #define __signed_type_use(x,ux) (2+__is_nonneg(x,ux))
| ^~~~~~~~~~~
include/linux/minmax.h:57:9: note: in expansion of macro '__signed_type_use'
57 | __signed_type_use(x,ux):__unsigned_type_use(x,ux))
| ^~~~~~~~~~~~~~~~~
include/linux/minmax.h:82:29: note: in expansion of macro '__sign_use'
82 | (__sign_use(x,ux) & __sign_use(y,uy))
| ^~~~~~~~~~
include/linux/minmax.h:100:27: note: in expansion of macro '__types_ok'
100 | BUILD_BUG_ON_MSG(!__types_ok(x,y,ux,uy), \
| ^~~~~~~~~~
include/linux/minmax.h:105:9: note: in expansion of macro '__careful_cmp_once'
105 | __careful_cmp_once(op, x, y, __UNIQUE_ID(x_), __UNIQUE_ID(y_))
| ^~~~~~~~~~~~~~~~~~
include/linux/minmax.h:129:25: note: in expansion of macro '__careful_cmp'
129 | #define min(x, y) __careful_cmp(min, x, y)
| ^~~~~~~~~~~~~
fs/f2fs/sysfs.c:815:38: note: in expansion of macro 'min'
815 | sbi->donate_caches = min(t, sbi->ndirty_inode[DONATE_INODE]);
| ^~~
>> include/linux/minmax.h:77:36: error: first argument to '__builtin_choose_expr' not a constant
77 | #define __signed_type(ux) typeof(__builtin_choose_expr(sizeof(ux)>4,1LL,1L))
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:57:61: note: in definition of macro '__trace_if_var'
57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
include/linux/compiler_types.h:522:17: note: in expansion of macro 'if'
522 | if (!(condition)) \
| ^~
include/linux/compiler_types.h:530:9: note: in expansion of macro '__compiletime_assert'
530 | __compiletime_assert(condition, msg, prefix, suffix)
| ^~~~~~~~~~~~~~~~~~~~
include/linux/compiler_types.h:542:9: note: in expansion of macro '_compiletime_assert'
542 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/minmax.h:100:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
100 | BUILD_BUG_ON_MSG(!__types_ok(x,y,ux,uy), \
| ^~~~~~~~~~~~~~~~
include/linux/minmax.h:79:27: note: in expansion of macro 'statically_true'
79 | #define __is_nonneg(x,ux) statically_true((__signed_type(ux))(x)>=0)
| ^~~~~~~~~~~~~~~
include/linux/minmax.h:79:44: note: in expansion of macro '__signed_type'
79 | #define __is_nonneg(x,ux) statically_true((__signed_type(ux))(x)>=0)
| ^~~~~~~~~~~~~
include/linux/minmax.h:54:36: note: in expansion of macro '__is_nonneg'
54 | #define __signed_type_use(x,ux) (2+__is_nonneg(x,ux))
| ^~~~~~~~~~~
include/linux/minmax.h:57:9: note: in expansion of macro '__signed_type_use'
57 | __signed_type_use(x,ux):__unsigned_type_use(x,ux))
| ^~~~~~~~~~~~~~~~~
include/linux/minmax.h:82:29: note: in expansion of macro '__sign_use'
82 | (__sign_use(x,ux) & __sign_use(y,uy))
| ^~~~~~~~~~
include/linux/minmax.h:100:27: note: in expansion of macro '__types_ok'
100 | BUILD_BUG_ON_MSG(!__types_ok(x,y,ux,uy), \
| ^~~~~~~~~~
include/linux/minmax.h:105:9: note: in expansion of macro '__careful_cmp_once'
105 | __careful_cmp_once(op, x, y, __UNIQUE_ID(x_), __UNIQUE_ID(y_))
| ^~~~~~~~~~~~~~~~~~
include/linux/minmax.h:129:25: note: in expansion of macro '__careful_cmp'
129 | #define min(x, y) __careful_cmp(min, x, y)
| ^~~~~~~~~~~~~
fs/f2fs/sysfs.c:815:38: note: in expansion of macro 'min'
815 | sbi->donate_caches = min(t, sbi->ndirty_inode[DONATE_INODE]);
| ^~~
>> fs/f2fs/sysfs.c:815:48: error: 'struct f2fs_sb_info' has no member named 'ndirty_inode'
815 | sbi->donate_caches = min(t, sbi->ndirty_inode[DONATE_INODE]);
| ^~
include/linux/compiler.h:57:61: note: in definition of macro '__trace_if_var'
57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
include/linux/compiler_types.h:522:17: note: in expansion of macro 'if'
522 | if (!(condition)) \
| ^~
include/linux/compiler_types.h:530:9: note: in expansion of macro '__compiletime_assert'
530 | __compiletime_assert(condition, msg, prefix, suffix)
| ^~~~~~~~~~~~~~~~~~~~
include/linux/compiler_types.h:542:9: note: in expansion of macro '_compiletime_assert'
542 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/minmax.h:100:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
100 | BUILD_BUG_ON_MSG(!__types_ok(x,y,ux,uy), \
| ^~~~~~~~~~~~~~~~
include/linux/minmax.h:79:27: note: in expansion of macro 'statically_true'
79 | #define __is_nonneg(x,ux) statically_true((__signed_type(ux))(x)>=0)
| ^~~~~~~~~~~~~~~
include/linux/minmax.h:54:36: note: in expansion of macro '__is_nonneg'
54 | #define __signed_type_use(x,ux) (2+__is_nonneg(x,ux))
| ^~~~~~~~~~~
include/linux/minmax.h:57:9: note: in expansion of macro '__signed_type_use'
57 | __signed_type_use(x,ux):__unsigned_type_use(x,ux))
| ^~~~~~~~~~~~~~~~~
include/linux/minmax.h:82:29: note: in expansion of macro '__sign_use'
82 | (__sign_use(x,ux) & __sign_use(y,uy))
| ^~~~~~~~~~
include/linux/minmax.h:100:27: note: in expansion of macro '__types_ok'
100 | BUILD_BUG_ON_MSG(!__types_ok(x,y,ux,uy), \
| ^~~~~~~~~~
include/linux/minmax.h:105:9: note: in expansion of macro '__careful_cmp_once'
105 | __careful_cmp_once(op, x, y, __UNIQUE_ID(x_), __UNIQUE_ID(y_))
| ^~~~~~~~~~~~~~~~~~
include/linux/minmax.h:129:25: note: in expansion of macro '__careful_cmp'
129 | #define min(x, y) __careful_cmp(min, x, y)
| ^~~~~~~~~~~~~
fs/f2fs/sysfs.c:815:38: note: in expansion of macro 'min'
815 | sbi->donate_caches = min(t, sbi->ndirty_inode[DONATE_INODE]);
| ^~~
>> include/linux/minmax.h:77:36: error: first argument to '__builtin_choose_expr' not a constant
77 | #define __signed_type(ux) typeof(__builtin_choose_expr(sizeof(ux)>4,1LL,1L))
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:57:61: note: in definition of macro '__trace_if_var'
57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
include/linux/compiler_types.h:522:17: note: in expansion of macro 'if'
522 | if (!(condition)) \
| ^~
include/linux/compiler_types.h:530:9: note: in expansion of macro '__compiletime_assert'
530 | __compiletime_assert(condition, msg, prefix, suffix)
| ^~~~~~~~~~~~~~~~~~~~
include/linux/compiler_types.h:542:9: note: in expansion of macro '_compiletime_assert'
542 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/minmax.h:100:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
100 | BUILD_BUG_ON_MSG(!__types_ok(x,y,ux,uy), \
| ^~~~~~~~~~~~~~~~
include/linux/minmax.h:79:27: note: in expansion of macro 'statically_true'
79 | #define __is_nonneg(x,ux) statically_true((__signed_type(ux))(x)>=0)
| ^~~~~~~~~~~~~~~
include/linux/minmax.h:79:44: note: in expansion of macro '__signed_type'
79 | #define __is_nonneg(x,ux) statically_true((__signed_type(ux))(x)>=0)
| ^~~~~~~~~~~~~
include/linux/minmax.h:54:36: note: in expansion of macro '__is_nonneg'
54 | #define __signed_type_use(x,ux) (2+__is_nonneg(x,ux))
| ^~~~~~~~~~~
include/linux/minmax.h:57:9: note: in expansion of macro '__signed_type_use'
57 | __signed_type_use(x,ux):__unsigned_type_use(x,ux))
| ^~~~~~~~~~~~~~~~~
include/linux/minmax.h:82:29: note: in expansion of macro '__sign_use'
82 | (__sign_use(x,ux) & __sign_use(y,uy))
| ^~~~~~~~~~
include/linux/minmax.h:100:27: note: in expansion of macro '__types_ok'
100 | BUILD_BUG_ON_MSG(!__types_ok(x,y,ux,uy), \
| ^~~~~~~~~~
include/linux/minmax.h:105:9: note: in expansion of macro '__careful_cmp_once'
105 | __careful_cmp_once(op, x, y, __UNIQUE_ID(x_), __UNIQUE_ID(y_))
| ^~~~~~~~~~~~~~~~~~
include/linux/minmax.h:129:25: note: in expansion of macro '__careful_cmp'
129 | #define min(x, y) __careful_cmp(min, x, y)
| ^~~~~~~~~~~~~
fs/f2fs/sysfs.c:815:38: note: in expansion of macro 'min'
815 | sbi->donate_caches = min(t, sbi->ndirty_inode[DONATE_INODE]);
| ^~~
>> fs/f2fs/sysfs.c:815:48: error: 'struct f2fs_sb_info' has no member named 'ndirty_inode'
815 | sbi->donate_caches = min(t, sbi->ndirty_inode[DONATE_INODE]);
| ^~
include/linux/compiler.h:57:61: note: in definition of macro '__trace_if_var'
57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
include/linux/compiler_types.h:522:17: note: in expansion of macro 'if'
522 | if (!(condition)) \
| ^~
include/linux/compiler_types.h:530:9: note: in expansion of macro '__compiletime_assert'
530 | __compiletime_assert(condition, msg, prefix, suffix)
| ^~~~~~~~~~~~~~~~~~~~
include/linux/compiler_types.h:542:9: note: in expansion of macro '_compiletime_assert'
542 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/minmax.h:100:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
100 | BUILD_BUG_ON_MSG(!__types_ok(x,y,ux,uy), \
| ^~~~~~~~~~~~~~~~
include/linux/minmax.h:79:27: note: in expansion of macro 'statically_true'
79 | #define __is_nonneg(x,ux) statically_true((__signed_type(ux))(x)>=0)
| ^~~~~~~~~~~~~~~
include/linux/minmax.h:54:36: note: in expansion of macro '__is_nonneg'
54 | #define __signed_type_use(x,ux) (2+__is_nonneg(x,ux))
| ^~~~~~~~~~~
include/linux/minmax.h:57:9: note: in expansion of macro '__signed_type_use'
57 | __signed_type_use(x,ux):__unsigned_type_use(x,ux))
| ^~~~~~~~~~~~~~~~~
include/linux/minmax.h:82:29: note: in expansion of macro '__sign_use'
82 | (__sign_use(x,ux) & __sign_use(y,uy))
| ^~~~~~~~~~
include/linux/minmax.h:100:27: note: in expansion of macro '__types_ok'
100 | BUILD_BUG_ON_MSG(!__types_ok(x,y,ux,uy), \
| ^~~~~~~~~~
include/linux/minmax.h:105:9: note: in expansion of macro '__careful_cmp_once'
105 | __careful_cmp_once(op, x, y, __UNIQUE_ID(x_), __UNIQUE_ID(y_))
| ^~~~~~~~~~~~~~~~~~
include/linux/minmax.h:129:25: note: in expansion of macro '__careful_cmp'
129 | #define min(x, y) __careful_cmp(min, x, y)
| ^~~~~~~~~~~~~
fs/f2fs/sysfs.c:815:38: note: in expansion of macro 'min'
815 | sbi->donate_caches = min(t, sbi->ndirty_inode[DONATE_INODE]);
| ^~~
>> include/linux/minmax.h:77:36: error: first argument to '__builtin_choose_expr' not a constant
77 | #define __signed_type(ux) typeof(__builtin_choose_expr(sizeof(ux)>4,1LL,1L))
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:68:10: note: in definition of macro '__trace_if_value'
68 | (cond) ? \
| ^~~~
include/linux/compiler.h:55:28: note: in expansion of macro '__trace_if_var'
55 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
| ^~~~~~~~~~~~~~
include/linux/compiler_types.h:522:17: note: in expansion of macro 'if'
522 | if (!(condition)) \
| ^~
include/linux/compiler_types.h:530:9: note: in expansion of macro '__compiletime_assert'
530 | __compiletime_assert(condition, msg, prefix, suffix)
| ^~~~~~~~~~~~~~~~~~~~
include/linux/compiler_types.h:542:9: note: in expansion of macro '_compiletime_assert'
542 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/minmax.h:100:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
100 | BUILD_BUG_ON_MSG(!__types_ok(x,y,ux,uy), \
| ^~~~~~~~~~~~~~~~
include/linux/minmax.h:79:27: note: in expansion of macro 'statically_true'
79 | #define __is_nonneg(x,ux) statically_true((__signed_type(ux))(x)>=0)
| ^~~~~~~~~~~~~~~
include/linux/minmax.h:79:44: note: in expansion of macro '__signed_type'
79 | #define __is_nonneg(x,ux) statically_true((__signed_type(ux))(x)>=0)
| ^~~~~~~~~~~~~
include/linux/minmax.h:54:36: note: in expansion of macro '__is_nonneg'
54 | #define __signed_type_use(x,ux) (2+__is_nonneg(x,ux))
| ^~~~~~~~~~~
include/linux/minmax.h:57:9: note: in expansion of macro '__signed_type_use'
57 | __signed_type_use(x,ux):__unsigned_type_use(x,ux))
| ^~~~~~~~~~~~~~~~~
include/linux/minmax.h:82:29: note: in expansion of macro '__sign_use'
82 | (__sign_use(x,ux) & __sign_use(y,uy))
| ^~~~~~~~~~
include/linux/minmax.h:100:27: note: in expansion of macro '__types_ok'
100 | BUILD_BUG_ON_MSG(!__types_ok(x,y,ux,uy), \
| ^~~~~~~~~~
include/linux/minmax.h:105:9: note: in expansion of macro '__careful_cmp_once'
105 | __careful_cmp_once(op, x, y, __UNIQUE_ID(x_), __UNIQUE_ID(y_))
| ^~~~~~~~~~~~~~~~~~
include/linux/minmax.h:129:25: note: in expansion of macro '__careful_cmp'
129 | #define min(x, y) __careful_cmp(min, x, y)
| ^~~~~~~~~~~~~
fs/f2fs/sysfs.c:815:38: note: in expansion of macro 'min'
815 | sbi->donate_caches = min(t, sbi->ndirty_inode[DONATE_INODE]);
| ^~~
>> fs/f2fs/sysfs.c:815:48: error: 'struct f2fs_sb_info' has no member named 'ndirty_inode'
815 | sbi->donate_caches = min(t, sbi->ndirty_inode[DONATE_INODE]);
| ^~
include/linux/compiler.h:68:10: note: in definition of macro '__trace_if_value'
68 | (cond) ? \
| ^~~~
include/linux/compiler.h:55:28: note: in expansion of macro '__trace_if_var'
55 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
| ^~~~~~~~~~~~~~
include/linux/compiler_types.h:522:17: note: in expansion of macro 'if'
522 | if (!(condition)) \
| ^~
include/linux/compiler_types.h:530:9: note: in expansion of macro '__compiletime_assert'
530 | __compiletime_assert(condition, msg, prefix, suffix)
| ^~~~~~~~~~~~~~~~~~~~
include/linux/compiler_types.h:542:9: note: in expansion of macro '_compiletime_assert'
542 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/minmax.h:100:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
100 | BUILD_BUG_ON_MSG(!__types_ok(x,y,ux,uy), \
| ^~~~~~~~~~~~~~~~
include/linux/minmax.h:79:27: note: in expansion of macro 'statically_true'
79 | #define __is_nonneg(x,ux) statically_true((__signed_type(ux))(x)>=0)
| ^~~~~~~~~~~~~~~
include/linux/minmax.h:54:36: note: in expansion of macro '__is_nonneg'
54 | #define __signed_type_use(x,ux) (2+__is_nonneg(x,ux))
| ^~~~~~~~~~~
include/linux/minmax.h:57:9: note: in expansion of macro '__signed_type_use'
57 | __signed_type_use(x,ux):__unsigned_type_use(x,ux))
| ^~~~~~~~~~~~~~~~~
include/linux/minmax.h:82:29: note: in expansion of macro '__sign_use'
82 | (__sign_use(x,ux) & __sign_use(y,uy))
| ^~~~~~~~~~
include/linux/minmax.h:100:27: note: in expansion of macro '__types_ok'
100 | BUILD_BUG_ON_MSG(!__types_ok(x,y,ux,uy), \
| ^~~~~~~~~~
include/linux/minmax.h:105:9: note: in expansion of macro '__careful_cmp_once'
105 | __careful_cmp_once(op, x, y, __UNIQUE_ID(x_), __UNIQUE_ID(y_))
| ^~~~~~~~~~~~~~~~~~
include/linux/minmax.h:129:25: note: in expansion of macro '__careful_cmp'
129 | #define min(x, y) __careful_cmp(min, x, y)
| ^~~~~~~~~~~~~
fs/f2fs/sysfs.c:815:38: note: in expansion of macro 'min'
815 | sbi->donate_caches = min(t, sbi->ndirty_inode[DONATE_INODE]);
| ^~~
>> include/linux/minmax.h:77:36: error: first argument to '__builtin_choose_expr' not a constant
77 | #define __signed_type(ux) typeof(__builtin_choose_expr(sizeof(ux)>4,1LL,1L))
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:68:10: note: in definition of macro '__trace_if_value'
68 | (cond) ? \
| ^~~~
include/linux/compiler.h:55:28: note: in expansion of macro '__trace_if_var'
55 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
| ^~~~~~~~~~~~~~
include/linux/compiler_types.h:522:17: note: in expansion of macro 'if'
522 | if (!(condition)) \
| ^~
include/linux/compiler_types.h:530:9: note: in expansion of macro '__compiletime_assert'
530 | __compiletime_assert(condition, msg, prefix, suffix)
| ^~~~~~~~~~~~~~~~~~~~
include/linux/compiler_types.h:542:9: note: in expansion of macro '_compiletime_assert'
542 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/minmax.h:100:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
100 | BUILD_BUG_ON_MSG(!__types_ok(x,y,ux,uy), \
| ^~~~~~~~~~~~~~~~
include/linux/minmax.h:79:27: note: in expansion of macro 'statically_true'
79 | #define __is_nonneg(x,ux) statically_true((__signed_type(ux))(x)>=0)
| ^~~~~~~~~~~~~~~
include/linux/minmax.h:79:44: note: in expansion of macro '__signed_type'
79 | #define __is_nonneg(x,ux) statically_true((__signed_type(ux))(x)>=0)
| ^~~~~~~~~~~~~
include/linux/minmax.h:54:36: note: in expansion of macro '__is_nonneg'
54 | #define __signed_type_use(x,ux) (2+__is_nonneg(x,ux))
| ^~~~~~~~~~~
include/linux/minmax.h:57:9: note: in expansion of macro '__signed_type_use'
57 | __signed_type_use(x,ux):__unsigned_type_use(x,ux))
| ^~~~~~~~~~~~~~~~~
include/linux/minmax.h:82:29: note: in expansion of macro '__sign_use'
82 | (__sign_use(x,ux) & __sign_use(y,uy))
| ^~~~~~~~~~
include/linux/minmax.h:100:27: note: in expansion of macro '__types_ok'
100 | BUILD_BUG_ON_MSG(!__types_ok(x,y,ux,uy), \
| ^~~~~~~~~~
include/linux/minmax.h:105:9: note: in expansion of macro '__careful_cmp_once'
105 | __careful_cmp_once(op, x, y, __UNIQUE_ID(x_), __UNIQUE_ID(y_))
| ^~~~~~~~~~~~~~~~~~
include/linux/minmax.h:129:25: note: in expansion of macro '__careful_cmp'
129 | #define min(x, y) __careful_cmp(min, x, y)
| ^~~~~~~~~~~~~
fs/f2fs/sysfs.c:815:38: note: in expansion of macro 'min'
815 | sbi->donate_caches = min(t, sbi->ndirty_inode[DONATE_INODE]);
| ^~~
>> fs/f2fs/sysfs.c:815:48: error: 'struct f2fs_sb_info' has no member named 'ndirty_inode'
815 | sbi->donate_caches = min(t, sbi->ndirty_inode[DONATE_INODE]);
| ^~
include/linux/compiler.h:68:10: note: in definition of macro '__trace_if_value'
68 | (cond) ? \
| ^~~~
include/linux/compiler.h:55:28: note: in expansion of macro '__trace_if_var'
55 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
| ^~~~~~~~~~~~~~
include/linux/compiler_types.h:522:17: note: in expansion of macro 'if'
522 | if (!(condition)) \
| ^~
include/linux/compiler_types.h:530:9: note: in expansion of macro '__compiletime_assert'
530 | __compiletime_assert(condition, msg, prefix, suffix)
| ^~~~~~~~~~~~~~~~~~~~
include/linux/compiler_types.h:542:9: note: in expansion of macro '_compiletime_assert'
542 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/minmax.h:100:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
100 | BUILD_BUG_ON_MSG(!__types_ok(x,y,ux,uy), \
| ^~~~~~~~~~~~~~~~
include/linux/minmax.h:79:27: note: in expansion of macro 'statically_true'
79 | #define __is_nonneg(x,ux) statically_true((__signed_type(ux))(x)>=0)
| ^~~~~~~~~~~~~~~
include/linux/minmax.h:54:36: note: in expansion of macro '__is_nonneg'
54 | #define __signed_type_use(x,ux) (2+__is_nonneg(x,ux))
| ^~~~~~~~~~~
include/linux/minmax.h:57:9: note: in expansion of macro '__signed_type_use'
57 | __signed_type_use(x,ux):__unsigned_type_use(x,ux))
| ^~~~~~~~~~~~~~~~~
include/linux/minmax.h:82:29: note: in expansion of macro '__sign_use'
82 | (__sign_use(x,ux) & __sign_use(y,uy))
| ^~~~~~~~~~
include/linux/minmax.h:100:27: note: in expansion of macro '__types_ok'
100 | BUILD_BUG_ON_MSG(!__types_ok(x,y,ux,uy), \
| ^~~~~~~~~~
include/linux/minmax.h:105:9: note: in expansion of macro '__careful_cmp_once'
105 | __careful_cmp_once(op, x, y, __UNIQUE_ID(x_), __UNIQUE_ID(y_))
| ^~~~~~~~~~~~~~~~~~
include/linux/minmax.h:129:25: note: in expansion of macro '__careful_cmp'
129 | #define min(x, y) __careful_cmp(min, x, y)
| ^~~~~~~~~~~~~
fs/f2fs/sysfs.c:815:38: note: in expansion of macro 'min'
815 | sbi->donate_caches = min(t, sbi->ndirty_inode[DONATE_INODE]);
| ^~~
..
vim +815 fs/f2fs/sysfs.c
676
677 if (!strcmp(a->attr.name, "atgc_candidate_ratio")) {
678 if (t > 100)
679 return -EINVAL;
680 sbi->am.candidate_ratio = t;
681 return count;
682 }
683
684 if (!strcmp(a->attr.name, "atgc_age_weight")) {
685 if (t > 100)
686 return -EINVAL;
687 sbi->am.age_weight = t;
688 return count;
689 }
690
691 if (!strcmp(a->attr.name, "gc_segment_mode")) {
692 if (t < MAX_GC_MODE)
693 sbi->gc_segment_mode = t;
694 else
695 return -EINVAL;
696 return count;
697 }
698
699 if (!strcmp(a->attr.name, "gc_pin_file_threshold")) {
700 if (t > MAX_GC_FAILED_PINNED_FILES)
701 return -EINVAL;
702 sbi->gc_pin_file_threshold = t;
703 return count;
704 }
705
706 if (!strcmp(a->attr.name, "gc_reclaimed_segments")) {
707 if (t != 0)
708 return -EINVAL;
709 sbi->gc_reclaimed_segs[sbi->gc_segment_mode] = 0;
710 return count;
711 }
712
713 if (!strcmp(a->attr.name, "seq_file_ra_mul")) {
714 if (t >= MIN_RA_MUL && t <= MAX_RA_MUL)
715 sbi->seq_file_ra_mul = t;
716 else
717 return -EINVAL;
718 return count;
719 }
720
721 if (!strcmp(a->attr.name, "max_fragment_chunk")) {
722 if (t >= MIN_FRAGMENT_SIZE && t <= MAX_FRAGMENT_SIZE)
723 sbi->max_fragment_chunk = t;
724 else
725 return -EINVAL;
726 return count;
727 }
728
729 if (!strcmp(a->attr.name, "max_fragment_hole")) {
730 if (t >= MIN_FRAGMENT_SIZE && t <= MAX_FRAGMENT_SIZE)
731 sbi->max_fragment_hole = t;
732 else
733 return -EINVAL;
734 return count;
735 }
736
737 if (!strcmp(a->attr.name, "peak_atomic_write")) {
738 if (t != 0)
739 return -EINVAL;
740 sbi->peak_atomic_write = 0;
741 return count;
742 }
743
744 if (!strcmp(a->attr.name, "committed_atomic_block")) {
745 if (t != 0)
746 return -EINVAL;
747 sbi->committed_atomic_block = 0;
748 return count;
749 }
750
751 if (!strcmp(a->attr.name, "revoked_atomic_block")) {
752 if (t != 0)
753 return -EINVAL;
754 sbi->revoked_atomic_block = 0;
755 return count;
756 }
757
758 if (!strcmp(a->attr.name, "readdir_ra")) {
759 sbi->readdir_ra = !!t;
760 return count;
761 }
762
763 if (!strcmp(a->attr.name, "hot_data_age_threshold")) {
764 if (t == 0 || t >= sbi->warm_data_age_threshold)
765 return -EINVAL;
766 if (t == *ui)
767 return count;
768 *ui = (unsigned int)t;
769 return count;
770 }
771
772 if (!strcmp(a->attr.name, "warm_data_age_threshold")) {
773 if (t <= sbi->hot_data_age_threshold)
774 return -EINVAL;
775 if (t == *ui)
776 return count;
777 *ui = (unsigned int)t;
778 return count;
779 }
780
781 if (!strcmp(a->attr.name, "last_age_weight")) {
782 if (t > 100)
783 return -EINVAL;
784 if (t == *ui)
785 return count;
786 *ui = (unsigned int)t;
787 return count;
788 }
789
790 if (!strcmp(a->attr.name, "max_read_extent_count")) {
791 if (t > UINT_MAX)
792 return -EINVAL;
793 *ui = (unsigned int)t;
794 return count;
795 }
796
797 if (!strcmp(a->attr.name, "ipu_policy")) {
798 if (t >= BIT(F2FS_IPU_MAX))
799 return -EINVAL;
800 /* allow F2FS_IPU_NOCACHE only for IPU in the pinned file */
801 if (f2fs_lfs_mode(sbi) && (t & ~BIT(F2FS_IPU_NOCACHE)))
802 return -EINVAL;
803 SM_I(sbi)->ipu_policy = (unsigned int)t;
804 return count;
805 }
806
807 if (!strcmp(a->attr.name, "dir_level")) {
808 if (t > MAX_DIR_HASH_DEPTH)
809 return -EINVAL;
810 sbi->dir_level = t;
811 return count;
812 }
813
814 if (!strcmp(a->attr.name, "donate_caches")) {
> 815 sbi->donate_caches = min(t, sbi->ndirty_inode[DONATE_INODE]);
816 f2fs_donate_caches(sbi);
817 return count;
818 }
819
820 *ui = (unsigned int)t;
821
822 return count;
823 }
824
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-01-14 19:43 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-13 18:39 [f2fs-dev] [PATCH 1/2] f2fs: register inodes which is able to donate pages Jaegeuk Kim via Linux-f2fs-devel
2025-01-13 18:39 ` Jaegeuk Kim
2025-01-13 18:39 ` [f2fs-dev] [PATCH 2/2] f2fs: add a sysfs entry to request donate file-backed pages Jaegeuk Kim via Linux-f2fs-devel
2025-01-13 18:39 ` Jaegeuk Kim
2025-01-14 7:34 ` [f2fs-dev] " Chao Yu via Linux-f2fs-devel
2025-01-14 7:34 ` Chao Yu
2025-01-14 17:18 ` Jaegeuk Kim via Linux-f2fs-devel
2025-01-14 17:18 ` Jaegeuk Kim
2025-01-15 2:17 ` Chao Yu via Linux-f2fs-devel
2025-01-15 2:17 ` Chao Yu
2025-01-14 19:11 ` kernel test robot
2025-01-14 19:43 ` kernel test robot [this message]
2025-01-14 20:50 ` [f2fs-dev] [PATCH 2/2 v2] " Jaegeuk Kim via Linux-f2fs-devel
2025-01-14 20:50 ` Jaegeuk Kim
2025-01-14 6:34 ` [f2fs-dev] [PATCH 1/2] f2fs: register inodes which is able to donate pages Chao Yu via Linux-f2fs-devel
2025-01-14 6:34 ` Chao Yu
2025-01-14 17:15 ` Jaegeuk Kim via Linux-f2fs-devel
2025-01-14 17:15 ` Jaegeuk Kim
2025-01-15 2:12 ` Chao Yu via Linux-f2fs-devel
2025-01-15 2:12 ` Chao Yu
2025-01-14 17:20 ` [f2fs-dev] [PATCH 1/2 v2] " Jaegeuk Kim via Linux-f2fs-devel
2025-01-14 17:20 ` Jaegeuk Kim
2025-01-14 21:16 ` [f2fs-dev] [PATCH 1/2] " Eric Biggers via Linux-f2fs-devel
2025-01-14 21:16 ` Eric Biggers
-- strict thread matches above, loose matches on Subject: below --
2025-01-14 22:39 [f2fs-dev] [PATCH 0/2 v2] add ioctl/sysfs to donate file-backed pages Jaegeuk Kim via Linux-f2fs-devel
2025-01-14 22:39 ` [PATCH 2/2] f2fs: add a sysfs entry to request " Jaegeuk Kim
2025-01-15 22:16 [f2fs-dev] [PATCH 0/2 v3] add ioctl/sysfs to " Jaegeuk Kim via Linux-f2fs-devel
2025-01-15 22:16 ` [PATCH 2/2] f2fs: add a sysfs entry to request " Jaegeuk Kim
2025-01-16 4:41 [f2fs-dev] [PATCH 0/2 v4] add ioctl/sysfs to " Jaegeuk Kim via Linux-f2fs-devel
2025-01-16 4:42 ` [PATCH 2/2] f2fs: add a sysfs entry to request " Jaegeuk Kim
2025-01-16 22:51 [f2fs-dev] [PATCH 0/2 v5 RESEND] add ioctl/sysfs to " Jaegeuk Kim via Linux-f2fs-devel
2025-01-16 22:51 ` [PATCH 2/2] f2fs: add a sysfs entry to request " Jaegeuk Kim
2025-01-17 16:41 [f2fs-dev] [PATCH 0/2 v6] add ioctl/sysfs to " Jaegeuk Kim via Linux-f2fs-devel
2025-01-17 16:41 ` [PATCH 2/2] f2fs: add a sysfs entry to request " Jaegeuk Kim
2025-01-22 21:10 [f2fs-dev] [PATCH 0/2 v7] add ioctl/sysfs to " Jaegeuk Kim via Linux-f2fs-devel
2025-01-22 21:10 ` [PATCH 2/2] f2fs: add a sysfs entry to request " Jaegeuk Kim
2025-01-31 22:27 [f2fs-dev] [PATCH 0/2 v8] add ioctl/sysfs to " Jaegeuk Kim via Linux-f2fs-devel
2025-01-31 22:27 ` [PATCH 2/2] f2fs: add a sysfs entry to request " Jaegeuk Kim
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202501150319.8pSlgSSX-lkp@intel.com \
--to=lkp@intel.com \
--cc=jaegeuk@kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.