Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752460AbeABOZA (ORCPT + 1 other); Tue, 2 Jan 2018 09:25:00 -0500 Received: from mx2.suse.de ([195.135.220.15]:52423 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751426AbeABOY7 (ORCPT ); Tue, 2 Jan 2018 09:24:59 -0500 Subject: Re: [PATCH] x86/xen/time: fix section mismatch for xen_init_time_ops() To: Boris Ostrovsky , Nick Desaulniers Cc: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org References: <1514083813-27047-1-git-send-email-nick.desaulniers@gmail.com> <52b547c5-509a-3a82-12cd-4d9d0a06b53f@oracle.com> From: Juergen Gross Message-ID: Date: Tue, 2 Jan 2018 15:24:55 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <52b547c5-509a-3a82-12cd-4d9d0a06b53f@oracle.com> Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On 02/01/18 15:18, Boris Ostrovsky wrote: > On 12/23/2017 09:50 PM, Nick Desaulniers wrote: >> The header declares this function as __init but is defined in __ref >> section. >> >> Signed-off-by: Nick Desaulniers > > AFAIK section attributes in header files are ignored by compiler anyway > so I'd remove all of them. Hmm, I'm not sure all future compilers will ignore the section attributes. include/linux/init.h explictily mentions where to put the attrubute in a prototype, so I'd rather keep it. Juergen