Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp4577066imc; Mon, 25 Feb 2019 07:20:02 -0800 (PST) X-Google-Smtp-Source: AHgI3IYCPx5f0bSw30NZXDRot8c0fwVgxYm7A9ZLoYp2oJxl5B4ZOt8HCsBiQmJEXr1wvsXUIt9e X-Received: by 2002:a63:c503:: with SMTP id f3mr19180347pgd.431.1551108002810; Mon, 25 Feb 2019 07:20:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551108002; cv=none; d=google.com; s=arc-20160816; b=VBEoaIc2NnwHzRnrSkEBwPy1XOzRBWrDFJEPF4JEcP6W7jY8x/6ufYE3vR1wTWY/rb 99/hxVjOc72vG+CecBepRsRZEORqZ+inI87QHkYG0clVGaa/1VP/MLN1rCwFDJDaJ2ai u6xXpxGbh528+rOZpWvGY02vJo4jmj4FUyBhyQWgBs8+RZQ8SCd+MREosJ6da0WSILOV Af+mj2RI8USRos4CnVFshAU4ArBS4YQ6nDuG6tahXTJXbeasOsehMU5a+iVP5l0OTKK2 gBrKmsptde8Es6E3zPNScybIQUnIUu+ry+7Jkm7JTtQMM5fUGKvsnMI/EvJ7lha3Zm4N niUg== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=Gr2vx8nUHtR+3ctPpIONSxHJefpswpQLbykKb/wJvRQ=; b=MQ7+D32G3HO2S06kauotTf4CQekYpnlE9eijEQfPmczcFdDEQgF9lrEb3Ash68M/5u mFq8V6QhLAltLYYBmQFYZpeMAyuY/V2iLKU/CdKUyng0h8aAR0qJx7XdXOcEvgbarPwY H7RO4tDM0vg7OktcpIarGWubFsBydfpmnJ6imQJ0usf6cMXvWOlLgWD7bUPcuaifeHIW 8xAVpS9q4m9XgLl+TiwsRSro4uKbJudoK+iEnDBKgaV8MzzkRuUedjr2n/r9zb0AkeDd Ew3saUchw0tTF8gmggq8w/7YZFkaagjjVk6RIN8WUet6NegXG35o+2EFI3B0NnyoYqcd JGkw== 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 h127si9262181pgc.407.2019.02.25.07.19.47; Mon, 25 Feb 2019 07:20:02 -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 S1727611AbfBYPTQ convert rfc822-to-8bit (ORCPT + 99 others); Mon, 25 Feb 2019 10:19:16 -0500 Received: from mail-ua1-f65.google.com ([209.85.222.65]:44984 "EHLO mail-ua1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727467AbfBYPTP (ORCPT ); Mon, 25 Feb 2019 10:19:15 -0500 Received: by mail-ua1-f65.google.com with SMTP id r21so1503730uan.11; Mon, 25 Feb 2019 07:19:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=sYMvAdHP9MEDw8ADkokUZKn7rNN7j1k2Kc7E2aCC0L4=; b=hcDzx7iEGmb3muTviQnk2FuEa1gIO4llQmYsU0MNPqmey9rgs7ieEOeJTMWsCNnWg0 di9OtIPzaF98K1EiXgmL3bGlv2pc38AWW6ewM0/1alSH1exJ6PreC1KY9ZYRjKC/TJxv Vr9iNStKoWdZNDSnmsl3XGC2i+SxphzMgKaQloINhsAutKQXzqq6WXYD4MJHasDZhY9L 4KehoU2Zsvi6wzzlGQ2gljAakgTwPyUgJqolHt0R70txJK+HusGqwjCXwfbZ7no8VBsX sch04NXdjdCNbo9pkjd49pI1gQz8aDDPy5AUNenK3uVE41xhhKJwEbbZYgorrAqwggV6 /9LQ== X-Gm-Message-State: AHQUAuYj0gOH9Ff4qC41fDG0I0b9C1lq5VcEkCy9bNh8dlM7dN7r9fW3 BjGQ+U8rFP2oidRU94g5hzhkE0gf99uQUfa5b3hBuh4w X-Received: by 2002:a67:fc9a:: with SMTP id x26mr9550214vsp.166.1551107954611; Mon, 25 Feb 2019 07:19:14 -0800 (PST) MIME-Version: 1.0 References: <20190225140355.4335-1-j.neuschaefer@gmx.net> In-Reply-To: <20190225140355.4335-1-j.neuschaefer@gmx.net> From: Geert Uytterhoeven Date: Mon, 25 Feb 2019 16:19:02 +0100 Message-ID: Subject: Re: [PATCH] div64.h: Fix description of do_div parameter To: =?UTF-8?Q?Jonathan_Neusch=C3=A4fer?= Cc: Linux Kernel Mailing List , Arnd Bergmann , Linux-Arch Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jonathan, On Mon, Feb 25, 2019 at 3:05 PM Jonathan Neuschäfer wrote: > Contrary to the description, the first parameter (n) should not be > passed as a pointer, but directly as an lvalue. This is possible because > do_div is a macro. > > Signed-off-by: Jonathan Neuschäfer Thanks for your patch! Reviewed-by: Geert Uytterhoeven Shouldn't the "semantics" at the top of include/asm-generic/div64.h be updated, too? As this can't be expressed in a C function, perhaps that should be done using C++ syntax, like uint32_t do_div(uint64_t &n, uint32_t base) { ... } Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds