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 0A612C433EF for ; Sat, 2 Jul 2022 20:59:17 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 440A06B0072; Sat, 2 Jul 2022 16:59:17 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3EFFE6B0073; Sat, 2 Jul 2022 16:59:17 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2DEAB6B0074; Sat, 2 Jul 2022 16:59:17 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 1EFC26B0072 for ; Sat, 2 Jul 2022 16:59:17 -0400 (EDT) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id E5E2735C0F for ; Sat, 2 Jul 2022 20:59:16 +0000 (UTC) X-FDA: 79643375112.19.C79F28D Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf10.hostedemail.com (Postfix) with ESMTP id 7F31AC0067 for ; Sat, 2 Jul 2022 20:59:16 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 9CB8AB803F4; Sat, 2 Jul 2022 20:59:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4185CC341C8; Sat, 2 Jul 2022 20:59:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1656795553; bh=7WGeJy6P8hNsZjLQ0kAqTrYs7c+jRQ5n2TEJ2FukCio=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=SwALkcSVRogT2MDg7Qfblvjb0Q2wiZkPkdgrqHt7fyG2N9j9FV0QhJe4PhndLEDpk 2aHzdqOBhWTts7CzCCBPyaDvyL2773ybI+WmH8z0BcnESt5DlqVUIPRXgjZHKKX+io iS6bgbWHIta/shsb1vxWrq+Zn3wKSPosLMtQTkCU= Date: Sat, 2 Jul 2022 13:59:12 -0700 From: Andrew Morton To: kernel test robot Cc: Anshuman Khandual , kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Linux Memory Management List Subject: Re: [akpm-mm:mm-unstable 321/323] include/linux/pgtable.h:1713:10: error: redefinition of 'vm_get_page_prot' Message-Id: <20220702135912.f02c51dcdfa59f4e85860ccb@linux-foundation.org> In-Reply-To: <202207030224.tqi3q1Wh-lkp@intel.com> References: <202207030224.tqi3q1Wh-lkp@intel.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1656795556; a=rsa-sha256; cv=none; b=dTAXOcJRP23avebUBGKEXPEPx3160lL6JWVfU1G8fAin2HmnU6+XdREop/Br/S7iq6xWAQ JhHrlI5afzJ4Ztf7J8RpjzE+zVMswyG4UZLNMlaHn8DCf5R2dRQAUkcOPbFhXCuYsEGL+U SXN+yeefqmhoWeoo4mT7Z5nQs2LcJ04= ARC-Authentication-Results: i=1; imf10.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=SwALkcSV; spf=pass (imf10.hostedemail.com: domain of akpm@linux-foundation.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1656795556; 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:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=dfGWRcdcka+CRhOdTkGiKm0RgS5JHiveGc1GTtVP4Fo=; b=ikr2QdL7kOhkUvrRWuTo9og2iHpZVqC/dbGzy9H+piqD/fXJwrDlwXhLQ8B6T81qSJW6sV SAHoIqZBi4XBc3D1upqElzr/kgh6/vHFjHg3oZ8mgX0VKuydMln9e/5XszlHbdco8xokPH YHomfiWWJYMIOJ/jksL2bBgKXkLFKjk= X-Rspam-User: X-Rspamd-Server: rspam04 Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=SwALkcSV; spf=pass (imf10.hostedemail.com: domain of akpm@linux-foundation.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org; dmarc=none X-Stat-Signature: susdkij551zi4sqdz5un7f1yocemop3c X-Rspamd-Queue-Id: 7F31AC0067 X-HE-Tag: 1656795556-874611 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 Sun, 3 Jul 2022 02:16:09 +0800 kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-unstable > head: 706370e5c2ea7bb4544eee6e1172c4d68117a526 > commit: 5b0de55b24615b5f5f600e2a61c297a0432a5e82 [321/323] sh/mm: enable ARCH_HAS_VM_GET_PAGE_PROT > config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20220703/202207030224.tqi3q1Wh-lkp@intel.com/config) > compiler: sh4-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/akpm/mm.git/commit/?id=5b0de55b24615b5f5f600e2a61c297a0432a5e82 > git remote add akpm-mm https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git > git fetch --no-tags akpm-mm mm-unstable > git checkout 5b0de55b24615b5f5f600e2a61c297a0432a5e82 > # 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=sh 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 arch/sh/include/asm/io.h:21, > from include/linux/io.h:13, > from arch/sh/mm/mmap.c:10: > >> include/linux/pgtable.h:1713:10: error: redefinition of 'vm_get_page_prot' > 1713 | pgprot_t vm_get_page_prot(unsigned long vm_flags) \ > | ^~~~~~~~~~~~~~~~ > arch/sh/mm/mmap.c:184:1: note: in expansion of macro 'DECLARE_VM_GET_PAGE_PROT' > 184 | DECLARE_VM_GET_PAGE_PROT > | ^~~~~~~~~~~~~~~~~~~~~~~~ > In file included from arch/sh/mm/mmap.c:11: > include/linux/mm.h:2864:24: note: previous definition of 'vm_get_page_prot' with type 'pgprot_t(long unsigned int)' > 2864 | static inline pgprot_t vm_get_page_prot(unsigned long vm_flags) > | ^~~~~~~~~~~~~~~~ > um, OK, CONFIG_MMU=n. I'll let Anshuman ponder this one. btw, that macro should be called DEFINE_VM_GET_PAGE_PROT - it provides a definition, not a declaration.