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 8E782C433EF for ; Fri, 22 Apr 2022 09:17:43 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 13A456B0075; Fri, 22 Apr 2022 05:17:43 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0EABD6B0078; Fri, 22 Apr 2022 05:17:43 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EF40B6B007B; Fri, 22 Apr 2022 05:17:42 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.27]) by kanga.kvack.org (Postfix) with ESMTP id DFDD86B0075 for ; Fri, 22 Apr 2022 05:17:42 -0400 (EDT) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id C042724FE2 for ; Fri, 22 Apr 2022 09:17:42 +0000 (UTC) X-FDA: 79383962364.09.6977EC3 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by imf28.hostedemail.com (Postfix) with ESMTP id 598B4C000F for ; Fri, 22 Apr 2022 09:17:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1650619061; x=1682155061; h=date:from:to:cc:subject:message-id:mime-version; bh=GN3dWXlvjTWfn4BEmhYbCG/pWCKMCt822UDQBLQZIz0=; b=EP2mhooiGeQ8qaN7j1fi8AfqTe+lpyrJIyzWGMrn7q1f54RviEwdMlKd QSzkmkJ9lwHIDGfNynM9V8P6Rrttyng04A5wV2DssnUifrbVVKP7FT6kO teqEyJH5ffwfKMhMfYd5Z1TkqJNdUlSxpO7zgkMg2aqB/spw86vyXDbfB szpTL8foPUJE2iN9ElARE11iYH6A75twGXyIvuvwm+Q+zk6GIxlYExh+H zZQyv88udBTzfUVF20UwL69Po7PCyka3YYxRF835EVaRMniB76VvVWqka /CLn87DMqe90zINxZp2K+w2MQ3GETJDG+B9PdOmxQykekaZbE7gmklOSK w==; X-IronPort-AV: E=McAfee;i="6400,9594,10324"; a="264404278" X-IronPort-AV: E=Sophos;i="5.90,281,1643702400"; d="scan'208";a="264404278" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Apr 2022 02:17:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,281,1643702400"; d="scan'208";a="728428320" Received: from lkp-server01.sh.intel.com (HELO 3abc53900bec) ([10.239.97.150]) by orsmga005.jf.intel.com with ESMTP; 22 Apr 2022 02:17:39 -0700 Received: from kbuild by 3abc53900bec with local (Exim 4.95) (envelope-from ) id 1nhpQ2-0009y2-Cw; Fri, 22 Apr 2022 09:17:38 +0000 Date: Fri, 22 Apr 2022 17:17:08 +0800 From: kernel test robot To: Vincent Whitchurch Cc: kbuild-all@lists.01.org, Linux Memory Management List , Miquel Raynal Subject: [linux-next:master 5134/5845] arch/sh/include/asm/io.h:274:33: error: expected expression before 'do' Message-ID: <202204221700.1Sx3Vvzv-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspam-User: X-Rspamd-Queue-Id: 598B4C000F X-Stat-Signature: 31mr4kuq1cuyx1uwkzbgyx1myykrnxwr Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=EP2mhooi; spf=none (imf28.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.65) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Rspamd-Server: rspam01 X-HE-Tag: 1650619058-83750 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: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: e7d6987e09a328d4a949701db40ef63fbb970670 commit: ec8615bcd6f3a02e983bbafb3a4e4d35cd7e8c47 [5134/5845] mtd: phram: Allow cached mappings config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20220422/202204221700.1Sx3Vvzv-lkp@intel.com/config) compiler: sh4-linux-gcc (GCC) 11.2.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=ec8615bcd6f3a02e983bbafb3a4e4d35cd7e8c47 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 ec8615bcd6f3a02e983bbafb3a4e4d35cd7e8c47 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross W=1 O=build_dir ARCH=sh SHELL=/bin/bash drivers/mtd/devices/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from include/linux/io.h:13, from drivers/mtd/devices/phram.c:21: drivers/mtd/devices/phram.c: In function 'register_device': >> arch/sh/include/asm/io.h:274:33: error: expected expression before 'do' 274 | #define iounmap(addr) do { } while (0) | ^~ drivers/mtd/devices/phram.c:150:44: note: in expansion of macro 'iounmap' 150 | cached ? memunmap(new->mtd.priv) : iounmap(new->mtd.priv); | ^~~~~~~ drivers/mtd/devices/phram.c: In function 'phram_remove': >> arch/sh/include/asm/io.h:274:33: error: expected expression before 'do' 274 | #define iounmap(addr) do { } while (0) | ^~ drivers/mtd/devices/phram.c:372:53: note: in expansion of macro 'iounmap' 372 | phram->cached ? memunmap(phram->mtd.priv) : iounmap(phram->mtd.priv); | ^~~~~~~ vim +/do +274 arch/sh/include/asm/io.h d57d64080ddc0f Paul Mundt 2010-01-19 272 13f1fc870dd747 Christoph Hellwig 2020-07-14 273 #else /* CONFIG_MMU */ 13f1fc870dd747 Christoph Hellwig 2020-07-14 @274 #define iounmap(addr) do { } while (0) 13f1fc870dd747 Christoph Hellwig 2020-07-14 275 #define ioremap(offset, size) ((void __iomem *)(unsigned long)(offset)) 13f1fc870dd747 Christoph Hellwig 2020-07-14 276 #endif /* CONFIG_MMU */ d627a2ebd1a303 Paul Mundt 2010-01-28 277 :::::: The code at line 274 was first introduced by commit :::::: 13f1fc870dd747131f21ba6f20dc0d81cc5d4474 sh: move the ioremap implementation out of line :::::: TO: Christoph Hellwig :::::: CC: Rich Felker -- 0-DAY CI Kernel Test Service https://01.org/lkp