All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Roman Gushchin <roman.gushchin@linux.dev>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [rgushchin:page_counters.2 4/6] include/linux/page_counter.h:55:9: warning: 'MAX' macro redefined
Date: Thu, 18 Jul 2024 11:24:41 +0800	[thread overview]
Message-ID: <202407181153.AdePy9ik-lkp@intel.com> (raw)

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

                 reply	other threads:[~2024-07-18  3:25 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=202407181153.AdePy9ik-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=roman.gushchin@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.