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 E2802C433EF for ; Thu, 16 Jun 2022 13:17:20 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 64B306B0071; Thu, 16 Jun 2022 09:17:20 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5F9FC6B0072; Thu, 16 Jun 2022 09:17:20 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4C49E6B0074; Thu, 16 Jun 2022 09:17:20 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 3C0756B0071 for ; Thu, 16 Jun 2022 09:17:20 -0400 (EDT) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 12E4634929 for ; Thu, 16 Jun 2022 13:17:20 +0000 (UTC) X-FDA: 79584150240.25.7760B66 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by imf02.hostedemail.com (Postfix) with ESMTP id 655E3800A3 for ; Thu, 16 Jun 2022 13:17:19 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id B2D8C1F7AB; Thu, 16 Jun 2022 13:17:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1655385437; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=fZYT+zsLd9BqjUwbzjAd3nhBa93+x8tB+N9cwJsPSQc=; b=lUlB8ACUjMCTctoH6fQBfKCr14EoCeI/EaOdEoYJ4e36xpxw4+gtffU+lYWEsobP/gg9uq oV8ieuY571eOJxcZCwOU2nBNTjzt5M0KfeHknfcaLpH6ENgdwIZnv0NJxARZI8f9/wU8+g Jd1DD9b4Sdd10f3Bbdxu64QL7r46xrc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1655385437; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=fZYT+zsLd9BqjUwbzjAd3nhBa93+x8tB+N9cwJsPSQc=; b=JsmSnWhO5BL81Ntsf98Ek7DM2shVm1LVRxka1QSkx3UCB4oCoOxmUzQIM3C2iCVWJHVncn uFOcRQgEAqzvWnAQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 6E7631344E; Thu, 16 Jun 2022 13:17:17 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id WaANGl0tq2IqFgAAMHmgww (envelope-from ); Thu, 16 Jun 2022 13:17:17 +0000 Date: Thu, 16 Jun 2022 15:12:43 +0200 From: David Sterba To: kernel test robot Cc: "Fabio M. De Francesco" , kbuild-all@lists.01.org, Linux Memory Management List , David Sterba Subject: Re: [linux-next:master 3345/4062] include/linux/highmem-internal.h:203:31: error: passing argument 1 of 'kunmap_flush_on_unmap' discards 'const' qualifier from pointer target type Message-ID: <20220616131243.GA20633@suse.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, kernel test robot , "Fabio M. De Francesco" , kbuild-all@lists.01.org, Linux Memory Management List , David Sterba References: <202206161652.aEEuklTk-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202206161652.aEEuklTk-lkp@intel.com> User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1655385439; h=from:from:sender:reply-to: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=fZYT+zsLd9BqjUwbzjAd3nhBa93+x8tB+N9cwJsPSQc=; b=IO4prE9uHKfVvsDiBusQcP8gdgwyCkquAv8vkM1AS3VL7Cg7Og6gltKc7M6vUykQu1Vx1w lmGy7MHM/rBxxj+yXLb/pFSBNT+2Rfh6J3yuEj8MskcNumcWgpts1REP7ZU1hr5UyxmpnV epOdcwfVZWs5nHmj2ryS4vNxl4qS5pg= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=lUlB8ACU; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=JsmSnWhO; spf=pass (imf02.hostedemail.com: domain of dsterba@suse.cz designates 195.135.220.29 as permitted sender) smtp.mailfrom=dsterba@suse.cz; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1655385439; a=rsa-sha256; cv=none; b=rZ5mXgU5aXxTBTqPoBRhoqzLGG/+Q1xZvm3Sf7bliA+6iOPqrHUhrVgf78sG2KoQaV0OEv xtCSl6mxHp2YWA9fI3RI2t1mxbPAGMpMfp+IChyXCXPPs69gfyNL54ALs71oN30/uLAyZe n/wBWY+aIsqSU2mJ3T8Z+g8KnxicX0s= X-Stat-Signature: sxnfing6qyjyymugrq9y9i8yeb6gwohf X-Rspamd-Queue-Id: 655E3800A3 X-Rspamd-Server: rspam11 X-Rspam-User: Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=lUlB8ACU; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=JsmSnWhO; spf=pass (imf02.hostedemail.com: domain of dsterba@suse.cz designates 195.135.220.29 as permitted sender) smtp.mailfrom=dsterba@suse.cz; dmarc=none X-HE-Tag: 1655385439-411280 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: On Thu, Jun 16, 2022 at 04:58:08PM +0800, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > head: c6d7e3b385f19869ab96e9404c92ff1abc34f2c8 > commit: 20adc3e8f39ad4ce68795b6d3f9847f45ccd931a [3345/4062] highmem: Make kunmap_{local,atomic}() take pointers to const void > config: parisc-randconfig-r012-20220616 (https://download.01.org/0day-ci/archive/20220616/202206161652.aEEuklTk-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://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=20adc3e8f39ad4ce68795b6d3f9847f45ccd931a > git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git > git fetch --no-tags linux-next master > git checkout 20adc3e8f39ad4ce68795b6d3f9847f45ccd931a > # 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 drivers/iio/light/ drivers/net/wwan/t7xx/ > > If you fix the issue, kindly add following tag where applicable > Reported-by: kernel test robot > > All error/warnings (new ones prefixed by >>): > > In file included from include/linux/highmem.h:13, > from include/linux/bvec.h:10, > from include/linux/blk_types.h:10, > from include/linux/writeback.h:13, > from include/linux/memcontrol.h:22, > from include/linux/swap.h:9, > from include/linux/suspend.h:5, > from include/linux/regulator/consumer.h:35, > from include/linux/i2c.h:19, > from drivers/iio/light/adjd_s311.c:15: > include/linux/highmem-internal.h: In function '__kunmap_local': > >> include/linux/highmem-internal.h:203:31: warning: passing argument 1 of 'kunmap_flush_on_unmap' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] > 203 | kunmap_flush_on_unmap(addr); I think you missed adding const to kunmap_flush_on_unmap, in some configs it could be hidden behind an ifdef. The warning is on ARCH=parisc, https://elixir.bootlin.com/linux/latest/source/arch/parisc/include/asm/cacheflush.h#L78 #define ARCH_HAS_FLUSH_ON_KUNMAP static inline void kunmap_flush_on_unmap(void *addr) { flush_kernel_dcache_page_addr(addr); }