All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denys Dmytriyenko <denys@ti.com>
To: Ankur Tyagi <ankur.tyagi85@gmail.com>
Cc: meta-arago@arago-project.org
Subject: Re: [PATCH] Fix bluetooth.h compilation error with strict C
Date: Mon, 1 Feb 2016 17:03:04 -0500	[thread overview]
Message-ID: <20160201220304.GV11314@edge> (raw)
In-Reply-To: <CADySD0G_Sy+0JasUQ=R7Du-iwwLH4OKZ4UBp7v4srHvzDPK50A@mail.gmail.com>

Can you please specify:
* what combination of setup and toolchain causes the error (not seen here)
* where this patch comes from
* update Upstream-Status: field accordingly[1]

[1] http://openembedded.org/wiki/Commit_Patch_Message_Guidelines#Patch_Header_Recommendations

-- 
Denys


On Sat, Jan 30, 2016 at 09:30:22AM +1300, Ankur Tyagi wrote:
> This patch fixes the compilation error of bluetooth.h on fido branch
> 
> regards
> Ankur
> 
> Signed-off-by: Ankur Tyagi <ankur.tyagi@gallagher.com>
> ---
>  .../0001-strict-C-compilation-error-fix.patch      | 41
> ++++++++++++++++++++++
>  .../bluez/bluez4_4.101.bbappend                    |  1 +
>  2 files changed, 42 insertions(+)
>  create mode 100644
> meta-arago-distro/recipes-connectivity/bluez/bluez4/0001-strict-C-compilation-error-fix.patch
> 
> diff --git
> a/meta-arago-distro/recipes-connectivity/bluez/bluez4/0001-strict-C-compilation-error-fix.patch
> b/meta-arago-distro/recipes-connectivity/bluez/bluez4/0001-strict-C-compilation-error-fix.patch
> new file mode 100644
> index 0000000..c2cac24
> --- /dev/null
> +++
> b/meta-arago-distro/recipes-connectivity/bluez/bluez4/0001-strict-C-compilation-error-fix.patch
> @@ -0,0 +1,41 @@
> +From d7fab1e161c2344875b1b0a2363f1f62efdd6cd4 Mon Sep 17 00:00:00 2001
> +From: Ankur Tyagi <ankur.tyagi@gallagher.com>
> +Date: Thu, 14 Jan 2016 18:12:23 +1300
> +Subject: [PATCH 1/1] strict C compilation error fix
> +
> +Signed-off-by: Ankur Tyagi <ankur.tyagi@gallagher.com>
> +---
> + lib/bluetooth.h | 10 +++++-----
> + 1 file changed, 5 insertions(+), 5 deletions(-)
> +
> +diff --git a/lib/bluetooth.h b/lib/bluetooth.h
> +index 0fc4508..449431d 100644
> +--- a/lib/bluetooth.h
> ++++ b/lib/bluetooth.h
> +@@ -138,18 +138,18 @@ enum {
> +
> + /* Bluetooth unaligned access */
> + #define bt_get_unaligned(ptr)            \
> +-({                        \
> ++__extension__ ({                \
> +    struct __attribute__((packed)) {    \
> +-        typeof(*(ptr)) __v;        \
> +-    } *__p = (typeof(__p)) (ptr);        \
> ++        __typeof__(*(ptr)) __v;        \
> ++    } *__p = (__typeof__(__p)) (ptr);    \
> +    __p->__v;                \
> + })
> +
> + #define bt_put_unaligned(val, ptr)        \
> + do {                        \
> +    struct __attribute__((packed)) {    \
> +-        typeof(*(ptr)) __v;        \
> +-    } *__p = (typeof(__p)) (ptr);        \
> ++        __typeof__(*(ptr)) __v;        \
> ++    } *__p = (__typeof__(__p)) (ptr);    \
> +    __p->__v = (val);            \
> + } while(0)
> +
> +--
> +1.9.1
> +
> diff --git
> a/meta-arago-distro/recipes-connectivity/bluez/bluez4_4.101.bbappend
> b/meta-arago-distro/recipes-connectivity/bluez/bluez4_4.101.bbappend
> index d111425..acda4ee 100644
> --- a/meta-arago-distro/recipes-connectivity/bluez/bluez4_4.101.bbappend
> +++ b/meta-arago-distro/recipes-connectivity/bluez/bluez4_4.101.bbappend
> @@ -5,6 +5,7 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
>  SRC_URI +=
> "file://bluez4-fix-synchronization-between-bluetoothd-and-dr.patch \
>              file://0001-socket-enable-for-bluez-4_98.patch \
>              file://0001-bluez-enable-source-interface.patch \
> +            file://0001-strict-C-compilation-error-fix.patch \
>  "
>  # udev 150-170 provide its on hid2hci tool and udev rules for it.
> Therefore,
>  # disabling hid2hci from bluez4.
> --

> _______________________________________________
> meta-arago mailing list
> meta-arago@arago-project.org
> http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago



  reply	other threads:[~2016-02-01 22:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-29 20:30 [PATCH] Fix bluetooth.h compilation error with strict C Ankur Tyagi
2016-02-01 22:03 ` Denys Dmytriyenko [this message]
2016-02-01 22:38   ` Ankur Tyagi
2016-02-08 17:49     ` Denys Dmytriyenko
2016-02-08 22:26 Ankur Tyagi
2016-02-09  0:16 Ankur Tyagi
2016-02-09  1:06 Ankur Tyagi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160201220304.GV11314@edge \
    --to=denys@ti.com \
    --cc=ankur.tyagi85@gmail.com \
    --cc=meta-arago@arago-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.