Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp4198693pxb; Tue, 25 Jan 2022 05:39:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJx94ygK8zkL7iWaV8ji8qnOeOQOXbkxIY800mgU84EhP5n+YA86P/Tm5gHDmZegc16JXgkY X-Received: by 2002:a17:90b:4c44:: with SMTP id np4mr1273320pjb.83.1643117959065; Tue, 25 Jan 2022 05:39:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1643117959; cv=pass; d=google.com; s=arc-20160816; b=EMGE3gi6zK2OeoiWrb5ujApwtjo6ABIzBWZwo/zLy6SfgJ8okMEjTYa2c+lqvMKjYu 7lmRii+sJYSkkAxbYG8+DPZH2HD/GtAySw7j+77Wg4AVTbg1SXcUy0jFDopbSaEujB3J YG8SPpVuJUtzidzJyBj2+paio8tKv3InEm/T7MZlBQr+qcnomlTtLzWxt7Trd/L9Jwnr Acn+OKe3rMT7z6pmAmZ7xf317pMXDHvvrlqmFeteHxrgCAFFgFo0YvMywBMJYJjj2ArI Vx8i4CteNJzNbSraIF1vnJBON88pXkzGbPz6REPBD81rNT2bXuR43Htm5FOMRVKsYj/s hP+A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:in-reply-to :content-disposition:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=k0eofbVCpSUb/dX2914NLlHG+dTvLLmZY60wqUih27M=; b=qOhxXFB0t8qpR3jabctejtmPX1kJYoVihLPZ/fuIh4j84q8ush/9G9ZaenO0f/KBKw VpE0Rp+YAvPmCOgUy8Om39HzE+pl57+Tz7AUzFIUnAMUdO0fmPa/nkzTvaoHqROCS3Gg Uv8d4UvU+QQ1mtcSGz/5f9xIdnlTAAjMbLdv1iiXH0V+AHfJpo+xQtjAZWVfgunmV2NU P9KsWfPpepuzq7ql/2fm8ArqaAyuX6ovDiYfW79DLzuv5aDIc1uFGe/mR7XtuuG2SoT2 WXFz3zwaJe5x54xSJH5XJxjBeQh/NVi/S9WitgLyWFXOYl3W+Mj8tfSpEwEVTwPiy+a1 Ju4A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b=AjEdnJ5p; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=YWJw64Wu; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x11si324990pjl.57.2022.01.25.05.39.06; Tue, 25 Jan 2022 05:39:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b=AjEdnJ5p; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=YWJw64Wu; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1456402AbiAYJQY (ORCPT + 99 others); Tue, 25 Jan 2022 04:16:24 -0500 Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:31052 "EHLO mx0b-00069f02.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1455458AbiAYJE7 (ORCPT ); Tue, 25 Jan 2022 04:04:59 -0500 Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 20P5fxpb005958; Tue, 25 Jan 2022 09:02:58 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : content-type : in-reply-to : mime-version; s=corp-2021-07-09; bh=k0eofbVCpSUb/dX2914NLlHG+dTvLLmZY60wqUih27M=; b=AjEdnJ5pahZ7lzQS3w0OGRssfeoh+WWqn6H/iUlvpSC/cnvBhIOrpBvocYcjayTvnRzT UDXH/IlA4ur4OcDxoD0XgjsP7mk9dtjiOuOh3PSzrbq7tifRRIW1n2FFC1Z3iQYY0am8 ZUfQAHTtVmyzo5hnKeWboGVOvdVIeUnTeHt5gakMXVrkEStweFP3PbK7FBXqBfAMXJLG spHDHwMpZ1utPlXdT3gO4KVB/ddwrel12x8HDozHlO8l2cs+lnOvzDUOrJZ8LgGwo+dE uwRy1bNK1d5h5MXlQPlI8gh881NAF6BGDYSDAfzAxRBE3WB6OCCKiU3/UnzqJWaLIQG9 Fw== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by mx0b-00069f02.pphosted.com with ESMTP id 3dsxaaagru-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 25 Jan 2022 09:02:58 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.1.2/8.16.1.2) with SMTP id 20P90RXE132553; Tue, 25 Jan 2022 09:02:57 GMT Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2174.outbound.protection.outlook.com [104.47.56.174]) by userp3020.oracle.com with ESMTP id 3drbcnax8s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 25 Jan 2022 09:02:57 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cua2BNmaqmd7hdz7QTMTIPK4Z1affCrJb7TR2yP/zQjalT8ohfi/wzaCcrRtu3nzaQOpEtm/M/uYwVAmzBIUEoeUIqyaMNodDVIRHWAe80JC5mabU5mJCt/8ucQNANooeOdVdbyUIzBtQLufo8ChM44J01xGIqYBRaCiijUnrziSKKizBg9bxNJAiCLflsU97CBOyLUHLGUz8OiGY+SxDDHtMReMQE4oQ5CRH9JhACQznHz2WtP0wHwPTQhTrwRiM7mCzEFVnTnob6TuL9zj+6rR1MPqaObQtmqMFoVa0z2Nho+HVXBj+1pErgVXg6DY20wYWRAEto0FfhBBwAouGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=k0eofbVCpSUb/dX2914NLlHG+dTvLLmZY60wqUih27M=; b=Qj6PaXBef/XCHubaB56Em7Q4yruT4OBuu3EjySrclXvqIyWBjulPI16+gOBK9f3eueDhCyJbnXndDdyNiTFBsjPOI0WuXnaXZHQNkPcvq56bO2xmBBX81/ThoNFLU+biAfMVMKuhCykdOUzx2V6Vu3rFo0jyjaBM/id4EchCsnQCMxXWJIzJlJ3ho8+dGQbb/84xVJUKIIeH/JCirRbSA5cuX69+Y/ra0+aYMEXFeYGBvWCqHD8es7y5p9DcgT6skTS7QUAUL6u/+NTcg1b0DaT2YChoktrQTZEBuWZjpaBnBsTiAOi1F6NEzGBlK9lVjVSMM+J8WIVhhy2OY5Eoiw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=k0eofbVCpSUb/dX2914NLlHG+dTvLLmZY60wqUih27M=; b=YWJw64WucSIriBBriY1Gnx+zipf+xf4ZSWBDuRXVw0EE/lZvpfRAa2XoxdevfdQ6clonVuNT7x0Rvoee6P1TjkDxWj4xQrCBH9HAjrlWfaGKKUhEzMq6z7aPgnurQXX22UNMszv/YAFiKLfC0qj502b5NmwvviUkosqfbwXbVGY= Received: from MWHPR1001MB2365.namprd10.prod.outlook.com (2603:10b6:301:2d::28) by BN8PR10MB3732.namprd10.prod.outlook.com (2603:10b6:408:be::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4909.7; Tue, 25 Jan 2022 09:02:54 +0000 Received: from MWHPR1001MB2365.namprd10.prod.outlook.com ([fe80::c13b:5812:a403:6d96]) by MWHPR1001MB2365.namprd10.prod.outlook.com ([fe80::c13b:5812:a403:6d96%6]) with mapi id 15.20.4909.019; Tue, 25 Jan 2022 09:02:54 +0000 Date: Tue, 25 Jan 2022 12:02:33 +0300 From: Dan Carpenter To: Phillip Potter Cc: gregkh@linuxfoundation.org, Larry.Finger@lwfinger.net, straube.linux@gmail.com, martin@kaiser.cx, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, paskripkin@gmail.com Subject: Re: [PATCH 02/10] staging: r8188eu: remove smaller sets of DBG_88E calls from core dir Message-ID: <20220125090233.GR1978@kadam> References: <20220124224415.831-1-phil@philpotter.co.uk> <20220124224415.831-3-phil@philpotter.co.uk> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220124224415.831-3-phil@philpotter.co.uk> User-Agent: Mutt/1.9.4 (2018-02-28) X-ClientProxiedBy: JNXP275CA0044.ZAFP275.PROD.OUTLOOK.COM (2603:1086:0:18::32) To MWHPR1001MB2365.namprd10.prod.outlook.com (2603:10b6:301:2d::28) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6e480dce-b3d6-4e9e-507e-08d9dfe17911 X-MS-TrafficTypeDiagnostic: BN8PR10MB3732:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8882; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5Eu1S1AOyoBQv76BGx8yXOQ5pIlE/x7YpKZpIGEMlPvoxuGYfrOGPEb0Jl10h+aAs0PvomAmGwk/rE8TKaYPrACYQQWolv3/NUs+75ljzsfZrBekMp0ufB0TKXZZgQNOpi8n2W9aNIgo2hqv4djxggALcKE6RPWftHA6KllG4xXDCUzEdbDjI5RFUnZ2GcxT7oyGKvXa7fEU5uTHynVC+SrCnzrcUNaAuXQbAk1ESuSUckdGKVL8ofbJiTEgvk1AbpjHVmbqMQ8jHnCfp8skR6YhW8kRFmJ6iPS0TNC2RA2ZrTbHwb5wktJpP8r7vVYfDNF1bDeFRJ/yOpY/BXA6fXiy63hM50A0dPdNHpuludR2XZLNLWRGAI/NeDBpXSgcIpvSkJQZZdKhvOrZCAy7fZWOh9t3tQE4XxL3gRRmM2E+me4ufRaXXzT4oBp3txNGojk2bMkZrILms4hmiKYx0/gCUdpP9N2qGVzTTfrCJvZS1zKiBev5ms9UeWIQ+ecSr+8vN9cXPxcySz+A7Tmjuk/qtPY5GAQfr3pkXlz9vZkTANSlwX1Kwh3+8Vl8w/MHQ43ow+1F5qY00EkhoGUiMtIS2Za5s/mJYaElv9tDAUe1YQJ8xRjA+djoPFkxZVg5xsKMh13bEeyPlFz1IYkEPwCBXAw5ZUSFd4pLcLcAAJHei66ClPvWOfdcWM4wtY/cGNuKiUvMWM4sYtKTpQAKfQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1001MB2365.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(7916004)(366004)(6916009)(8936002)(66946007)(33716001)(9686003)(6512007)(66556008)(44832011)(8676002)(5660300002)(66476007)(316002)(83380400001)(38350700002)(38100700002)(33656002)(4326008)(6666004)(1076003)(186003)(2906002)(52116002)(86362001)(26005)(6506007)(508600001)(6486002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?cyzpxPEclOeAXUf/S8y16MubIJ01kPpOlXhAqgRUcWjR9Jo7elKw5COxXHzx?= =?us-ascii?Q?g8WxSi+of6FWK50JfVXe7Yh1eEYHYlMbgcuNsEEUF5Vm1fEqNyYSZleeZPfm?= =?us-ascii?Q?Scft3WWl7+JNjsqadUEq5678VzkwW9OaIzgNz+vrd0lHbdsy/zpdePyvtmJS?= =?us-ascii?Q?ldE+2Q2m6ujIBiNZKbA+wLvI2uQRoPg/Vjg4WokMJcogdDPlQoyEFWCekWOa?= =?us-ascii?Q?Ov/rpGUYd+WajBDRACWIOxB7hVAgRd3E01mQ/yDEek0edLQkoncUSNUkKgNA?= =?us-ascii?Q?qpw72jfC4JVTQLjjsMcaBw3xv7zdffg3iXd+BStbsyATYbWRFrauXwXEH8DM?= =?us-ascii?Q?xGYMIL+QzR+7K5D3Y1IA/oQbA+DG7wuesdCUEKbRTWKqourwF1oN/WIWrC2W?= =?us-ascii?Q?tWZogm5Ryq0giJKadVZd686uSp5IPBjwO5nPucT7XHiHrSZIO+WEdFKZudjg?= =?us-ascii?Q?siFheDpqyWpsA7/zCswbfwaqdmFpTcBB56+x2G3bgKWNfMmMaWmMGzcq/Sfi?= =?us-ascii?Q?zKqRsxzcRPjPedGU5lJyxmAWkliEzJqPWCsMgQOyfOMBaD4js9sdwkUX8/oj?= =?us-ascii?Q?g2kUvkXhMTX6Bo+YakFigeTmcWYsVH1GtkZ+2lU6PXRMOcW9UNjL6GaovFbW?= =?us-ascii?Q?rFVxbVgfFWAcIFPljnow6Di2L7zycgoj7JV8KGzHnFoBPrBKyq8R6qAXcH4Y?= =?us-ascii?Q?5kJ5Xq8i3xPASacuwExL592OIwpuulCh4g4Lumlz3UnqGJ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?YK1+cR+9oPvciTqCVm5vlDTiE+H9sre9FSEJmNrvTBnZrdCETZIgesi0jf0H?= =?us-ascii?Q?RsudQCU/2G+0bTK21m7PSGBN1c0=3D?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6e480dce-b3d6-4e9e-507e-08d9dfe17911 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2365.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2022 09:02:54.3167 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Ncn5G/6IOGBzMbEHJXgn4XlhDDLSjuVhzpq8xPbjNaMEqFJVXJFXmO/MqZr3vAQJ8qQQi9EUamtMnLP6YDc7e8N6fbysR1UASg3/ygyGFiA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR10MB3732 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10237 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 mlxscore=0 malwarescore=0 spamscore=0 phishscore=0 suspectscore=0 adultscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2201250060 X-Proofpoint-GUID: HIQ0QvWVGbkwqPzdmnI5PiZtpL9mIcEH X-Proofpoint-ORIG-GUID: HIQ0QvWVGbkwqPzdmnI5PiZtpL9mIcEH Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 24, 2022 at 10:44:07PM +0000, Phillip Potter wrote: > void rtw_sctx_done_err(struct submit_ctx **sctx, int status) > { > if (*sctx) { > - if (rtw_sctx_chk_waring_status(status)) > - DBG_88E("%s status:%d\n", __func__, status); > + rtw_sctx_chk_waring_status(status); In a follow on patch, can you just remove the rtw_sctx_chk_waring_status() function? Looking through these warnings, a mass delete is the right thing. The debugging messages are garbage. Use ftrace. Some of the errors are debug level so they will never be seen. If you enable printing error messages, it print a debug information but at error level so that's useless. Forget about it. Just delete it. You're going to need to redo these again because kbuild found some build warnings... Normally we would say if you're deleting a printk() and that makes the curly braces unnecessary, then you have to delete the curly braces in the same patch. But in this case, you're changing a ton of code and deleting the curly braces makes it hard to review. I would prefer it if you just deleted the printks and fixed up the curly braces in a follow up patch. And please don't fix long line warnings either. Do that in another even later patch if you want. You do need to fix any build warnings about unused variables etc, but don't worry about checkpatch until the end. Basically as much as possible I'd prefer to only see deleted lines in this patch. No insertions. 12 files changed, 66 insertions(+), 472 deletions(-) There was one function where you removed the padatper argument because it wasn't necessary. That's great but do it in a follow on patch. Keep a notepad app next to your vim and write down notes as you go: 0) Re-run checkpatch and delete unnecessary curly braces 1) Delete rtw_sctx_chk_waring_status() 2) padatper not needed for frob_whatever() 3) Fix long lines regards, dan carpenter