lkml.org 
[lkml]   [2022]   [Aug]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2] mm: deduplicate cacheline padding code
On Fri, 26 Aug 2022 23:06:42 +0000 Shakeel Butt <shakeelb@google.com> wrote:

> There are three users (mmzone.h, memcontrol.h, page_counter.h) using
> similar code for forcing cacheline padding between fields of different
> structures. Dedup that code.
>
> ...
>
> include/linux/cache.h | 13 +++++++++++++
> include/linux/memcontrol.h | 13 ++-----------
> include/linux/mmzone.h | 24 +++++-------------------
> include/linux/page_counter.h | 13 ++-----------

I'm looking for an obvious and reliable way in which those three
headers include cache.h. Seems that mm_types.h's inclusion of cache.h
should be sufficient. Direct inclusion of cache.h would of course be
safest. I guess if it breaks, we'll hear about it ;)

\
 
 \ /
  Last update: 2022-08-27 03:36    [W:0.040 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site