linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: [linux-next:master 4607/5967] drivers//hwtracing/coresight/coresight-cti-sysfs.c:948:11: warning: address of array 'grp->sig_types' will always evaluate to 'true'
Date: Tue, 3 Mar 2020 05:36:01 +0800	[thread overview]
Message-ID: <202003030558.9E1VvPJu%lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1474 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   b56557c8e5210c25b008da636ef804b228967aa6
commit: 85b6684eab650dc03a8a1ff9fcddd196c223f139 [4607/5967] coresight: cti: Add connection information to sysfs
config: arm64-allyesconfig (attached as .config)
compiler: clang version 11.0.0 (git://gitmirror/llvm_project 211fb91f1067ecdf7c0b8a019bcf76554d813129)
reproduce:
        # FIXME the reproduce steps for clang is not ready yet

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> drivers//hwtracing/coresight/coresight-cti-sysfs.c:948:11: warning: address of array 'grp->sig_types' will always evaluate to 'true' [-Wpointer-bool-conversion]
           if (grp->sig_types) {
           ~~  ~~~~~^~~~~~~~~
   1 warning generated.

vim +948 drivers//hwtracing/coresight/coresight-cti-sysfs.c

   940	
   941	/* convert a sig type id to a name */
   942	static const char *
   943	cti_sig_type_name(struct cti_trig_con *con, int used_count, bool in)
   944	{
   945		int idx = 0;
   946		struct cti_trig_grp *grp = in ? con->con_in : con->con_out;
   947	
 > 948		if (grp->sig_types) {
   949			if (used_count < grp->nr_sigs)
   950				idx = grp->sig_types[used_count];
   951		}
   952		return sig_type_names[idx];
   953	}
   954	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 70479 bytes --]

                 reply	other threads:[~2020-03-02 21:36 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=202003030558.9E1VvPJu%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=clang-built-linux@googlegroups.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-mm@kvack.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).