Received: by 10.223.185.116 with SMTP id b49csp3688048wrg; Mon, 19 Feb 2018 04:26:39 -0800 (PST) X-Google-Smtp-Source: AH8x224PQS66CEMkfRnbh8UMLZ16iVDF84RylSeqJDKzCAigaT3NXSpdoh14I3sA2vukn+/54eU2 X-Received: by 2002:a17:902:a9ca:: with SMTP id b10-v6mr14375907plr.223.1519043199645; Mon, 19 Feb 2018 04:26:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519043199; cv=none; d=google.com; s=arc-20160816; b=Mrum6kb4aaVjYkSvBev0JZb4Kgtp52NmYW8SY8h72z8VKsJBTm1lYM/z/r4tOZU3HM HZC2gvMPI9x2o1gkjgZ266PYDDQRCxU3XrDVoUw7VJIj60wft6kxvHd/V1d3FwzNVDnt NQNB9empff/jKvXbBk8rEVjRic9QGv7UsJvlV6H21aEtq4Fzu7hwOTcDGwg52D6IYhZ3 ymUpFD1yfx9TgdYG/mDybpXgMA4SxKR9s47tKUegfUYyxfzPEUppfNlX6OE6DGhVBsca KWtCFuxrDawQkhPhxyCmroejb0BZWFPgN7alqXR/BNLK5Aa7FhoucZX20gn+01nZS48B Im7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=kb7+quyTmrICuy4Gdk1uVzdDyf8EFoAMUx+fAEjXiUQ=; b=sVJ83ulMm6gMUC6NhO3C3/ux3tqXiWb/FedmTtM94BitohuCY6eGuj3Cx8M7ZP6+20 M6CRGpL5+hFd9rYTDl8ChZL8b4uX/VoKvSsxmrg7cK+e1uABBBRS22Je2v0CJgeQ1/aT fDfeJwUGK6z7o6jy03xDMFXEvUxfzUKnEmqcZe4SX6p+YlSp2UuxBPDh/zRhT6rSTlD3 2Zh2bPwQ47hjlZ+hyBKdL1LNOD0m5x3dfJtKRnbT9QgB+aoprIEDaVCZNE8tKZueBG+h phZci1SB9JhjjCgmAhgm9WuASSy1MAQL89KfHMzdqcVvXbUvDZXYwQyVujeyyB036CC/ LPvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Id6scxzg; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j15si5519074pgt.354.2018.02.19.04.26.24; Mon, 19 Feb 2018 04:26:39 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Id6scxzg; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752708AbeBSMZq (ORCPT + 99 others); Mon, 19 Feb 2018 07:25:46 -0500 Received: from mail-qk0-f196.google.com ([209.85.220.196]:37068 "EHLO mail-qk0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752659AbeBSMZp (ORCPT ); Mon, 19 Feb 2018 07:25:45 -0500 Received: by mail-qk0-f196.google.com with SMTP id y137so5832262qka.4 for ; Mon, 19 Feb 2018 04:25:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=kb7+quyTmrICuy4Gdk1uVzdDyf8EFoAMUx+fAEjXiUQ=; b=Id6scxzgQXITxl+sAxeQZF4M37h+rlBZnU8n/zY4cqPeyp59VmGk/SfhDnDug6BqRr 1nOe3yenmMnaW7cAx1v76M3eYbJ1nhah+42nXeL/YmRFQmUNAqZltOsFe5QYCtl4wbCS NX68mjF7AQddDL1jbABx3BUjba2LtzZLuJvthcJFiLZytirLyZZO+u4+CxJAHm7p9/UR N+dBSmAm7bmcIdYUKdg1Tu9tYDmrEQ9JHBEzRb0+KMYem5CvsR/uPjz+8L2zxlvQQeLX ax0pp/eaOAvyUK4eBOeMK/jOSZctuWsjykToS5cmZN2dOSYY46ZqqV5gNlVO41rOMZaE 6n8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=kb7+quyTmrICuy4Gdk1uVzdDyf8EFoAMUx+fAEjXiUQ=; b=I/o+W52YCb9WYoegHQmxKWVQxLzvsuDNQdCD9sW3Fmj21hZxOwIPDA2YtOwNCjeKY6 EDFvMZlh/Yi/WVakKe19BcFjYAl326cZ43VuEkskXMQz2GmrDg6fOvhyi6BAuvd4HsDc SS06P3esOOlw789pNFmg7wmEdeuGiTn7X+eTNZTWfcGzWfnXSK9da/16VwbM+IdbDO4j mW3ARCKr/Sjlrp0yV/l5TjXJm0mq6IaF8C02kW269+nFVWrNWvNUR8Xhg1KTpPPJNNuO DXfreJcqZIn5YlqPmtMDg1B5cnZ41WMJlXxNI2RlKNnvvca5oKc0ovgvh+ow/2XAio/W xeOw== X-Gm-Message-State: APf1xPDFhaiE0dEeVr6eyQEhkhmZL/bStXQrxtg9syI6ljoQbUfYK10r XzZ1WG+q7hDIYuthM1LuhaOJRIXfpIGcEN92FtQ= X-Received: by 10.55.16.196 with SMTP id 65mr23771458qkq.110.1519043144629; Mon, 19 Feb 2018 04:25:44 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.195.80 with HTTP; Mon, 19 Feb 2018 04:25:44 -0800 (PST) In-Reply-To: <8eacaf1d-1df8-edc6-36f6-d02748b50baa@ursulin.net> References: <20180215033356.6978-1-khandual@linux.vnet.ibm.com> <201802180359.yuetSevh%fengguang.wu@intel.com> <8eacaf1d-1df8-edc6-36f6-d02748b50baa@ursulin.net> From: Andy Shevchenko Date: Mon, 19 Feb 2018 14:25:44 +0200 Message-ID: Subject: Re: [PATCH V2] lib/scatterlist: Add SG_CHAIN and SG_END macros for LSB encodings To: Tvrtko Ursulin Cc: Anshuman Khandual , kbuild test robot , kbuild-all@01.org, Linux Kernel Mailing List , Greg Kroah-Hartman , Bart Van Assche , Johannes Thumshirn , Jens Axboe , Chris Wilson , Tvrtko Ursulin Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 19, 2018 at 12:10 PM, Tvrtko Ursulin wrote: > On 19/02/18 04:12, Anshuman Khandual wrote: >> On 02/18/2018 12:58 AM, kbuild test robot wrote: >>> #define SG_END 0x02 >>> In file included from include/linux/blkdev.h:28:0, >>> from drivers/staging/rts5208/rtsx.c:23: >>> include/linux/scatterlist.h:69:0: note: this is the location of the >>> previous definition >>> #define SG_END 0x02UL >>> >>> vim +/SG_END +343 drivers/staging/rts5208/rtsx_chip.h >> >> >> SG_END is already defined in a driver. In some driver which is by the way staging one. > Hence shall we change back >> 'SG_END' definition as 'SG_EMARK' or any other suggestions ? > > > Maybe SG_LAST? Going by existence of sg_is_chain and sg_is_last. The mentioned driver should be cleaned up as well (and perhaps to start with). It allows us to rectify constants in global namespace. So, from my point of view the driver code is ugly in a sense it doesn't have its own namespace for constants. After we fix the driver, the rest would be whatever we get agreed on. > And also would probably be good to add something like: > > #define SG_PAGE_BITS (SG_CHAIN | SG_LAST) > #define SG_PAGE_MASK (~SG_PAGE_BITS) > > ? Good suggestion, -- With Best Regards, Andy Shevchenko