From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030427AbcIXTgQ (ORCPT ); Sat, 24 Sep 2016 15:36:16 -0400 Received: from mail.kernel.org ([198.145.29.136]:48942 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030292AbcIXTgP (ORCPT ); Sat, 24 Sep 2016 15:36:15 -0400 Date: Sat, 24 Sep 2016 21:36:09 +0200 From: Sebastian Reichel To: Arnd Bergmann Cc: Baoyou Xie , linux-kernel@vger.kernel.org, xie.baoyou@zte.com.cn Subject: Re: [PATCH] HSI: omap_ssi_core: move function declaration to header file Message-ID: <20160924193608.a5n2c5qfz2lug57k@earth> References: <1474693916-11789-1-git-send-email-baoyou.xie@linaro.org> <8643667.VP5CpNPstK@wuerfel> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="idtq3nmcjfzfkbkb" Content-Disposition: inline In-Reply-To: <8643667.VP5CpNPstK@wuerfel> User-Agent: NeoMutt/20160910 (1.7.0) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --idtq3nmcjfzfkbkb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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(-) > >=20 > > diff --git a/drivers/hsi/clients/ssi_protocol.c b/drivers/hsi/clients/s= si_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 > > #include > > =20 > > -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 > >=20 >=20 > 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 --idtq3nmcjfzfkbkb Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAABCgAGBQJX5tWlAAoJENju1/PIO/qak2AP/0bCEym8ckeERJcWUwL6S5fh 0Matat2CHhV1nph+W8aqLCJEsBPr83w18Qp4aTg1i4VBaLaGo6scF+nuiL9jdrTG AcvBm2//90JM+1EkqC+8I6pOBpz2PYQ6Nwgq4LjTBMJAo5IG8l81bHruky7Ow2fT EChmk4OfG4HY3V1rcYsfawMg+VIpBZ7Yo+krMrGQVvLiNFEoTz2VQ4mjs8cR4E/w j+552IgsnIeCWYxM+brabAk+QTrRnZDDgN67kbeErBPeOGiAO8pleoqUfnLjCMDS Z7I6jmSOuPQUE3Ph/sTWkw+nDcINVJty9ZaDqJdWgxD5r7UhRkSLnEB6BrCtr+KH W8DadZf+yLakeLrKSp6HjsX2OcRMkbbDJdVuD69mdAj0/7CwdnAph1cK1+GA6PSH TRKB698s7p/uJAQNsg/W1qS31t7CyKCHaUNApO+CGSltuno+lsKa2XfxxSQFy7ft 56+4BSvTz/gAhMQKTlIeogzzA4fX4+AW6US/MRVFCAMBQRz2mOaBVXo4l+hhl83R NnmBQ/JV3xCbK0BNZCeOlowb/9oRCg5UptaEP+ZjkHlcvOtWhoLuCEhfFRLDQ66w gZlWJCu5QyHhm5vkxe00rqx9zqgQFQ4cwvktVVyQV804s7bJJK/p0TSDUDzTfy+A uGLZqiZOqnQD+uyrYbEt =mRzf -----END PGP SIGNATURE----- --idtq3nmcjfzfkbkb--