From mboxrd@z Thu Jan 1 00:00:00 1970 From: Borislav Petkov Subject: Re: [PATCH V3 1/5] perf/amd/iommu: Consolidate and move perf_event_amd_iommu header Date: Wed, 10 Feb 2016 19:51:46 +0100 Message-ID: <20160210185146.GA11024@pd.tnic> References: <1455058435-8716-1-git-send-email-Suravee.Suthikulpanit@amd.com> <1455058435-8716-2-git-send-email-Suravee.Suthikulpanit@amd.com> <20160210164116.GG23914@pd.tnic> <56BB84AC.5080605@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <56BB84AC.5080605-5C7GfCeVMHo@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Suravee Suthikulpanit Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, peterz-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, acme-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, andihartmann-KuiJ5kEpwI6ELgA04lAiVw@public.gmane.org, mingo-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org List-Id: iommu@lists.linux-foundation.org On Thu, Feb 11, 2016 at 01:42:52AM +0700, Suravee Suthikulpanit wrote: > The reason I picked this location to place the header file is because > there is already an existing include/linux/perf/arm_pmu.h file there. I don't think anything arch-specific belongs in generic kernel header paths. > So, I thought it might be alright to put the perf_event_amd_iommu.h > here. > > Having the information in the file arch/x86/events/amd/iommu.h seems > strange for having to specify ../../arch/x86/events/amd/iommu.h in the > IOMMU driver. > > So, you think it would be alright if move > > include/linux/perf/perf_event_amd_iommu.h > to > arch/x86/include/perf/perf_event_amd_iommu.h If it feels strange to you, you can move it to arch/x86/include/asm/ There we put the arch-specific stuff. Then you can do #include or so. I've moved it to arch/x86/events/amd/iommu.h already anyway. -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply.