Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3986202imu; Tue, 18 Dec 2018 07:21:27 -0800 (PST) X-Google-Smtp-Source: AFSGD/XB7iBBpIz5yWDMT+SQO/ZIby0UXPDfq8fTY6Srfte8QjLls0aphllFjGfyL9Cmxupv0Xo9 X-Received: by 2002:a63:2c0e:: with SMTP id s14mr16437466pgs.132.1545146487755; Tue, 18 Dec 2018 07:21:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545146487; cv=none; d=google.com; s=arc-20160816; b=sMqeL9nguS6BrDbXtfRaFbY6Gy0CUd8mtK5zKoqDjwgnw7K/IE8e5eL0Xqh/XlcbIN IGM+5qONIRNW1vZtYxSJ0hCGJ8JUblAwMcBNL89aOINguM50Ez/5wftzAUXuXf+8FjSC A0bXTObq/01UatSG+uYzRYwYK8xIByMM9fXkU6uKUKYEqq20huZ7TmlELm4b4OVr77u1 lExjKoIhkE1xIhOGRITdn8VrLBZn7ugg5lgylPL1OPXnp65GZnlUz86fwx9bvRx9Sgb5 xmb/IUvvpV0CwTS1uHHwgetmqrcU+nHKZxZFXDXQJ1UMwEbLt8KuJCmE6Oe47LGAPLvg c/1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject; bh=//8OoDEQQfCpW69GmRQrH3tm2z4xeD0/0oAD6icFvPU=; b=YFFJ2lhohD704JsVK9ErECRNi2HpS4XNbAObI7UBsOjUr6G2qfTfZhj9XyDVl6hk6o AEBq7mSM8/RoGl6I/WNC3Q6i46o24IWt15KUDNLalkHODxg+mejltgQIsvoSYGTzSXvW 5ibkwzttTPjqXUYEDgl46nZfn1aivNDWDV3EpGW/rYjFeyIfjqr5jUSqCNXmCeE4XBfJ 5VY5aCNy154Sv1OCBe2Mt1T1YL36t0duGvcOioRuE/Bi99qOdPe7T2h24G2iNu56SQMD 2tKX8MTq8zgMauU8iVTD+lng4p4ijAt0zCD0+S03FHuSII+xOeoEfMi/DG9SH9rto4uQ 1FFw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d34si13423981pgb.43.2018.12.18.07.21.01; Tue, 18 Dec 2018 07:21:27 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726863AbeLRPSj (ORCPT + 99 others); Tue, 18 Dec 2018 10:18:39 -0500 Received: from mx1.redhat.com ([209.132.183.28]:33029 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726555AbeLRPSi (ORCPT ); Tue, 18 Dec 2018 10:18:38 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B454389AD7; Tue, 18 Dec 2018 15:18:38 +0000 (UTC) Received: from jlaw-desktop.bos.csb (dhcp-17-208.bos.redhat.com [10.18.17.208]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7C976672CE; Tue, 18 Dec 2018 15:18:37 +0000 (UTC) Subject: Re: [PATCH V2] livepatch: fix non-static warnings 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 References: <1544965657-26804-1-git-send-email-hofrat@osadl.org> <20ef1d3a-2916-ce00-2938-3397746efac9@redhat.com> From: Joe Lawrence Organization: Red Hat Message-ID: Date: Tue, 18 Dec 2018 10:18:37 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Tue, 18 Dec 2018 15:18:38 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- Joe