Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752634AbdLCPR4 (ORCPT ); Sun, 3 Dec 2017 10:17:56 -0500 Received: from us-smtp-delivery-194.mimecast.com ([63.128.21.194]:37862 "EHLO us-smtp-delivery-194.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752484AbdLCPRj (ORCPT ); Sun, 3 Dec 2017 10:17:39 -0500 From: Trond Myklebust To: "linux-kselftest@vger.kernel.org" , "elfring@users.sourceforge.net" , "linux-nfs@vger.kernel.org" , "kernel-janitors@vger.kernel.org" CC: "linux-kernel@vger.kernel.org" , "peterz@infradead.org" , "rostedt@goodmis.org" Subject: Re: Difficulties for compilation without extra optimisation Thread-Topic: Difficulties for compilation without extra optimisation Thread-Index: AQHTbEFGE6l/WCtPOkq86gSp2T9pvKMxuykA Date: Sun, 3 Dec 2017 15:17:32 +0000 Message-ID: <1512314250.3673.6.camel@primarydata.com> References: <7f072f78-eef4-6d87-d233-cee71dac5a32@users.sourceforge.net> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [68.49.162.121] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR11MB0073;20:bTyZo8Tg2u0U/0/OvUiQSQN3oaToJBDwc6oeRmIr8iyuyZwE7n2Bv/eMckU0Dl6gbkQoPuV9quxBQDIZS9FhmIxBNM7udvN85F8O57DSOibcfl3uPLsy0TRYSCespYipP2DIAEicheZib3Bo5o/SKDABmXAR+dAua1j6tc08KWQ= x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: aa7b31fe-0fa0-49cb-a02c-08d53a60f9d7 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(4534020)(4602075)(4603075)(4627115)(201702281549075)(5600026)(4604075)(2017052603286);SRVR:DM5PR11MB0073; x-ms-traffictypediagnostic: DM5PR11MB0073: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(42262312472803)(42068640409301); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040450)(2401047)(8121501046)(5005006)(3231022)(10201501046)(93006095)(93001095)(3002001)(6041248)(20161123555025)(20161123564025)(2016111802025)(20161123560025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(6043046)(6072148)(201708071742011);SRVR:DM5PR11MB0073;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:DM5PR11MB0073; x-forefront-prvs: 05102978A2 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(376002)(39830400002)(346002)(366004)(199003)(377424004)(24454002)(189002)(81166006)(81156014)(105586002)(106356001)(66066001)(99286004)(316002)(305945005)(103116003)(2501003)(76176011)(33646002)(7736002)(68736007)(25786009)(6486002)(77096006)(6116002)(36756003)(3846002)(8676002)(3660700001)(189998001)(8936002)(966005)(102836003)(14454004)(110136005)(3280700002)(2906002)(6306002)(101416001)(97736004)(2900100001)(2950100002)(229853002)(6246003)(5660300001)(54356011)(6436002)(53936002)(2201001)(86362001)(6512007)(6506006)(478600001)(4326008)(54906003);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR11MB0073;H:DM5PR11MB0075.namprd11.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-ID: MIME-Version: 1.0 X-OriginatorOrg: primarydata.com X-MS-Exchange-CrossTenant-Network-Message-Id: aa7b31fe-0fa0-49cb-a02c-08d53a60f9d7 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Dec 2017 15:17:32.4316 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 03193ed6-8726-4bb3-a832-18ab0d28adb7 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR11MB0073 X-MC-Unique: Ek1MImEaN42doopLO7AJog-1 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by nfs id vB3FI0TX001362 Content-Length: 1914 Lines: 53 On Sun, 2017-12-03 at 15:15 +0100, SF Markus Elfring wrote: > Hello, > > I came along some software modules where I suggested source code > adjustments. > > Example: > nfs/write: Use common error handling code in > nfs_lock_and_join_requests() > > https://lkml.org/lkml/2017/11/7/599 > https://patchwork.kernel.org/patch/10047013/ > https://lkml.kernel.org/r/<7f072f78-eef4-6d87-d233-cee71dac5a32@users > .sourceforge.net>; > > I would like to check corresponding build results then without extra > optimisation applied by the compiler. > But I got surprised by error messages for a command like the > following. > > elfring@Sonne:~/Projekte/Linux/next-patched> my_cc=/usr/bin/gcc-7 && > LANG=C make -j4 CC="${my_cc}" HOSTCC="${my_cc}" EXTRA_CFLAGS='-O0' > allmodconfig fs/nfs/write.o > … > In file included from ./include/linux/compiler.h:58:0, > from ./include/uapi/linux/stddef.h:1, > from ./include/linux/stddef.h:4, > from ./include/uapi/linux/posix_types.h:4, > from ./include/uapi/linux/types.h:13, > from ./include/linux/types.h:5, > from fs/nfs/write.c:9: > ./arch/x86/include/asm/jump_label.h: In function > ‘trace_nfs_writeback_page_enter’: > ./include/linux/compiler-gcc.h:275:38: warning: asm operand 0 > probably doesn’t match constraints > #define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while > (0) > … > > > How do you think about to improve this software situation anyhow? I'm not seeing anything obviously wrong with the NFS use of tracepoints there, and the warning suggests rather that gcc has an issue with the inlined assembly code in jump_label.h. Ccing Peter Zijlstra (who appears to have been the last person to touch that assembly code) and Steven Rostedt. -- Trond Myklebust Linux NFS client maintainer, PrimaryData trond.myklebust@primarydata.com