lkml.org 
[lkml]   [2010]   [May]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[19/34] x86, k8: Fix build error when K8_NB is disabled
    2.6.34-stable review patch.  If anyone has any objections, please let us know.

    ------------------

    From: Borislav Petkov <borislav.petkov@amd.com>

    commit ade029e2aaacc8965a548b0b0f80c5bee97ffc68 upstream.

    K8_NB depends on PCI and when the last is disabled (allnoconfig) we fail
    at the final linking stage due to missing exported num_k8_northbridges.
    Add a header stub for that.

    Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
    LKML-Reference: <20100503183036.GJ26107@aftab>
    Signed-off-by: H. Peter Anvin <hpa@zytor.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    arch/x86/include/asm/k8.h | 5 +++++
    1 file changed, 5 insertions(+)

    --- a/arch/x86/include/asm/k8.h
    +++ b/arch/x86/include/asm/k8.h
    @@ -13,11 +13,16 @@ extern void k8_flush_garts(void);
    extern int k8_scan_nodes(unsigned long start, unsigned long end);

    #ifdef CONFIG_K8_NB
    +extern int num_k8_northbridges;
    +
    static inline struct pci_dev *node_to_k8_nb_misc(int node)
    {
    return (node < num_k8_northbridges) ? k8_northbridges[node] : NULL;
    }
    +
    #else
    +#define num_k8_northbridges 0
    +
    static inline struct pci_dev *node_to_k8_nb_misc(int node)
    {
    return NULL;



    \
     
     \ /
      Last update: 2010-05-25 01:13    [W:4.065 / U:0.184 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site