Modify VID for Compal

The original definition of VENDOR_ID_COMPAL is for Compal Communications, Inc.
But Compal Communications, Inc(CCI) had been merged into Compal Electronics, Inc(CEI) at April of 2014
So VENDOR_ID_COMPAL should be changed from 0x1219(CCI's VID) to 0x04B7(CEI's VID).
And add one new definition(VENDOR_ID_COMPALCOMM) for CCI to maintain old devices that use CCI's VID.
	modified:   adb/usb_vendors.c

Change-Id: I9e9a96f6cc81273ff2c9353a13e7ce3b0583396b
Fix list_for_each_safe macro

The second macro parameter is named 'next' like listnode structure
'next' field. Since the precompiler will expand all 'next' occurrences
in the macro definition with what is passed by the caller, it is not
possible to call this macro with something else than 'next' as second
parameter.

This patch replaces the 'next' parameter with 'n' allowing use of a
next node not named 'next'.

Change-Id: I78c859caf8193f21fe0bedaeaa8342d6e89ad14b
Signed-off-by: Thierry Escande <thierry.escande@linux.intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
ueventd: support by-name symlinks for PCI block devices

To ensure that well-crafted removable media can't spoof the
internal partitions, for platform devices the controller id
is inside the generated path.

We now do the same for PCI devices. The generated path has
two levels; the PCI domain/bus, and then the peripheral ID.
This lets us get by-name symlinks for PCI media, such as the
SATA controllers on PC-like hardware. The symlinks will be
created under /dev/block/pci/. For example:

/dev/block/pci/pci0000:00/0000:00:1f.2/by-name/

Change-Id: Icee3e86bef5569c2bbd94c26bc00d49028345e3b
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
Add list_add_head to libcutils

Adds a node to the head of the linked list.

Change-Id: I03fc81f348c5c4fdab8680928b6e353413e4bc3c
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Yong Yao <yong.yao@intel.com>
toolbox: turn on -Werror

- Deal with some signedness issues
- Deal with some size issues
- Deal with NULL pointer issues
- Deal with some -Wunused issues

Change-Id: I1479dd90d690084491bae3475f2c547833519a57
Merge "toolbox: turn on -Werror"
Move netd_client into netd.

(cherry picked from commit f1b21c5c735e9150c8f29bdb52db2f3eb3ffc469)

Change-Id: Ie4b6b303225c93f2448a503d6ea9cebb552cbad5
Merge "Move netd_client into netd."
toolbox: fix build

Change-Id: I4d37ae4ad19620f77e37b739fb1248b712b3f986
Signed-off-by: Greg Hackmann <ghackmann@google.com>
Merge "toolbox: fix build"
toolbox: fix x86 build

Change-Id: Iadedae749b31adb1310fa50a68b2dc19097c3654
Signed-off-by: Greg Hackmann <ghackmann@google.com>
Merge "toolbox: fix x86 build"
Merge "Modify VID for Compal"
libdiskconfig: Turn on -Werror

Change-Id: Ic0f5871bd434fda78df79b1417f7bc610d99f73e
libnetutils: Turn on -Werror

Change-Id: Ie6754f41f9348852a02cc0ff35befb5a76ac2882
libsync: Turn on -Werror

Change-Id: Ie34f935694034a069e844be64d6011eb9e3f9869
reboot: Turn on -Werror

Change-Id: Ic3186e457b80ee6149ef89321b0d16422872aea7
sdcard: Turn on -Werror

Change-Id: I40fce5a69a898e79542aa7688d077ff7bc40ed4f
libion: Turn on -Werror

Change-Id: I0a933623147fb7bfb7251b1d9213cc174619ed42
libsuspend: Turn on -Werror

Change-Id: I4ea982ab7d68a596ac79d93a01c05a109d24672d