Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1632432pxb; Fri, 10 Sep 2021 10:05:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZ0uRf7DG4FLcRANtEjtGo9j/W0Ve0COu5QXvaT/BbKyqXsiJ6OB0vgYXcv+oBvu2EUEga X-Received: by 2002:a05:6e02:f08:: with SMTP id x8mr7105869ilj.92.1631293539388; Fri, 10 Sep 2021 10:05:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631293539; cv=none; d=google.com; s=arc-20160816; b=sHm0Q75rRWvbK4xX8vQN1qK1pR6zgLwtTpxNJi8LfKeQIml3PhsKL5wr4XxdEwFsKW 8UvQsDeWQGj3V1nY8vH5a18D/HlYa3asuFhcIdlL+2JlWZh2bRKkDXdNCwh1Cd7HN/Qj layuO2qnpP/20mgwD36HEFAC+D9CG6nwQOsxmrY+vjnPhK7uVXEoaUTsnwHDVoRWKoZI Xr+5mcOwBAebr6AIMGIEEhSn5eVD7h6Tr5eg6A9EG9Mu7T2ef4U6/Vdxe2dZFd50CDlH VJDrkMmds5tP45rcQM8pz2C/M2o54mTUmGTSKuYvRX2yz+9e1fiKNMIRJniDs/NPjMdf 8NJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=v2uHo0KL4tP8i7F5Ezn7qF1nuW399RUbWTYsco45lbE=; b=QlRV7D9OGSJJ2dFy6wuR3r45/rjos9UKUZchhPz/YkfQox/e46PPEnbbEQDz3RC5Hz kMsc5IAo2szZtWzb1+BwyB5KXaUYI2qduI2Mzq7zAr+eUgECvaJFxZaKnpbxF0k6XbNx QjPUzKkO6OpTaxqZOKDjJgCxGEYjwP8YKZA4CeulDhXasdFPNDvJoUHWs1/GrsTUh0bI BM0bESPTjQA6nIX2SIk5iZfKX2KQlCDwcTdqhY6/CKgTKrzifXVaNa3ZZ2yxOXhwb/lQ I8sJRuSz9djfJaZ3qcmsXSEU59LKnrlNkFRTVRL0/HYysz0kis8uu3+niBkzB3YwQ0Ud binw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Gh0rtBaE; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g34si4894265jaa.104.2021.09.10.10.05.17; Fri, 10 Sep 2021 10:05:39 -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=@gmail.com header.s=20210112 header.b=Gh0rtBaE; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230237AbhIJRGT (ORCPT + 99 others); Fri, 10 Sep 2021 13:06:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229448AbhIJRGS (ORCPT ); Fri, 10 Sep 2021 13:06:18 -0400 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE667C061574; Fri, 10 Sep 2021 10:05:06 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id q21so4279434ljj.6; Fri, 10 Sep 2021 10:05:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=v2uHo0KL4tP8i7F5Ezn7qF1nuW399RUbWTYsco45lbE=; b=Gh0rtBaEd97D+5SpIuEt2bCTCCw4UDFXm8Ymf2Sh0tn/rWqMUvhO7CDl/W/kgHOv11 rFotXtDOuMes+OhBWneyrv9LgUwGFNOQOFXqEN/9i/oBiyOGyM6j49ugH4Jxe6KmiUBi X7naAqA/WJkuhzzVNwVncYFqkgd3CntmVdkLko3SV+KhSeX0+wBkFgvx7eXNLybM4JPh 3d3u23cA/wMPZWm4I50i3yvowNK4XgK30L+MDen5iHPECFyEanEbFrsX+HIoaJhzwuYE Aq7IN/rKw0gR4IX4bTLJ9vs4zdhCt7kz3Ug70o+dfQo97khbQb2GRGCu5hhNPhxGCsgF r/nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=v2uHo0KL4tP8i7F5Ezn7qF1nuW399RUbWTYsco45lbE=; b=5ZCY+hUA075vILh6C90/wztdFZaPDivO73C3zZczxKoqZRvLET5LDJjhkcrDUGvU4e Vxg6edieYDBIaeW64N0wf73HgBPIgUXpRSDrX2/xEDPGV9EW6BPMI7i7OBdhlHPKnkfh YwFwpk08lgmH/ZR1yc0MXDusx+SvN20o4sLdkBDlKCv4TaP1qSeZomDLR3cg7VT/H0qn nWXw8BR8UA3mEetoWKemmLbeRbGlblzfneHxDhrgofUPaENz+FAHRgxpvF4y7zrk4O7/ z9RvfU6OJyIr9R6Y0o+vR3yhQttN7GTcIp+5o31G5a3TX0Q9QzmP9nDunk25O1Z89e3i u5FA== X-Gm-Message-State: AOAM532PF+1qJIMfEzjvnmmDXfWKudMYiSlDe1XTXP5Vlzcl1Cwcr4yT pDN9pGjaajL41LxdkiKM1uCTfL+dVWwBjw== X-Received: by 2002:a2e:bb85:: with SMTP id y5mr5045243lje.207.1631293505129; Fri, 10 Sep 2021 10:05:05 -0700 (PDT) Received: from kari-VirtualBox ([31.132.12.44]) by smtp.gmail.com with ESMTPSA id h21sm608079lfv.273.2021.09.10.10.05.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Sep 2021 10:05:04 -0700 (PDT) Date: Fri, 10 Sep 2021 20:05:03 +0300 From: Kari Argillander To: =?utf-8?B?SsOpcsO0bWU=?= Pouiller 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 Message-ID: <20210910170503.cnc2eri32v3bgo65@kari-VirtualBox> References: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> <20210910160504.1794332-30-Jerome.Pouiller@silabs.com> <20210910162718.tjcwwxtxbr3ugdgf@kari-VirtualBox> <3556920.DX4m0svyV5@pc-42> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3556920.DX4m0svyV5@pc-42> Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Fri, Sep 10, 2021 at 06:49:30PM +0200, J?r?me Pouiller wrote: > 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?r?me 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. > > > > How so? You see right away that this indeed is header guard and not some > > other random thing. Also kernel coding standard says: > > > > 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. > > > > 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: That one is of course true. > > [...] > > > 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 > [...] > > -- > J?r?me Pouiller > >