Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp766296rwl; Fri, 24 Mar 2023 01:27:16 -0700 (PDT) X-Google-Smtp-Source: AKy350bp0WrpXp2YXER77mioSnBfFiuZ1bNrH8fcs0RK2t9Zaiv5oRgBkjGmgDqMfQ8Ae1DO5c2F X-Received: by 2002:a17:903:110e:b0:19e:9807:de48 with SMTP id n14-20020a170903110e00b0019e9807de48mr2473850plh.23.1679646435798; Fri, 24 Mar 2023 01:27:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679646435; cv=none; d=google.com; s=arc-20160816; b=pbH+j5ckqYozPzYa7jZGxasfeode3zNYQl8uwPbzC/eWzNGL6s/TEKtW6QjXyU5psu Tt2/gT5VYUvP3mnKydXN1ToXOQ7SRFlMdzyPJfBZVKHq/izk/M3oXlWf3Vby0ItbbUVI zQjt9YH7T4PEY3UzDvRWfrRbbYqGk3eYSKY6fW6o5ztLG0msYxbVZ+pCS0B1ppizOqlN +ORqutXGLna5yZhnInrHt1aeOgUZwxMzYtYq0XXeUd9BwTsHjmfGwYT57zGd0RGphthl G3QMRfYSa2VJCbGSVmGPUcGcU1+fntDCW+bdRaHlnBOzyxEe0/VfH3BQ4Ch+RHWjmM2U w2IA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=bHoLzUBlkEcddFoQozXokmonCXc6CNfuMf63rgJWghI=; b=XiclHqiLenACExndnG2crF657DxKzeh/MmJD/YbB68HblDY1s3BzNwPgsNv3TFBLUZ z7KMeNg91ppNthbowQMjyI6ACaMsvrzFHJkqK3esNcqdffjYcp5Wo41KCUeZpqenLXzA HYEfUvMbUVWE6fVNv5jOBo1Viq95r7hDjKMD7va764G/tcY4j3pCWT4s71bQugceN+4R yKkqrdkRNB3oy3NDjv9TsTDm/W4yQc6FCEP9d20lz2a6CRhnIhhdotTDv78yCtgwkKN9 sAb+4My7PFqhBpDV4e++iRMS4CnbLlIlYcxigni/00k6hxJndD5tmjmZ8rwIEjnd3kVU 9RMA== ARC-Authentication-Results: i=1; mx.google.com; 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 d2-20020a170902b70200b0019f28eff6f9si20029064pls.502.2023.03.24.01.27.04; Fri, 24 Mar 2023 01:27:15 -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; 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 S229752AbjCXI0j convert rfc822-to-8bit (ORCPT + 99 others); Fri, 24 Mar 2023 04:26:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231127AbjCXI0h (ORCPT ); Fri, 24 Mar 2023 04:26:37 -0400 Received: from mail-yw1-f169.google.com (mail-yw1-f169.google.com [209.85.128.169]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8EB2252BD for ; Fri, 24 Mar 2023 01:26:36 -0700 (PDT) Received: by mail-yw1-f169.google.com with SMTP id 00721157ae682-5416b0ab0ecso20540137b3.6 for ; Fri, 24 Mar 2023 01:26:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679646396; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=45SbY74W6cAx8TBdsxbYd/fwuLq1btWb/YBacEQlBno=; b=zeqcr3vIyqq/FZ5KfgSRCPaZnGYnLEX+jVBMGhVrQlHTjQy1R8qm3ezKdRMhFV9SLE +1hgLckh7ajS7m7iJwnY74kjaaiLap66+m3dtU2rTLDDwvYWQlgwITX//PQ4deoQ4CkJ Afe23r7JNh2uTz1DT9zBoLBFOO0+oR7Msyc19GIapzDbyYMpKYhdShFEGj/309XNTSDi zxjfH05JNHQwZBaaoaDCVpbgTDg9rEcZGq9AuEHwkHVV9hVhD5Ht2tHLhXanKR1axCLC bi+U3wG2SWKOrhY0J8L52PJCZETvpq5w3YmkWtvzeJPgNBaAdwk6P3V1WQSEvR5j4c1k wKbQ== X-Gm-Message-State: AAQBX9fH73Qbpa0NJlsiHQQrgEYHp92BavlqnZHx8qoq0/hRgkywP3KA am7wIwccX0NkUUJ03t2naXWjlDrrfD+uSg== X-Received: by 2002:a81:b409:0:b0:538:49a4:b166 with SMTP id h9-20020a81b409000000b0053849a4b166mr1546888ywi.11.1679646396006; Fri, 24 Mar 2023 01:26:36 -0700 (PDT) Received: from mail-yb1-f173.google.com (mail-yb1-f173.google.com. [209.85.219.173]) by smtp.gmail.com with ESMTPSA id i21-20020a81be15000000b00545a0818479sm294448ywn.9.2023.03.24.01.26.35 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 24 Mar 2023 01:26:35 -0700 (PDT) Received: by mail-yb1-f173.google.com with SMTP id p15so1228308ybl.9 for ; Fri, 24 Mar 2023 01:26:35 -0700 (PDT) X-Received: by 2002:a05:6902:10c2:b0:b6e:b924:b96f with SMTP id w2-20020a05690210c200b00b6eb924b96fmr1607389ybu.3.1679646395243; Fri, 24 Mar 2023 01:26:35 -0700 (PDT) MIME-Version: 1.0 References: <5b7c473247d66776343d82a55b9815195b1b11fb.1679551394.git.fthain@linux-m68k.org> In-Reply-To: From: Geert Uytterhoeven Date: Fri, 24 Mar 2023 09:26:23 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] nubus: Don't list card resources by default To: Finn Thain Cc: Andreas Schwab , linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=0.5 required=5.0 tests=FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS autolearn=no 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 Hi Finn, On Fri, Mar 24, 2023 at 1:05 AM Finn Thain wrote: > On Thu, 23 Mar 2023, Geert Uytterhoeven wrote: > > On Thu, Mar 23, 2023 at 9:39 AM Andreas Schwab wrote: > > > On Mär 23 2023, Finn Thain wrote: > > > > Checkpatch says "externs should be avoided in .c files" and if this one > > > > appeared twice I would agree. But as it only appears once, I can't see > > > > any advantage to putting it in a new .h file instead of the .c file... > > > > > > Anything wrong with declaring it in ? > > > > It's not meant for NuBus device drivers (at least in its current form). > > So a drivers/nubus/nubus.h would be the most logical place. > > I think Andreas is right inasmuchas the existing prototypes shared between > drivers/nubus/nubus.c and drivers/nubus/proc.c are found there, and this > extern is another one of those. > > But I take Geert's point that much of include/linux/nubus.h could be moved > to drivers/nubus/something.h. But is there anything to be gained from > splitting it up that way? Splitting it would prevent NuBus device drivers from messing with internal NuBus variables they're not intended to access. But I agree that's not a big concern... Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds