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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7A1E3C433EF for ; Wed, 15 Jun 2022 17:33:32 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E7B6C6B0071; Wed, 15 Jun 2022 13:33:31 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E2B046B0072; Wed, 15 Jun 2022 13:33:31 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CF47B6B0074; Wed, 15 Jun 2022 13:33:31 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id C14436B0071 for ; Wed, 15 Jun 2022 13:33:31 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 902B2344DC for ; Wed, 15 Jun 2022 17:33:31 +0000 (UTC) X-FDA: 79581167022.16.72194B9 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by imf14.hostedemail.com (Postfix) with ESMTP id 93DD9100004 for ; Wed, 15 Jun 2022 17:33:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655314410; x=1686850410; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=+MKeBdQz1ajkRhqL3VBuYBCksZz92U5jphtv50ui+cU=; b=Zht8XpFhpZut4KbOW8oilcjyCD8iBN3DhVE4HhaBnhqHnMP5TCrjXdkK +h4z7/4vXmKW8ynjZXy6rxVZldcNuMyGkYXTBCUlI36g/T9HHBb/P7pNQ NesBxP3w3IiR+SwM+UNbRi8TNUPpqrEtregq3E9sVkDBa2K2n+z7g9/Eg TZXoA/nO97Zue7e3Kj1ulYaYXjpM/75RUDxNSvB5BBsy3qClVN0NFpkTi FEmeSu3Uep1MShwHpLcKEkeXQbeA8ChleDBiWClKtAl4y2+/WIcnoMtyg MjjpAmIHbrpMjcfMSHIhepmbj05J6Vj7eR3ROxP/whmJB578Xocl6KiqL g==; X-IronPort-AV: E=McAfee;i="6400,9594,10379"; a="262069157" X-IronPort-AV: E=Sophos;i="5.91,302,1647327600"; d="scan'208";a="262069157" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jun 2022 10:33:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,302,1647327600"; d="scan'208";a="572430235" Received: from lkp-server01.sh.intel.com (HELO 60dabacc1df6) ([10.239.97.150]) by orsmga002.jf.intel.com with ESMTP; 15 Jun 2022 10:33:24 -0700 Received: from kbuild by 60dabacc1df6 with local (Exim 4.95) (envelope-from ) id 1o1WtQ-000N3J-36; Wed, 15 Jun 2022 17:33:24 +0000 Date: Thu, 16 Jun 2022 01:32:43 +0800 From: kernel test robot To: "Fabio M. De Francesco" , Andrew Morton , Sebastian Andrzej Siewior , Kees Cook , "Matthew Wilcox (Oracle)" , Ira Weiny , linux-kernel@vger.kernel.org Cc: kbuild-all@lists.01.org, Linux Memory Management List , David Sterba Subject: Re: [PATCH] highmem: Make __kunmap_{local,atomic}() take "const void *" Message-ID: <202206160154.0Asirpka-lkp@intel.com> References: <20220614142531.16478-1-fmdefrancesco@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220614142531.16478-1-fmdefrancesco@gmail.com> ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Zht8XpFh; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf14.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.126) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1655314411; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=oCgJCHd20MmCjHAmA7oSx+XIAVyQd4pZzz4O9YBQeKs=; b=rhDFOhj3iuAdy4V5NtHNOR/aPVA7crh5DeELs03FXciN4wBt+8csQxwwmA8OF7rSPdNWuh C07pYmJPORhRlzSlyfaEaEn4QRkdug6cBDHau3Ftwtf8CUXy3AgGwajfHsQc4BVOCQ3sOB 0rnea2MrEXBT1ZfM0Vr7v4P7FuutDU4= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1655314411; a=rsa-sha256; cv=none; b=qHx3jKS6afi5YbhLvYAfJ9DM//MOYxx7Cz713mreX3Cnp2KCy0834rergTl3D8FVGEyoho Fs1W/9u+PgXN8IC0uJVJq+3YW7OLo9K3Hva0XqsoYGYX2AFY26aVLL6G3TMSBn6W/QcJCi +emU7i1pVZmbds4Yo0PXLcWZWEbkvFI= X-Stat-Signature: xqwy6s38idnzo3gktwdn55tnwtmgjzy8 X-Rspamd-Queue-Id: 93DD9100004 X-Rspam-User: Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Zht8XpFh; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf14.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.126) smtp.mailfrom=lkp@intel.com X-Rspamd-Server: rspam10 X-HE-Tag: 1655314410-624786 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi "Fabio, Thank you for the patch! Yet something to improve: [auto build test ERROR on akpm-mm/mm-everything] [also build test ERROR on linus/master v5.19-rc2 next-20220615] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/intel-lab-lkp/linux/commits/Fabio-M-De-Francesco/highmem-Make-__kunmap_-local-atomic-take-const-void/20220614-222749 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything config: parisc-allyesconfig (https://download.01.org/0day-ci/archive/20220616/202206160154.0Asirpka-lkp@intel.com/config) compiler: hppa-linux-gcc (GCC) 11.3.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/intel-lab-lkp/linux/commit/558ba1aeb12cc7940165f07160e51afb0bc1a64b git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Fabio-M-De-Francesco/highmem-Make-__kunmap_-local-atomic-take-const-void/20220614-222749 git checkout 558ba1aeb12cc7940165f07160e51afb0bc1a64b # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=parisc SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from include/linux/highmem.h:13, from include/linux/bvec.h:10, from include/linux/skbuff.h:17, from drivers/net/wwan/t7xx/t7xx_hif_cldma.h:25, from drivers/net/wwan/t7xx/t7xx_modem_ops.h:25, from drivers/net/wwan/t7xx/t7xx_pci.c:39: include/linux/highmem-internal.h: In function '__kunmap_local': >> include/linux/highmem-internal.h:203:31: error: passing argument 1 of 'kunmap_flush_on_unmap' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 203 | kunmap_flush_on_unmap(addr); | ^~~~ In file included from include/linux/cacheflush.h:5, from include/linux/highmem.h:8, from include/linux/bvec.h:10, from include/linux/skbuff.h:17, from drivers/net/wwan/t7xx/t7xx_hif_cldma.h:25, from drivers/net/wwan/t7xx/t7xx_modem_ops.h:25, from drivers/net/wwan/t7xx/t7xx_pci.c:39: arch/parisc/include/asm/cacheflush.h:78:48: note: expected 'void *' but argument is of type 'const void *' 78 | static inline void kunmap_flush_on_unmap(void *addr) | ~~~~~~^~~~ In file included from include/linux/highmem.h:13, from include/linux/bvec.h:10, from include/linux/skbuff.h:17, from drivers/net/wwan/t7xx/t7xx_hif_cldma.h:25, from drivers/net/wwan/t7xx/t7xx_modem_ops.h:25, from drivers/net/wwan/t7xx/t7xx_pci.c:39: include/linux/highmem-internal.h: In function '__kunmap_atomic': include/linux/highmem-internal.h:230:31: error: passing argument 1 of 'kunmap_flush_on_unmap' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 230 | kunmap_flush_on_unmap(addr); | ^~~~ In file included from include/linux/cacheflush.h:5, from include/linux/highmem.h:8, from include/linux/bvec.h:10, from include/linux/skbuff.h:17, from drivers/net/wwan/t7xx/t7xx_hif_cldma.h:25, from drivers/net/wwan/t7xx/t7xx_modem_ops.h:25, from drivers/net/wwan/t7xx/t7xx_pci.c:39: arch/parisc/include/asm/cacheflush.h:78:48: note: expected 'void *' but argument is of type 'const void *' 78 | static inline void kunmap_flush_on_unmap(void *addr) | ~~~~~~^~~~ cc1: all warnings being treated as errors vim +203 include/linux/highmem-internal.h f3ba3c710ac5a3 Thomas Gleixner 2020-11-18 199 558ba1aeb12cc7 Fabio M. De Francesco 2022-06-14 200 static inline void __kunmap_local(const void *addr) f3ba3c710ac5a3 Thomas Gleixner 2020-11-18 201 { f3ba3c710ac5a3 Thomas Gleixner 2020-11-18 202 #ifdef ARCH_HAS_FLUSH_ON_KUNMAP f3ba3c710ac5a3 Thomas Gleixner 2020-11-18 @203 kunmap_flush_on_unmap(addr); f3ba3c710ac5a3 Thomas Gleixner 2020-11-18 204 #endif f3ba3c710ac5a3 Thomas Gleixner 2020-11-18 205 } f3ba3c710ac5a3 Thomas Gleixner 2020-11-18 206 -- 0-DAY CI Kernel Test Service https://01.org/lkp