Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7603141imu; Tue, 22 Jan 2019 08:32:23 -0800 (PST) X-Google-Smtp-Source: ALg8bN5Vl+umgQCz0xH3P4no314Sc7ejHm0V9OzAe9MupGy9qEkA0J/gnjnCHWQajQ/Nn+EDVtAX X-Received: by 2002:a63:4d:: with SMTP id 74mr33107364pga.248.1548174743089; Tue, 22 Jan 2019 08:32:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548174743; cv=none; d=google.com; s=arc-20160816; b=DanH+8DYhOE/Yl/GSr6ngF9KThYFtSmRAY5Nqpil6F8BtgU3oBADY6AWAWd2XKjTd3 y7DqaOpCBPXb7eN48eeMYoFiEQNAbRiXJELr6b4kDQR4de0lsWI9qFntUxknkpHmJXnr LasBJqRJoqk6sAPZDPcKfstRaV0nw4GV2Tas/5WhUr0HTUGTYy3OfrP53gxOYW0oNH2T RJ6gYjOfgsPNqsCkx9Pop5Cc+/rttUlc2T0AW8zxHLY0q1pqt+dJ7BPIwgpwqgby3U0H QUmc+jhbtCI3srYUL76wSxw08KMbLwR6LhUrugmLuJkwMxj9fUgN2i07otAJjOPO7Z/S ffKw== 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:references:cc:to:from:subject; bh=8j3xMCrKqRVPRc10HDXdeBe0a/bZdAuqkNQvcZYuVDA=; b=qq2kr1mQrcv8dbjjXmHgDWDgJQvxjv8Y7mGK8oIIO0UwmLzsKu2vsUhh9Wf1L08Eu3 CKW+JEwL6z/0LrsAF4yOg1zPcuElXKQZ8xNhUUXOJBNwxCwq6zOFP/BUnTsG+JybqBcs 3jbz11tXsihdIVcf8ROo2xSWNB5PWFvQcekG23faaaGmPVaTgDceZ6or4ILUPLdDeqdy gnYw6xuNxwdzcfv8fszmezy79ALD2E94VYZOketG9BYyf5FWXztcQfZCFcm5hrIdISEj l7WTp2I7/uy+mpQhf1w2nro5ZQgMaBfdtRLFugHKtnOquc4sIBUbhu98Jx2OrRJ8WzYb cjuQ== 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 l64si3741388pge.168.2019.01.22.08.32.07; Tue, 22 Jan 2019 08:32:23 -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 S1729218AbfAVQae (ORCPT + 99 others); Tue, 22 Jan 2019 11:30:34 -0500 Received: from mx1.redhat.com ([209.132.183.28]:39472 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728580AbfAVQad (ORCPT ); Tue, 22 Jan 2019 11:30:33 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id F30A2ED3C1; Tue, 22 Jan 2019 16:30:32 +0000 (UTC) Received: from [10.18.17.208] (dhcp-17-208.bos.redhat.com [10.18.17.208]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9419268897; Tue, 22 Jan 2019 16:30:31 +0000 (UTC) Subject: Re: [PATCH V2] livepatch: fix non-static warnings From: Joe Lawrence To: Nicholas Mc Guire Cc: Miroslav Benes , 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> Message-ID: <13b0bd3d-1441-b83b-bee3-d5fc666a9d26@redhat.com> Date: Tue, 22 Jan 2019 11:30:30 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Tue, 22 Jan 2019 16:30:33 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.) The context has been clipped in the quoting above, so here's an archive link if you need it: https://lore.kernel.org/lkml/1544965657-26804-1-git-send-email-hofrat@osadl.org/ Thanks, -- Joe