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


Groups > linux.kernel > #1490730

Re: [PATCH] HSI: omap_ssi_core: move function declaration to header file

Path csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod
From Sebastian Reichel <sre@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH] HSI: omap_ssi_core: move function declaration to header file
Date Sat, 24 Sep 2016 21:40:02 +0200
Message-ID <sl0XM-53s-15@gated-at.bofh.it> (permalink)
References <skNxv-5iQ-1@gated-at.bofh.it> <skQYp-7h6-1@gated-at.bofh.it>
X-Original-To Arnd Bergmann <arnd@arndb.de>
MIME-Version 1.0
Content-Type multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="idtq3nmcjfzfkbkb"
Content-Disposition inline
User-Agent NeoMutt/20160910 (1.7.0)
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 72
Organization linux.* mail to news gateway
X-Original-Cc Baoyou Xie <baoyou.xie@linaro.org>, linux-kernel@vger.kernel.org, xie.baoyou@zte.com.cn
X-Original-Date Sat, 24 Sep 2016 21:36:09 +0200
X-Original-Message-ID <20160924193608.a5n2c5qfz2lug57k@earth>
X-Original-References <1474693916-11789-1-git-send-email-baoyou.xie@linaro.org> <8643667.VP5CpNPstK@wuerfel>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1490730

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

Hi,

On Sat, Sep 24, 2016 at 10:58:15AM +0200, Arnd Bergmann wrote:
> On Saturday, September 24, 2016 1:11:56 PM CEST Baoyou Xie wrote:
> > ---
> >  drivers/hsi/clients/ssi_protocol.c | 2 --
> >  include/linux/hsi/hsi.h            | 1 +
> >  2 files changed, 1 insertion(+), 2 deletions(-)
> > 
> > diff --git a/drivers/hsi/clients/ssi_protocol.c b/drivers/hsi/clients/ssi_protocol.c
> > index 6031cd1..fe86444 100644
> > --- a/drivers/hsi/clients/ssi_protocol.c
> > +++ b/drivers/hsi/clients/ssi_protocol.c
> > @@ -45,8 +45,6 @@
> >  #include <linux/hsi/hsi.h>
> >  #include <linux/hsi/ssi_protocol.h>
> >  
> > -void ssi_waketest(struct hsi_client *cl, unsigned int enable);
> > -
> >  #define SSIP_TXQUEUE_LEN       100
> >  #define SSIP_MAX_MTU           65535
> >  #define SSIP_DEFAULT_MTU       4000
> > 
> 
> Maybe the declaration should be moved to include/linux/hsi/ssi_protocol.h
> instead of include/linux/hsi/hsi.h?

ssi_protocol.h is not included by the ssi (controller) driver, so
that will not fix the warning.

> It's not completely clear as the exported function is a bit of a
> layering violation.

Yes it is and the code contains a^W lots of FIXME about this. I have
not yet tried to remove it as suggested in the FIXME (which predates
my maintenance, but it's probably not possible without modifying the
modem FW).

I'm fine with adding it the function prototype to hsi.h to fix the
warning, but please add a comment, that it's a layering violation
and should not be used.

-- Sebastian

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


Thread

[PATCH] HSI: omap_ssi_core: move function declaration to header file Baoyou Xie <baoyou.xie@linaro.org> - 2016-09-24 07:20 +0200
  Re: [PATCH] HSI: omap_ssi_core: move function declaration to header file Arnd Bergmann <arnd@arndb.de> - 2016-09-24 11:00 +0200
    Re: [PATCH] HSI: omap_ssi_core: move function declaration to header  file Sebastian Reichel <sre@kernel.org> - 2016-09-24 21:40 +0200

csiph-web