Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1457190pxb; Tue, 8 Feb 2022 18:43:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJwjY6rRV3mrH9pAf5ydA1mittkdENBAAlSxfbFtinmAdpvF9Ed+zTtVsNkEgUoMcQ0YeiNF X-Received: by 2002:a05:6402:2802:: with SMTP id h2mr307030ede.255.1644374598142; Tue, 08 Feb 2022 18:43:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644374598; cv=none; d=google.com; s=arc-20160816; b=B/EL45WGtRa3Q/e2wU54BtfaKet06A3qP1dJcmeH0M5HBPwZnj5eMyuRJWHXgBQBlV rEJB5MuO6KxrMUAXPZRIE1eFaQW7WhKylxuXYRn1TlFkBXsin9UiSpZzLTX7B31izyWd jRHd51Tib3jc5CDUyPg6V9E8TPoj5SMUt3fBnLj8ZdNEP+ommy3e6khCFllTiBWeNLuk 167bXI7eDo/ATS36N3BHIGfvYkck5x4aDZ0LbobEZGgUqNgMEtc625a/VBtmqb17puor yJeii5dzSMutDQQfDPXua+19c5XIAi6B71bEFy8EKgA7F+dweh7VttaR3CGJWJ9p4ni8 uGUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=g1dLWDlmAylsVAbFh6dRuuTZBM7U6UZUvU1LhCTc2yU=; b=ki4O2h8XlPiQzmH3j7uezc/xKzxib4sowQs92tJQLo99Yt5auF6iMzVqQ6+jyEtgnQ D5nwZlCNt3oGfRDNsUw2GZ/J4oho8NrH3vwDETfIEpH7TsIBjGRCzYmWjXur0AL6fWOH oz3aB11JovjoWb4FKbTF3ve9OGLtETlNsTZs/JL04AfvDNIF7oyWvCInY+rUKAWRXk1t qV3cNtFD/HoW7CfXAw081EdFGm8r3YXeQUDRW5YCJPqvKH7FsA/d53/yNedzntyrJ6C0 W3Pgh87mDBn7GVGurt90u3d2mGy1KCA6YbS0a4drpqPTfBYSj5wxQxaawdtdi99Ih4If w4nQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=flUpgXq4; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i19si4891741edr.13.2022.02.08.18.42.53; Tue, 08 Feb 2022 18:43:18 -0800 (PST) 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=@redhat.com header.s=mimecast20190719 header.b=flUpgXq4; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379522AbiBHPTA (ORCPT + 99 others); Tue, 8 Feb 2022 10:19:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352926AbiBHPS7 (ORCPT ); Tue, 8 Feb 2022 10:18:59 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 62BB4C061579 for ; Tue, 8 Feb 2022 07:18:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1644333537; h=from:from:reply-to:subject:subject: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=g1dLWDlmAylsVAbFh6dRuuTZBM7U6UZUvU1LhCTc2yU=; b=flUpgXq44x+f0mO57dp4hx5VDlip8gCZc7xvHd9CWpfA7WktHMqBxJZWMX4JfRx/SUYF6R UFax4CY7E1Fyd/bYHsjjn75ZcwvjR3eL8IOf+7moQnfZjlZEbKbXPEC6lZYQ7myVV+x+Y8 rN9fEfqoqPKXwdC3N+rp6YiujSBl4fs= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-248-I9bifseCM4KMxFAxU_QPrg-1; Tue, 08 Feb 2022 10:18:56 -0500 X-MC-Unique: I9bifseCM4KMxFAxU_QPrg-1 Received: by mail-wr1-f71.google.com with SMTP id g6-20020adfbc86000000b001a2d62be244so6178791wrh.23 for ; Tue, 08 Feb 2022 07:18:56 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=g1dLWDlmAylsVAbFh6dRuuTZBM7U6UZUvU1LhCTc2yU=; b=wZL2ve2OYvnw+KGRIOhG3SOMBxLTTgis/bA9zm8BA8wkIc5X8zSQ6Th++pEbU+ztzq ty0taWBLoe1VBBIZSHdlyF7F47nBaqw2iMghcIZf8AjOHyKWoWW4xy+EGvbTeUCG0zH5 aoohJAklzOsDXonNmvtwQHh5DO04eaCQm4mtXTbN/oWkJyeN3Rfnl0/aoZEc4iDqZ9pc +AiWV276GGaoCIbiENE1SxKj3VhSo4lbClReDqt+HS94u7tY3aLWAuYoFe3JGRDW3EOR tWcp5rVtU0nxZWn2AV+/C0Gs+PKBFrMiS5uu81vH643/o/aWx0xg8QvRgFBzIMjoPBTq WNMw== X-Gm-Message-State: AOAM533XWuWe86QtKhxY3lSZcvhbx6JnUnbFnbEZfF9mJsUngJN9pWka uTxjcMWARLcXoEWY5GecNnhdIYfwDXahT9Qqh0ZI4P5sXK0pFA7wQJjGrWvRuV7I8Q/JfA3x/ox HPsmAcs1XCmXSASb/Y54qvgI= X-Received: by 2002:a05:600c:3846:: with SMTP id s6mr1562110wmr.26.1644333535407; Tue, 08 Feb 2022 07:18:55 -0800 (PST) X-Received: by 2002:a05:600c:3846:: with SMTP id s6mr1562097wmr.26.1644333535246; Tue, 08 Feb 2022 07:18:55 -0800 (PST) Received: from localhost (cpc111743-lutn13-2-0-cust979.9-3.cable.virginm.net. [82.17.115.212]) by smtp.gmail.com with ESMTPSA id f13sm2630160wmq.29.2022.02.08.07.18.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Feb 2022 07:18:54 -0800 (PST) Date: Tue, 8 Feb 2022 15:18:53 +0000 From: Aaron Tomlin To: Petr Mladek Cc: mcgrof@kernel.org, cl@linux.com, mbenes@suse.cz, akpm@linux-foundation.org, jeyu@kernel.org, linux-kernel@vger.kernel.org, linux-modules@vger.kernel.org, live-patching@vger.kernel.org, atomlin@atomlin.com, ghalat@redhat.com, allen.lkml@gmail.com, void@manifault.com, joe@perches.com Subject: Re: [RFC PATCH v4 03/13] module: Move livepatch support to a separate file Message-ID: <20220208151853.avy4e7sgyutuempk@ava.usersys.com> X-PGP-Key: http://pgp.mit.edu/pks/lookup?search=atomlin%40redhat.com X-PGP-Fingerprint: 7906 84EB FA8A 9638 8D1E 6E9B E2DE 9658 19CC 77D6 References: <20220130213214.1042497-1-atomlin@redhat.com> <20220130213214.1042497-4-atomlin@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,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 On Tue 2022-02-08 12:42 +0100, Petr Mladek wrote: > This should go to internal.h. > > Alternative is to move both is_livepatch_module() and > set_livepatch_module() into include/linux/livepatch.h. > > I do not have strong opinion. Hi Petr, Firstly, thank you for your feedback. In my opinion, I believe is_livepatch_module() should remain as it may continue to be used externally i.e., outside of kernel/module/; albeit, indeed set_livepatch_module() should be moved to kernel/module/internal.h given its use is exclusive to core code. Kind regards, -- Aaron Tomlin