Commit Graph

1091839 Commits

Author SHA1 Message Date
Greg Kroah-Hartman
5f270dfe06 Merge cda4351252 ("Merge tag 'folio-5.18d' of git://git.infradead.org/users/willy/pagecache") into android-mainline
Steps on the way to 5.18-rc1

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I1a4a3d7d261b27fc157d08f54b189a6892602e35
2022-04-14 14:48:08 +02:00
Greg Kroah-Hartman
9b516bbc18 Revert "ANDROID: mm: Create vendor hooks to control ZONE_MOVABLE allocations"
This reverts commit 62e32cf8f3 as it
causes merge issues with the readahead rework that happened in 5.18-rc1
and would be incorrect.

If it is still needed, it can be added back at a later time.

Bug: 158645321
Cc: Chris Goldsworthy <cgoldswo@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I886f8a528cfed1d4c9a93468a9d2a4384fdecfe0
2022-04-14 12:19:38 +02:00
Greg Kroah-Hartman
61b6d6f903 Merge d0d642a5d3 ("Merge tag 'sound-fix-5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound") into android-mainline
Steps on the way to 5.18-rc1

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I5f1abc34f93d7ae438ece408089b8e52d467ad94
2022-04-14 10:22:52 +02:00
Greg Kroah-Hartman
18b67a06b4 Merge 9512433987 ("Merge tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux") into android-mainline
Steps on the way to 5.18-rc1

Resolves conflicts in:
	drivers/clk/clk.c

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: If598f86de1255b718285149b3128cefc693606e1
2022-04-14 08:08:14 +02:00
Greg Kroah-Hartman
3b9aa20661 ANDROID: gki_defconfig: remove CONFIG_ND_BLK
It was not used, and was removed in commit f8669f1d6a ("nvdimm/blk:
Delete the block-aperture window driver") so remove it from the
gki_defconfig files so the build works properly.

Fixes: f8669f1d6a ("nvdimm/blk: Delete the block-aperture window driver")
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Ifedc35a228240bd042000cf1808b084fdb0a6c4b
2022-04-14 08:04:50 +02:00
Greg Kroah-Hartman
87b45951b4 Merge ee96dd9614 ("Merge tag 'libnvdimm-for-5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm") into android-mainline
Steps on the way to 5.18-rc1

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I4346c3d87bc97d67d15790157fa4c018dd4135c2
2022-04-13 20:52:11 +02:00
Greg Kroah-Hartman
7e9c0ae634 Merge 7203062171 ("Merge tag 'tty-5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty") into android-mainline
Steps on the way to 5.18-rc1

Resolves merge conflicts with:
	drivers/tty/serial/Kconfig

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I91e137138d20c5807c0b4ec50a5f29070aeda5c1
2022-04-13 20:11:31 +02:00
Jakob Koschel
4f49a861af FROMLIST: staging: android: ashmem: remove usage of list iterator after the loop body
In preparation to limit the scope of a list iterator to the list
traversal loop, use a dedicated pointer to point to the found element
[1].

Before, the code implicitly used the head when no element was found
when using &pos->list. Since the new variable is only set if an
element was found, the head needs to be used explicitly if the
variable is NULL.

Link: https://lore.kernel.org/all/CAHk-=wgRr_D8CB-D9Kg-c=EHreAsk5SqXPwr9Y7k9sA6cWXJ6w@mail.gmail.com/ [1]
Signed-off-by: Jakob Koschel <jakobkoschel@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Ifaf19dd876a513a1952fac448079d664aebdf604
2022-04-13 13:45:27 +02:00
Greg Kroah-Hartman
f5eed40f62 Revert "staging: remove ashmem"
This reverts commit 721412ed3d.

Android just isn't ready yet to give it up :(

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Ie0a443d55e6e72df97c3d3eabb7358ae3a12548a
2022-04-13 13:45:15 +02:00
Greg Kroah-Hartman
0d9670519c Merge dfdc1de642 ("Merge tag 'staging-5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging") into android-mainline
Steps on the way to 5.18-rc1

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Idfedaa5459b8af0fdfc56e481619772243ef45c9
2022-04-13 13:43:22 +02:00
Greg Kroah-Hartman
094f5702db ANDROID: debug_kinfo driver, move to drivers/android
drivers/staging/android is going away, and systems seem to be relying on
this driver now, so move it into drivers/android/ to make everything
self-contained and prevent merge issues later on.

Bug: 170851792
Bug: 169101608
Cc: Jone Chou <jonechou@google.com>
Cc: Will McVicker <willmcvicker@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Ib969a7544ea74881da61d7cba1f529a269921049
2022-04-13 13:42:33 +02:00
Greg Kroah-Hartman
d47f47bc9e Merge 266d17a8c0 ("Merge tag 'driver-core-5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core") into android-mainline
Steps on the way to 5.18-rc1

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I852d009bc55285127adfc6f2805c465877c8ce93
2022-04-13 13:41:37 +02:00
Greg Kroah-Hartman
565610cd3e Merge 02e2af20f4 ("Merge tag 'char-misc-5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc") into android-mainline
Steps on the way to 5.18-rc1

Resolves conflicts in:
	drivers/misc/Makefile

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I0655b24154747e5a25b245e1fbc79ab7924ac956
2022-04-13 13:40:36 +02:00
Greg Kroah-Hartman
dbf75dad1f Merge ff61bc81b3 ("Merge tag 'pinctrl-v5.18-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl") into android-mainline
Steps on the way to 5.18-rc1

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I575022847e52ace6d4c97ccfa92e53ef47afb84e
2022-04-13 09:10:20 +02:00
Yi Kong
fd3d3e7651 ANDROID: clang: update to 14.0.4
Bug: 225394140
Signed-off-by: Yi Kong <yikong@google.com>
Change-Id: I9827278521b2b7599c22e3df09d27d13b85ef44b
2022-04-13 08:31:38 +08:00
Greg Kroah-Hartman
3cac3109b7 Merge 5627ecb837 ("Merge branch 'i2c/for-mergewindow' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux") into android-mainline
Steps on the way to 5.18-rc1

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Iabcb0b5687850e4472a900e6e1474e649478ca24
2022-04-12 17:02:17 +02:00
Greg Kroah-Hartman
3d16825c1a Merge 8eb48fc7c5 ("Merge tag 'for-v5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply") into android-mainline
Steps on the way to 5.18-rc1

Resolves merge conflicts with:
	drivers/power/supply/power_supply_sysfs.c
	include/linux/power_supply.h

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I14c826ab364818e5b7368c054ce4433a791ad7da
2022-04-12 15:16:09 +02:00
Greg Kroah-Hartman
f5e944d29f ANDROID: arm64 gki_defconfig fixup
Commit 1d38fe6ee6 ("PCI/VGA: Move vgaarb to drivers/pci")caused the
CONFIG_VGA_ARB configuration option to move places, which broke the
build.  Move it to the correct location so that TreeHugger tests knows
that all is still good.

Fixes: 1d38fe6ee6 ("PCI/VGA: Move vgaarb to drivers/pci")
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I91be80867c80b67f5b428ab8c843e9618a54fbfb
2022-04-12 13:43:00 +02:00
Greg Kroah-Hartman
95884f2e54 Merge 148a650476 ("Merge tag 'pci-v5.18-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci") into android-mainline
Steps on the way to 5.18-rc1

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I9330e5073d31f912c6223229dc6b67055cd6a6f2
2022-04-12 08:02:55 +02:00
Greg Kroah-Hartman
0960189029 Merge 636f64db07 ("Merge tag 'ras_core_for_v5.18_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip") into android-mainline
Steps on the way to 5.18-rc1

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Iac3cf58d5544ee278ac21849cb7ca2b1a4a8e328
2022-04-09 16:53:26 +02:00
Greg Kroah-Hartman
cb11849339 Merge 50560ce6a0 ("Merge tag 'kbuild-gnu11-v5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild") into android-mainline
Steps on the way to 5.18-rc1

Resolves conflicts in:
	Makefile

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Ife7abfd4c100789add6803a80b29eb66663c1e0b
2022-04-09 16:04:46 +02:00
Greg Kroah-Hartman
ab0e462f0f Merge 29c8c18363 ("Merge branch 'akpm' (patches from Andrew)") into android-mainline
Steps on the way to 5.18-rc1

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I7136fff0645dbb9c012f45f766ba788552f002c7
2022-04-08 12:55:14 +02:00
Greg Kroah-Hartman
b91849a8da Merge aa5b537b0e ("Merge tag 'riscv-for-linus-5.18-mw0' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux") into android-mainline
Steps on the way to 5.18-rc1

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Ib3706e8e395f2bcfa8c120f3491b2a3a34b3c70f
2022-04-08 12:52:21 +02:00
Greg Kroah-Hartman
d5da625ac4 ANDROID: dm-user: remove REQ_OP_WRITE_SAME
As of commit 73bd66d9c8 ("scsi: block: Remove REQ_OP_WRITE_SAME
support"), REQ_OP_WRITE_SAME is no longer present, so remove it from the
dm-user driver to fix the build as it is no longer needed.

Fixes: 73bd66d9c8 ("scsi: block: Remove REQ_OP_WRITE_SAME support")
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I6cdcea507c55d23ef090f8b96e0e90c5c1f0e09f
2022-04-08 07:22:56 +02:00
Greg Kroah-Hartman
26539e2f09 Merge 6f2689a766 ("Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi") into android-mainline
Steps on the way to 5.18-rc1

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I3e79a26a10e2a7f33198f63e55476b42582854a2
2022-04-08 07:22:26 +02:00
Greg Kroah-Hartman
3dcc848c1f Merge b1f8ccdaae ("Merge tag 'for-5.18/dm-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm") into android-mainline
Steps on the way to 5.18-rc1

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I77f9cb18239a5ce07aa1f51d40c9aeab10561146
2022-04-08 07:21:50 +02:00
Greg Kroah-Hartman
a9954d2db7 Merge 2dacc1e57b ("Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma") into android-mainline
Steps on the way to 5.18-rc1

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Id0ee951aba8f477e4d8b5b051aa5d8843a80c965
2022-04-08 07:21:05 +02:00
Greg Kroah-Hartman
4b7cbdd012 Merge b14ffae378 ("Merge tag 'drm-next-2022-03-24' of git://anongit.freedesktop.org/drm/drm") into android-mainline
Steps on the way to 5.18-rc1

Resolves merge conflicts in:
	include/linux/dma-buf.h

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Iac98a19746b56875a98835afe2c46c6646763399
2022-04-07 18:13:18 +02:00
Greg Kroah-Hartman
fb1e5deaa1 ANDROID: remove CONFIG_DEBUG_INFO from gki_defconfig files
As of commit f9b3cd2457 ("Kconfig.debug: make DEBUG_INFO selectable
from a choice"), CONFIG_DEBUG_INFO is selected if any of the other
DEBUG_INFO options is selected, so there is no need to have it
explicitly called out in the gki_defconfig files (as savedefconfig will
not contain it.)

So remove it from the files, which fixes the build issues due to this
change.

Fixes: f9b3cd2457 ("Kconfig.debug: make DEBUG_INFO selectable from a choice")
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I663080c06c00c340f8b2ca544208f612b6aaad67
2022-04-07 18:10:23 +02:00
Greg Kroah-Hartman
1556a8754f Merge 52deda9551 ("Merge branch 'akpm' (patches from Andrew)") into android-mainline
Steps on the way to 5.18-rc1

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I288cd525556eb2b446ae6bc64dcae10a272b3f8c
2022-04-07 18:09:42 +02:00
Nick Desaulniers
eff6c81fe8 Revert "ANDROID: disable PINCTRL_THUNDERBAY from allmodconfig builds"
This reverts commit 3877717bd7.

Nathan points out this was resolved upstream by:
commit 25d2e41cf5 ("pinctrl: thunderbay: rework loops looking for groups names")

Suggested-by: Nathan Chancellor <nathan@kernel.org>
Change-Id: I1df1c8c25fc831cd5e67668d724ad7a7054100dc
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
2022-04-07 15:46:34 +00:00
Tadeusz Struk
2980d2fa16 ANDROID: selftests: incfs: Add stacked_mount_test
Bug: 211066171

Signed-off-by: Tadeusz Struk <tadeusz.struk@linaro.org>
Change-Id: Ie09d6c1b04e0da7787d371c1cec5c04783b576a7
2022-04-06 20:11:12 +00:00
Tadeusz Struk
6c0d3d986c ANDROID: selftests: incfs: Add umount helper function
Bug: 211066171

Signed-off-by: Tadeusz Struk <tadeusz.struk@linaro.org>
Change-Id: I3c8eebbce3079292fc85dad8984efe6382f22cac
2022-04-06 20:11:07 +00:00
Tadeusz Struk
2190ec1394 ANDROID: selftests: incfs: skip large_file_test test is not enough free space
Make the large_file_test check if there is at least 3GB of free disk
space and skip the test if there is not. This is to make the tests pass
on a VM with limited disk size, now all functional tests are passing.

TAP version 13
1..26
ok 1 basic_file_ops_test
ok 2 cant_touch_index_test
ok 3 dynamic_files_and_data_test
ok 4 concurrent_reads_and_writes_test
ok 5 attribute_test
ok 6 work_after_remount_test
ok 7 child_procs_waiting_for_data_test
ok 8 multiple_providers_test
ok 9 hash_tree_test
ok 10 read_log_test
ok 11 get_blocks_test
ok 12 get_hash_blocks_test
ok 13 large_file_test
ok 14 mapped_file_test
ok 15 compatibility_test
ok 16 data_block_count_test
ok 17 hash_block_count_test
ok 18 per_uid_read_timeouts_test
ok 19 inotify_test
ok 20 verity_test
ok 21 enable_verity_test
ok 22 mmap_test
ok 23 truncate_test
ok 24 stat_test
ok 25 sysfs_test
Error mounting fs.: File exists
Error mounting fs.: File exists
ok 26 sysfs_rename_test

Bug: 211066171

Signed-off-by: Tadeusz Struk <tadeusz.struk@linaro.org>
Change-Id: I2260e2b314429251070d0163c70173f237f86476
2022-04-06 20:11:02 +00:00
Tadeusz Struk
46c0f72ed8 ANDROID: selftests: incfs: Add -fno-omit-frame-pointer
Without it incfs/incfs_perf runtime fails in format_signature:

malloc(): invalid size (unsorted)
Aborted

When compiled with gcc version 11.2.0.

Also add check for NULL after the malloc, and remove unneeded
space for uint32_t in signing_section.

Bug: 211066171

Signed-off-by: Tadeusz Struk <tadeusz.struk@linaro.org>
Change-Id: I62b775140e4b89f75335cbd65665cf6a3e0fe964
2022-04-06 20:10:56 +00:00
Tadeusz Struk
05e060a157 ANDROID: incremental-fs: limit mount stack depth
Syzbot recently found a number of issues related to incremental-fs
(see bug numbers below). All have to do with the fact that incr-fs
allows mounts of the same source and target multiple times.
This is a design decision and the user space component "Data Loader"
expects this to work for app re-install use case.
The mounting depth needs to be controlled, however, and only allowed
to be two levels deep. In case of more than two mount attempts the
driver needs to return an error.
In case of the issues listed below the common pattern is that the
reproducer calls:

mount("./file0", "./file0", "incremental-fs", 0, NULL)

many times and then invokes a file operation like chmod, setxattr,
or open on the ./file0. This causes a recursive call for all the
mounted instances, which eventually causes a stack overflow and
a kernel crash:

BUG: stack guard page was hit at ffffc90000c0fff8
kernel stack overflow (double-fault): 0000 [#1] PREEMPT SMP KASAN

This change also cleans up the mount error path to properly clean
allocated resources and call deactivate_locked_super(), which
causes the incfs_kill_sb() to be called, where the sb is freed.

Bug: 211066171
Bug: 213140206
Bug: 213215835
Bug: 211914587
Bug: 211213635
Bug: 213137376
Bug: 211161296

Signed-off-by: Tadeusz Struk <tadeusz.struk@linaro.org>
Change-Id: I08d9b545a2715423296bf4beb67bdbbed78d1be1
2022-04-06 20:10:49 +00:00
Greg Kroah-Hartman
ec013e8e3d Merge 169e77764a ("Merge tag 'net-next-5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next") into android-mainline
Steps on the way to 5.18-rc1

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Ie66ee2ad1facc13146b747aeb08ca65dcb5a6636
2022-04-06 08:15:17 +02:00
Nick Desaulniers
2b8366b4a1 Partial Revert "ANDROID: Kconfig: break UAPI_HEADER_TEST dependency on CC_CAN_LINK"
This partially reverts commit e260bb27a6.

We're going to pull in the NDK for a sysroot instead. Keep the GKI
config changes.

Bug: 190019968
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Change-Id: Ib8b02312ca9dcd3d51643643d0c3d75b19ddb5bc
2022-04-05 14:09:04 -07:00
Nick Desaulniers
766ce14553 ANDROID: build.config: set NDK_TRIPLE
In order to support CONFIG_UAPI_HEADER_TEST=y with a bionic sysroot
using prebuilt bionic from the NDK, we need to set a different target
triple for USERCFLAGS than what's used when cross compiling the kernel
(so that the correct headers and libc.{a|so} are found+used).

Bug: 190019968
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Change-Id: Ib3e60c41b862cda9f79ff8d2c812aaa8bfb571af
2022-04-05 14:09:03 -07:00
Nick Desaulniers
7133ff2a3e ANDROID: disable SAMPLES and BPFILTER for allmodconfigs
These aren't portable yet when building with a Bionic based sysroot.

Disable building them for now so that we can land support for
UAPI_HEADER_TEST.

Bug: 190019968
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Change-Id: Ice3d3c55bbf79dd08265f168e49e2058231c181d
2022-04-05 14:09:03 -07:00
Nick Desaulniers
8f6837791e FROMLIST: net, uapi: remove inclusion of arpa/inet.h
In include/uapi/linux/tipc_config.h, there's a comment that it includes
arpa/inet.h for ntohs; but ntohs is not defined in any UAPI header. For
now, reuse the definitions from include/linux/byteorder/generic.h, since
the various conversion functions do exist in UAPI headers:
include/uapi/linux/byteorder/big_endian.h
include/uapi/linux/byteorder/little_endian.h

We would like to get to the point where we can build UAPI header tests
with -nostdinc, meaning that kernel UAPI headers should not have a
circular dependency on libc headers.

Link: https://android-review.googlesource.com/c/platform/bionic/+/2048127
Suggested-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Link: https://lore.kernel.org/netdev/20220404175448.46200-1-ndesaulniers@google.com/
Bug: 190019968
Change-Id: I5c45248fb88f03024da809b503ff3b9cd4ed66a9
2022-04-05 14:09:03 -07:00
Masahiro Yamada
cb9bff867f FROMGIT: kbuild: add --target to correctly cross-compile UAPI headers with Clang
When you compile-test UAPI headers (CONFIG_UAPI_HEADER_TEST=y) with
Clang, they are currently compiled for the host target (likely x86_64)
regardless of the given ARCH=.

In fact, some exported headers include libc headers. For example,
include/uapi/linux/agpgart.h includes <stdlib.h> after being exported.
The header search paths should match to the target we are compiling
them for.

Pick up the --target triple from KBUILD_CFLAGS in the same ways as
commit 7f58b487e9 ("kbuild: make Clang build userprogs for target
architecture").

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Bug: 190019968
Change-Id: I9f4867b4fc1d0c4cf1af2bb3d6f53c3a8a8f4437
(cherry picked from commit f442ec0815ed57fcc633fe763815ca3c27e4cd0e
 https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git kbuild)
2022-04-05 14:09:03 -07:00
Elliot Berman
35cc0b25b3 FROMGIT: kbuild: Add environment variables for userprogs flags
Allow additional arguments be passed to userprogs compilation.
Reproducible clang builds need to provide a sysroot and gcc path to
ensure the same toolchain is used across hosts. KCFLAGS is not currently
used for any user programs compilation, so add new USERCFLAGS and
USERLDFLAGS which serves similar purpose as HOSTCFLAGS/HOSTLDFLAGS.

Clang might detect GCC installation on hosts which have it installed
to a default location in /. With addition of these environment
variables, you can specify flags such as:

$ make USERCFLAGS=--sysroot=/path/to/sysroot

This can also be used to specify different sysroots such as musl or
bionic which may be installed on the host in paths that the compiler
may not search by default.

Signed-off-by: Elliot Berman <quic_eberman@quicinc.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Reviewed-by: Fangrui Song <maskray@google.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Change-Id: If4220e236b1c45b486d5a9701258c9b4cd21574b
(cherry picked from commit f67695c996
 https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git kbuild)
2022-04-05 14:09:03 -07:00
Greg Kroah-Hartman
7301998164 Merge 7403e6d826 ("Merge tag 'vfio-v5.18-rc1' of https://github.com/awilliam/linux-vfio") into android-mainline
Steps on the way to 5.18-rc1

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Id5ac7bb1fef94fbaf66255017a564c64071f49a3
2022-04-05 14:27:38 +02:00
Nathan Chancellor
cedf52d103 UPSTREAM: KVM: x86: Fix clang -Wimplicit-fallthrough in do_host_cpuid()
Clang warns:

  arch/x86/kvm/cpuid.c:739:2: error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough]
          default:
          ^
  arch/x86/kvm/cpuid.c:739:2: note: insert 'break;' to avoid fall-through
          default:
          ^
          break;
  1 error generated.

Clang is a little more pedantic than GCC, which does not warn when
falling through to a case that is just break or return. Clang's version
is more in line with the kernel's own stance in deprecated.rst, which
states that all switch/case blocks must end in either break,
fallthrough, continue, goto, or return. Add the missing break to silence
the warning.

Fixes: f144c49e8c ("KVM: x86: synthesize CPUID leaf 0x80000021h if useful")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Message-Id: <20220322152906.112164-1-nathan@kernel.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 07ea4ab1f9)
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: If7a53c8c958b6cd3390822d1bb3af85d0ccba8ee
2022-04-05 11:15:46 +02:00
Greg Kroah-Hartman
ccb91c5fb3 Merge 1ebdbeb03e ("Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm") into android-mainline
Steps on the way to 5.18-rc1

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Ie5f07fd9de81edbcd490c0d3544096b0be12a6e0
2022-04-05 11:15:22 +02:00
Greg Kroah-Hartman
635e0c0d37 Merge efee6c7929 ("Merge tag 'tomoyo-pr-20220322' of git://git.osdn.net/gitroot/tomoyo/tomoyo-test1") into android-mainline
Steps on the way to 5.18-rc1

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Ifd87c188fb6679513143ff7977e3ccc2d8e0f5e0
2022-04-05 11:14:37 +02:00
Greg Kroah-Hartman
faab30bdcc Merge ed4643521e ("Merge tag 'arm-dt-5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc") into android-mainline
Steps on the way to 5.18-rc1

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I13d27b9fb4b19af2c713623e0bbcfd0b114647cd
2022-04-05 08:12:56 +02:00
Greg Kroah-Hartman
55d4df9d29 Merge e6aef3496a ("Merge tag 'm68knommu-for-v5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu") into android-mainline
Steps on the way to 5.18-rc1

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Ie86429baa4458303f9a41b8a543ccbca28f9c569
2022-04-05 08:07:00 +02:00
Greg Kroah-Hartman
d0dc96c6e9 ANDROID: gki defconfig movements
The media tree merge for 5.18-rc1 moved some Kconfig options around so
update the gki_defconfig files to fix up the build due to this
housekeeping change.

No config options are changed.

Fixes: 182966e1cd ("Merge tag 'media/v5.18-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media")
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Ie7c1c4799507604e0352eabe7b3c300222ce4f41
2022-04-04 16:43:29 +02:00