From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marc Kleine-Budde Subject: Re: [PATCH 1/6] canfd: add new data structures and constants Date: Mon, 18 Jun 2012 22:20:43 +0200 Message-ID: <4FDF8D9B.5010906@pengutronix.de> References: <4FDF67C3.6020201@hartkopp.net> <4FDF7DE1.6000803@pengutronix.de> <4FDF7F25.8040605@hartkopp.net> <4FDF8614.9040707@pengutronix.de> <4FDF87C3.5010209@pengutronix.de> <4FDF8980.7000509@hartkopp.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig6EA6BA7792012F87ECAC4F20" Return-path: Received: from metis.ext.pengutronix.de ([92.198.50.35]:41645 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751700Ab2FRUUv (ORCPT ); Mon, 18 Jun 2012 16:20:51 -0400 In-Reply-To: <4FDF8980.7000509@hartkopp.net> Sender: linux-can-owner@vger.kernel.org List-ID: To: Oliver Hartkopp Cc: "linux-can@vger.kernel.org" This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig6EA6BA7792012F87ECAC4F20 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 06/18/2012 10:03 PM, Oliver Hartkopp wrote: >>> Err..this is a userspace header, I just tested it, headers_install >>> doesn't remove it. And userspace fails to compile with this. For now >>> stick to __attribute__((aligned(8))). >> >> BTW: and it fails to compile due to a __kernel_sa_family_t which isn't= >> defined on my ubuntu with 2.6.32er headers >=20 >=20 > __kernel_sa_family_t is defined in include/linux/socket.h but with >=20 > #ifdef __KERNEL__ >=20 > around it. >=20 > typedef __kernel_sa_family_t sa_family_t; >=20 > What do you compile? canutils, I used linux/can.h generated by install_headers. > If you compile a kernel -> it is defined. > If you compile an application -> it is not needed. You need recent kernel headers on your linux box to work. On the compiler machine in the office we have: $ grep __kernel_sa_family_t /usr/include/linux/socket.h typedef unsigned short __kernel_sa_family_t; __kernel_sa_family_t ss_family; /* address family= */ Marc --=20 Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de | --------------enig6EA6BA7792012F87ECAC4F20 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk/fjZ4ACgkQjTAFq1RaXHOHJQCfbpGiUftHEWSpZy8JYdoNyxu+ bV4AnRmzIRG3G4RMT3XBDwHR9I4fdcOz =VQWR -----END PGP SIGNATURE----- --------------enig6EA6BA7792012F87ECAC4F20--