All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Andrew Lunn <andrew@lunn.ch>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [lunn:v6.12.0-scu4-dt-overlay 25/30] include/linux/of.h:1773:5: warning: "CONFIG_OF_RESOLVE" is not defined, evaluates to 0
Date: Mon, 2 Dec 2024 00:55:37 +0800	[thread overview]
Message-ID: <202412020002.hCJrP1Tw-lkp@intel.com> (raw)

tree:   https://github.com/lunn/linux.git v6.12.0-scu4-dt-overlay
head:   b21db3c3b59085d88243972fcb891a13ddd86b7a
commit: e8a03ab091c87d818bdaa61873dfd96c6f6df5da [25/30] of: resolver: Add helper to add to __symbols__
config: arc-axs103_defconfig (https://download.01.org/0day-ci/archive/20241202/202412020002.hCJrP1Tw-lkp@intel.com/config)
compiler: arc-elf-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241202/202412020002.hCJrP1Tw-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/202412020002.hCJrP1Tw-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from lib/logic_pio.c:11:
>> include/linux/of.h:1773:5: warning: "CONFIG_OF_RESOLVE" is not defined, evaluates to 0 [-Wundef]
    1773 | #if CONFIG_OF_RESOLVE
         |     ^~~~~~~~~~~~~~~~~
--
   In file included from include/linux/clk-provider.h:9,
                    from lib/vsprintf.c:23:
>> include/linux/of.h:1773:5: warning: "CONFIG_OF_RESOLVE" is not defined, evaluates to 0 [-Wundef]
    1773 | #if CONFIG_OF_RESOLVE
         |     ^~~~~~~~~~~~~~~~~
   lib/vsprintf.c: In function 'va_format':
   lib/vsprintf.c:1683:9: warning: function 'va_format' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
    1683 |         buf += vsnprintf(buf, end > buf ? end - buf : 0, va_fmt->fmt, va);
         |         ^~~


vim +/CONFIG_OF_RESOLVE +1773 include/linux/of.h

  1772	
> 1773	#if CONFIG_OF_RESOLVE
  1774	int of_add_resolver_symbol(const char *name, const struct device *dev,
  1775				   const char *path);
  1776	#else
  1777	static inline int of_add_resolver_symbol(const char *name,
  1778						 const struct device *dev,
  1779						 const char *path)
  1780	{
  1781		return 0;
  1782	}
  1783	#endif
  1784	

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

                 reply	other threads:[~2024-12-01 16:56 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=202412020002.hCJrP1Tw-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=andrew@lunn.ch \
    --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.