Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2043221rwb; Mon, 7 Nov 2022 08:30:52 -0800 (PST) X-Google-Smtp-Source: AMsMyM6K/iW9uPrBgyHFL9fJvFCX0iKHVoe6n9xfjugl8xeTNiqgBXsGSY9jgE16MSGJ1RC2QJWL X-Received: by 2002:a17:902:e54b:b0:188:4c74:300e with SMTP id n11-20020a170902e54b00b001884c74300emr27806145plf.45.1667838652008; Mon, 07 Nov 2022 08:30:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667838652; cv=none; d=google.com; s=arc-20160816; b=Olq/dMVmmdM7vlQLERnpWokq2yIvsONnmRPZ7W0o69mbAl2YV3t2KqFjlTZ3dwqpe2 RJYbaD5EOjy66bjwi2R16JODT5Eliiu23cbjdSAxD8Zcc7O3EjrzlZ0+a24+QiYLfp5j fXdf2a/5rQl1QqJiRW731AIYEmze/KOUwo1s0FvGoIPh6r2kcSr846CwqeD6N7SgkrQf ORaUyn1+oPpIKppg2Onctdhi8omLGcn2bhAgBPxNLzheUaFXtlygKUJVpDVuwxBXr7PX RSn+CADnQLrG7dYsXkLvDwlqqGd8MUaPpP+RoCU0y/n6k38exGTfqJ+9QwUOFOesV5Q7 xawA== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=DZsj7aoQyhx3skjFI+mkgI7+S0Lk7iTOj70w3bTfyJI=; b=CpISp85wC82SRHasdKOYouHiJzboEnGVd60OhrGEcMxRNX+Q58dug7PuXomefUFQBH PNmdMlo6GZpWLD3Q1jqqiARYDv72kWNFP+2bR1uSmabUvpl7cgXWe3v+nTL4DGRc934/ 9uCnro/M6R1vhZYOJimS1f1V/No/LLZB875zdkbYW6AZOXNfOuiMzXurE998WCXVsIkd uzyJ7/uvpsbr5vwbqRwaAbd9K/4rvhlsYMBs57j6/KQzoK1t9LcoDA87TKtChwfVDruE IhtKMIAyEk49P84TYpNADLMOYrt5bX/IQ0qp8dvtDZi6ft5oRrvY1SYWqQXN9Sau5d9d SGkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=njTVAUOm; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t23-20020a632257000000b0042ac5a24f3fsi11091711pgm.493.2022.11.07.08.30.38; Mon, 07 Nov 2022 08:30:51 -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=@quicinc.com header.s=qcppdkim1 header.b=njTVAUOm; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232695AbiKGQNZ (ORCPT + 92 others); Mon, 7 Nov 2022 11:13:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232540AbiKGQNO (ORCPT ); Mon, 7 Nov 2022 11:13:14 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6071205DF for ; Mon, 7 Nov 2022 08:13:13 -0800 (PST) Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2A7CscDs015999; Mon, 7 Nov 2022 16:12:42 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=DZsj7aoQyhx3skjFI+mkgI7+S0Lk7iTOj70w3bTfyJI=; b=njTVAUOmf2bJoK9cSiJerlZQoUCQ484oyAJrKMt+yGPR/4k3WBOxAHxeU1Y6BRMcjCIr 3nFd03BEnx7zexjwh7DCDNBfJOfl/UbebpmWPbZg715bQs5cbk3QyActZSqE7S6mufgu crmC7N6AMBYiZPmbWqd9ZQQHUpaLB414yfFa1dBF6As2WDW6QKeS3yIFcZdfKrXIQvDr Q8lCFnfPeipZVnLdyU7KmS5nWbGS+vzN4RHUC/bfKfZKKh4nkVln6XN6kBVaBPNCekCT lYhXguSicrLH+fc3VpbTMtu3do1DnJPob6j5L8ems2YReBF3FYa2GO2AwjF4o0c/R5y2 4w== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3kpv531e19-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 07 Nov 2022 16:12:42 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 2A7GCfqA032589 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 7 Nov 2022 16:12:41 GMT Received: from [10.226.59.182] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Mon, 7 Nov 2022 08:12:39 -0800 Message-ID: <5fe8e8c0-d28b-3666-e437-10fa0c591ed8@quicinc.com> Date: Mon, 7 Nov 2022 09:12:39 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Subject: Re: [RFC PATCH v3 1/3] drivers/accel: define kconfig and register a new major Content-Language: en-US To: Oded Gabbay , David Airlie , Daniel Vetter , Arnd Bergmann , Greg Kroah-Hartman , , , Jason Gunthorpe , John Hubbard , Alex Deucher CC: 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 References: <20221106210225.2065371-1-ogabbay@kernel.org> <20221106210225.2065371-2-ogabbay@kernel.org> From: Jeffrey Hugo In-Reply-To: <20221106210225.2065371-2-ogabbay@kernel.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: 5n0pk1aK9w9zM02KzCZwCRGx0il16LL- X-Proofpoint-ORIG-GUID: 5n0pk1aK9w9zM02KzCZwCRGx0il16LL- X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-07_08,2022-11-07_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 priorityscore=1501 malwarescore=0 suspectscore=0 mlxscore=0 clxscore=1015 phishscore=0 spamscore=0 mlxlogscore=913 bulkscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211070130 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, 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 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. > + > +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? > + return ret; > +}