Received: by 10.223.185.116 with SMTP id b49csp3568733wrg; Mon, 19 Feb 2018 02:11:51 -0800 (PST) X-Google-Smtp-Source: AH8x226Kv26H7HXRNTsdEje/Uz52r2NVEKWln1FDV7tl9tK+Ww4pKbDmgHj7Q2C3LW9u3hvphUtE X-Received: by 10.99.158.17 with SMTP id s17mr12055089pgd.64.1519035111766; Mon, 19 Feb 2018 02:11:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519035111; cv=none; d=google.com; s=arc-20160816; b=yFwe0t1UaE3xigtK9CgLfR+rvqcghGMKPOIdeB20kV1ITUnyAzgY1vOOhiA/mDEKTQ RvMTWp1S3ycd3qCee9dLbLx1NLdsWWsQY7Esb+aVnJuECtkjTa1W0ZBzWctk7hUL73Ni yAd+pTg5pj2hF7lbtALYgc9nDE/qPe2O4hVyIdRbdTXIItC47EAnlONtKzGjTSXtU0WW Et9Gr+5bNFokifw447tV7UmAZVwqc4ynGhpnOidWKvp/UIxl7ORtwwmxPIIwaft3fR30 nfS/XCUnMg9pi193SDDT2TT/1ICEgNrIvYxP2VgdIBCIFB/aIF5jpcIBSPGKXBpfq1FM cq9Q== 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:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=TEy/v89+jdPEfGMEL5KFPuaajehok8pTuBXjjyJom9w=; b=QnlzgJghWbYfbL7or+4QPalrQBBYGMKFEf7jBF9PzUA9HCieENyK8LTg2Uk+WyCzhd rl+2G9G9POFS0TRjzo9UpFGZvZdN6I3Zut0RS9bORh/sfRGtGzFh5X78Eh7TcNHPktqL zX7mkmT3wjhBaXNSF/0sh/CJ3FJQnRcYpeS8N+GdQlCGnZ1qrzPIONX4ifSlJvd7KTbq FIkskSKNkj2hElq9PRKwYqJm9xzR5sKfhNfIXs93Fhd/mkJ9wTCcrbtFeDLt0B85RTGX 64VHG4ixvdfyuWZOlzolTdycu1bBTt+Z24B24Zim4znOzXt3hsHFiU37DSxpieg60HqP U4WA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ursulin-net.20150623.gappssmtp.com header.s=20150623 header.b=FYNxnJZ9; 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 g7si8115254pfm.0.2018.02.19.02.11.37; Mon, 19 Feb 2018 02:11:51 -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=@ursulin-net.20150623.gappssmtp.com header.s=20150623 header.b=FYNxnJZ9; 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 S1752425AbeBSKK1 (ORCPT + 99 others); Mon, 19 Feb 2018 05:10:27 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:52610 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752218AbeBSKK0 (ORCPT ); Mon, 19 Feb 2018 05:10:26 -0500 Received: by mail-wm0-f65.google.com with SMTP id t3so14036410wmc.2 for ; Mon, 19 Feb 2018 02:10:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ursulin-net.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=TEy/v89+jdPEfGMEL5KFPuaajehok8pTuBXjjyJom9w=; b=FYNxnJZ9ytlBDscnz0qEPRN5i+cssE/WFzN/Z9UozVacSwDizKuEmQmuK6ox03SgXL iODNntcJcgUTfnEH3RrMMEM1r61sT2PN2hDqSiKXNdDC+tD51GZbqI6Zu0sufL4HWcrb KVApln5hpCGq3r3zBVW8T9v6oraPHeT5VzjxSL7RK9LRNjGj9Ucs8k4D2ihdvcxT8pjB tvzvq2IBfJg5QAJ3nhGF0W9HJouI+9ID7zy4rpe+y8cAU7yiasctIw6emHy9nzG3Jw8m 4j+d55GqqcNXWseae3u2+ljpL/bQpyAWR0LUA7FohCuVMl1FHqujm0KVsd3OBwBc4Ltk wJEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=TEy/v89+jdPEfGMEL5KFPuaajehok8pTuBXjjyJom9w=; b=XBeos9eGO1h4nT0V9bcfj/Ci3xwX8XB+RBGPx9nT5DfrXnRac3jRro6tYWJ4xmtSA3 rnUnPYeQo/wvEu/RgaHexlUhRUo89uzM0HlxxsibVnfsKxha7oe/uoIJ+cLIM/iLRwpc UCcdo+834RR6ERMYV+K8qMZFGR17hHHMYJ/uGDvK0eoHSwkm2VIGCCyIo4qtWbBxcCas JR8W2FoM/aeMGRZMU4iD/pq1XLJ1JTpli+D+9z2C4jykwuLBmCm/jmm7bpRCujhWAP13 aS8XXI5/T7yGcYgmsPRpbjj5FNxqdIwAbYxBjwBPh63QMJCmpfVLZ6oHWqaLWWHM8e9f Dc2A== X-Gm-Message-State: APf1xPBjrVCxuu5Ay2VgWrPGWoKdy+j/nQ0lusg7nAO8PMGnMM83FlFN 31t9SChdvd/31OEYOMi7R6GPzNWb X-Received: by 10.80.134.185 with SMTP id r54mr14174897eda.60.1519035025063; Mon, 19 Feb 2018 02:10:25 -0800 (PST) Received: from [192.168.0.153] ([95.146.144.186]) by smtp.googlemail.com with ESMTPSA id f19sm7144169edd.84.2018.02.19.02.10.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Feb 2018 02:10:24 -0800 (PST) Subject: Re: [PATCH V2] lib/scatterlist: Add SG_CHAIN and SG_END macros for LSB encodings To: Anshuman Khandual , kbuild test robot Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, bart.vanassche@wdc.com, jthumshirn@suse.de, axboe@kernel.dk, chris@chris-wilson.co.uk, tvrtko.ursulin@intel.com References: <20180215033356.6978-1-khandual@linux.vnet.ibm.com> <201802180359.yuetSevh%fengguang.wu@intel.com> From: Tvrtko Ursulin Message-ID: <8eacaf1d-1df8-edc6-36f6-d02748b50baa@ursulin.net> Date: Mon, 19 Feb 2018 10:10:23 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19/02/18 04:12, Anshuman Khandual wrote: > On 02/18/2018 12:58 AM, kbuild test robot wrote: >> Hi Anshuman, >> >> Thank you for the patch! Perhaps something to improve: >> >> [auto build test WARNING on linus/master] >> [also build test WARNING on v4.16-rc1 next-20180216] >> [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] >> >> url: https://github.com/0day-ci/linux/commits/Anshuman-Khandual/lib-scatterlist-Add-SG_CHAIN-and-SG_END-macros-for-LSB-encodings/20180218-015554 >> config: x86_64-randconfig-s3-02180201 (attached as .config) >> compiler: gcc-7 (Debian 7.3.0-1) 7.3.0 >> reproduce: >> # save the attached .config to linux build tree >> make ARCH=x86_64 >> >> All warnings (new ones prefixed by >>): >> >> In file included from drivers/staging/rts5208/rtsx.h:180:0, >> from drivers/staging/rts5208/rtsx.c:28: >>>> drivers/staging/rts5208/rtsx_chip.h:343:0: warning: "SG_END" redefined >> #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. 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. 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) ? Regards, Tvrtko