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 34708EB64DA for ; Thu, 20 Jul 2023 13:28:44 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5A57A28010B; Thu, 20 Jul 2023 09:28:43 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5553C28004C; Thu, 20 Jul 2023 09:28:43 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 41D9228010B; Thu, 20 Jul 2023 09:28:43 -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 30F2128004C for ; Thu, 20 Jul 2023 09:28:43 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id A38B1160120 for ; Thu, 20 Jul 2023 13:28:42 +0000 (UTC) X-FDA: 81032070084.05.3C4F4A8 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf14.hostedemail.com (Postfix) with ESMTP id B2014100022 for ; Thu, 20 Jul 2023 13:28:40 +0000 (UTC) Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b="Fmkv/qbw"; spf=pass (imf14.hostedemail.com: domain of bhe@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=bhe@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1689859720; 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=5z4Qas47Z7s2UWYq/kpFv9a6oGOGFMBvrpUYx6S5NNw=; b=4v8z0R3/H/cPuXdvvlj7+CVJnnqtQz6LhsnpaYnTV/+GHJfVK39p4Xv4Vtph9oNkpcuR9e ihsJ2ox4LjNoN+jv9zrBjRPTgkehw32meuTgIpU8JEgAhj3FDS2EtEmi2aB4MzqtHG4NlL IJdrP9RMVRxlTpne0TKzCJ+YielcUO8= ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b="Fmkv/qbw"; spf=pass (imf14.hostedemail.com: domain of bhe@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=bhe@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1689859720; a=rsa-sha256; cv=none; b=j7uUDtloWuOSqi+GdLMGiiy858VlQCq1iDncUs8SVOMflk+FQDzLioCz5COry1rdbZaYPb GcLRMl8S5NyzHro+IKUXZDb987X2PSZE8e1KxU+QGQ8qJWO8kEM3VKfYPo0lALEwhJmLZ3 XJnW7yYe5bdm/kK45N+XRDDKtWMozxs= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1689859720; h=from:from:reply-to:subject:subject: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=5z4Qas47Z7s2UWYq/kpFv9a6oGOGFMBvrpUYx6S5NNw=; b=Fmkv/qbwQXBMwcluasslmd+eqWMM1yFngzXDRctSCZCkMpPogV9EMG8Y/ydKY9tQRDNFCa ZeWSPhYUXNR/7wqZ5/4q/G/fAWaYbF505fsKZvmKPKFpqzI7QZ8njcred2oGkoBe1L8PCs o8yhB5gedmV5e1pWpnaONS6HsxUPZ2c= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-21-eFR8WbqMPMSsCLEUry-UrA-1; Thu, 20 Jul 2023 09:28:36 -0400 X-MC-Unique: eFR8WbqMPMSsCLEUry-UrA-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 620DF8F1849; Thu, 20 Jul 2023 13:28:36 +0000 (UTC) Received: from localhost (unknown [10.72.112.11]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 608B640C206F; Thu, 20 Jul 2023 13:28:33 +0000 (UTC) Date: Thu, 20 Jul 2023 21:28:30 +0800 From: Baoquan He To: kernel test robot , geert@linux-m68k.org, glaubitz@physik.fu-berlin.de, arnd@arndb.de Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Andrew Morton Subject: Re: [linux-next:master 3146/3438] include/asm-generic/io.h:636:15: error: redefinition of 'inb_p' Message-ID: References: <202307202051.KikxDEX1-lkp@intel.com> MIME-Version: 1.0 In-Reply-To: <202307202051.KikxDEX1-lkp@intel.com> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: B2014100022 X-Rspam-User: X-Stat-Signature: 1nrybf3ka33hsonw7mxj9c4qw58bwgzk X-Rspamd-Server: rspam01 X-HE-Tag: 1689859720-603810 X-HE-Meta: U2FsdGVkX18L2c+spSLr/9EFnJfRqIjoEet313ERSiBFTBAf059gqCEf0GTFE8OlIby8PKiE4MkXtnsvHA2AmC8m0RhR4Byn9iuRQILAFRIKx5zPaqUAXF94vqr04nFdDuZqMI/Nach5QylOczP9hDhxdANsHm63eUQw65mB3QJSP4DbIGRWv4QTWMuabjm/oNiI+O6sX2/Lc+RmkaFlbRFOSoeJ4ERlgkSkIVCJIAm6ld6hk/ueyRC8dsB+8nOwkD/vJah/ZGUoPh2Ui7ru5iuo0/V/OQBX92sm6cJJxKgwz3i2mc7KBw3q+Fu25C8huXEN7ZhD4EZvn7wVyp+GJ79AEx/Jvq/XYSkITx5OAsBEP86Qjh0pFSCYprwpD7VTh/FIeB0eT6S63v3Ygdfs7UoznlsBZo5m+uAGceDowJzOkwphCyX5fNoPcOBRkRPD2THWeV0lznx+mjfgm/pZaFIl2LHu4+7JYTllAB+DuJ7iLP32Qmp55CVyiTEYdgB7LJOSyZTzq78+u/2Sv1+Dj8rK+64Rbbkq3kDV7BM/Zg6YbIbv0en4e8PG3ApFu2JxgPvRzg02yzmNbYlbgge1RVtqYEXswBO02K7o0ui3sYly+SBBGB6t/1EkVJ0P4P7dXHzon6zUdEZFyhlll2YNJRxEG/REtZvQXc26qpXcbkvCnQDWeLmJmBKI7qMJApYVJiGd8fWE5Ph2DwWYMCKFCEjoDMnRj+NFPLIDewMIU9qT3tCDN7MDiALHAqkEaUFVfDum53YdN3XRWe2E5gZXJAS4gFtOGm8tro5t9ZMAVgblXbaciM3YpMmYfMbEmcFgenicQ+mDmwvcRawJOxiBUD91mYXJ+erCzu2iH0Rw+nAHWDL0qhnzaYXbpD5Xll+LecLBcPI3DIEJKroF8ot6F2Srnm4aIWOgZAy6hXtFzZ1FnJu7xmDTcdAXAYCNqumYI1Y1HfHB0gWkaJmLzak nDY6T7NA jmvL2QMD1p7kpH8H75sdVKGKC9LeLwZiD42UMq71tDf4BcWaFsSjdGzIQZc3h7rk/tjUuVpHjEoMn4cn+yQ2CuBBAGAJ/eoJirGF0AVdITJ2gxrfW9gOKt6oYa9nUZ4YNtx6o75Ftj90x05yLKL7loSk7WPiNbLtHVDEcx8aoEJzdNfpGDfglkXQTdiVLgkYmyvHe1nhXGdK6eMytIbyzk1/7Y9wEghED+AHLmY4WsLHsaHlGFiiNNNORrcxtMGNWBSw9bDuOgEIbEgDuvcWQQ+qP78U7CzzwMaRmMht6p8wPytHer8Qp9STImrBURFpPGIF3Te/JXbglGpo1SkGLIJpDOPINrhTE+z2PtwJQwwaFvcCw/e4yM0/Qgfa3xIIhcT3nxLgUGon6QyqehCZSWa3zuf8DcOMCc3lTdbU8lg1sr4HicvWAtyzOk4namK//oDHbmb/bABN2cF6p1zkRqoSQgdqCrIEbZ5s1Ntal9Kh4nh4= 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 07/20/23 at 08:44pm, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > head: c58c49dd89324b18a812762a2bfa5a0458e4f252 > commit: fd4a20a6c05c2317cdcfdff4c3ad4a92454ba7a9 [3146/3438] sh: add including > config: sh-randconfig-r083-20230720 (https://download.01.org/0day-ci/archive/20230720/202307202051.KikxDEX1-lkp@intel.com/config) > compiler: sh4-linux-gcc (GCC) 12.3.0 > reproduce: (https://download.01.org/0day-ci/archive/20230720/202307202051.KikxDEX1-lkp@intel.com/reproduce) > > If you fix the issue in a separate patch/commit (i.e. not just a new version of > the same patch/commit), kindly add following tags > | Reported-by: kernel test robot > | Closes: https://lore.kernel.org/oe-kbuild-all/202307202051.KikxDEX1-lkp@intel.com/ > > All errors (new ones prefixed by >>): This has been pointed out by Geert, and Arnd have kindly fixed it with a draft patch in below thread. https://lore.kernel.org/all/09094baf-dadf-4bce-9f63-f2a1f255f9a8@app.fastmail.com/T/#u Hi John, Arnd How should we proceed to fix this? About Arnd's two suggested solution, which one is preferred? Thanks Baoquan > > In file included from arch/sh/include/asm/io.h:314, > from include/linux/io.h:13, > from include/linux/irq.h:20, > from include/asm-generic/hardirq.h:17, > from arch/sh/include/asm/hardirq.h:9, > from include/linux/hardirq.h:11, > from include/linux/interrupt.h:11, > from include/linux/kernel_stat.h:9, > from include/linux/cgroup.h:26, > from include/linux/memcontrol.h:13, > from include/linux/swap.h:9, > from include/linux/suspend.h:5, > from arch/sh/kernel/asm-offsets.c:16: > >> include/asm-generic/io.h:636:15: error: redefinition of 'inb_p' > 636 | #define inb_p inb_p > | ^~~~~ > include/asm-generic/io.h:637:18: note: in expansion of macro 'inb_p' > 637 | static inline u8 inb_p(unsigned long addr) > | ^~~~~ > arch/sh/include/asm/io.h:185:25: note: previous definition of 'inb_p' with type 'u8(long unsigned int)' {aka 'unsigned char(long unsigned int)'} > 185 | static inline type pfx##in##bwlq##p(unsigned long port) \ > | ^~ > arch/sh/include/asm/io.h:199:9: note: in expansion of macro '__BUILD_IOPORT_SINGLE' > 199 | __BUILD_IOPORT_SINGLE(bus, bwlq, type, _p, SLOW_DOWN_IO) > | ^~~~~~~~~~~~~~~~~~~~~ > arch/sh/include/asm/io.h:202:9: note: in expansion of macro '__BUILD_IOPORT_PFX' > 202 | __BUILD_IOPORT_PFX(, bwlq, type) > | ^~~~~~~~~~~~~~~~~~ > arch/sh/include/asm/io.h:204:1: note: in expansion of macro 'BUILDIO_IOPORT' > 204 | BUILDIO_IOPORT(b, u8) > | ^~~~~~~~~~~~~~ > >> include/asm-generic/io.h:644:15: error: redefinition of 'inw_p' > 644 | #define inw_p inw_p > | ^~~~~ > include/asm-generic/io.h:645:19: note: in expansion of macro 'inw_p' > 645 | static inline u16 inw_p(unsigned long addr) > | ^~~~~ > arch/sh/include/asm/io.h:185:25: note: previous definition of 'inw_p' with type 'u16(long unsigned int)' {aka 'short unsigned int(long unsigned int)'} > 185 | static inline type pfx##in##bwlq##p(unsigned long port) \ > | ^~ > arch/sh/include/asm/io.h:199:9: note: in expansion of macro '__BUILD_IOPORT_SINGLE' > 199 | __BUILD_IOPORT_SINGLE(bus, bwlq, type, _p, SLOW_DOWN_IO) > | ^~~~~~~~~~~~~~~~~~~~~ > arch/sh/include/asm/io.h:202:9: note: in expansion of macro '__BUILD_IOPORT_PFX' > 202 | __BUILD_IOPORT_PFX(, bwlq, type) > | ^~~~~~~~~~~~~~~~~~ > arch/sh/include/asm/io.h:205:1: note: in expansion of macro 'BUILDIO_IOPORT' > 205 | BUILDIO_IOPORT(w, u16) > | ^~~~~~~~~~~~~~ > >> include/asm-generic/io.h:652:15: error: redefinition of 'inl_p' > 652 | #define inl_p inl_p > | ^~~~~ > include/asm-generic/io.h:653:19: note: in expansion of macro 'inl_p' > 653 | static inline u32 inl_p(unsigned long addr) > | ^~~~~ > arch/sh/include/asm/io.h:185:25: note: previous definition of 'inl_p' with type 'u32(long unsigned int)' {aka 'unsigned int(long unsigned int)'} > 185 | static inline type pfx##in##bwlq##p(unsigned long port) \ > | ^~ > arch/sh/include/asm/io.h:199:9: note: in expansion of macro '__BUILD_IOPORT_SINGLE' > 199 | __BUILD_IOPORT_SINGLE(bus, bwlq, type, _p, SLOW_DOWN_IO) > | ^~~~~~~~~~~~~~~~~~~~~ > arch/sh/include/asm/io.h:202:9: note: in expansion of macro '__BUILD_IOPORT_PFX' > 202 | __BUILD_IOPORT_PFX(, bwlq, type) > | ^~~~~~~~~~~~~~~~~~ > arch/sh/include/asm/io.h:206:1: note: in expansion of macro 'BUILDIO_IOPORT' > 206 | BUILDIO_IOPORT(l, u32) > | ^~~~~~~~~~~~~~ > >> include/asm-generic/io.h:660:16: error: redefinition of 'outb_p' > 660 | #define outb_p outb_p > | ^~~~~~ > include/asm-generic/io.h:661:20: note: in expansion of macro 'outb_p' > 661 | static inline void outb_p(u8 value, unsigned long addr) > | ^~~~~~ > arch/sh/include/asm/io.h:176:25: note: previous definition of 'outb_p' with type 'void(u8, long unsigned int)' {aka 'void(unsigned char, long unsigned int)'} > 176 | static inline void pfx##out##bwlq##p(type val, unsigned long port) \ > | ^~~ > arch/sh/include/asm/io.h:199:9: note: in expansion of macro '__BUILD_IOPORT_SINGLE' > 199 | __BUILD_IOPORT_SINGLE(bus, bwlq, type, _p, SLOW_DOWN_IO) > | ^~~~~~~~~~~~~~~~~~~~~ > arch/sh/include/asm/io.h:202:9: note: in expansion of macro '__BUILD_IOPORT_PFX' > 202 | __BUILD_IOPORT_PFX(, bwlq, type) > | ^~~~~~~~~~~~~~~~~~ > arch/sh/include/asm/io.h:204:1: note: in expansion of macro 'BUILDIO_IOPORT' > 204 | BUILDIO_IOPORT(b, u8) > | ^~~~~~~~~~~~~~ > >> include/asm-generic/io.h:668:16: error: redefinition of 'outw_p' > 668 | #define outw_p outw_p > | ^~~~~~ > include/asm-generic/io.h:669:20: note: in expansion of macro 'outw_p' > 669 | static inline void outw_p(u16 value, unsigned long addr) > | ^~~~~~ > arch/sh/include/asm/io.h:176:25: note: previous definition of 'outw_p' with type 'void(u16, long unsigned int)' {aka 'void(short unsigned int, long unsigned int)'} > 176 | static inline void pfx##out##bwlq##p(type val, unsigned long port) \ > | ^~~ > arch/sh/include/asm/io.h:199:9: note: in expansion of macro '__BUILD_IOPORT_SINGLE' > 199 | __BUILD_IOPORT_SINGLE(bus, bwlq, type, _p, SLOW_DOWN_IO) > | ^~~~~~~~~~~~~~~~~~~~~ > arch/sh/include/asm/io.h:202:9: note: in expansion of macro '__BUILD_IOPORT_PFX' > 202 | __BUILD_IOPORT_PFX(, bwlq, type) > | ^~~~~~~~~~~~~~~~~~ > arch/sh/include/asm/io.h:205:1: note: in expansion of macro 'BUILDIO_IOPORT' > 205 | BUILDIO_IOPORT(w, u16) > | ^~~~~~~~~~~~~~ > >> include/asm-generic/io.h:676:16: error: redefinition of 'outl_p' > 676 | #define outl_p outl_p > | ^~~~~~ > include/asm-generic/io.h:677:20: note: in expansion of macro 'outl_p' > 677 | static inline void outl_p(u32 value, unsigned long addr) > | ^~~~~~ > arch/sh/include/asm/io.h:176:25: note: previous definition of 'outl_p' with type 'void(u32, long unsigned int)' {aka 'void(unsigned int, long unsigned int)'} > 176 | static inline void pfx##out##bwlq##p(type val, unsigned long port) \ > | ^~~ > arch/sh/include/asm/io.h:199:9: note: in expansion of macro '__BUILD_IOPORT_SINGLE' > 199 | __BUILD_IOPORT_SINGLE(bus, bwlq, type, _p, SLOW_DOWN_IO) > | ^~~~~~~~~~~~~~~~~~~~~ > arch/sh/include/asm/io.h:202:9: note: in expansion of macro '__BUILD_IOPORT_PFX' > 202 | __BUILD_IOPORT_PFX(, bwlq, type) > | ^~~~~~~~~~~~~~~~~~ > arch/sh/include/asm/io.h:206:1: note: in expansion of macro 'BUILDIO_IOPORT' > 206 | BUILDIO_IOPORT(l, u32) > | ^~~~~~~~~~~~~~ > >> include/asm-generic/io.h:689:14: error: redefinition of 'insb' > 689 | #define insb insb > | ^~~~ > include/asm-generic/io.h:690:20: note: in expansion of macro 'insb' > 690 | static inline void insb(unsigned long addr, void *buffer, unsigned int count) > | ^~~~ > arch/sh/include/asm/io.h:222:20: note: previous definition of 'insb' with type 'void(long unsigned int, void *, unsigned int)' > 222 | static inline void ins##bwlq(unsigned long port, void *addr, \ > | ^~~ > arch/sh/include/asm/io.h:233:1: note: in expansion of macro '__BUILD_IOPORT_STRING' > 233 | __BUILD_IOPORT_STRING(b, u8) > | ^~~~~~~~~~~~~~~~~~~~~ > >> include/asm-generic/io.h:697:14: error: redefinition of 'insw' > 697 | #define insw insw > | ^~~~ > include/asm-generic/io.h:698:20: note: in expansion of macro 'insw' > 698 | static inline void insw(unsigned long addr, void *buffer, unsigned int count) > | ^~~~ > arch/sh/include/asm/io.h:222:20: note: previous definition of 'insw' with type 'void(long unsigned int, void *, unsigned int)' > 222 | static inline void ins##bwlq(unsigned long port, void *addr, \ > | ^~~ > arch/sh/include/asm/io.h:234:1: note: in expansion of macro '__BUILD_IOPORT_STRING' > 234 | __BUILD_IOPORT_STRING(w, u16) > | ^~~~~~~~~~~~~~~~~~~~~ > >> include/asm-generic/io.h:705:14: error: redefinition of 'insl' > 705 | #define insl insl > | ^~~~ > include/asm-generic/io.h:706:20: note: in expansion of macro 'insl' > 706 | static inline void insl(unsigned long addr, void *buffer, unsigned int count) > | ^~~~ > arch/sh/include/asm/io.h:222:20: note: previous definition of 'insl' with type 'void(long unsigned int, void *, unsigned int)' > 222 | static inline void ins##bwlq(unsigned long port, void *addr, \ > | ^~~ > arch/sh/include/asm/io.h:235:1: note: in expansion of macro '__BUILD_IOPORT_STRING' > 235 | __BUILD_IOPORT_STRING(l, u32) > | ^~~~~~~~~~~~~~~~~~~~~ > >> include/asm-generic/io.h:713:15: error: redefinition of 'outsb' > 713 | #define outsb outsb > | ^~~~~ > include/asm-generic/io.h:714:20: note: in expansion of macro 'outsb' > 714 | static inline void outsb(unsigned long addr, const void *buffer, > | ^~~~~ > arch/sh/include/asm/io.h:211:20: note: previous definition of 'outsb' with type 'void(long unsigned int, const void *, unsigned int)' > 211 | static inline void outs##bwlq(unsigned long port, const void *addr, \ > | ^~~~ > arch/sh/include/asm/io.h:233:1: note: in expansion of macro '__BUILD_IOPORT_STRING' > 233 | __BUILD_IOPORT_STRING(b, u8) > | ^~~~~~~~~~~~~~~~~~~~~ > >> include/asm-generic/io.h:722:15: error: redefinition of 'outsw' > 722 | #define outsw outsw > | ^~~~~ > include/asm-generic/io.h:723:20: note: in expansion of macro 'outsw' > 723 | static inline void outsw(unsigned long addr, const void *buffer, > | ^~~~~ > arch/sh/include/asm/io.h:211:20: note: previous definition of 'outsw' with type 'void(long unsigned int, const void *, unsigned int)' > 211 | static inline void outs##bwlq(unsigned long port, const void *addr, \ > | ^~~~ > arch/sh/include/asm/io.h:234:1: note: in expansion of macro '__BUILD_IOPORT_STRING' > 234 | __BUILD_IOPORT_STRING(w, u16) > | ^~~~~~~~~~~~~~~~~~~~~ > >> include/asm-generic/io.h:731:15: error: redefinition of 'outsl' > 731 | #define outsl outsl > | ^~~~~ > include/asm-generic/io.h:732:20: note: in expansion of macro 'outsl' > 732 | static inline void outsl(unsigned long addr, const void *buffer, > | ^~~~~ > arch/sh/include/asm/io.h:211:20: note: previous definition of 'outsl' with type 'void(long unsigned int, const void *, unsigned int)' > 211 | static inline void outs##bwlq(unsigned long port, const void *addr, \ > | ^~~~ > arch/sh/include/asm/io.h:235:1: note: in expansion of macro '__BUILD_IOPORT_STRING' > 235 | __BUILD_IOPORT_STRING(l, u32) > | ^~~~~~~~~~~~~~~~~~~~~ > include/asm-generic/io.h:1034:17: error: redefinition of 'ioremap' > 1034 | #define ioremap ioremap > | ^~~~~~~ > include/asm-generic/io.h:1035:29: note: in expansion of macro 'ioremap' > 1035 | static inline void __iomem *ioremap(phys_addr_t offset, size_t size) > | ^~~~~~~ > arch/sh/include/asm/io.h:297:29: note: previous definition of 'ioremap' with type 'void *(phys_addr_t, size_t)' {aka 'void *(unsigned int, unsigned int)'} > 297 | static inline void __iomem *ioremap(phys_addr_t offset, size_t size) > | ^~~~~~~ > include/asm-generic/io.h:1042:17: error: redefinition of 'iounmap' > 1042 | #define iounmap iounmap > | ^~~~~~~ > include/asm-generic/io.h:1043:20: note: in expansion of macro 'iounmap' > 1043 | static inline void iounmap(volatile void __iomem *addr) > | ^~~~~~~ > arch/sh/include/asm/io.h:302:20: note: previous definition of 'iounmap' with type 'void(volatile void *)' > 302 | static inline void iounmap(volatile void __iomem *addr) { } > | ^~~~~~~ > >> include/asm-generic/io.h:1137:20: error: static declaration of 'ioport_map' follows non-static declaration > 1137 | #define ioport_map ioport_map > | ^~~~~~~~~~ > include/asm-generic/io.h:1138:29: note: in expansion of macro 'ioport_map' > 1138 | static inline void __iomem *ioport_map(unsigned long port, unsigned int nr) > | ^~~~~~~~~~ > In file included from arch/sh/include/asm/io.h:22: > include/asm-generic/iomap.h:92:22: note: previous declaration of 'ioport_map' with type 'void *(long unsigned int, unsigned int)' > 92 | extern void __iomem *ioport_map(unsigned long port, unsigned int nr); > | ^~~~~~~~~~ > >> include/asm-generic/io.h:1147:22: error: static declaration of 'ioport_unmap' follows non-static declaration > 1147 | #define ioport_unmap ioport_unmap > | ^~~~~~~~~~~~ > include/asm-generic/io.h:1148:20: note: in expansion of macro 'ioport_unmap' > 1148 | static inline void ioport_unmap(void __iomem *p) > | ^~~~~~~~~~~~ > include/asm-generic/iomap.h:93:13: note: previous declaration of 'ioport_unmap' with type 'void(void *)' > 93 | extern void ioport_unmap(void __iomem *); > | ^~~~~~~~~~~~ > make[3]: *** [scripts/Makefile.build:116: arch/sh/kernel/asm-offsets.s] Error 1 > make[3]: Target 'prepare' not remade because of errors. > make[2]: *** [Makefile:1275: prepare0] Error 2 > make[2]: Target 'prepare' not remade because of errors. > make[1]: *** [Makefile:234: __sub-make] Error 2 > make[1]: Target 'prepare' not remade because of errors. > make: *** [Makefile:234: __sub-make] Error 2 > make: Target 'prepare' not remade because of errors. > > > vim +/inb_p +636 include/asm-generic/io.h > > f009c89df79abe John Garry 2020-03-28 634 > 9216efafc52ff9 Thierry Reding 2014-10-01 635 #ifndef inb_p > 9216efafc52ff9 Thierry Reding 2014-10-01 @636 #define inb_p inb_p > 9216efafc52ff9 Thierry Reding 2014-10-01 637 static inline u8 inb_p(unsigned long addr) > 9216efafc52ff9 Thierry Reding 2014-10-01 638 { > 9216efafc52ff9 Thierry Reding 2014-10-01 639 return inb(addr); > 9216efafc52ff9 Thierry Reding 2014-10-01 640 } > 9216efafc52ff9 Thierry Reding 2014-10-01 641 #endif > 9216efafc52ff9 Thierry Reding 2014-10-01 642 > 9216efafc52ff9 Thierry Reding 2014-10-01 643 #ifndef inw_p > 9216efafc52ff9 Thierry Reding 2014-10-01 @644 #define inw_p inw_p > 9216efafc52ff9 Thierry Reding 2014-10-01 645 static inline u16 inw_p(unsigned long addr) > 9216efafc52ff9 Thierry Reding 2014-10-01 646 { > 9216efafc52ff9 Thierry Reding 2014-10-01 647 return inw(addr); > 9216efafc52ff9 Thierry Reding 2014-10-01 648 } > 9216efafc52ff9 Thierry Reding 2014-10-01 649 #endif > 9216efafc52ff9 Thierry Reding 2014-10-01 650 > 9216efafc52ff9 Thierry Reding 2014-10-01 651 #ifndef inl_p > 9216efafc52ff9 Thierry Reding 2014-10-01 @652 #define inl_p inl_p > 9216efafc52ff9 Thierry Reding 2014-10-01 653 static inline u32 inl_p(unsigned long addr) > 9216efafc52ff9 Thierry Reding 2014-10-01 654 { > 9216efafc52ff9 Thierry Reding 2014-10-01 655 return inl(addr); > 9216efafc52ff9 Thierry Reding 2014-10-01 656 } > 9216efafc52ff9 Thierry Reding 2014-10-01 657 #endif > 9216efafc52ff9 Thierry Reding 2014-10-01 658 > 9216efafc52ff9 Thierry Reding 2014-10-01 659 #ifndef outb_p > 9216efafc52ff9 Thierry Reding 2014-10-01 @660 #define outb_p outb_p > 9216efafc52ff9 Thierry Reding 2014-10-01 661 static inline void outb_p(u8 value, unsigned long addr) > 9216efafc52ff9 Thierry Reding 2014-10-01 662 { > 9216efafc52ff9 Thierry Reding 2014-10-01 663 outb(value, addr); > 9216efafc52ff9 Thierry Reding 2014-10-01 664 } > 9216efafc52ff9 Thierry Reding 2014-10-01 665 #endif > 9216efafc52ff9 Thierry Reding 2014-10-01 666 > 9216efafc52ff9 Thierry Reding 2014-10-01 667 #ifndef outw_p > 9216efafc52ff9 Thierry Reding 2014-10-01 @668 #define outw_p outw_p > 9216efafc52ff9 Thierry Reding 2014-10-01 669 static inline void outw_p(u16 value, unsigned long addr) > 9216efafc52ff9 Thierry Reding 2014-10-01 670 { > 9216efafc52ff9 Thierry Reding 2014-10-01 671 outw(value, addr); > 9216efafc52ff9 Thierry Reding 2014-10-01 672 } > 9216efafc52ff9 Thierry Reding 2014-10-01 673 #endif > 9216efafc52ff9 Thierry Reding 2014-10-01 674 > 9216efafc52ff9 Thierry Reding 2014-10-01 675 #ifndef outl_p > 9216efafc52ff9 Thierry Reding 2014-10-01 @676 #define outl_p outl_p > 9216efafc52ff9 Thierry Reding 2014-10-01 677 static inline void outl_p(u32 value, unsigned long addr) > 9216efafc52ff9 Thierry Reding 2014-10-01 678 { > 9216efafc52ff9 Thierry Reding 2014-10-01 679 outl(value, addr); > 9216efafc52ff9 Thierry Reding 2014-10-01 680 } > 9216efafc52ff9 Thierry Reding 2014-10-01 681 #endif > 9216efafc52ff9 Thierry Reding 2014-10-01 682 > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 683 /* > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 684 * {in,out}s{b,w,l}{,_p}() are variants of the above that repeatedly access a > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 685 * single I/O port multiple times. > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 686 */ > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 687 > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 688 #ifndef insb > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 @689 #define insb insb > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 690 static inline void insb(unsigned long addr, void *buffer, unsigned int count) > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 691 { > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 692 readsb(PCI_IOBASE + addr, buffer, count); > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 693 } > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 694 #endif > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 695 > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 696 #ifndef insw > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 @697 #define insw insw > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 698 static inline void insw(unsigned long addr, void *buffer, unsigned int count) > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 699 { > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 700 readsw(PCI_IOBASE + addr, buffer, count); > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 701 } > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 702 #endif > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 703 > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 704 #ifndef insl > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 @705 #define insl insl > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 706 static inline void insl(unsigned long addr, void *buffer, unsigned int count) > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 707 { > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 708 readsl(PCI_IOBASE + addr, buffer, count); > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 709 } > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 710 #endif > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 711 > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 712 #ifndef outsb > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 @713 #define outsb outsb > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 714 static inline void outsb(unsigned long addr, const void *buffer, > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 715 unsigned int count) > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 716 { > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 717 writesb(PCI_IOBASE + addr, buffer, count); > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 718 } > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 719 #endif > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 720 > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 721 #ifndef outsw > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 @722 #define outsw outsw > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 723 static inline void outsw(unsigned long addr, const void *buffer, > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 724 unsigned int count) > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 725 { > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 726 writesw(PCI_IOBASE + addr, buffer, count); > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 727 } > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 728 #endif > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 729 > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 730 #ifndef outsl > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 @731 #define outsl outsl > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 732 static inline void outsl(unsigned long addr, const void *buffer, > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 733 unsigned int count) > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 734 { > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 735 writesl(PCI_IOBASE + addr, buffer, count); > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 736 } > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 737 #endif > 9ab3a7a0d2b417 Thierry Reding 2014-07-04 738 > > :::::: The code at line 636 was first introduced by commit > :::::: 9216efafc52ff99e9351ef60de5fcafc2bc8adb6 asm-generic/io.h: Reconcile I/O accessor overrides > > :::::: TO: Thierry Reding > :::::: CC: Thierry Reding > > -- > 0-DAY CI Kernel Test Service > https://github.com/intel/lkp-tests/wiki >