From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 924A3C4332F for ; Mon, 7 Nov 2022 21:09:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233371AbiKGVJV (ORCPT ); Mon, 7 Nov 2022 16:09:21 -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-Google-Smtp-Source: AMsMyM79s61mlOpK+aqg4QRkCgNPCYjUWTxYdxewoPhDlxrrkRVd1ChmX/dKJmqMS/UXAOUP9xQYEnEByOuJRijTw0k= 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" 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; > > +}