Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7936469imu; Fri, 28 Dec 2018 07:36:22 -0800 (PST) X-Google-Smtp-Source: ALg8bN4tZsZpzTQqZD5PnNtKAPxRv5SChwdMEpplpBV9YBhlymE+80e9v/F0hrsQSsMrSdvTnLVS X-Received: by 2002:a63:c848:: with SMTP id l8mr26526459pgi.78.1546011382910; Fri, 28 Dec 2018 07:36:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546011382; cv=none; d=google.com; s=arc-20160816; b=J7wejvIQg7I+e2p770B3VqeVi7m/7rlWN1q96Ir6iHzPw18X1kxc4UXDD57q9+aY4p 68EXkMOHEn4Ty1TUqc7UDFfnt903QO1tOsKzON4yNc08ZSPl0fkLG+AiT5Jo6/VCFc98 CQjoQUsDKo0LW4UnnJUgbDB0/2GcSrLCXLSvJ9VELEEs9wA3rAujKs3jMuVJyFBuSGqP sB+MJViA3FYw3gDTI/cljAd69r0ihqfMfKJKMZUzZnbzzNLxqeO6gQPChtCiwgyjj/l6 9VOItUKj79o7lLEuTNLCEZpuTvtuPbc5dWZ6nTjM2uZCh/BpCsH4Ypr9uDOS3hP71Wzh evTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=PzP3YVXpH12ctcqTNMx5OgQ5rU7wAoJDZQHjtK8sx/c=; b=SlO5Dn+O4yRqZ3VJhOMfPE+zK7dh3zimgSL3sS/kXnt2wvNFx0b9LB0NJdwlwmcmmk DlByLKDreO3tICqB7WnU5ekklrQ/XsGDLN3WR66dRIq/sBavs/X3ddsJM+DQWkKbZyv2 mClEl6hzM09NCTUcZs9dwEop1sypidDUEQ+yuQ67aO6s3zR/a16wKQFHX3xJHZEs0pOW c40aYDmhzTRYJiTmBuvUsJbWZkoH5U/KJBynLyeBLvjgBeuQNPneXvr8nj7CarR/Rlsd TzNpMcQKNYSwr7XJDIaixOCEyAOLwl0JyYJqXpi5/4E9GhJ360CNbTe3B5S6U38d0qrk 68AQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=s7zKeWWV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 27si37453976pgp.135.2018.12.28.07.36.07; Fri, 28 Dec 2018 07:36:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=s7zKeWWV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731215AbeL1EWp (ORCPT + 99 others); Thu, 27 Dec 2018 23:22:45 -0500 Received: from mail.kernel.org ([198.145.29.99]:50948 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726832AbeL1EWo (ORCPT ); Thu, 27 Dec 2018 23:22:44 -0500 Received: from mail-ot1-f52.google.com (mail-ot1-f52.google.com [209.85.210.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D3597214C6 for ; Fri, 28 Dec 2018 04:22:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1545970964; bh=9P9bj2GpqfXMQrbDK+jNI2hArfw/ksMRCA/lNIqFCsg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=s7zKeWWVQBUNxCPdsCGr253RzL8R895QY/ylptPOc5VxpWAHhV+M4mlPMwy4ZZbP2 wMBA427bRslOdvcfPLi2WHIQ3ZtUge86gfhZlqHNmFpqqIWhX0cOjo1I2kYdFZ6j2F dOZSsVCbFfvMOUHw/0mD5gerJhOutv/C4ORjW4hM= Received: by mail-ot1-f52.google.com with SMTP id i20so17855973otl.0 for ; Thu, 27 Dec 2018 20:22:43 -0800 (PST) X-Gm-Message-State: AJcUukcSO7tPr18udAZYGw4aFYeXJi/diP/eYAQB9qpwoyG6WDioEvz4 B3f10mXDl2OZ2qnC4ArwsAAjA4Mui12Wxii3daQ= X-Received: by 2002:a9d:2c5:: with SMTP id 63mr18006286otl.271.1545970963127; Thu, 27 Dec 2018 20:22:43 -0800 (PST) MIME-Version: 1.0 References: <1545929198-15733-1-git-send-email-linux@roeck-us.net> In-Reply-To: <1545929198-15733-1-git-send-email-linux@roeck-us.net> From: Sinan Kaya Date: Fri, 28 Dec 2018 07:22:31 +0300 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] h8300: pci: Remove local declaration of pcibios_penalize_isa_irq To: Guenter Roeck Cc: Yoshinori Sato , uclinux-h8-devel@lists.sourceforge.jp, open list , Bjorn Helgaas Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 27, 2018 at 7:46 PM Guenter Roeck wrote: > > h8300 builds fail with: > > In file included from drivers/of/address.c:11: > include/linux/pci.h:1966:20: error: redefinition of 'pcibios_penalize_isa_irq' > > This is because CONFIG_PCI is not enabled, and pcibios_penalize_isa_irq() > is now declared as inline static function in generic code if this is the > case. Since h8300 does not support PCI to start with, fix the problem by > removing the architecture specific pci.h. > > Fixes: 5d32a66541c46 ("PCI/ACPI: Allow ACPI to be built without CONFIG_PCI set") > Cc: Sinan Kaya > Cc: Bjorn Helgaas > Signed-off-by: Guenter Roeck > --- > arch/h8300/include/asm/Kbuild | 1 + > arch/h8300/include/asm/pci.h | 18 ------------------ > 2 files changed, 1 insertion(+), 18 deletions(-) > delete mode 100644 arch/h8300/include/asm/pci.h > Thanks, makes sense. Reviewed-by : Sinan Kaya > diff --git a/arch/h8300/include/asm/Kbuild b/arch/h8300/include/asm/Kbuild > index a5d0b2991f47..cd400d353d18 100644 > --- a/arch/h8300/include/asm/Kbuild > +++ b/arch/h8300/include/asm/Kbuild > @@ -33,6 +33,7 @@ generic-y += mmu.h > generic-y += mmu_context.h > generic-y += module.h > generic-y += parport.h > +generic-y += pci.h > generic-y += percpu.h > generic-y += pgalloc.h > generic-y += preempt.h > diff --git a/arch/h8300/include/asm/pci.h b/arch/h8300/include/asm/pci.h > deleted file mode 100644 > index d4d345a52092..000000000000 > --- a/arch/h8300/include/asm/pci.h > +++ /dev/null > @@ -1,18 +0,0 @@ > -/* SPDX-License-Identifier: GPL-2.0 */ > -#ifndef _ASM_H8300_PCI_H > -#define _ASM_H8300_PCI_H > - > -/* > - * asm-h8300/pci.h - H8/300 specific PCI declarations. > - * > - * Yoshinori Sato > - */ > - > -#define pcibios_assign_all_busses() 0 > - > -static inline void pcibios_penalize_isa_irq(int irq, int active) > -{ > - /* We don't do dynamic PCI IRQ allocation */ > -} > - > -#endif /* _ASM_H8300_PCI_H */ > -- > 2.7.4 >