From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH 4/6] qede: add driver common module Date: Sat, 20 Feb 2016 17:29:03 -0800 Message-ID: <20160220172903.52db2811@xeon-e3> References: <1455983911-17812-1-git-send-email-harish.patil@qlogic.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org, Sony Chacko To: Return-path: Received: from mail-pa0-f42.google.com (mail-pa0-f42.google.com [209.85.220.42]) by dpdk.org (Postfix) with ESMTP id 64C52C5A8 for ; Sun, 21 Feb 2016 06:35:33 +0100 (CET) Received: by mail-pa0-f42.google.com with SMTP id fl4so72962808pad.0 for ; Sat, 20 Feb 2016 21:35:33 -0800 (PST) In-Reply-To: <1455983911-17812-1-git-send-email-harish.patil@qlogic.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Sat, 20 Feb 2016 07:58:31 -0800 wrote: > +unsigned long log2_align(unsigned long n) > +{ Common code is good, but you need to practice good function name hygiene on public functions to avoid any namespace clashes when using static linking. The application might define a function with log2_align. Either make the functions static, or use a common prefix for all qede internal functions.