Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761736AbcLUWen (ORCPT ); Wed, 21 Dec 2016 17:34:43 -0500 Received: from lb3-smtp-cloud6.xs4all.net ([194.109.24.31]:59238 "EHLO lb3-smtp-cloud6.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758195AbcLUWem (ORCPT ); Wed, 21 Dec 2016 17:34:42 -0500 Message-ID: <1482359625.28171.2.camel@tiscali.nl> Subject: Re: [PATCH 2/2] net: wireless: fix to uses struct From: Paul Bolle To: Ozgur Karatas , johannes , David Miller Cc: Thomas Gleixner , linux-wireless , netdev , linux-kernel Date: Wed, 21 Dec 2016 23:33:45 +0100 In-Reply-To: <608881482358981@web17g.yandex.ru> References: <608881482358981@web17g.yandex.ru> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.20.5 (3.20.5-1.fc24) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1664 Lines: 36 On Thu, 2016-12-22 at 00:23 +0200, Ozgur Karatas wrote: > I compiled and didn't to errors. Really? $ make net/wireless/reg.o CHK include/config/kernel.release CHK include/generated/uapi/linux/version.h CHK include/generated/utsrelease.h CHK include/generated/bounds.h CHK include/generated/timeconst.h CHK include/generated/asm-offsets.h CALL scripts/checksyscalls.sh CC net/wireless/reg.o net/wireless/reg.c: In function ‘regulatory_hint_core’: net/wireless/reg.c:2294:28: error: ‘regulatory_request’ undeclared (first use in this function) request = kzalloc(sizeof(*regulatory_request), GFP_KERNEL); ^~~~~~~~~~~~~~~~~~ net/wireless/reg.c:2294:28: note: each undeclared identifier is reported only once for each function it appears in net/wireless/reg.c: In function ‘regulatory_hint_user’: net/wireless/reg.c:2316:28: error: ‘regulatory_request’ undeclared (first use in this function) request = kzalloc(sizeof(*regulatory_request), GFP_KERNEL); ^~~~~~~~~~~~~~~~~~ net/wireless/reg.c: In function ‘regulatory_hint’: net/wireless/reg.c:2388:28: error: ‘regulatory_request’ undeclared (first use in this function) request = kzalloc(sizeof(*regulatory_request), GFP_KERNEL); ^~~~~~~~~~~~~~~~~~ scripts/Makefile.build:293: recipe for target 'net/wireless/reg.o' failed make[1]: *** [net/wireless/reg.o] Error 1 Makefile:1640: recipe for target 'net/wireless/reg.o' failed make: *** [net/wireless/reg.o] Error 2 Didn't Thomas Gleixner suggest that you do a basic C course just yesterday? Paul Bolle