Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2474342rwb; Mon, 7 Nov 2022 13:49:47 -0800 (PST) X-Google-Smtp-Source: AMsMyM6unf9iMmwZlGiwMjqrjgxq7yuUJQ/9R2Mssdp4MRLaVnr26cSutyYhnm96JC/lNZwBI1Qf X-Received: by 2002:a17:902:b68b:b0:186:aee0:53ec with SMTP id c11-20020a170902b68b00b00186aee053ecmr53615130pls.90.1667857787520; Mon, 07 Nov 2022 13:49:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667857787; cv=none; d=google.com; s=arc-20160816; b=P+31qPG27fKnpMWbn0BWKDdBVKNUVd0x08fsZafzpt+jNEw84wcl2jxEj1Opp8ifXT GGRxbwUoY9bVON0kG6zI8Zoe/Yseam2JkB7Ulmy/24hYuUALkVi8+0G79Qx/RRRBbZdS G1qnoP+vtr4dS3siG7VxafoFd7e5afueVVEbzgo7av2fY0wU2o9SNAMI+tuNOfgvlzNn +gPO4SF2z60OxoC2Lsyut4lsnWe5Q1kScaR15+eMEio0sL+huwhHTj2BzoklAwClhILG qc8nzLQlXmCsO26HsyOQ1sw3eHSsY5APXj4txL5KQXSbLbsBvrBrfwmY26dqH7PCGNZz w83g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=mxg/td65I/+oqESO2Bx3A02bXIMqT+lWh18kdINBMLM=; b=DdUKGnh3UUu9dHX83fwX2BidCOm55tGsYMtMpfKSawuasyufwJDamVib8cVvhr6pBM QkE8yXqtkyMIbJn3noTIVE9NlH4dCSLObr/t/nciCAM9A2J9hf+HLHyIcvj/nk4KgTSX OK/sy95HUJQ6yWB5h59UcmU/+S6vcmE4ZbbelsIVWst5HQuDWTI2iZKQCktNQnuuvm1O 1ggSkwqOeU60S2Jgh/lpHgw0aqnyN5Blapq/73vb/Ifu2dVJhc8jCcz7OPZ9KhD80BHl 7ULloQ7OQ/3Rh5/Kr7ySwa9AYSOFOGFAEu8Q2ZpbRoiCaWUrCAcnRpRFi8raVeKprWrM 8P9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JpohgfVy; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w21-20020a17090a461500b00209b6044d31si10024679pjg.51.2022.11.07.13.49.34; Mon, 07 Nov 2022 13:49:47 -0800 (PST) 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=pass header.i=@kernel.org header.s=k20201202 header.b=JpohgfVy; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233080AbiKGVJT (ORCPT + 92 others); Mon, 7 Nov 2022 16:09:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233301AbiKGVId (ORCPT ); Mon, 7 Nov 2022 16:08:33 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3EC93317E4 for ; Mon, 7 Nov 2022 13:06:37 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 3D979B816AD for ; Mon, 7 Nov 2022 21:06:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E1B4EC4314A for ; Mon, 7 Nov 2022 21:06:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667855161; bh=FG+7gA3fo0nBgnUWGCQeGAlAZyW5OFNCbT+NPx+534Y=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=JpohgfVyAR1+t0eosNFa2GRGTW/ULZtWnPLB9HZ4ROca8k1vdcW+0N4uupbl8pN+P 1KDlG8cXBHfnTDBO0UoenwooMLqZ2jDiV/NQ5KYFbDAHxhdxfpS8BPcQl051fNy9sr Y7E9ROyXt/Pa4Vf7DzZf+7/T0MpN4JDqIIA3nuB689+ruPgF+fo+aQhxpLQNaYatFt m18e4l6EK0EMaBjtjYPCi22HUvSR0t8tCagZEMNn9U9xckoKmZj/8JkUOmT9ShOZRp aEGlH8ZuPpsgYlXzxoHgWRc2gSxgp7ivgguIFw8bayynJO6G5MG/WvnKvaCmhz+mwc xhcVROd4Kua2g== Received: by mail-yw1-f178.google.com with SMTP id 00721157ae682-36ad4cf9132so116425397b3.6 for ; Mon, 07 Nov 2022 13:06:01 -0800 (PST) X-Gm-Message-State: ACrzQf2B5H+vX2Si4KsNjRJ0KGLC9cHFOagm6j+JJSrBzEqZTWywB96c JYfILg6wvUeVXTs6DoLVZq4qY3SY2aI+wO4T4eA= X-Received: by 2002:a0d:f445:0:b0:345:89a2:9a8d with SMTP id d66-20020a0df445000000b0034589a29a8dmr49016100ywf.107.1667855160878; Mon, 07 Nov 2022 13:06:00 -0800 (PST) MIME-Version: 1.0 References: <20221106210225.2065371-1-ogabbay@kernel.org> <20221106210225.2065371-2-ogabbay@kernel.org> <5fe8e8c0-d28b-3666-e437-10fa0c591ed8@quicinc.com> In-Reply-To: <5fe8e8c0-d28b-3666-e437-10fa0c591ed8@quicinc.com> From: Oded Gabbay Date: Mon, 7 Nov 2022 23:05:34 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH v3 1/3] drivers/accel: define kconfig and register a new major To: Jeffrey Hugo Cc: David Airlie , Daniel Vetter , Arnd Bergmann , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Jason Gunthorpe , John Hubbard , Alex Deucher , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Yuji Ishikawa , Jiho Chu , Daniel Stone , Tvrtko Ursulin , Christoph Hellwig , Kevin Hilman , Jagan Teki , Jacek Lawrynowicz , Maciej Kwapulinski , Stanislaw Gruszka , Randy Dunlap Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 On Mon, Nov 7, 2022 at 6:12 PM Jeffrey Hugo wrote: > > On 11/6/2022 2:02 PM, Oded Gabbay wrote: > > +int __init accel_core_init(void) > > +{ > > + int ret; > > + > > + ret = accel_sysfs_init(); > > + if (ret < 0) { > > + DRM_ERROR("Cannot create ACCEL class: %d\n", ret); > > + goto error; > > + } > > + > > + accel_debugfs_root = debugfs_create_dir("accel", NULL); > > + > > + ret = register_chrdev(ACCEL_MAJOR, "accel", &accel_stub_fops); > > + if (ret < 0) > > + goto error; > > We are not jumping over anything here. Seems like this whole if block > could just be removed. correct, will be fixed. > > > + > > +error: > > + /* Any cleanup will be done in drm_core_exit() that will call > > + * to accel_core_exit() > > + */ > > This doesn't look like the standard multi-line comment style. Are we > going to say that the accel subsystem follows net and differs from the > kernel standard? I'll change it to the kernel standard. Thx, Oded > > > + return ret; > > +}