Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1652182

Re: [PATCH 2/3] x86/mce/AMD: Define a list_head for threshold blocks outside the list

From Borislav Petkov <bp@alien8.de>
Newsgroups linux.kernel
Subject Re: [PATCH 2/3] x86/mce/AMD: Define a list_head for threshold blocks outside the list
Date 2017-05-28 19:30 +0200
Message-ID <tMaaR-4Wf-1@gated-at.bofh.it> (permalink)
References <tMaaR-4Wf-3@gated-at.bofh.it> <tMaaR-4Wf-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, May 24, 2017 at 03:41:46PM -0500, Yazen Ghannam wrote:
> From: Yazen Ghannam <yazen.ghannam@amd.com>
> 
> There needs to be a list_head outside of a linked list in order to iterate
> over it and have access to all its elements. This is because the
> list_for_each* macros iterate starting from head->next rather than head.
> 
> Define a list_head for the threshold blocks list in struct threshold_bank

struct threshold_block {

	...

        struct list_head miscj;                 /*
                                                 * List of threshold blocks
                                                 * within a bank.
                                                 */

There's your list_head right there.

-- 
Regards/Gruss,
    Boris.

Good mailing practices for 400: avoid top-posting and trim the reply.

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: [PATCH 2/3] x86/mce/AMD: Define a list_head for threshold blocks  outside the list Borislav Petkov <bp@alien8.de> - 2017-05-28 19:30 +0200
  RE: [PATCH 2/3] x86/mce/AMD: Define a list_head for threshold blocks  outside the list "Ghannam, Yazen" <Yazen.Ghannam@amd.com> - 2017-05-30 14:50 +0200
    Re: [PATCH 2/3] x86/mce/AMD: Define a list_head for threshold blocks  outside the list Borislav Petkov <bp@alien8.de> - 2017-05-30 16:00 +0200
      RE: [PATCH 2/3] x86/mce/AMD: Define a list_head for threshold blocks  outside the list "Ghannam, Yazen" <Yazen.Ghannam@amd.com> - 2017-05-30 16:10 +0200
        Re: [PATCH 2/3] x86/mce/AMD: Define a list_head for threshold blocks  outside the list Borislav Petkov <bp@alien8.de> - 2017-05-30 16:20 +0200

csiph-web