From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7AF2BC77B6E for ; Thu, 13 Apr 2023 16:41:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:Cc:To: From:Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=5NORK4Z3pXsqFimaU7MBy3LZcMo+DTTuarIZb/J4Utk=; b=gkVHLDhYuKylqr cFNcpzeRJ1Uq+ojBAAyHzR1Oi9OIh5doKyzwnX4k8tTl1yyDR1WDrzfc/9G3cYlL6elPQHSc6REVS xCckeJbLdbBxcFc/mchpRyvHpqWHI9dhPRNepX8X1gMP4ryCLJrm755/tkLSr5QeFTwTfNCcbRiHG wzw7Kg4F4f7xIC6OepO7EqZv1UV+Zk4+o+tqTZAPOGPOwwhbZxZOHbuWvgoj1PL9MLcqyp6F9Vg+c cHrcfkIvrNVwanp7I2/s5Amagd0EK8iK+rjbCE9M9KtQyda1PH0J63KkglTj5mJUwMP4pMMrCA6pl emUaiLGMznPIEqZDZFvA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pn00O-006hf7-0t; Thu, 13 Apr 2023 16:41:04 +0000 Received: from mga01.intel.com ([192.55.52.88]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pn00J-006hcY-01 for linux-arm-kernel@lists.infradead.org; Thu, 13 Apr 2023 16:41:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681404058; x=1712940058; h=date:from:to:cc:subject:message-id:mime-version; bh=zzE3za/R8rVaZ29jgaSPzk9bFB+8OuBZAXYBV6TM3M8=; b=e+pVYS1gmVQ6ggD+8LXsE4uPolrgs2wz6KA9UHPVTYHde2pERSOv+bDF xKNU8hLz+5fPaR3d1wns3/EhG9dJznYG/gNPIQVSd7kII88xpsnUq6VgC GECFcbEH+HvH35W5KdRtDK9hQ/N+zdsH80Nw46eqBhhDV5pooS7nLTDYz W91jI9XKO7t7p36k+pjpEC7IFyE2LfIOdvEj1lJQp5auwQEeK7eIzUaiI BrrplgnEeg58x4tGiPHU7DmF+Katqky19xrgc+tlv465sW/E4/ARhDir3 nu+SgkcaTscxkccHEAr/sLrQ3zbqcUE4F+LPLA0ksgMD6mo5OF0vo4vTr Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10679"; a="372091635" X-IronPort-AV: E=Sophos;i="5.99,194,1677571200"; d="scan'208";a="372091635" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Apr 2023 09:40:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10679"; a="863856188" X-IronPort-AV: E=Sophos;i="5.99,194,1677571200"; d="scan'208";a="863856188" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by orsmga005.jf.intel.com with ESMTP; 13 Apr 2023 09:40:55 -0700 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1pn00E-000Yoy-30; Thu, 13 Apr 2023 16:40:54 +0000 Date: Fri, 14 Apr 2023 00:40:50 +0800 From: kernel test robot To: Amit Kumar Mahapatra Cc: oe-kbuild-all@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Michal Simek Subject: [xilinx-xlnx:xlnx_rebase_v6.1 883/1065] drivers/spi/spi-sh-msiof.c:590:29: warning: passing argument 1 of 'spi_get_csgpiod' discards 'const' qualifier from pointer target type Message-ID: <202304140009.1EEA8HuJ-lkp@intel.com> MIME-Version: 1.0 Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230413_094059_070908_8E18E190 X-CRM114-Status: GOOD ( 13.38 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v6.1 head: bbf25ceb15a43c9047e14ab46a1d25c8ae6b67b4 commit: 570ea9b08474a574958a1857b5d71d1ff2f47cc0 [883/1065] spi: Replace all spi->chip_select and spi->cs_gpiod references with function call config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20230414/202304140009.1EEA8HuJ-lkp@intel.com/config) compiler: sh4-linux-gcc (GCC) 12.1.0 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://github.com/Xilinx/linux-xlnx/commit/570ea9b08474a574958a1857b5d71d1ff2f47cc0 git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx git fetch --no-tags xilinx-xlnx xlnx_rebase_v6.1 git checkout 570ea9b08474a574958a1857b5d71d1ff2f47cc0 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sh olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sh SHELL=/bin/bash drivers/spi/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202304140009.1EEA8HuJ-lkp@intel.com/ All warnings (new ones prefixed by >>): drivers/spi/spi-sh-msiof.c: In function 'sh_msiof_prepare_message': >> drivers/spi/spi-sh-msiof.c:590:29: warning: passing argument 1 of 'spi_get_csgpiod' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 590 | if (spi_get_csgpiod(spi, 0)) { | ^~~ In file included from drivers/spi/spi-sh-msiof.c:29: include/linux/spi/spi.h:276:68: note: expected 'struct spi_device *' but argument is of type 'const struct spi_device *' 276 | static inline struct gpio_desc *spi_get_csgpiod(struct spi_device *spi, u8 idx) | ~~~~~~~~~~~~~~~~~~~^~~ >> drivers/spi/spi-sh-msiof.c:594:41: warning: passing argument 1 of 'spi_get_chipselect' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 594 | ss = spi_get_chipselect(spi, 0); | ^~~ include/linux/spi/spi.h:266:56: note: expected 'struct spi_device *' but argument is of type 'const struct spi_device *' 266 | static inline u8 spi_get_chipselect(struct spi_device *spi, u8 idx) | ~~~~~~~~~~~~~~~~~~~^~~ vim +590 drivers/spi/spi-sh-msiof.c 581 582 static int sh_msiof_prepare_message(struct spi_controller *ctlr, 583 struct spi_message *msg) 584 { 585 struct sh_msiof_spi_priv *p = spi_controller_get_devdata(ctlr); 586 const struct spi_device *spi = msg->spi; 587 u32 ss, cs_high; 588 589 /* Configure pins before asserting CS */ > 590 if (spi_get_csgpiod(spi, 0)) { 591 ss = ctlr->unused_native_cs; 592 cs_high = p->native_cs_high; 593 } else { > 594 ss = spi_get_chipselect(spi, 0); 595 cs_high = !!(spi->mode & SPI_CS_HIGH); 596 } 597 sh_msiof_spi_set_pin_regs(p, ss, !!(spi->mode & SPI_CPOL), 598 !!(spi->mode & SPI_CPHA), 599 !!(spi->mode & SPI_3WIRE), 600 !!(spi->mode & SPI_LSB_FIRST), cs_high); 601 return 0; 602 } 603 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel