Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1621402pxb; Fri, 10 Sep 2021 09:50:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwaeCvrc74gjUfwdLcreySAsyOE3AQ4zyBQyFjoJzv48FiqxM4gRUEOOOIlSb9o86Tcehbs X-Received: by 2002:a05:6402:5c2:: with SMTP id n2mr2779648edx.239.1631292644539; Fri, 10 Sep 2021 09:50:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1631292644; cv=pass; d=google.com; s=arc-20160816; b=JLBrZvBGoBrDEDhTG26WrqPjnP+e1TSSnFD1dNsY+zXxVwtqZejG3nMMzgaV2GO7GC VZrPVhcf9BRUPiEY3MI/0fg3izcgou4rvqui3P4ANiSKGi5RT3qxSvpLf4mXzeO78jO+ 1SS686L9QR0GO11naU0DFH01SGtH8iD0/b2h1dHKZuoGjYNfGnElmFAo7Kn6dIXX3hRA 0d1ZtYA7ElPUVT0HJVBhn6dcqe/fXUopT/Ngfgfx+RaNtH7SWhTYs7V8pwp+NJyMZi6V ByX7cR0P9xp5cM7KaC8zBtBHT/FUMBr0qWJZlyNmYeYRMITQbA97iyrlbkoZq+C1QWbk mAZw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:organization:message-id:date:subject:cc:to :from:dkim-signature; bh=/9uUF/wguKjlNXcv01lfiNDYgNSKIhCncIBXQxXjIQs=; b=fpywkZm8T+9g2/p/22k27uElZpKG0GIcV/sGM2efgPNASSb9LuQX3lIkFkDhKbP/Kn QUO6gG/5LFvEpl1N0r/iZ+cLDjN5EuH5/uczihPnewCf0byZte9VuGFOpKQKyNC35wsz P+cKfXrYVK5yq+qYewwLzGMmQnSWUb/HVHAPngCLkfvCvVyTHWFDTMWVfBjkPLZT4eM2 j6gDUmUt/MfQPJqdoJU6859PJC0ajZUlJ2MX7liL4WZwnLBgdHm/SxGguBUHIWNOIeMj /Zy2cyHF5UZQYv8HaFvIU+xiTlxYPVQFXIWwi6nS/2/1T54iTMGhjFK4Y1aEJzDqI/po iAfQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@silabs.onmicrosoft.com header.s=selector2-silabs-onmicrosoft-com header.b=D0kCKCa5; arc=pass (i=1 spf=pass spfdomain=silabs.com dkim=pass dkdomain=silabs.com dmarc=pass fromdomain=silabs.com); spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u10si2911820edp.443.2021.09.10.09.50.19; Fri, 10 Sep 2021 09:50:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=@silabs.onmicrosoft.com header.s=selector2-silabs-onmicrosoft-com header.b=D0kCKCa5; arc=pass (i=1 spf=pass spfdomain=silabs.com dkim=pass dkdomain=silabs.com dmarc=pass fromdomain=silabs.com); spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230307AbhIJQuv (ORCPT + 99 others); Fri, 10 Sep 2021 12:50:51 -0400 Received: from mail-mw2nam12on2063.outbound.protection.outlook.com ([40.107.244.63]:63777 "EHLO NAM12-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229466AbhIJQus (ORCPT ); Fri, 10 Sep 2021 12:50:48 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=j22aNeHUiuVYaXh7FqE4yvYHDKPs3bfLClSyg9+mfm0Sx2gwNVmwSJ/QJCi+4X4urlDIr1c1RP1SictlrIMaiRY9tL48jiRnPUKfFXg5o6tssd4jTarspTEjCkNIO7EreCidLEtlBDyG/0A2WBBNZgAWO26UfF9aJj4vZss0YpZqw5km00FU77gT2jy4bcGrSi6Y0ZIAn+GU4XS8Kd5yYxCvhQOdqREq8vyZfL+79RYfnEHOMHwRGsObSeEI1ipMIjKjPhEoggNmksiP5d2+hp+qKmdUZzsSYnNKMpoO2xJcmouK4XxTrU9w2YIJiTxc78SL9hmGyrDXvegLyTDv+w== 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; bh=/9uUF/wguKjlNXcv01lfiNDYgNSKIhCncIBXQxXjIQs=; b=UDSxnxG+yCBlCl89+WLz7skF7soa/gJjAW/ytnYCGooknvuMeNGSJHQaPHfkv5B0XKN2hd9f+XELzqhlAZ82JBwWIRUmstJCBBTTYQJ8t+5YdYSM3Kq53k06xejwUiN+62p40pXiEwFXlxeMulJ8Jk4cMNz6AsaMXkzlbySADaZXHcTYf1BNzsnm6fCiuzzQm1V9FljvtTLXAlKrSOVmoGu7wZYzg5RusBck4xRn6Yzx+cANtUhpKfyTc+LPFn4lUCkGeswy+RyiMGHu2OZeukKdqIr9dvWoE12vpUUh5CZUbN78bv42kB00LJcFCj8zLzOh5kCNMZkdS2azV29lSw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/9uUF/wguKjlNXcv01lfiNDYgNSKIhCncIBXQxXjIQs=; b=D0kCKCa5TSYnmFEnD/SjAeZCROtdpuqspq7wbMkuk4nAToeidkxuIHdzuudNALYgY6s9velN3jAv2ljN3MjOYvh2PHzH8xU468YXdEayVZg50poKCq6pcUH52FRbzjUnOd97KUG7S0vN1yrtYbeLFdkCClY/vYfJ426vQAJFMjg= Authentication-Results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=silabs.com; Received: from SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) by SA2PR11MB5052.namprd11.prod.outlook.com (2603:10b6:806:fa::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.21; Fri, 10 Sep 2021 16:49:34 +0000 Received: from SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd]) by SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd%7]) with mapi id 15.20.4500.017; Fri, 10 Sep 2021 16:49:34 +0000 From: =?ISO-8859-1?Q?J=E9r=F4me?= Pouiller To: Kari Argillander Cc: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kalle Valo , "David S . Miller" Subject: Re: [PATCH 29/31] staging: wfx: remove useless comments after #endif Date: Fri, 10 Sep 2021 18:49:30 +0200 Message-ID: <3556920.DX4m0svyV5@pc-42> Organization: Silicon Labs In-Reply-To: <20210910162718.tjcwwxtxbr3ugdgf@kari-VirtualBox> References: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> <20210910160504.1794332-30-Jerome.Pouiller@silabs.com> <20210910162718.tjcwwxtxbr3ugdgf@kari-VirtualBox> Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" X-ClientProxiedBy: SN4PR0701CA0040.namprd07.prod.outlook.com (2603:10b6:803:2d::18) To SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) MIME-Version: 1.0 Received: from pc-42.localnet (2a01:e34:ecb5:66a0:9876:e1d7:65be:d294) by SN4PR0701CA0040.namprd07.prod.outlook.com (2603:10b6:803:2d::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14 via Frontend Transport; Fri, 10 Sep 2021 16:49:33 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ab70d748-0ad9-4b0d-7da3-08d9747af7e7 X-MS-TrafficTypeDiagnostic: SA2PR11MB5052: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5236; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4HH+AYH7rnuitmg4k5Uv4xEQP2Sf4Rb8VTcA5f8zSqQwA8Ko6bgA/cn70T0WfufJhge7TeTVDGukomIpm7KsqHMfMCHc5zVONeM4DsJqU9B7uVwYEgeRcNsayg+C98ISN/ekdCGFXGc/vt6Bra4WyQfW3FsuJVuHVGqZB2S8KspC0ZLEZP7Cmn+NR91e4a6dgZlfbijyegSyXABldwoDt/X78zQSDdOW3iwiW770wDIW5lei7x/x8SqvmPIM2Kg5PT9sgO7x5z1H4ql42NLXT07BXZ4NHxa81IEzUa6hY9GJKWRMTaEEgcAjf8jc7Q0fWG3qCU3iKt4xvZU+GUlkx6Olhx8YH8ynfkksIPays75P5N5WYEFpJehru0pCVHaTBIhSlCst+R0KXS+Dko9HJirJIV4vAR8HeEcPPZodOifXWQqDb74B2csqoSVnd+YC09gFJvUgXqOKM01iDxQ1PaNlcP4WW/ZPQVDhpmBGBlDTak9L42sF2Byq9f6q/oNgeCqV1GHX645MP8rDXZKwbM31rJSAIFbw9M8ShB9fSdalElyc5imNKTXGSlwm97LR8n6wGekNulFQ78mxco18Qtz193WZt+4BbP6lp5QfnYocHI45V4OlNP0qaFGdBcqsNbh0i+RPdPhXJM8cy+sT6T+z8CkV6BMZGVUWZJ1ett5r+Hli2BBauHEtN4UWWsDY X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR11MB2718.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(396003)(346002)(366004)(136003)(39850400004)(376002)(8676002)(83380400001)(6506007)(2906002)(6486002)(33716001)(4326008)(478600001)(66476007)(316002)(9686003)(6512007)(66556008)(86362001)(36916002)(52116002)(6916009)(66946007)(54906003)(8936002)(38100700002)(5660300002)(186003)(39026012);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?iso-8859-1?Q?pPuP4VoRvVKpG8UsZ6XKfgBW5OdBENlGz86w32m0WV239EZBkyhDh45ZmY?= =?iso-8859-1?Q?0A0G0dqYPMg7Tl2wpIQoRPDQlYnjM5PBAZkvFkqHHp2n0CIdYS6DRKMG/z?= =?iso-8859-1?Q?GBa6XeJ+KPmjkcTadq8qzqZ1dShhUZOYHBnFBxUJqbLkQuoCrirJ0EFXQx?= =?iso-8859-1?Q?KyihFwWm6AP6QmX4XEt40NIWgSOqR9Zh1Js2N/JB+3avlvUsBAcssTiJsb?= =?iso-8859-1?Q?Cvg3nY5vr/hknytHV3XeXgtQ5cESszj24ntMg4jWpsJc+q+lcM2Ul/KQz3?= =?iso-8859-1?Q?mpZ8L5cRILesbtXEJD5EFKscjfrthgnKbrgDwJjtSpSon8So7gWD22wCjo?= =?iso-8859-1?Q?Q9SQbFF457O1HHAwybzmb1ZGX2lk0ojRg7tDME8FA3jJ4mup3fHda3eswf?= =?iso-8859-1?Q?IdKwJcudczOx/o8GnWmV5lx1Dx14wMMAotttZSKwXUQ/j3xbEuyQm6A1iv?= =?iso-8859-1?Q?ipcn8I+tM+1RjJroYxU8hV6Ierh59REhSZo4Huh1ZkwMrMyyB+vY3pq4oJ?= =?iso-8859-1?Q?Ha+pHf21NzxYHcIMG9/6OHBWb8rSWC2Ng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q?zLK6zkZWbjA0iWaA?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: ab70d748-0ad9-4b0d-7da3-08d9747af7e7 X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2021 16:49:34.5010 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: b9+RsaNI48b7NOUxXmwTldbLXh9T+GzJkqXCuh5KNUYbyZo8hKD+BekdYmFpZnRExCmRzv4CFxD29L3VSI6ctw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR11MB5052 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Friday 10 September 2021 18:27:18 CEST Kari Argillander wrote: > On Fri, Sep 10, 2021 at 06:05:02PM +0200, Jerome Pouiller wrote: > > From: J=E9r=F4me Pouiller > > > > Comments after the last #endif of header files don't bring any > > information and are redundant with the name of the file. Drop them. >=20 > How so? You see right away that this indeed is header guard and not some > other random thing. Also kernel coding standard says: >=20 > At the end of any non-trivial #if or #ifdef block (more than a > few line), place a comment after the #endif on the same line, > noting the conditional expression used. >=20 > There is no point dropping them imo. If you think about space saving > this patch will take more space. Because it will be in version history. > So nack from me unless some one can trun my head around. IMHO, the #endif on the last line of an header file terminates a trivial #ifdef block. Moreover, they are often out-of-sync with the #ifndef statement, like here: [...] > > diff --git a/drivers/staging/wfx/key.h b/drivers/staging/wfx/key.h > > index dd189788acf1..2d135eff7af2 100644 > > --- a/drivers/staging/wfx/key.h > > +++ b/drivers/staging/wfx/key.h > > @@ -17,4 +17,4 @@ int wfx_set_key(struct ieee80211_hw *hw, enum set_key= _cmd cmd, > > struct ieee80211_vif *vif, struct ieee80211_sta *sta, > > struct ieee80211_key_conf *key); > > > > -#endif /* WFX_STA_H */ > > +#endif [...] --=20 J=E9r=F4me Pouiller