Received: by 10.223.185.116 with SMTP id b49csp7578463wrg; Thu, 1 Mar 2018 07:42:47 -0800 (PST) X-Google-Smtp-Source: AG47ELtF13QGwi/u3pS6bX7bHuY4zKnyXsc5PK7lIwcXbquVoavwzPIwfLlHVuNr3OKoPxRYAjFt X-Received: by 10.101.78.5 with SMTP id r5mr1884120pgt.33.1519918967468; Thu, 01 Mar 2018 07:42:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519918967; cv=none; d=google.com; s=arc-20160816; b=h94NUo55kBzQYEuxdzvYXIKu7JwHr4DfSpAzLC8NVwi3lxq9F2uiSm9haNdfoCd4K8 PBx5wi9YrsitZXYMLhJxHctTwJ9fz4CyffOsrIDB+KhQs/8btQuy26VilnsN3QLREI9V KtWGgIw3HLqxj23pRtqxaZi/CKoqm5HYL2Rq2AWlmp2YO6Q1a8XQ6MMz/l4AityEYrM+ Ahh6rrtnDe6RLzGf7ghDVCg9ZuSEW383guoD9vaGocNAD/avS9iJ/rZcJO/FKMAH2wzB B+uB1JNJSZs3tUt1bbFxnk34R8QHM2jqPLKVpdKRD4gCidOz4Hu7iDqgR6WGltJysUAl 86iw== 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=fSRp85POYiR+8gcmjtqZ6LqcaSpbJI6q91Mepw8zi9U=; b=lHkbVus/qtVON0Jn3CwHmc3z2LE72u4HIRva8BoNeQGSl5m/mKNv6aaoo2uFkzRi12 BlR7k1FM7VbERPdyDHKMBvIJDwkAeQxImh8Lst3f8vEbO2WOE4XS7rV30rAdRugay1sT YpMHo4/KfAuj0DoF2oWafUUWCI5VsaTx9+Xllu0YoIru2MHluJ5TAg2oBwoDjPmChTzA YEFrqQXWEYvLhWGr0bpd9eB8kAJF1bAFfI6lXkEVeIFklRd3HhxdGwyYDwVVIh7e7979 f/8TcuKYc8cYkXb/PNpf3DBmv44ZUQHy0OTdVs/05etq7qPdGpSkbnENUXwFCB+ZsWo7 zJKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=1HJVby9i; 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 j71si2550819pgd.404.2018.03.01.07.42.32; Thu, 01 Mar 2018 07:42:47 -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=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=1HJVby9i; 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 S1032583AbeCAPk6 (ORCPT + 99 others); Thu, 1 Mar 2018 10:40:58 -0500 Received: from mail-it0-f66.google.com ([209.85.214.66]:51123 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1032532AbeCAPiD (ORCPT ); Thu, 1 Mar 2018 10:38:03 -0500 Received: by mail-it0-f66.google.com with SMTP id d13so5484225itf.0 for ; Thu, 01 Mar 2018 07:38:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.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=fSRp85POYiR+8gcmjtqZ6LqcaSpbJI6q91Mepw8zi9U=; b=1HJVby9ilDh+41IznSyjbR8hKjVdagVEGNieyfc5K1NWNDf2yk8ux28IaLUpEf81Gc 2aBzo5/3SOaahk9q30XZZku6mMeXf76FYV5tH/C4ZHOGqPYFeLCwdOhO8cXnoqEmnnvl LPY5Yoruv/Wn7hPrnLsD2hlMuKqp+pcYd8WGpoJZYADR7IeKzZhEAydEni7LoiPxZQU6 CZWHy/PZ5r26N1zcgVDYow9z4jfJpCdg2Uw/8tbsJvqijWRQE2wZphQLk9Qz+9X/4aaC bTcx90WvEuyCWnybWe6yrCyj2AjiAIZqttOW7yDvfppCikvaMWt/2fjW6qReMXxu20UC pI7Q== 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=fSRp85POYiR+8gcmjtqZ6LqcaSpbJI6q91Mepw8zi9U=; b=P+8XGk3sdHHRsdZWVTtMxvk5GOLLICB6uSVf2phJw010EoWvOX9BtSIJcjDCNvLAKp aovvBvyCwAXHJt4HsAsbmkPWtgHdNeOds6lBpktWAJGk07gXpsRRXSkwm1rZFakDUFpx Vj+vjBgMGzCvUnXXNSPoJtbTMdtkyRSA0ZnGcMDPjqSIlVF9JZ+6uZ50gQ+4SHjE+F0b CHKw7G9Oa/veXkZG7A2nbsuRXJVvmE+Wm5A8Y7jDdEODfUVuzGHACW2gllwNGDmi93D4 BfKNPraAzXlL/nDDAPB/yc95VcXeXH84aCfqqjby9RU6ILBylkgxDZEqCYhXvDJfgaPo Quyw== X-Gm-Message-State: APf1xPArcrd0qeiYo5Hoggr4qlsd566ZvIRiF3SojZ3hTWasWuQLurN5 9gEL7aT0ZtudHCpSDvfYfq+Bco/+aJw= X-Received: by 10.36.149.136 with SMTP id m130mr2954590itd.64.1519918681825; Thu, 01 Mar 2018 07:38:01 -0800 (PST) Received: from [192.168.1.154] ([216.160.245.98]) by smtp.gmail.com with ESMTPSA id j28sm3154611ioo.63.2018.03.01.07.37.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Mar 2018 07:37:59 -0800 (PST) Subject: Re: linux-next: build warnings after merge of the block tree To: Anshuman Khandual , Stephen Rothwell Cc: Linux-Next Mailing List , Linux Kernel Mailing List References: <20180301112624.652612c7@canb.auug.org.au> <1f3b4275-b346-d768-681e-b180ec351140@linux.vnet.ibm.com> From: Jens Axboe Message-ID: Date: Thu, 1 Mar 2018 08:37:58 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Thunderbird/59.0 MIME-Version: 1.0 In-Reply-To: <1f3b4275-b346-d768-681e-b180ec351140@linux.vnet.ibm.com> Content-Type: text/plain; charset=utf-8 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 2/28/18 9:02 PM, Anshuman Khandual wrote: > On 03/01/2018 05:56 AM, Stephen Rothwell wrote: >> Hi Jens, >> >> After merging the block tree, today's linux-next build (x86_64 >> allmodconfig) produced these warning: >> >> In file included from drivers/misc/cardreader/rts5209.c:24:0: >> include/linux/rtsx_pci.h:40:0: warning: "SG_END" redefined >> #define SG_END 0x02 >> >> In file included from include/linux/dmapool.h:14:0, >> from include/linux/pci.h:1311, >> from include/linux/rtsx_pci.h:26, >> from drivers/misc/cardreader/rts5209.c:24: >> include/linux/scatterlist.h:69:0: note: this is the location of the previous definition >> #define SG_END 0x02UL >> >> 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 >> >> >> and many more the same. >> >> Introduced by commit >> >> 723fbf563a6a ("lib/scatterlist: Add SG_CHAIN and SG_END macros for LSB encodings") > > IIRC this was already detected and hence sent a new version changing > this to SG_LAST. > > https://patchwork.kernel.org/patch/10227897/ The right fix is for drivers to not use defines that end up conflicting with the global namespace. Should have been fixed up earlier, but I have applied the patches from Arnd to rectify that. -- Jens Axboe