Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp923536rwl; Wed, 5 Apr 2023 09:23:14 -0700 (PDT) X-Google-Smtp-Source: AKy350bh+VlFNWvEXON1nAjPlD56lXPiUVBINkICsG/BgjgxWZqsvrifPs5/EqH/kAnAfli0rFG7 X-Received: by 2002:a17:906:4c54:b0:947:d9b1:89a1 with SMTP id d20-20020a1709064c5400b00947d9b189a1mr3154880ejw.44.1680711794576; Wed, 05 Apr 2023 09:23:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1680711794; cv=pass; d=google.com; s=arc-20160816; b=m6h/h4U1BzCcbHUy2ztxpLJpt+lW4NZPmO1UnYsE7R1jXCeymiMEQhfTbm6X99+aeo tbrONjQ9J9488Jygv/f5ljzaPAPYyIH7hSFR2u2halSxVLRuxuNcCxHwXP98rJ1iDdiu 2/XXd1ZvpotDwLB49cIOilwTj+ttSYoc5Jqgy5/T8bVzR5kLSRMwNoUsMi3vCps4b6RL ps9mARwIvd8URwpzFphddEG/8jRYKkoq0/qxhlga9KmKo97btZ2Sw5coE2mdsgswWnX0 DDJnaK4P0VyzvKXrzBH1PbRNKKP3mmfi7eEsoaqQ0FBNBuF3d//G3Gx/NMzVP/hYIbjZ D56Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=XqgbOkPttW3kdtDUs3zhRZfoVxXWwNFZ2C7/dzfh35o=; b=yl+S7TRtEuRe5U1je3lSrC48k7lqzzmCd/WzF7alIPyW6eb9vN7Np2+syvDZN8oAPV FT6qxGgkWi/a0DlPkJARLfB1a8CFQA95uDaipYrW22g4EkvzVuMOXr2qVBs/9TEHFxcO /b9AdYKHx30x2u9avFi48V+CSW0MFm94rB4GTpINunkY54n6BsNoqJp74CVIefkx2lZ0 2FH3fhRFDoS88oAsf7lh6XP/yquQ6OEqkhOjNKKWOz+zejFwt7ZxOvVqvcEdv32oN/xe ygcfxh5e1XvL/noWQ/REHa2g+6yudEJMr6r6djH7qT+SIVSAUTo9RkXwJ9UalJf1sZaV 2Bfw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@corigine.onmicrosoft.com header.s=selector2-corigine-onmicrosoft-com header.b=Yk+elDHb; arc=pass (i=1 spf=pass spfdomain=corigine.com dkim=pass dkdomain=corigine.com dmarc=pass fromdomain=corigine.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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=corigine.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p8-20020a1709060dc800b009346fbb76fcsi1480773eji.978.2023.04.05.09.22.48; Wed, 05 Apr 2023 09:23:14 -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; dkim=pass header.i=@corigine.onmicrosoft.com header.s=selector2-corigine-onmicrosoft-com header.b=Yk+elDHb; arc=pass (i=1 spf=pass spfdomain=corigine.com dkim=pass dkdomain=corigine.com dmarc=pass fromdomain=corigine.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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=corigine.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229642AbjDEQWT (ORCPT + 99 others); Wed, 5 Apr 2023 12:22:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232347AbjDEQWQ (ORCPT ); Wed, 5 Apr 2023 12:22:16 -0400 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2106.outbound.protection.outlook.com [40.107.100.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A1216E9D; Wed, 5 Apr 2023 09:22:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EPIzq5ntO//O2c+l3BQrsPo1C5s9eF6Cy1yyGbmfAvaXRTD5VIPbRovlPf1mwraAgq4ze1rKYXBMxjQN2cQt7zpqkYJ8AZqvhwKjMGzUoGMTmCzUuJ8CFdJdavqrwYRou5KTr34lMz8zCxzImKYKL4OJALUIp82DLxO5QcGtoxb+4tjbmkonKAK3m/ILmyL4lBJFWfDExwEaiMk30pRz9fU4WWEFtXvDHVU3J1n7z4eaFbXqN87nDQyefwC6GMHR1k4v+f9NOyRsjZsJLlvI9gorITFbjvyY1qUZO3fpbHS+x4ZyHkzik6d/Qpc2p5dSvzwnMMdtiC5XEXgUj/ha+g== 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=XqgbOkPttW3kdtDUs3zhRZfoVxXWwNFZ2C7/dzfh35o=; b=Eth9n0FG5/eJqkuxoa90WHdJYjHnIVKP0gfWH0+gHtcv+WyWevIpKFzfq4dQIYrHTtPB4y0e3xtOFzSmkQcJM/Fj1SSVk/YQANbMX35bHHp57MQ7kfsZ5ygon7MkkZwj9azRWuGc2TjCzu+AZXy+Cvdo9pUbctQkv+vbq/Wm0kFwUejqKu5PWUyJK2F5xq7Z9y9uA97RzF7f5aAkos++BgXdeFajo+WzYid2XJE5s6u3fmM8zs9Z0QLziC307VtXbpVOJpZQDHqbEyDoapbeuXHETF8dg/tTZrf65uvVO8W1+Fx+CsW5hYy3BDHNmZtdmdKJ2EqEkrS/IS1jNPhXLQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=corigine.com; dmarc=pass action=none header.from=corigine.com; dkim=pass header.d=corigine.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corigine.onmicrosoft.com; s=selector2-corigine-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XqgbOkPttW3kdtDUs3zhRZfoVxXWwNFZ2C7/dzfh35o=; b=Yk+elDHbhcOrHTzellkq6PdL+9KlQ5ltJQuIdAvvkQsln8nH/KVriwTDgGP2LrpzMpWaZ4zHzviEtN2aQoTbB3HoF2vaWqEyf1gbtx6IZDzQElfEgPMqd+Sa+H34yhG0a0DVrDd/9O+qwta8dLRIBT66ckdR6aoLK7unp2rpZWM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=corigine.com; Received: from PH0PR13MB4842.namprd13.prod.outlook.com (2603:10b6:510:78::6) by BN0PR13MB4583.namprd13.prod.outlook.com (2603:10b6:408:12f::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6254.35; Wed, 5 Apr 2023 16:22:03 +0000 Received: from PH0PR13MB4842.namprd13.prod.outlook.com ([fe80::c506:5243:557e:82cb]) by PH0PR13MB4842.namprd13.prod.outlook.com ([fe80::c506:5243:557e:82cb%5]) with mapi id 15.20.6254.035; Wed, 5 Apr 2023 16:22:03 +0000 Date: Wed, 5 Apr 2023 18:21:57 +0200 From: Simon Horman To: Sumitra Sharma Cc: Manish Chopra , GR-Linux-NIC-Dev@marvell.com, Coiby Xu , Greg Kroah-Hartman , netdev@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: qlge: Remove macro FILL_SEG Message-ID: References: <20230405150627.GA227254@sumitra.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230405150627.GA227254@sumitra.com> X-ClientProxiedBy: AM0PR01CA0092.eurprd01.prod.exchangelabs.com (2603:10a6:208:10e::33) To PH0PR13MB4842.namprd13.prod.outlook.com (2603:10b6:510:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR13MB4842:EE_|BN0PR13MB4583:EE_ X-MS-Office365-Filtering-Correlation-Id: 62d7cc77-dbf2-4f96-b11e-08db35f1e425 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xQQuTCabyBgpk8sSFmeLCMrn8bVwfiqsHxMY5hLSeKIcHCJLT0oL5EDEGxQYrIOI8OrEifbIU56GDe2k4kCi3tnJkR9dFkenNGmD2dnTszMfI7Tbi/0wL41MoIxY6aDL12xXRJ2io6GvzIGQ1I2Uq3MtP/xUw0O1KyTY3ONNrw2t1Nv2/Y3xD6kkCG35OsmZkxL4RQJndzOrF3r7GN6OmsC44OqK6Xq5tIJb19w77L7OXNm6m9MbPuXhqzWuH4NZDjbSMdotNIZ1UvMdBe0eU7F6bBr6aTgUxsypx2k+DalgZxy//CgCJgiqdEHyBfgv5Cw2vcPmMHQl9nlLjLwgvvvLaohuKIDsQSLMLVXvn+p+LKMyZezZbhry7JC3WeDDI+9LOACyQeBwhyFj2ooxxYmivTpA25OEC+zO4V/sxzv96+SjmSZ4riDNyIa8RBBMu8juq32PN0HPsdnPoAWTGobQtc68E2pONclzdSW866U+mWJjDfONreaMqZ9xuSmr7Ll43u0yhVmTemnp/eNsSosePvtsizqHYYcwnTqrB80H1OBKMQAL2ZSzM9GoqlRWQZsF4xjW+hW/3BprXUr9ZNmuWBLCGXlTxWwCTmhloeA= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR13MB4842.namprd13.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(366004)(39840400004)(136003)(396003)(346002)(376002)(451199021)(38100700002)(36756003)(5660300002)(44832011)(8936002)(66946007)(66556008)(41300700001)(8676002)(86362001)(66476007)(4744005)(6916009)(4326008)(2906002)(2616005)(83380400001)(54906003)(478600001)(6506007)(6512007)(316002)(6486002)(6666004)(186003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?l1oZZqzDolxnjw5e+ZqmIQLqvEyV7DtnVff8KW3h7d7pelRF33W+80mJYWHJ?= =?us-ascii?Q?Bi4BSTyRsNjoj0bcSFyi/OpU6rsij+UE6WKqaoRBtAMUmVHH3Ft6Cxu2lvx1?= =?us-ascii?Q?NDuTx9MY2/OVG2B6VdmGNx2d14O5Xjc8rKgT0Ktj6izonicODnPGdAoMoImw?= =?us-ascii?Q?agPhAZvAt+gNPiZuKYomQmql+JXsFJ9AF0Es7R/nVyPur1LTR2yh7pKwpb81?= =?us-ascii?Q?XhFNDGSdNKd7iurYSYsybjncLm1IfdD1N29VTl3WYPqMvgEnQWDAV5MncYck?= =?us-ascii?Q?4kx/YxZYLfrjBWjxxIKomqGth+Gh+6aO9YP5Az7JyHsqHaiN4Uu9RZ/s12V1?= =?us-ascii?Q?Z2pWtIjlxY5a5fuIirW+U+fo76QcRDqZA7L3eqIJdktdT8PvpqRI46wYv9iX?= =?us-ascii?Q?i061tpra4ShKbgYKw6sozwKUFuzDJdW3qJBF0PQdry28T12CQeCTNtrGoXDQ?= =?us-ascii?Q?J4YVEBgjTnh8d1umN3JkWrE7Hp1bTUGepn12P60NxZGmqNCMd1W+n8xH2Mfl?= =?us-ascii?Q?yblsmC+lTJnc860vgmhTHEb/cdOu5hVs2Oc9bWe8GfEmR/YpqA4usBQBS0di?= =?us-ascii?Q?Njq8zB5GhEhaHAJ9U5cGsD9/rFPBxpNF9KKahcJTfDoip1Kqvrd271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UCex7uwfjHqdkMDPDGoHjzJmd30dsNMU33iwxzd?= =?us-ascii?Q?jNlE9hrEyRjbHjf0dPzWyy7Z7mnjTEa78lw07T2bZgjSdQWTkIMiYHJewdlT?= =?us-ascii?Q?ZPFVOoyiZyjdevPOpRfLaguSaYKUlT1S+vn7rjdAQwIuK9mWDFDJCtMIrWGv?= =?us-ascii?Q?V0w5NA=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 62d7cc77-dbf2-4f96-b11e-08db35f1e425 X-MS-Exchange-CrossTenant-AuthSource: PH0PR13MB4842.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Apr 2023 16:22:03.5848 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fe128f2c-073b-4c20-818e-7246a585940c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: kXJ3DYvH5/pvT2VP5kVPUE4qyvrq37qiTVW4/PX5zbLzjTbxFnz7ulI1HiPZam/AagtPuNsqXAVuRR8phiXB16AWh4kUHDKJDSEEKtrII0Q= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN0PR13MB4583 X-Spam-Status: No, score=-0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=unavailable 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 Wed, Apr 05, 2023 at 08:06:27AM -0700, Sumitra Sharma wrote: > Remove macro FILL_SEG to fix the checkpatch warning: > > WARNING: Macros with flow control statements should be avoided > > Macros with flow control statements must be avoided as they > break the flow of the calling function and make it harder to > test the code. > > Replace all FILL_SEG() macro calls with: > > err = err || qlge_fill_seg_(...); Perhaps I'm missing the point here. But won't this lead to err always either being true or false (1 or 0). Rather than the current arrangement where err can be either 0 or a negative error value, such as -EINVAL. ...