Re: [PATCH 08/10] netfilter: Adjust code style of xt_*.h, ipt_*.h files.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 7 Jan 2025, Szőke Benjamin wrote:

> 2025. 01. 07. 20:39 keltezéssel, Jozsef Kadlecsik írta:
> > On Tue, 7 Jan 2025, egyszeregy@xxxxxxxxxxx wrote:
> > 
> > > From: Benjamin Szőke <egyszeregy@xxxxxxxxxxx>
> > > 
> > > - Adjust tab indents
> > > - Fix format of #define macros
> > 
> > I don't really understand why it'd be important to use parentheses 
> > around plain constant values in macros. The kernel coding style does 
> > not list it as a requirement, see 12) 4. in 
> > Documentation/process/coding-style.rst.
> 
> If it would be more than just a const value, parentheses is a must have 
> thing for it (now for it, it is not critical to have it but better to 
> get used to this). This is how my hand automatically do it, to avoid the 
> syntax problem in this coding.

Are you going to "fix" this "issue" in the whole kernel tree?

If yes, then please propose changes to the coding style documentation as 
well.

If no, then please keep the macros as is because the changes would just 
introduce more different kind of notations in the source tree.

Best regards,
Jozsef
-- 
E-mail : kadlec@xxxxxxxxxxxxx, kadlec@xxxxxxxxxxxxxxxxx, kadlecsik.jozsef@xxxxxxxxx
Address: Wigner Research Centre for Physics
         H-1525 Budapest 114, POB. 49, Hungary

[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux