From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [android-common:android16-6.12-2025-06 2/2] drivers/mmc/host/mmci.c:53:21: warning: 'fmax' defined but not used
Date: Thu, 18 Dec 2025 18:14:10 +0800 [thread overview]
Message-ID: <202512181800.FHmdi6Xa-lkp@intel.com> (raw)
tree: https://android.googlesource.com/kernel/common android16-6.12-2025-06
head: 9968d642dad11d8b20e29a3d250be16b57fd1dde
commit: 24f685a927c5a41df01d66069493bee40a5fb60e [2/2] UPSTREAM: block: add a rq_list type
config: arm-randconfig-003-20251218 (https://download.01.org/0day-ci/archive/20251218/202512181800.FHmdi6Xa-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 14.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251218/202512181800.FHmdi6Xa-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/202512181800.FHmdi6Xa-lkp@intel.com/
All warnings (new ones prefixed by >>):
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:166:37: note: in expansion of macro '__PASTE'
166 | #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)
| ^~~~~~~~~~~~~
drivers/mmc/host/mmci.c:2333:40: note: in expansion of macro 'min'
2333 | fmax : min(host->mclk, fmax);
| ^~~
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_types.h:516:23: note: in definition of macro '__compiletime_assert'
516 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:536:9: note: in expansion of macro '_compiletime_assert'
536 | _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)
| ^~~~~~~~~~~~~
drivers/mmc/host/mmci.c:2333:40: note: in expansion of macro 'min'
2333 | fmax : min(host->mclk, fmax);
| ^~~
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_types.h:516:23: note: in definition of macro '__compiletime_assert'
516 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:536:9: note: in expansion of macro '_compiletime_assert'
536 | _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)
| ^~~~~~~~~~~~~
drivers/mmc/host/mmci.c:2333:40: note: in expansion of macro 'min'
2333 | fmax : min(host->mclk, fmax);
| ^~~
drivers/mmc/host/mmci.c: At top level:
>> drivers/mmc/host/mmci.c:53:21: warning: 'fmax' defined but not used [-Wunused-variable]
53 | static unsigned int fmax = 515633;
| ^~~~
vim +/fmax +53 drivers/mmc/host/mmci.c
c3647fdc6a5a48 drivers/mmc/host/mmci.c Ludovic Barre 2018-10-08 52
^1da177e4c3f41 drivers/mmc/mmci.c Linus Torvalds 2005-04-16 @53 static unsigned int fmax = 515633;
^1da177e4c3f41 drivers/mmc/mmci.c Linus Torvalds 2005-04-16 54
:::::: The code at line 53 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-12-18 10:14 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202512181800.FHmdi6Xa-lkp@intel.com \
--to=lkp@intel.com \
--cc=cros-kernel-buildreports@googlegroups.com \
--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.