From: Wolfgang Denk Date: Tue, 20 Dec 2011 23:20:03 +0100 Subject: [U-Boot] [PATCH] usb: s3c_udc_otg: fix GCC 4.6 build warnings In-Reply-To: <1324304435-24076-1-git-send-email-agust@denx.de> References: <1324304435-24076-1-git-send-email-agust@denx.de> Message-ID: <20111220222003.A441419E5E2D@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Anatolij Gustschin, In message <1324304435-24076-1-git-send-email-agust@denx.de> you wrote: > Fix: > In file included from s3c_udc_otg.c:216:0: > s3c_udc_otg_xfer_dma.c: In function 'complete_tx': > s3c_udc_otg_xfer_dma.c:280:33: warning: variable 'is_short' set but not used > s3c_udc_otg_xfer_dma.c:280:6: warning: variable 'ep_tsr' set but not used > s3c_udc_otg_xfer_dma.c: In function 's3c_udc_irq': > s3c_udc_otg_xfer_dma.c:469:16: warning: variable 'flags' set but not used > s3c_udc_otg_xfer_dma.c:468:18: warning: variable 'gintmsk' set but not used > s3c_udc_otg_xfer_dma.c: In function 's3c_queue': > s3c_udc_otg_xfer_dma.c:582:14: warning: variable 'gintsts' set but not used > s3c_udc_otg_xfer_dma.c:581:16: warning: variable 'flags' set but not used > s3c_udc_otg_xfer_dma.c: In function 's3c_ep0_read': > s3c_udc_otg_xfer_dma.c:778:6: warning: variable 'ret' set but not used > s3c_udc_otg_xfer_dma.c: In function 's3c_udc_set_halt': > s3c_udc_otg_xfer_dma.c:1020:16: warning: variable 'flags' set but not used > s3c_udc_otg_xfer_dma.c: In function 's3c_ep0_setup': > s3c_udc_otg_xfer_dma.c:1258:13: warning: initialization from incompatible > pointer type [enabled by default] > s3c_udc_otg_xfer_dma.c:1239:16: warning: variable 'is_in' set but not used > s3c_udc_otg_xfer_dma.c:1239:9: warning: variable 'bytes' set but not used > s3c_udc_otg.c: In function 'usb_gadget_register_driver': > s3c_udc_otg.c:292:16: warning: variable 'flags' set but not used > s3c_udc_otg.c: In function 'usb_gadget_unregister_driver': > s3c_udc_otg.c:338:16: warning: variable 'flags' set but not used > s3c_udc_otg.c: In function 's3c_ep_enable': > s3c_udc_otg.c:582:16: warning: variable 'flags' set but not used > s3c_udc_otg.c: In function 's3c_ep_disable': > s3c_udc_otg.c:646:16: warning: variable 'flags' set but not used > s3c_udc_otg.c: In function 's3c_dequeue': > s3c_udc_otg.c:704:16: warning: variable 'flags' set but not used > > Signed-off-by: Anatolij Gustschin > Cc: Lukasz Majewski > Cc: Remy Bohmer > --- > drivers/usb/gadget/s3c_udc_otg.c | 52 ++++----- > drivers/usb/gadget/s3c_udc_otg_xfer_dma.c | 166 ++++++++++++++++------------- > include/usb/lin_gadget_compat.h | 2 +- > include/usb/s3c_udc.h | 20 ++-- > 4 files changed, 125 insertions(+), 115 deletions(-) Applied, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de It took him several minutes to understand any new idea put to him, and this is a very valuable trait in a leader, because anything any- one is still trying to explain to you after two minutes is probably important and anything they give up after a mere minute or so is al- most certainly something they shouldn't have been bothering you with in the first place. - Terry Pratchett, _Reaper Man_