From patchwork Thu Oct 21 12:55:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Wiklander X-Patchwork-Id: 516046 Delivered-To: patches@linaro.org Received: by 2002:ac0:cd8c:0:0:0:0:0 with SMTP id d12csp757895imp; Thu, 21 Oct 2021 05:55:46 -0700 (PDT) X-Received: by 2002:a05:6512:1590:: with SMTP id bp16mr5210081lfb.653.1634820946393; Thu, 21 Oct 2021 05:55:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634820946; cv=none; d=google.com; s=arc-20160816; b=eLCv479w9+AEpyOiipjTCvbRkc96dFLiHztdhT80PJ5ix3MUPiSxUId5/aM5zlCTpn JjDuvD55PtbT61F/avE27pi4NPrikGJta2YwvSk8TnNwEwelLD2cn7lcE8B2oXVOz6nK kbzbJWJSq8gNONwhG8TUiEVMOqov/zuFf5G+zEOmWvdnZZcWNMeQSfRuM5ND4G7UC9yg T0debPKCVq+uKb/jFZS8xJTKeSPKfGp79lE6d4bRwql0KhrSs5f9Uj4fHjvdoLdHmkPT tZaBn96KT+oUZkqopDnfYe1FxuyabYEuqVOU6pO8IIijzKbRkotH9XKJ4ODIk1orkp/8 RFYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=AeWqycYIuVt19sWOnyHEv1PGs8MPa9Z3i7y2gAAE/yk=; b=nq/e49FIlQCyfF29Mg3T6FxiQcins/UnSVemov33CBZO2UhFW1m9Ucri+Vspu5zBZh PuKg4dC7EyIzMMZQixUy3E4Zw77AfYdAwCeXdVv9LwX06el+phOBNU/iPhRNAPoo0g6e s7FoEWvZBWxe0Az6K9V8Eai/+TuuQynooGoAoJ1gLbofiK9tjmfJZKFieKKhn6wVqLjf zgDe9ONeHsAv6pHW6th+kUBXeUCvIFjAfRoXUsD6D9IZqJ0oX92Y9rBTTFiBkMFTYy3e RVJ9p8Qc/Q8Qp5nm3xoIysJ5jw/n8q5IUyboqwZYQ6o3BW13uWqXNwLHgoOt6T3Hy95j KBAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NawLACvW; spf=pass (google.com: domain of jens.wiklander@linaro.org designates 209.85.220.41 as permitted sender) smtp.mailfrom=jens.wiklander@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id u8sor1373013lff.188.2021.10.21.05.55.46 for (Google Transport Security); Thu, 21 Oct 2021 05:55:46 -0700 (PDT) Received-SPF: pass (google.com: domain of jens.wiklander@linaro.org designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NawLACvW; spf=pass (google.com: domain of jens.wiklander@linaro.org designates 209.85.220.41 as permitted sender) smtp.mailfrom=jens.wiklander@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=AeWqycYIuVt19sWOnyHEv1PGs8MPa9Z3i7y2gAAE/yk=; b=NawLACvWDNKuQZVM7gNhU33JZAmxzGAz0vAmzpC5uZmVYq9AxySnJhJUX7p4ZldZdf +LZOrKPc0ZBTJ1LxLk/yCZbuT8EOCxT93xgzD6jcR77fab2x2z0EP8GMxYLm6ecL+eKS Qo4TDqE3Skv/DOpgzZV0MRDfgEJHaHxMcMqGZv8/zJf2Bwsx52rQWramOL0xY+ZYc3A5 lOzTOMiegLmfaM7ZWuMYvOIrZc6dBmPN68MK6/U7RjeOAXH1t8tuYKyR+MlkDP/nWrlt PVuDS1e6CSQffOi1epq0sOqsdA7FmEFdiwqrSVCl+yMiFZvZ5cdxb35WQrxDFJ3dVOcz /lSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=AeWqycYIuVt19sWOnyHEv1PGs8MPa9Z3i7y2gAAE/yk=; b=Zco2jqFgW3ktPloCjAGWUinWwAZpwxaFqhWdojRehcherVhfVib8t7Ri4Y7cT3GNbL /luZHnYcr5isaYv7IP3Zrr4ypT+9Xycd/P3YxktqV0a9KEdyeuiRhiDlqc2zJ3wHW0fy 0psKoVEcX+l5vsuMxeLS3RYnRJmaOgjRYb6CsylbESV3eqhKH8vjDTH1xQbw03NIxPKE Pk2sUgVLsPf8z+SJ3aF+gFjCMrb/CnkCQZuTUANsYOjmiCL9Ybvfo5G7qFT753BL7fpF Kvbw3qvVkGNf4sYhbBj7tylnADEhq8hLLP6HcpZZ6DHtZeVW86kkAFGo8jXac0pVwQqO VPag== X-Gm-Message-State: AOAM531PqH4xhX2cgQ2J3dMpzTodDUFh7Nn4lH4fiQlDz6Iuo3pIMDUS ny9lNXflLZPP0ay/TgLv64yItYBWdZolJb8r X-Google-Smtp-Source: ABdhPJxFzmGm3er4wZIEDT2Ppy5LMXVNyzH3mHvH0sSXnZoZwxhSW/0taeZrEqARBPg20tX5wEYXAw== X-Received: by 2002:ac2:4bc1:: with SMTP id o1mr5100924lfq.553.1634820945937; Thu, 21 Oct 2021 05:55:45 -0700 (PDT) Return-Path: Received: from jade.urgonet (h-94-254-48-165.A175.priv.bahnhof.se. [94.254.48.165]) by smtp.gmail.com with ESMTPSA id r30sm455285lfp.298.2021.10.21.05.55.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Oct 2021 05:55:45 -0700 (PDT) From: Jens Wiklander To: SoC Team Cc: arm-soc , OP-TEE TrustedFirmware , Linux Kernel Mailing List , Arnd Bergmann , Jens Wiklander Subject: [PATCH] optee: smc_abi.c: add missing #include Date: Thu, 21 Oct 2021 14:55:39 +0200 Message-Id: <20211021125539.3858495-1-jens.wiklander@linaro.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Adds missing #include drivers/tee/optee/smc_abi.c to fix compile errors like: drivers/tee/optee/smc_abi.c:405:15: error: implicit declaration of function 'page_to_section' [-Werror,-Wimplicit-function-declaration] optee_page = page_to_phys(*pages) + ^ arch/arm/include/asm/memory.h:148:43: note: expanded from macro 'page_to_phys' ^ include/asm-generic/memory_model.h:52:21: note: expanded from macro 'page_to_pfn' ^ include/asm-generic/memory_model.h:35:14: note: expanded from macro '__page_to_pfn' int __sec = page_to_section(__pg); \ ^ drivers/tee/optee/smc_abi.c:405:15: note: did you mean '__nr_to_section'? arch/arm/include/asm/memory.h:148:43: note: expanded from macro 'page_to_phys' ^ include/asm-generic/memory_model.h:52:21: note: expanded from macro 'page_to_pfn' ^ include/asm-generic/memory_model.h:35:14: note: expanded from macro '__page_to_pfn' int __sec = page_to_section(__pg); \ ^ include/linux/mmzone.h:1365:35: note: '__nr_to_section' declared here static inline struct mem_section *__nr_to_section(unsigned long nr) Fixes: c51a564a5b48 ("optee: isolate smc abi") Signed-off-by: Jens Wiklander --- I wasn't able to reproduce the error above. It obviously involves CONFIG_SPARSEMEM=y, but something more seems to be needed to trigger the error. Nonetheless, including should fix the error. Thanks, Jens drivers/tee/optee/smc_abi.c | 1 + 1 file changed, 1 insertion(+) -- 2.31.1 diff --git a/drivers/tee/optee/smc_abi.c b/drivers/tee/optee/smc_abi.c index 9a787fb4f5e5..6196d7c3888f 100644 --- a/drivers/tee/optee/smc_abi.c +++ b/drivers/tee/optee/smc_abi.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include