Hi Jan,
On 01/04/2021 16:23, Jan Beulich wrote:
On 01.04.2021 16:56, Julien Grall wrote:
On 01/04/2021 11:19, Jan Beulich wrote:
--- a/xen/common/lib.c
+++ b/xen/lib/divmod.c
@@ -40,7 +40,6 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
-#if BITS_PER_LONG == 32
In theory BITS_PER_LONG == 32 is not quite the same as 32-bit arch. Can
you clarify whether this code is necessary on 64-bit arch where long is
only 32-bit.
Likely the compiler can get away without invoking these helpers, so
the code would remain unused. I'm uncertain whether CONFIG_64BIT
ought to be set for such an architecture, as we assume sizeof(long)
== sizeof(void*), and hence pointers would then need to be 32-bit
as well there.
This is a fair point. Would you mind to add a sentence explaining that
in the commit message?
With that:
Acked-by: Julien Grall <jgr...@amazon.com>
Cheers,
--
Julien Grall