Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp986844iog; Mon, 13 Jun 2022 18:07:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxIb2PLllbqY0eKtohqvbXWUPfLMEQMOhz/JyMxwcxQ0U8OADxa71mlW0tBgii1SpPUqhHL X-Received: by 2002:a50:8e58:0:b0:433:2d3b:ed5 with SMTP id 24-20020a508e58000000b004332d3b0ed5mr2914569edx.246.1655168830220; Mon, 13 Jun 2022 18:07:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655168830; cv=none; d=google.com; s=arc-20160816; b=OnxCChDhe+XD3FzyfWP498t2yNnloZHQWq8psJoVTb9CIjYjlkPrO8i9lI6NUKyH83 cjvdm0sDhNC7RYvo/YnelBkoV26Y1w9ZtY4diQQFEizR73SVahIUMlWLJ6mVK4YcZpuy UYd9R/7xwYotxYsPDE2RyZAYQJQRTo+QTrhNFXVJ60/VfG+cDj0VkK2u2rHv4C2OX8ah 5Vk5WUrZYYpz/p/u8gKseYnPyETDkePtleNLCtpG/JwZ+9PJLfzbR3tT73HEbqJIrQpx CJOG9qAym19cn8NPK8BlYSph3cfjfunSCJbSzz2l11EUJgVrF8u3f+6tM2rX/uNlvXNs Z5hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=xpKoRC+jwQM/TE7zoR6njYywYa0xdPUzl/QI3qKrqR4=; b=V3ZSvjW0U56ffJjA0BSrL0kGtc863lUQSI3OUHchOsiwgZv9svgMZy1954iAZM9tQQ 3uXfBSYFkRY1TvZu9ptRpZ5VHLnuSocVVBYvp/tLngC4HQh56AAQJdT2Ab9CLv1XJ+8x GAELjgT47US1nHVptlVZDFTsgCRFyQvTFgmOfprVAtFN5G5t50tXLKWnTK0ZCY+Uj7tp UCu0kdiiixwkmdabiKWp3fxeOLRHOGVPpmGHnIvdYSjeoj76Sd+5QQnBczKiBU7/Gf7h sf8MO/K0wGiHpTAYfSEYY5XRB8xgX6DBZBcNeKtuirvi/DZk9qryKf4J31+sdXTZhCwm biPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=R9e+8ya7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f19-20020a170906739300b006e7e84d111fsi9423346ejl.641.2022.06.13.18.06.45; Mon, 13 Jun 2022 18:07:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=R9e+8ya7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240551AbiFNAxM (ORCPT + 99 others); Mon, 13 Jun 2022 20:53:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238974AbiFNAxL (ORCPT ); Mon, 13 Jun 2022 20:53:11 -0400 Received: from mail-yb1-xb41.google.com (mail-yb1-xb41.google.com [IPv6:2607:f8b0:4864:20::b41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9070A47D for ; Mon, 13 Jun 2022 17:53:10 -0700 (PDT) Received: by mail-yb1-xb41.google.com with SMTP id r82so12574844ybc.13 for ; Mon, 13 Jun 2022 17:53:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=xpKoRC+jwQM/TE7zoR6njYywYa0xdPUzl/QI3qKrqR4=; b=R9e+8ya7HmN+rSK/ExFtG8j5LSj7tmxjhoikGEBFDMzGFjz4HHmN+lc/JXDQdtgsE8 4CgP/+V0eae4QsTDjnJit2BIfy+1grFEdcuOyxFSdkOnzW5TzdXF7IZ2GX9tdzG5mRGe V5SNZ8qE3BYwg17E9LIy90dbd4WoZlI5N8EIXpLYcdsE+4Dd/K4O9YqdX1plLtW3/MWa 38ApCY0VpdMV5syiO4QHnTzNtg+8inSLhnm4p2g2O9GKGe5jfGqKwdduwp0juTmHHKzN LPT+5HkrStorGLxT8J2ZHKpLZiGk3vXpS7RwMkwUvjhSyg6hBs8gXN4nxNJXB2ZTn9lm /Zlg== 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:content-transfer-encoding; bh=xpKoRC+jwQM/TE7zoR6njYywYa0xdPUzl/QI3qKrqR4=; b=PeADrSr/q5Hv22Dud/NF1Tq+4wRIDP2DmWYkgbh7NLy+pgLzovY97n93TqYJ5xB+J0 UhxRmAYOl2o2tK4XWb6ViBMnFS+CExeOfuJlOSYQWoMEidtIxm16ESuhoNXzwo+ukxIq UKi8KYgVj539QKat2kiDsAOrk8kYiEpWMsJLOukNr5o/IbwShRAhzc1+/zMb1Mgzgvi1 gH9DlIvlNaXxlgKVdGTIbJKVseV/8yeVVbuulpEZYhOhKkk6BkOtyGMEY95CRnccP8Xn vR9GQjTjPqQrhot4+yxty3f80FqosF5QO1HF2htAZIRZKuCoaQ9g6d2tYZ+9mhNDrg3x frjQ== X-Gm-Message-State: AJIora8Jb9B6c7WedioOGa6tWRICcObSaTeB/kKgRFXjU1ssxO+QEk2i A7pq4me8VW900OkzgDV0FNEblSmfP65yGfgzkw== X-Received: by 2002:a5b:c51:0:b0:65c:af16:d7cf with SMTP id d17-20020a5b0c51000000b0065caf16d7cfmr2320624ybr.397.1655167990261; Mon, 13 Jun 2022 17:53:10 -0700 (PDT) MIME-Version: 1.0 References: <20220612071535.1179039-1-sunliming@kylinos.cn> In-Reply-To: From: sunliming Date: Tue, 14 Jun 2022 08:52:59 +0800 Message-ID: Subject: Re: [PATCH RESEND] of: Add missing function declarations To: Jonathan McDowell Cc: "dave.hansen@linux.intel.com" , "bhe@redhat.com" , "robh+dt@kernel.org" , "frowand.list@gmail.com" , "linux-kernel@vger.kernel.org" , kernel test robot Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org OK=EF=BC=8Cthanks Jonathan McDowell =E4=BA=8E2022=E5=B9=B46=E6=9C=8813=E6=97= =A5=E5=91=A8=E4=B8=80 17:03=E5=86=99=E9=81=93=EF=BC=9A > > NAK. This is for a patch of mine that I don't believe has hit mainline > yet - I've only seen it in daveh's test tree. The prototypes for these > functions are now guarded by CONFIG_HAVE_IMA_KEXEC but all OF platforms > build them even when the platform doesn't actually support IMA over > kexec. I'll update my patch to avoid that. > > On Sun, Jun 12, 2022 at 03:15:35PM +0800, sunliming wrote: > > Fixes the following w1 warning: > > > > drivers/of/kexec.c:126:5: warning: no previous prototype for 'ima_get_k= exec_buffer' [-Wmissing-prototypes] > > drivers/of/kexec.c:153:5: warning: no previous prototype for 'ima_free_= kexec_buffer' [-Wmissing-prototypes > > > > Reported-by: kernel test robot > > Signed-off-by: sunliming > > --- > > include/linux/of.h | 10 ++++++++++ > > 1 file changed, 10 insertions(+) > > > > diff --git a/include/linux/of.h b/include/linux/of.h > > index f0a5d6b10c5a..3a166a1c4ef6 100644 > > --- a/include/linux/of.h > > +++ b/include/linux/of.h > > @@ -844,6 +844,16 @@ static inline phys_addr_t of_dma_get_max_cpu_addre= ss(struct device_node *np) > > return PHYS_ADDR_MAX; > > } > > > > +static inline int ima_get_kexec_buffer(void **addr, size_t *size) > > +{ > > + return -ENOSYS; > > +} > > + > > +static inline int ima_free_kexec_buffer(void **addr, size_t *size) > > +{ > > + return -ENOSYS; > > +} > > + > > #define of_match_ptr(_ptr) NULL > > #define of_match_node(_matches, _node) NULL > > #endif /* CONFIG_OF */ > > -- > > 2.25.1 > >