Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3E838C433F5 for ; Wed, 22 Dec 2021 19:15:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345129AbhLVTPx (ORCPT ); Wed, 22 Dec 2021 14:15:53 -0500 Received: from smtp-out2.suse.de ([195.135.220.29]:45006 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234913AbhLVTPw (ORCPT ); Wed, 22 Dec 2021 14:15:52 -0500 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 78E4B1F389; Wed, 22 Dec 2021 19:15:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1640200551; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=gNQL3vWmtUSrmsR1OhBh/02wrSSNL278gnZtzyWlToU=; b=V8KWPI0861dlrteoZxJoiqLV3+iXYrfLYM7d6rEbORgnguJpTdP4aqc4zf66VuQOXShGiJ 1V2isyuV+o8NSF2MzPcTyJILIlYYY09xpn2b+8XAcbm0umYF6zy3gFNBwtI/Nvu4RQUmxH UDojbshEUA8ALmTGsl+ShNCN7+cg0Kg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1640200551; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=gNQL3vWmtUSrmsR1OhBh/02wrSSNL278gnZtzyWlToU=; b=xjQAIxrCI2wPn4S0duFcKHcQ2QO9pTpobvEkNtfYBVODbH6piVYMPVB71V0FiYeuA6n66I gWq04l9gEKS8yeBA== Received: from alsa1.suse.de (alsa1.suse.de [10.160.4.42]) by relay2.suse.de (Postfix) with ESMTP id 6DBC4A3B85; Wed, 22 Dec 2021 19:15:51 +0000 (UTC) Date: Wed, 22 Dec 2021 20:15:51 +0100 Message-ID: From: Takashi Iwai To: Mimi Zohar Cc: Takashi Iwai , Dmitry Kasatkin , linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, Joey Lee Subject: Re: [PATCH] ima: Fix undefined arch_ima_get_secureboot() and co In-Reply-To: References: <20211213161145.3447-1-tiwai@suse.de> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 22 Dec 2021 18:10:05 +0100, Mimi Zohar wrote: > > Hi Takashi, > > On Mon, 2021-12-13 at 17:11 +0100, Takashi Iwai wrote: > > Currently arch_ima_get_secureboot() and arch_get_ima_policy() are > > defined only when CONFIG_IMA is set, and this makes the code calling > > those functions without CONFIG_IMA failing. Although there is no such > > in-tree users, but the out-of-tree users already hit it. > > > > Move the declaration and the dummy definition of those functions > > outside ifdef-CONFIG_IMA block for fixing the undefined symbols. > > > > Signed-off-by: Takashi Iwai > > Joey's patch has a dependency on your patch, as seen by the kernel test > robot report. I'll drop the one line referencing in-tree/out-of-tree > sentence in the patch description, before picking it up as well. Sure, feel free to cook it :) thanks, Takashi