Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp212811imu; Tue, 22 Jan 2019 17:13:17 -0800 (PST) X-Google-Smtp-Source: ALg8bN5YiDomv5Wc0UI2WyH5cIfleBmbbqn/BUjf6tvK95/49DQSNp2zb8HZ240aBTk7pr/DmhCL X-Received: by 2002:a62:5301:: with SMTP id h1mr221204pfb.17.1548205997595; Tue, 22 Jan 2019 17:13:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548205997; cv=none; d=google.com; s=arc-20160816; b=zuOJsef+Lkhjjo7Fv0nAU/vdSIxKt/UYq9O5tKf1nv1XZFpiQqo4qpuSPg0LGsIV1X jbQIarbwuW3lTVwTD9hyZh8pHVY4XxYJeNYH4Bmuegj12brEVq2tmvKbtrgflZMiVnDE kbVGXPQMqsEAGOykntYm34Yg+QTajyDKDKtSQ8PmzFnNJFJ+mpKufGViT5pigqDxG7tQ Lo6NFiebJhs8sIVG/pKlaWIRN/vWXJWzw5bkylQ4ofw1TF6ead01E5ppFIaZ5KxCxLy1 JqqxG52uaiqD8O4Gl9u296H2cDc1nlEBD4kbLlWyQsfRUCqAQya0rS3o7DXDNYhr9R9h Yk8Q== 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=fUFcqOHPmsLvyNqiGcSoWEbdLxfJTk6FvyD8h2/wjIk=; b=ruWtfKIprnrs50k3FfqhKcRbOZNi5ZLk1aoX/xYonl+uis/4wn+pgUv6MEsTus7tM1 HYMzSe24FWt7gQFwGwHkkf5DgYPEUl1fl8vDD2o/Q6P5rervZnIEaEOVC+BrVu00Q26b /TYCB+ZpCHT2gv16mHU1HBspOLjI6XpY4gnb+MWz6/+SeL/fiNBa/Y7dPlbjlx3vvotC NxftvCii2/0EDvPUoaUXXof+yaX3t6G0mRsdWatJ/5p/IRkbunZ9aR3EsAEq3hy0MRcj 8vD3WaMHuDYSquH0Ajnv0tRE7tcuSXg9Tf3j2fg0nrqSB7XK2xoEqiMc8rKQWFPbSHsr 23CA== 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 n1si16973630pfh.96.2019.01.22.17.13.01; Tue, 22 Jan 2019 17:13:17 -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 S1726979AbfAWBLH (ORCPT + 99 others); Tue, 22 Jan 2019 20:11:07 -0500 Received: from 178.115.242.59.static.drei.at ([178.115.242.59]:35373 "EHLO mail.osadl.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726772AbfAWBLG (ORCPT ); Tue, 22 Jan 2019 20:11:06 -0500 Received: by mail.osadl.at (Postfix, from userid 1001) id 6394C5C2617; Wed, 23 Jan 2019 02:10:46 +0100 (CET) Date: Wed, 23 Jan 2019 02:10:46 +0100 From: Nicholas Mc Guire To: Joe Lawrence Cc: Nicholas Mc Guire , Miroslav Benes , Josh Poimboeuf , Jessica Yu , Jiri Kosina , Petr Mladek , live-patching@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V2] livepatch: fix non-static warnings Message-ID: <20190123011046.GA26908@osadl.at> References: <1544965657-26804-1-git-send-email-hofrat@osadl.org> <20ef1d3a-2916-ce00-2938-3397746efac9@redhat.com> <13b0bd3d-1441-b83b-bee3-d5fc666a9d26@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <13b0bd3d-1441-b83b-bee3-d5fc666a9d26@redhat.com> 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 Tue, Jan 22, 2019 at 11:30:30AM -0500, Joe Lawrence wrote: > On 12/18/18 10:18 AM, Joe Lawrence wrote: > >On 12/18/2018 03:49 AM, Miroslav Benes wrote: > >>On Mon, 17 Dec 2018, Joe Lawrence wrote: > >> > >>>I'm just being picky about its documentation and how we should note its > >>>usage in the v3 patch. Think that s/__noclone/used/g of the v2 commit > >>>message would be sufficient? > >> > >>We could rephrase it. After all it is not only about symbol names in the > >>symbol table. The traceable/patchable code has to be present... > >> > >>"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. > >> > >>Attach __used attribute to the shared statically declared functions." > >> > >>? > > > >That works for me. > > > Hi Nicholas, > > Did you still want to post a v3 for this fix? I think there were only a few > v3 suggestions (link tag, tag order, __used attribute, and commit msg > phrasing.) > yup - will go cleanup and repost. thx! hofrat