Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1385781imu; Wed, 23 Jan 2019 16:22:36 -0800 (PST) X-Google-Smtp-Source: ALg8bN6yiO4DfGdSrO698w19INslLODE55xygMlWL7NhCL188EdCpMZZdt2qHK+CGna2kQRCjtox X-Received: by 2002:a62:ae04:: with SMTP id q4mr4204643pff.126.1548289356655; Wed, 23 Jan 2019 16:22:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548289356; cv=none; d=google.com; s=arc-20160816; b=K6Lu2XHZUqe8mOT6WSWWhaebxl44Xmd9K+IFNpEIHtGqc5WHHSSGhHg1o/sEK2Dasg TksaVIHTkBQv2IgBbpxEYzFPeBdLU7umMYl4L3KAsXNOJcvOJTunHxxf1YBrwYZsDEGU LC2demu7SWWuAuWC5XmmQ5W16yjoK6SQ01sZO4ae/qkr3KuHwUgaAoM4mhZdy5NKCJse DTBbKqAALd5YPCQzGr24H6+ef8MmYWUjlpbVaRRc7Oezey3zs98I6QrhGw+l6izOVuEA ushIxtloKZpcl21qrPpFsVhqnAyrRkE1tuhMznURDhOjM3uPab88+YR+R++fdf6x+Qtc JXeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=vHnIRCrm74hCkoSFO3mpivwGQIf8Z6g6CtL8VZBoH6g=; b=G+xgPw2JX2oFG8Hze/lH341AekWQFAszk4A4J5jDspbYJpRyWvuuxuaED4F29b5DSo ERI6Ga+qHrH/VZM5A36NXI0WHeeI7jP503zPrYJus4w4YqAyCmFL1VAV091eb+sFS9gH /TcOIVsG+sM9vUP1rfI/5R+uXCSn7IzbkydL2nhlQilMaSiE9h7X1jCNz4VmMbN7rF3U GILKdLl4NZkhagMFwnjzcjacNaRvRnSt/otiwoQYEjY+v6at47EC+1ZfFeklgdSgbj5Z 9Txs5gWG2ta9TkzdAekaZbdmFY5+4HhIi1MtbRXKRy2RVNtKfbF9KmLRNoHI/aAoxHpB pWkQ== 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 f63si7343200pfg.136.2019.01.23.16.22.19; Wed, 23 Jan 2019 16:22:36 -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 S1726786AbfAXAVq (ORCPT + 99 others); Wed, 23 Jan 2019 19:21:46 -0500 Received: from 178.115.242.59.static.drei.at ([178.115.242.59]:36051 "EHLO mail.osadl.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726078AbfAXAVp (ORCPT ); Wed, 23 Jan 2019 19:21:45 -0500 Received: by mail.osadl.at (Postfix, from userid 1001) id 896545C0FB6; Thu, 24 Jan 2019 01:21:25 +0100 (CET) Date: Thu, 24 Jan 2019 01:21:25 +0100 From: Nicholas Mc Guire To: Miroslav Benes Cc: Nicholas Mc Guire , Josh Poimboeuf , Jessica Yu , Jiri Kosina , Petr Mladek , live-patching@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V3] livepatch: non static warnings fix Message-ID: <20190124002125.GB16834@osadl.at> References: <1548226584-20579-1-git-send-email-hofrat@osadl.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 23, 2019 at 03:30:57PM +0100, Miroslav Benes wrote: > Hi, > > On Wed, 23 Jan 2019, Nicholas Mc Guire wrote: > > > Sparse reported warnings about non-static symbols. For the variables > > a simple static attribute is fine - for the functions referenced by > > livepatch via klp_func the symbol-names must be unmodified in the > > symbol table and the patchable code has to be emitted. The resolution > > is to attach __used attribute to the shared statically declared functions. > > > > Signed-off-by: Nicholas Mc Guire > > Suggested-by: Joe Lawrence > > Link: https://lkml.org/lkml/2018/12/13/827 > > could you reorder the tags and change Link: tag to > https://lkml.kernel.org/r/ as asked for when we reviewed v2? > sorry overlooked that - yes will fix that up and resend thx! hofrat > With that > > Acked-by: Miroslav Benes > > M