Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753945AbcCUWCt (ORCPT ); Mon, 21 Mar 2016 18:02:49 -0400 Received: from mx2.suse.de ([195.135.220.15]:46933 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750838AbcCUWCr (ORCPT ); Mon, 21 Mar 2016 18:02:47 -0400 Date: Mon, 21 Mar 2016 23:02:44 +0100 (CET) From: Jiri Kosina X-X-Sender: jkosina@pobox.suse.cz To: Josh Poimboeuf cc: Jessica Yu , Miroslav Benes , Rusty Russell , Petr Mladek , Jonathan Corbet , linux-api@vger.kernel.org, live-patching@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: livepatch: reuse module loader code to write relocations In-Reply-To: <20160321213445.e64jic2uoc7tdtbl@treble.redhat.com> Message-ID: References: <1458157628-8264-1-git-send-email-jeyu@redhat.com> <1458157628-8264-5-git-send-email-jeyu@redhat.com> <20160321191832.GC12357@packer-debian-8-amd64.digitalocean.com> <20160321213445.e64jic2uoc7tdtbl@treble.redhat.com> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 339 Lines: 14 On Mon, 21 Mar 2016, Josh Poimboeuf wrote: > According to my test that still results in the literal value of > "(64 - 8)". Alright. But we should be able to special-case it with a two #if checks on the __SIZEOF_LONG__ value and BUILD_BUG_ON() when __SIZEOF_LONG__ is not of one of the ususal sizes. Thanks, -- Jiri Kosina SUSE Labs