Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp27278pxb; Tue, 28 Sep 2021 14:34:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJb9r4sKA88EV7SUcmlS5uoY0hsLkY9mIJc2L0LJfW0hORW79FB/U2MOUwIoqjLYSvYOhJ X-Received: by 2002:a17:902:7e4c:b0:13d:e735:5783 with SMTP id a12-20020a1709027e4c00b0013de7355783mr6644838pln.17.1632864896756; Tue, 28 Sep 2021 14:34:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632864896; cv=none; d=google.com; s=arc-20160816; b=RvAZKeJ8PjLttPQrtaqBHXjvvD01pfq7IRJouDj4iH33eDKbf4UD+2elu/Daq6iHUR o5mb/UA5HhabcSG2I2v6TNmRF7yWY18RH2xQ8gB+MtM4Zw+3/P4xLbXnkodCYR1e9XmQ cJwiv8ySaYW/+TRhwaaGk70UlvF3JTGrYTcTTM0dNDlRxMw0a/ncq52Jur9xxj4f87nI QTHObYhOH4qXEXa/yWR1NbMWX7bAZE4oPRhhPhGC1tgxEV+NJDnmeJm/IiVY27bRv8kC +p7rT7a06ilMDv5mGVfze1J794MuBToyzcuDMBIPdMlN3KPEZKU8jr8DW99pypauwXgF jbvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=zAK5KWONO/Z7HLFe2Uv80i/fStPUDPzXZXg2mThOE4o=; b=WxhDlAQSl6ynrx5eexqCA+GhDO/KvKdDaj4+NWF0cu1SB4SJsbzJMd15Gi77qPb00j 0+iutNxTzbuPVEirW/xrNerJTIFIJyZVQYBaJn5DXe72Tss+tAfv+ja8LTuIaFdM+gY9 GHtOMJ1UzzFUycoP1jkkC9h5COugWTIDCs7atGNN9lyUAzyzJGGWEj7Sdsygn+/dUnHa F6vZ5qEcPbMChGtyjBp+td3qiQ0JH/NJ3AzUMyLZLQaqlGr02u9Vsyf8pPnlXJ38yzMf hexf1OXuPyF7DNTP56n8R+CI+JHzcZPZdTDEy1M5IZS3DU0gXL5eOKwoq5X6FHDRpZS1 I0xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vXjvDduX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f190si408355pfb.74.2021.09.28.14.34.41; Tue, 28 Sep 2021 14:34:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vXjvDduX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242918AbhI1VfV (ORCPT + 99 others); Tue, 28 Sep 2021 17:35:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242917AbhI1VfU (ORCPT ); Tue, 28 Sep 2021 17:35:20 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C161AC06161C for ; Tue, 28 Sep 2021 14:33:40 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id y26so1751382lfa.11 for ; Tue, 28 Sep 2021 14:33:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zAK5KWONO/Z7HLFe2Uv80i/fStPUDPzXZXg2mThOE4o=; b=vXjvDduX8Iyl6bM/yznsWEvsPMgEbgx9IlDYrdNaTNvP0HMwe129N9WgEzIfyCGNKX UFr0ie9SnOxPmXQfypPg3olY5I+3sDILif4FYnDDdACQ1BFkSlunw1sIn7fPN4FuPOcr R+uY2KZr6KnLUHt+cXKsXwWU3dLprFgqwLzn0tWG0tf7NIOdrzoLR4WaUOD7a6uxcMJM hosBJGe6FfhMWOjprNTQ06w+1vRYVpvjbU5CUkvvfZtJHWXoc0y0Rch4gdCp/9AZxLDw fczhVyjJnF/54YWqtyNOtvn+kiuQt8QA830LEFeHsovnNSk8717WpxQM/r+CYNS4yQ31 goYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zAK5KWONO/Z7HLFe2Uv80i/fStPUDPzXZXg2mThOE4o=; b=JOSNURVHd6U9kvqjryp+M5856hcPjQLctC/ePqr4Fjc4MidvaJKx0XeIgBYMdQxlg+ vsFESFQwnOOSaN1INRxhBiPagmDuszk9AnpqiVAJWgOe7r08xC0+ShLS2XLWclbyTe4m 4T7YxS0Hjanp6ol6C7QiFdFgie2wrOD921s/Xyw3tE/UhLPNta8tZK3z4Vm2yMREbXH0 ffSP1vUEYp6sf0l4BuUy0E9yINWJ3u+Rolr6qu/ntG2FVbuT8ncohUkihr0P+lnMMd/o zJrsGyE14bOgocv2D/ZDONYhEiLDSDHyJb7OuVkXRNs+rGUZmQxcVkAPUw3DwOxz/BhF EM8w== X-Gm-Message-State: AOAM532bJiSjX2qhJPuxhR78BYqwfUd4xcxMKIGAFAIqdyjW6kzXPAHF 3skuPewNjJIfVdFJphdQIlr0R+UH/C2OwB8RijhxzQ== X-Received: by 2002:a05:6512:e82:: with SMTP id bi2mr7767870lfb.95.1632864819075; Tue, 28 Sep 2021 14:33:39 -0700 (PDT) MIME-Version: 1.0 References: <20210928154143.2106903-1-arnd@kernel.org> <20210928154143.2106903-3-arnd@kernel.org> In-Reply-To: <20210928154143.2106903-3-arnd@kernel.org> From: Linus Walleij Date: Tue, 28 Sep 2021 23:33:28 +0200 Message-ID: Subject: Re: [PATCH 02/14] ARM: patch: fix BE32 compilation To: Arnd Bergmann Cc: Russell King , Linux ARM , linux-kernel , Arnd Bergmann , Ard Biesheuvel , Nathan Chancellor , Nick Desaulniers , llvm@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 28, 2021 at 5:42 PM Arnd Bergmann wrote: > From: Arnd Bergmann > > On BE32 kernels, the __opcode_to_mem_thumb32() interface is intentionally > not defined, but it is referenced whenever runtime patching is enabled > for the kernel, which may be for ftrace, jump label, kprobes or kgdb: > > arch/arm/kernel/patch.c: In function '__patch_text_real': > arch/arm/kernel/patch.c:94:32: error: implicit declaration of function '__opcode_to_mem_thumb32' [-Werror=implicit-function-declaration] > 94 | insn = __opcode_to_mem_thumb32(insn); > | ^~~~~~~~~~~~~~~~~~~~~~~ > > Since BE32 kernels never run Thumb2 code, we never end up using the > result of this call, so providing an extern declaration without > a definition makes it build correctly. > > Signed-off-by: Arnd Bergmann Looks good to me! Reviewed-by: Linus Walleij Yours, Linus Walleij