Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp727486iog; Wed, 15 Jun 2022 10:56:23 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tac5Cb3c5ibrSJe2bTQXUEmgYEDaXoyHKNhBYAeTfnWYSFp9BzyJ9Blx4p4ra5KBn27Y9z X-Received: by 2002:a17:906:73d2:b0:716:14a4:43d with SMTP id n18-20020a17090673d200b0071614a4043dmr894920ejl.434.1655315782952; Wed, 15 Jun 2022 10:56:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655315782; cv=none; d=google.com; s=arc-20160816; b=JSdTSWJ6mqZcJqIzDjwS/LAqo36UrW2+UQu/qc2O86JlISXBY1VXOARw2iVQGPNlfX IqNP6jQXIEdYbfXmfW74XVbnbjEvOmaTXniLKc4UnJih5QMRbqApJ3VQUhA0OKo7VOZP rerONDmRmonNTEaaU2hTfEM+TKqoHQ21g1FGe97YOoWmMmMR4h3Zowa7QRcdnpWSkAe0 5QLfSLcHsKkQMo9KbLtwIFiv3KOzhxbv98JrxyJnDxBQ/fpv2FufwwApdKDPJyQpLJe9 3myXhzu7guT2UtDSEfnAVFtK3PHRm2+oHqbkakX77O0XiAjkEGKyYbvm0r4mJ6iB3P9k Rtlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=oCgJCHd20MmCjHAmA7oSx+XIAVyQd4pZzz4O9YBQeKs=; b=j0mbhkvuOwHiLLWEUOyi7aByZxANkUU5x2Jp3cKOmOqITw2GwkHstLg7OZAfWPKefd I2SDeGk8p8qITTVMaVI+SrwOXZ1FHRHi9X9a5Kp+vzWLzche7vsCSTNdw+LnWg2wdExZ 8A5+JtoGBhFtMFMbeU8gbm/aBX1yCyNLq6A3NjbMdaY2jzuOG3ixFzpLkGGRBlNe44bj nRNStN4xq5CStLirdJhqEkBN1EjdlEyQfVS/NQ8RggUBNTd1eYLkAnbzIz/PdNy2cE3E PLiwhxcaq4mhjJo1ZRrmjKySt2emDFLBtdtNJwKB2QbkqBFH/4XTAPnMGo8Y3jakUrT0 XwIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ZI4aDJxM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a3-20020a1709063e8300b006ff25a5a0d2si13816766ejj.352.2022.06.15.10.55.57; Wed, 15 Jun 2022 10:56:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ZI4aDJxM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345557AbiFOReC (ORCPT + 99 others); Wed, 15 Jun 2022 13:34:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357877AbiFORdl (ORCPT ); Wed, 15 Jun 2022 13:33:41 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C7814F455 for ; Wed, 15 Jun 2022 10:33:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655314409; x=1686850409; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=+MKeBdQz1ajkRhqL3VBuYBCksZz92U5jphtv50ui+cU=; b=ZI4aDJxM1wubyNnxLla1bpPOLrP2R0nHUIo6EOot/iz/fNPgtVm4WixX 1LLMj9NmhoSCLTNkPITKYeJ5d5H2ofGKHZl+mnKp/DyLcjE1jWMf+lIHq 02txjxqRejW90f1MG98Cq5UAxb/6rG4aW+IPwgqrgo0UDWHfIZpmpZl6L zzvHuAuAmLi7A9RcM4pY9RTzD2otry7+GDfq6n1y4g8Xi6XEmBK/Zi1Bt SyyS1EG+cafmz34evSiXnw4c40q4QKurX1G5YImKX/avXQsDPdIcFZQrL WcrFGyCt/AHAzxhC1gJFPe4Od2EI1rRZSInxhgDJBEVoqC0BVCLhjKgV1 w==; X-IronPort-AV: E=McAfee;i="6400,9594,10379"; a="258902412" X-IronPort-AV: E=Sophos;i="5.91,302,1647327600"; d="scan'208";a="258902412" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jun 2022 10:33:28 -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> X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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