Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6155110imu; Mon, 21 Jan 2019 04:12:31 -0800 (PST) X-Google-Smtp-Source: ALg8bN4CbnAuyyWB5ssvJ3icTgpxrPojsa9RJy5JxRZIQbYPj5L+NGgTkp/W2/uwgR3OWi/V5VMB X-Received: by 2002:a17:902:3f81:: with SMTP id a1mr29732860pld.258.1548072751215; Mon, 21 Jan 2019 04:12:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548072751; cv=none; d=google.com; s=arc-20160816; b=GRdp6SWqxBwBKstaoSGYRb0eK/ydHdL1L0L9grQ/Lj4wpt2Ie3SxjXB/LGA2uLSVze UDgaRIPE9+uolH7orJuo4qWkMQuCWBNM2HsO2BVmjacQ0r9tBqye77RzTUjgawt7UZKR IOu5z4eJQWzP3ZHyu0s+mbcKq0erNsYxtawBK3twcBnfNfxOI38cRN+VYdSplyDPlc5Y RQwys2n6TH96avzDjcX9ZTP57yiK8jx2ddkwZTSN7RShn0Nv+u45YHouwE9ax8tzQqG+ eSs8yZauheCVcNf3N/vbJwYAn3pRRGQYhGpz+fgFJaGK3xz1kBjA/LQwcnNDCAhjtl7C LULw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=zccx1D754etcesOEp3vI43d9z+S8+MhqVo4WLURkSxo=; b=PnJrnZtfxN9z+t5aVGTDrzwhsO/ZcR7MF9LZBtDzrA8hPbLQX5hrMhzRBPerzyBLj2 qDf7329RlC16fcAyXvi1tgJTHoWE1pmw9H9s7lQgWEsDspokRACGenIVrdGABN1nneA4 Yvbf4Tf2PWhA5NxGodOPafXhuviFrS/GYX8sqM3cy7b+O7u6m0OJ8weYbioZi8p9hCvX N55EDVZnoqj3AKR7GmVBh1JOx4+yE6RFH61vZwWuYPNgiqrTr+JCn8IBuq508A1E/S6L blvAblh376m2cVTzJ0aXsioyUOTpcZbnOseiB9SijtLGkNEUOAuWN8FNmlElFnx0X+X8 7JOg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b11si12365658pfo.240.2019.01.21.04.12.15; Mon, 21 Jan 2019 04:12:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728273AbfAUMLC (ORCPT + 99 others); Mon, 21 Jan 2019 07:11:02 -0500 Received: from mx2.suse.de ([195.135.220.15]:40234 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728024AbfAUMLC (ORCPT ); Mon, 21 Jan 2019 07:11:02 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 52223AB87; Mon, 21 Jan 2019 12:11:00 +0000 (UTC) Date: Mon, 21 Jan 2019 13:10:59 +0100 (CET) From: Miroslav Benes To: Petr Mladek cc: Jiri Kosina , Josh Poimboeuf , Jason Baron , Joe Lawrence , Evgenii Shatokhin , live-patching@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/4] livepatch: Introduce klp_for_each_patch macro In-Reply-To: <20190116161720.796-2-pmladek@suse.com> Message-ID: References: <20190116161720.796-1-pmladek@suse.com> <20190116161720.796-2-pmladek@suse.com> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 16 Jan 2019, Petr Mladek wrote: > There are already macros to iterate over struct klp_func and klp_object. > > Add also klp_for_each_patch(). But make it internal because also > klp_patches list is internal. > > Suggested-by: Josh Poimboeuf > Signed-off-by: Petr Mladek Acked-by: Miroslav Benes M