From 6ddc2c56c9dd29115263db2fc0f79282036e0b09 Mon Sep 17 00:00:00 2001 From: Christopher Ferris Date: Mon, 14 Dec 2020 20:53:52 -0800 Subject: [PATCH] Update for v5.10 kernel headers. Test: Builds. Change-Id: I6c4b04751df026ef7cbb91627174188c5e6d137c --- debuggerd/libdebuggerd/utility.cpp | 4 +--- libappfuse/tests/FuseAppLoopTest.cc | 6 +++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/debuggerd/libdebuggerd/utility.cpp b/debuggerd/libdebuggerd/utility.cpp index d7067ca6e..2f1b693fc 100644 --- a/debuggerd/libdebuggerd/utility.cpp +++ b/debuggerd/libdebuggerd/utility.cpp @@ -370,14 +370,12 @@ const char* get_sigcode(const siginfo_t* si) { return "SEGV_ADIDERR"; case SEGV_ADIPERR: return "SEGV_ADIPERR"; -#if defined(ANDROID_EXPERIMENTAL_MTE) case SEGV_MTEAERR: return "SEGV_MTEAERR"; case SEGV_MTESERR: return "SEGV_MTESERR"; -#endif } - static_assert(NSIGSEGV == SEGV_ADIPERR, "missing SEGV_* si_code"); + static_assert(NSIGSEGV == SEGV_MTESERR, "missing SEGV_* si_code"); break; case SIGSYS: switch (si->si_code) { diff --git a/libappfuse/tests/FuseAppLoopTest.cc b/libappfuse/tests/FuseAppLoopTest.cc index 98e36652a..ea98ae2bd 100644 --- a/libappfuse/tests/FuseAppLoopTest.cc +++ b/libappfuse/tests/FuseAppLoopTest.cc @@ -167,7 +167,7 @@ TEST_F(FuseAppLoopTest, LookUp) { EXPECT_EQ(0u, response_.entry_out.attr.gid); EXPECT_EQ(0u, response_.entry_out.attr.rdev); EXPECT_EQ(0u, response_.entry_out.attr.blksize); - EXPECT_EQ(0u, response_.entry_out.attr.padding); + EXPECT_EQ(0u, response_.entry_out.attr.flags); } TEST_F(FuseAppLoopTest, LookUp_InvalidName) { @@ -226,7 +226,7 @@ TEST_F(FuseAppLoopTest, GetAttr) { EXPECT_EQ(0u, response_.attr_out.attr.gid); EXPECT_EQ(0u, response_.attr_out.attr.rdev); EXPECT_EQ(0u, response_.attr_out.attr.blksize); - EXPECT_EQ(0u, response_.attr_out.attr.padding); + EXPECT_EQ(0u, response_.attr_out.attr.flags); } TEST_F(FuseAppLoopTest, GetAttr_Root) { @@ -259,7 +259,7 @@ TEST_F(FuseAppLoopTest, GetAttr_Root) { EXPECT_EQ(0u, response_.attr_out.attr.gid); EXPECT_EQ(0u, response_.attr_out.attr.rdev); EXPECT_EQ(0u, response_.attr_out.attr.blksize); - EXPECT_EQ(0u, response_.attr_out.attr.padding); + EXPECT_EQ(0u, response_.attr_out.attr.flags); } TEST_F(FuseAppLoopTest, Open) {