defconfig: use my own

Signed-off-by: Dan Trifan <jimsth@gmail.com>
lib:makefile: fix compile error on GCC 4.7 with -O2/-O3 compilation

Fixes this:

lib/bitmap.c: In function 'bitmap_scnprintf':
lib/bitmap.c:401:1: internal compiler error: output_operand: invalid
shift operand

Signed-off-by: Dan Trifan <jimsth@gmail.com>
timeconst.pl: Eliminate Perl warning

commit 63a3f603413ffe82ad775f2d62a5afff87fd94a0 upstream.

defined(@array) is deprecated in Perl and gives off a warning.
Restructure the code to remove that warning.

[ hpa: it would be interesting to revert to the timeconst.bc script.
  It appears that the failures reported by akpm during testing of
  that script was due to a known broken version of make, not a problem
  with bc.  The Makefile rules could probably be restructured to avoid
  the make bug, or it is probably old enough that it doesn't matter. ]

Reported-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Signed-off-by: Dan Trifan <jimsth@gmail.com>
arch:arm:vfp: use neon flag and hardfloat

Signed-off-by: Dan Trifan <jimsth@gmail.com>
selinux: Fix Kernel panic due to NULL pointer dereference

Below Kernel panic is observed due to race condition, where
sock_has_perm called in a thread and is trying to access sksec->sid
without checking sksec. Just before that, sk->sk_security was set
to NULL by selinux_sk_free_security through sk_free in other thread.

31704.949269:   <3> IPv4: Attempt to release alive inet socket dd81b200
31704.959049:   <1> Unable to handle kernel NULL pointer dereference at \
                        virtual address 00000000
31704.983562:   <1> pgd = c6b74000
31704.985248:   <1> [00000000] *pgd=00000000
31704.996591:   <0> Internal error: Oops: 5 [#1] PREEMPT SMP ARM
31705.001016:   <6> Modules linked in: adsprpc [last unloaded: wlan]
31705.006659:   <6> CPU: 1    Tainted: G           O  \
                        (3.4.0-g837ab9b-00003-g6bcd9c6 #1)
31705.014042:   <6> PC is at sock_has_perm+0x58/0xd4
31705.018292:   <6> LR is at sock_has_perm+0x58/0xd4
31705.022546:   <6> pc : [<c0341e8c>]    lr : [<c0341e8c>]    \
                                                  psr: 60000013
31705.022549:   <6> sp : dda27f00  ip : 00000000  fp : 5f36fc84
31705.034002:   <6> r10: 00004000  r9 : 0000009d  r8 : e8c2b700
31705.039211:   <6> r7 : dda27f24  r6 : dd81b200  r5 : 00000000  \
                                                  r4 : 00000000
31705.045721:   <6> r3 : 00000000  r2 : dda27ef8  r1 : 00000000  \
                                                  r0 : dda27f54
31705.052232:   <6> Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM \
                        Segment user
31705.059349:   <6> Control: 10c5787d  Table: 10d7406a  DAC: 00000015
.
.
.
.
31705.697816:   <6> [<c0341e8c>] (sock_has_perm+0x58/0xd4) from \
                    [<c033ed10>] (security_socket_getsockopt+0x14/0x1c)
31705.707534:   <6> [<c033ed10>] (security_socket_getsockopt+0x14/0x1c) \
                           from [<c0745c18>] (sys_getsockopt+0x34/0xa8)
31705.717343:   <6> [<c0745c18>] (sys_getsockopt+0x34/0xa8) from \
                    [<c0106140>] (ret_fast_syscall+0x0/0x30)
31705.726193:   <0> Code: e59832e8 e5933058 e5939004 ebfac736 (e5953000)
31705.732635:   <4> ---[ end trace 22889004dafd87bd ]---

Change-Id: I79c3fb525f35ea2494d53788788cd71a38a32d6b
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
Signed-off-by: Dan Trifan <jimsth@gmail.com>
Makefile: adding config variable for Os/O2/O3 compilation

Signed-off-by: Dan Trifan <jimsth@gmail.com>
defconfig: optimize -O3

Signed-off-by: Dan Trifan <jimsth@gmail.com>
fix compilation with -O3 and gcc 4.8

* credits: showp1984, LaboDJ and bruce2728

Signed-off-by: Dan Trifan <jimsth@gmail.com>
makefile: try some Dave flags

Signed-off-by: Dan Trifan <jimsth@gmail.com>
defconfig: enable USB OTG

Signed-off-by: Dan Trifan <jimsth@gmail.com>
Make Graphite Optimizations a config option to easily enable/disable it

Signed-off-by: Dan Trifan <jimsth@gmail.com>
Add config option to enable/disable Link time optimization

Signed-off-by: Dan Trifan <jimsth@gmail.com>
mach-msm: Remove smd debugging

* Most of the debug options are enabled only by defconfig.  Here is an instance where that is not the case.

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Signed-off-by: Dan Trifan <jimsth@gmail.com>
bcmdhd: Disable Debugging

* Not needed so let's nuke it!

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Signed-off-by: Dan Trifan <jimsth@gmail.com>
net: wireless: bcmdhd: Remove noisy message

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Signed-off-by: Dan Trifan <jimsth@gmail.com>
drivers: input: tablet: fix warning oldval[2] may be used uninitialized

 * warning oldval[2] may be used uninitialized in this function [-Wmaybe-uninitialized]

Signed-off-by: Dan Trifan <jimsth@gmail.com>
drivers/input/tablet/gtco.c: fix: 'warning: 'oldval[2]' may be used uninitialized in this function'

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
Signed-off-by: Dan Trifan <jimsth@gmail.com>
makefile: disable funroll-loops

Signed-off-by: Dan Trifan <jimsth@gmail.com>
fix compilation with gcc 4.9

* Credits and big thanks to LaboDJ <jacopolabardi@gmail.com>

Signed-off-by: Dan Trifan <jimsth@gmail.com>
kernel: Fix all leaks and cleanup

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Dan Trifan <jimsth@gmail.com>