Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp1430449rdb; Sun, 10 Sep 2023 04:30:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHcbEb6UYnTEyBaN/JkHfXZ1ZfqBsTaeb467C4sEgrEhhwJ2RYrAE0nqls5ntCNYDsih3Qi X-Received: by 2002:a05:6830:114d:b0:6b9:f1d3:160 with SMTP id x13-20020a056830114d00b006b9f1d30160mr8095154otq.11.1694345437082; Sun, 10 Sep 2023 04:30:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694345437; cv=none; d=google.com; s=arc-20160816; b=gG0ocszsfbnTIynP2ZfRWwvv3VttPUw0RSS1tNWskyWbtgCvi/eX3/oSaJ4m6THZ+Q ABWRinerNNuObmYUG/OXWzvp62iDDg2COgVRZI4cu7XJD8R0LbNVRf+dK+qAGgy420vm GkEGnjp2dmGDPSyI3p9gD49MXprMKbfRrIJD3Q3ZWn12FUOm1zsm5Q4uyJAX9/x6fF4e q7O281K1ZTwyJSX4AH8cA1uLFgmkTfP440NAiOGxvN+f7pC7Wk7uZOXUVkxvrgSzXGCo SRsBVKQT2AHvPk806q05y7QOCbQ9cQrG2DmP84gkluqkjhhXJKjyr23/Wmb7ytjd7tH3 LOUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-id:mime-version:references:message-id :in-reply-to:subject:cc:to:from:date:feedback-id:dkim-signature; bh=AVa2iU7isfYOihwSnrZn9s+Ygc1uEyi3ymZHBdxzyGs=; fh=y+LvMp3QEfxJqeiYXtzSRZYobuZ+LlTDn316AdFc9Ts=; b=GS9wOHlMkwTkCPyERcdzQ6ZEhV/o8tLo7L9HoWer2gkPTq4w0mg7n9xh1mbWJawyeg Q7X3Bm2G/zAyIf5ogU/8vcMZX5jq4tYnNSma819k9U3cfQKtFBZOSh1EjDPMWwPqvazj glEsCJ+ktkGKqcwSRbIU4OWOzgaCpg9/ZhMLUk/aECbaLNP3nOPnswL3G6Dg1Gof3euC xq4jfJDplnAxZnJlv/nK8h6RN7/rrCE3Du11r014ah3jDaXPomdL+2itIUZhIls2icSg LU1bva9mJT3AQQ7xXhfuGVUhWLR8tQiV3K1MXREi2jtVkueI7Fqj5VZ8EkiZvtgj/ZPi Vkfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (expired) header.i=@messagingengine.com header.s=fm1 header.b=CLR3jhl3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f21-20020a056a00239500b0068e446dd4e7si4727479pfc.0.2023.09.10.04.30.24; Sun, 10 Sep 2023 04:30:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=neutral (expired) header.i=@messagingengine.com header.s=fm1 header.b=CLR3jhl3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344527AbjIHW7H (ORCPT + 99 others); Fri, 8 Sep 2023 18:59:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230299AbjIHW7H (ORCPT ); Fri, 8 Sep 2023 18:59:07 -0400 Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 320AF1FEB for ; Fri, 8 Sep 2023 15:59:03 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id BCCB2320095B; Fri, 8 Sep 2023 18:59:01 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 08 Sep 2023 18:59:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-id:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1694213941; x= 1694300341; bh=AVa2iU7isfYOihwSnrZn9s+Ygc1uEyi3ymZHBdxzyGs=; b=C LR3jhl3GzQRfozzrZ8d7zOzR9BW2W0I+wU7sLmv3nRQqYXtSyVdvn9HnooWlXbT1 5S6eWZeFZpat6Zifrv79VaoSUzs7PsDxjQ3SDljTj+jvGU3Y3hvdqKB3CkRxEwo4 SyMRetaxzAMjN5942ljfXUHe3Mvz8gNhFU4iYsCgBbLgOUeWHyDqjwFvnW4Z5ZlV 6eAnAU3Wn+v3XWStqw5wIT8ehGXrDPr2bTcfytet8L/ykxzqRsgWcUaKH5bUe3zG 8a+tTxR6gIc3ZigkMTyyp+fVYMcEFEQydVXGnEXOvlzaAnebzN5mt0mrnWPdKmHh djrlcSUrJLBUYXuGFj19Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudehkedgudejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevufgjkfhfgggtsehmtderredttdejnecuhfhrohhmpefhihhnnhcu vfhhrghinhcuoehfthhhrghinheslhhinhhugidqmheikehkrdhorhhgqeenucggtffrrg htthgvrhhnpeelfeeklefggfetkedukeevfffgvdeuheetffekledtfeejteelieejteeh geelieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hfthhhrghinheslhhinhhugidqmheikehkrdhorhhg X-ME-Proxy: Feedback-ID: i58a146ae:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 8 Sep 2023 18:58:58 -0400 (EDT) Date: Sat, 9 Sep 2023 08:59:11 +1000 (AEST) From: Finn Thain To: Geert Uytterhoeven cc: linux-m68k@lists.linux-m68k.org, Arnd Bergmann , Michael Schmitz , Philip Blundell , Greg Ungerer , Joshua Thompson , Sam Creasey , Laurent Vivier , linux-kernel@vger.kernel.org Subject: Re: [PATCH 32/52] m68k: mac: Add and use "mac.h" In-Reply-To: Message-ID: <4a126e21-6c36-024b-9ab1-b4798ef274d4@linux-m68k.org> References: <1c7894fe-4cf4-1ad9-5ed2-aaab4351ff4c@linux-m68k.org> MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="-1463811774-325678859-1694213835=:13296" Content-ID: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---1463811774-325678859-1694213835=:13296 Content-Type: text/plain; CHARSET=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Content-ID: <0046fe36-494a-d0fa-fe49-88f0be5cfc9a@nippy.intranet> On Fri, 8 Sep 2023, Geert Uytterhoeven wrote: > On Fri, Sep 8, 2023 at 1:44=E2=80=AFAM Finn Thain = wrote: > > On Thu, 7 Sep 2023, Geert Uytterhoeven wrote: > > > --- /dev/null > > > +++ b/arch/m68k/mac/mac.h > > > @@ -0,0 +1,25 @@ > > > +/* SPDX-License-Identifier: GPL-2.0 */ > > > + > > > +struct rtc_time; > > > + > > > > I don't think we need a new header file. Related function prototypes > > already have homes in existing header files -- > > > > > +/* baboon.c */ > > > +void baboon_init(void); > > > + > > > > this could go into mac_baboon.h > > > > > +/* iop.c */ > > > +void iop_init(void); > > > + > > > > mac_iop.h > > > > > +/* misc.c */ > > > +int mac_hwclk(int op, struct rtc_time *t); > > > + > > > > macintosh.h > > > > > +/* macboing.c */ > > > +void mac_mksound(unsigned int freq, unsigned int length); > > > + > > > > mac_asc.h > > > > > +/* oss.c */ > > > +void oss_init(void); > > > + > > > > mac_oss.h > > > > > +/* psc.c */ > > > +void psc_init(void); > > > + > > > > mac_psc.h > > > > > +/* via.c */ > > > +void via_init(void); > > > +void via_init_clock(void); > > > > mac_via.h >=20 > All mac*.h you suggest live under arch/m68k/include/asm/, and are thus=20 > shared with the whole tree, while only the core code under arch/m68k/=20 > needs these definitions. >=20 I guess #include "../mac/mac.h" is expected but #include "../../m68k/mac/mac.h" is not intended (?) ---1463811774-325678859-1694213835=:13296--