public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.org,
	Hemant Kumar <hemantk@codeaurora.org>,
	Alex Elder <elder@linaro.org>
Subject: [mani-mhi:mhi-next 12/30] drivers/bus/mhi/host/../common.h:278:28: warning: 'const' type qualifier on return type has no effect
Date: Wed, 2 Mar 2022 00:16:43 +0800	[thread overview]
Message-ID: <202203020002.8Of9vVDg-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mani/mhi.git mhi-next
head:   b85d0d28ed263a5421f698d5c7bd513c7b6d8b97
commit: ed97144182117586712c8036ded0bab36898eae0 [12/30] bus: mhi: Make mhi_state_str[] array static inline and move to common.h
config: hexagon-randconfig-r036-20220301 (https://download.01.org/0day-ci/archive/20220302/202203020002.8Of9vVDg-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/mani/mhi.git/commit/?id=ed97144182117586712c8036ded0bab36898eae0
        git remote add mani-mhi https://git.kernel.org/pub/scm/linux/kernel/git/mani/mhi.git
        git fetch --no-tags mani-mhi mhi-next
        git checkout ed97144182117586712c8036ded0bab36898eae0
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/bus/

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

All warnings (new ones prefixed by >>):

   In file included from drivers/bus/mhi/host/init.c:21:
   In file included from drivers/bus/mhi/host/internal.h:10:
>> drivers/bus/mhi/host/../common.h:278:28: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers]
   static inline const char * const mhi_state_str(enum mhi_state state)
                              ^~~~~~
   1 warning generated.


vim +/const +278 drivers/bus/mhi/host/../common.h

   277	
 > 278	static inline const char * const mhi_state_str(enum mhi_state state)
   279	{
   280		switch (state) {
   281		case MHI_STATE_RESET:
   282			return "RESET";
   283		case MHI_STATE_READY:
   284			return "READY";
   285		case MHI_STATE_M0:
   286			return "M0";
   287		case MHI_STATE_M1:
   288			return "M1";
   289		case MHI_STATE_M2:
   290			return "M2";
   291		case MHI_STATE_M3:
   292			return "M3";
   293		case MHI_STATE_M3_FAST:
   294			return "M3 FAST";
   295		case MHI_STATE_BHI:
   296			return "BHI";
   297		case MHI_STATE_SYS_ERR:
   298			return "SYS ERROR";
   299		default:
   300			return "Unknown state";
   301		}
   302	};
   303	

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

                 reply	other threads:[~2022-03-01 16:18 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=202203020002.8Of9vVDg-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=elder@linaro.org \
    --cc=hemantk@codeaurora.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=manivannan.sadhasivam@linaro.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