All of lore.kernel.org
 help / color / mirror / Atom feed
* [rgushchin:page_counters.2 4/6] include/linux/page_counter.h:55:9: warning: 'MAX' macro redefined
@ 2024-07-18  3:24 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-07-18  3:24 UTC (permalink / raw)
  To: Roman Gushchin; +Cc: oe-kbuild-all

tree:   https://github.com/rgushchin/linux.git page_counters.2
head:   c857fcebb4972e5493e7614c9fbcceceb016d5c6
commit: a8f2d92c5560e579201e8043df06af4b22e28e9b [4/6] mm: memcg: merge multiple page_counters into a single structure
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20240718/202407181153.AdePy9ik-lkp@intel.com/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240718/202407181153.AdePy9ik-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/202407181153.AdePy9ik-lkp@intel.com/

All error/warnings (new ones prefixed by >>):

   In file included from drivers/staging/media/atomisp/pci/sh_css_firmware.c:27:
   In file included from drivers/staging/media/atomisp//pci/runtime/debug/interface/ia_css_debug.h:25:
   In file included from drivers/staging/media/atomisp//pci/runtime/binary/interface/ia_css_binary.h:22:
   In file included from drivers/staging/media/atomisp//pci/ia_css_stream_format.h:24:
   In file included from drivers/staging/media/atomisp//pci/hive_isp_css_common/host/../../../include/linux/atomisp_platform.h:24:
   In file included from include/linux/i2c.h:19:
   In file included from include/linux/regulator/consumer.h:35:
   In file included from include/linux/suspend.h:5:
   In file included from include/linux/swap.h:9:
   In file included from include/linux/memcontrol.h:18:
>> include/linux/page_counter.h:55:9: warning: 'MAX' macro redefined [-Wmacro-redefined]
      55 | #define MAX(a, b) ((a) > (b) ? (a) : (b))
         |         ^
   drivers/staging/media/atomisp//pci/hive_isp_css_include/math_support.h:36:9: note: previous definition is here
      36 | #define MAX(a, b)            (((a) > (b)) ? (a) : (b))
         |         ^
   1 warning generated.
--
   In file included from drivers/staging/media/atomisp/pci/runtime/binary/src/binary.c:25:
   In file included from drivers/staging/media/atomisp//pci/runtime/binary/interface/ia_css_binary.h:22:
   In file included from drivers/staging/media/atomisp//pci/ia_css_stream_format.h:24:
   In file included from drivers/staging/media/atomisp//pci/hive_isp_css_common/host/../../../include/linux/atomisp_platform.h:24:
   In file included from include/linux/i2c.h:19:
   In file included from include/linux/regulator/consumer.h:35:
   In file included from include/linux/suspend.h:5:
   In file included from include/linux/swap.h:9:
   In file included from include/linux/memcontrol.h:18:
>> include/linux/page_counter.h:55:9: warning: 'MAX' macro redefined [-Wmacro-redefined]
      55 | #define MAX(a, b) ((a) > (b) ? (a) : (b))
         |         ^
   drivers/staging/media/atomisp//pci/hive_isp_css_include/math_support.h:36:9: note: previous definition is here
      36 | #define MAX(a, b)            (((a) > (b)) ? (a) : (b))
         |         ^
>> drivers/staging/media/atomisp/pci/runtime/binary/src/binary.c:103:24: error: call to undeclared function 'MAX'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     103 |         internal_res->width = __ISP_INTERNAL_WIDTH(isp_tmp_internal_width,
         |                               ^
   drivers/staging/media/atomisp//pci/sh_css_defs.h:310:22: note: expanded from macro '__ISP_INTERNAL_WIDTH'
     310 |         CEIL_MUL2(CEIL_MUL2(MAX(__ISP_PADDED_OUTPUT_WIDTH(out_width, \
         |                             ^
   1 warning and 1 error generated.


vim +/MAX +55 include/linux/page_counter.h

    54	
  > 55	#define MAX(a, b) ((a) > (b) ? (a) : (b))
    56	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-07-18  3:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-18  3:24 [rgushchin:page_counters.2 4/6] include/linux/page_counter.h:55:9: warning: 'MAX' macro redefined kernel test robot

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.