Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2364535pxp; Fri, 18 Mar 2022 09:03:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzaC/x93CzwazMU63tGp3XvcSbf34qKCQIcdAaiH95a3Bvrylob2Bmmd3DAHZELQOtEaUPW X-Received: by 2002:a05:6870:568a:b0:dd:9867:30a4 with SMTP id p10-20020a056870568a00b000dd986730a4mr6504612oao.160.1647619423574; Fri, 18 Mar 2022 09:03:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647619423; cv=none; d=google.com; s=arc-20160816; b=XjWCOcu1pzS9tZSulfYgzUrS4jkEq+W/rCsDZXUz50axmbfteraS/DjX53SZf3WfgT g5hpWVHnnWJQst/iThsS4VWiBQRS5adZJBZvDtLkUWDyfuYM9OCuZTjJHfcwO8yqs0nx ZQ1XNe2aZHdjYzirU8yRSiBPbKK1GuWSzHoG3auJz5DLna2C/M/iTi6Z6HCldeZSluJL NdVU0QapJi7yl4UizkCCZGZR5N1yNUW83PrRbL5lNzaEEZQ/Cs1YxsjU4dpgU4hxIF/d SDeRmU/SJp5hmIEZMP68IjaB3f9XEERd0QLFkdrMfG39SyMBmRy/rnWzxUAKzTvrmrO5 GASQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id; bh=EtzHQMWpkSs6Pokv1hy1jyF3FD377AFStKF2inQ8x94=; b=qS2ZSEQwoXmZVu/9NljINaT3OOES9AJ37qfu9VWFj5JFtJWZKFybGtxshGZ6U7brQG h+GTXiMTorpmxwPX5YMlSF1pAT4aViWPDwctzgXndii1PtXaGp3QYJwT23j665B5nqtR BxXa53grS2ii1jIo/kWAX13IrcsiMIX6Ju01PMrjj4vwfvBvJVjcm5O0U+vbfXMNUOR5 C3BKiRXkEM3KQANglRI7oEUVYWNbXDOy5bE0yQl9GlB+Ja13rsh/cQqVPbncLSyFwHlk P7o6WEQNAFteRWlO2QzJj6qki1WPGRVUfIF32kQF36lOZaT1ULrEN+5rIUDIQtZ4e4hR 43rw== 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 e18-20020a9d0192000000b005b23635860csi3404289ote.257.2022.03.18.09.03.12; Fri, 18 Mar 2022 09:03:43 -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 S234703AbiCRJ4r (ORCPT + 99 others); Fri, 18 Mar 2022 05:56:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230505AbiCRJ4p (ORCPT ); Fri, 18 Mar 2022 05:56:45 -0400 Received: from pegase2.c-s.fr (pegase2.c-s.fr [93.17.235.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B626178686 for ; Fri, 18 Mar 2022 02:55:25 -0700 (PDT) Received: from localhost (mailhub3.si.c-s.fr [172.26.127.67]) by localhost (Postfix) with ESMTP id 4KKfWv0q49z9sT4; Fri, 18 Mar 2022 10:55:23 +0100 (CET) X-Virus-Scanned: amavisd-new at c-s.fr Received: from pegase2.c-s.fr ([172.26.127.65]) by localhost (pegase2.c-s.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ypqx9pvwL4Ck; Fri, 18 Mar 2022 10:55:23 +0100 (CET) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase2.c-s.fr (Postfix) with ESMTP id 4KKfWt6h7pz9sT2; Fri, 18 Mar 2022 10:55:22 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id D35208B78D; Fri, 18 Mar 2022 10:55:22 +0100 (CET) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id iOqzYB9RuqTt; Fri, 18 Mar 2022 10:55:22 +0100 (CET) Received: from [192.168.202.177] (unknown [192.168.202.177]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 2E47E8B767; Fri, 18 Mar 2022 10:55:22 +0100 (CET) Message-ID: <9aebcbbf-aaba-f7e8-7397-18284e74ab0d@csgroup.eu> Date: Fri, 18 Mar 2022 10:55:20 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.2 Subject: Re: [PATCH] drm/nouveau/bios: Rename prom_init() and friends functions Content-Language: fr-FR From: Christophe Leroy To: Lyude Paul , Ben Skeggs , Karol Herbst , David Airlie , Daniel Vetter Cc: dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <2d97ae92b9c06214be0e088a72cf303eb591bf01.1646414295.git.christophe.leroy@csgroup.eu> <47e09d6010852db928c0de29b89450ea7eee74d8.camel@redhat.com> <672043db-5290-293c-fde4-440989c78d09@csgroup.eu> In-Reply-To: <672043db-5290-293c-fde4-440989c78d09@csgroup.eu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Hi Paul, Le 05/03/2022 à 10:51, Christophe Leroy a écrit : > > > Le 05/03/2022 à 08:38, Christophe Leroy a écrit : >> >> >> Le 04/03/2022 à 21:24, Lyude Paul a écrit : >>> This mostly looks good to me. Just one question (and one comment down >>> below >>> that needs addressing). Is this with ppc32? (I ask because ppc64le >>> doesn't >>> seem to hit this compilation error). >> >> That's with PPC64, see >> http://kisskb.ellerman.id.au/kisskb/branch/chleroy/head/252ba609bea83234d2e35841c19ae84c67b43ec7/ >> >> >> But that's not (yet) with the mainline tree. That's work I'm doing to >> cleanup our asm/asm-protoypes.h header. >> >> Since commit 4efca4ed05cb ("kbuild: modversions for EXPORT_SYMBOL() >> for asm") that file is dedicated to prototypes of functions defined in >> assembly. Therefore I'm trying to dispatch C functions prototypes in >> other headers. I wanted to move prom_init() prototype into asm/prom.h >> and then I hit the problem. >> >> In the beginning I was thinking about just changing the name of the >> function in powerpc, but as I see that M68K, MIPS and SPARC also have >> a prom_init() function, I thought it would be better to change the >> name in shadowrom.c to avoid any future conflict like the one I got >> while reworking the headers. >> >> >>>> @@ -57,8 +57,8 @@ prom_init(struct nvkm_bios *bios, const char *name) >>>>   const struct nvbios_source >>>>   nvbios_rom = { >>>>          .name = "PROM", >>>> -       .init = prom_init, >>>> -       .fini = prom_fini, >>>> -       .read = prom_read, >>>> +       .init = nvbios_rom_init, >>>> +       .fini = nvbios_rom_fini, >>>> +       .read = nvbios_rom_read, >>> >>> Seeing as the source name is prom, I think using the naming convention >>> nvbios_prom_* would be better then nvbios_rom_*. >>> >> >> Yes I wasn't sure about the best naming as the file name is >> shadowrom.c and not shadowprom.c. >> >> I will send v2 using nvbios_prom_* as a name. > > While preparing v2 I remembered that in fact, I called the functions > nvbios_rom_* because the name of the nvbios_source struct is nvbios_rom, > so for me it made sense to use the name of the struct as a prefix for > the functions. > > So I'm OK to change it to nvbios_prom_* but it looks less logical to me. > > Please confirm you still prefer nvbios_prom as prefix to the function > names. > Are you still expecting a v2 for this patch ? As the name of the structure is nvbios_rom, do you really prefer the functions to be called nvbios_prom_* as you mentionned in your comment ? In that case, do you also expect the structure name to be changed to nvbios_prom ? Thanks Christophe